From cf421c81c077f1c8cae3287fa7925ddbbe294be6 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 3 Sep 2020 12:07:36 +0000 Subject: [PATCH 001/111] Release 1.26.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 ++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../interfaces/system/system_state.py | 12 +- .../interfaces/system_unit/__init__.py | 17 +++ .../interfaces/system_unit/py.typed | 0 .../interfaces/system_unit/unit.py | 115 ++++++++++++++++++ 6 files changed, 151 insertions(+), 3 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/system_unit/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/system_unit/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 95a024a..b1d530f 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -332,3 +332,11 @@ This release contains the following changes : This release contains the following changes : - Introducing `person-level permissions `__ for Skill events. + + +1.26.0 +~~~~~~ + +This release contains the following changes : + +- Support for 'Alexa for residential' properties. More information about 'Alexa for residential' can be found here : https://developer.amazon.com/en-US/docs/alexa/alexa-smart-properties/about-alexa-for-residential.html diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 01b12ab..7672858 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.25.0' +__version__ = '1.26.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py index 5344084..9e7a749 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py @@ -24,6 +24,7 @@ from typing import Dict, List, Optional, Union from datetime import datetime from ask_sdk_model.device import Device + from ask_sdk_model.interfaces.system_unit.unit import Unit from ask_sdk_model.person import Person from ask_sdk_model.application import Application from ask_sdk_model.user import User @@ -40,6 +41,8 @@ class SystemState(object): :type device: (optional) ask_sdk_model.device.Device :param person: :type person: (optional) ask_sdk_model.person.Person + :param unit: + :type unit: (optional) ask_sdk_model.interfaces.system_unit.unit.Unit :param api_endpoint: A string that references the correct base URI to refer to by region, for use with APIs such as the Device Location API and Progressive Response API. :type api_endpoint: (optional) str :param api_access_token: A bearer token string that can be used by the skill (during the skill session) to access Alexa APIs resources of the registered Alexa customer and/or person who is making the request. This token encapsulates the permissions authorized under the registered Alexa account and device, and (optionally) the recognized person. Some resources, such as name or email, require explicit customer consent.\" @@ -51,6 +54,7 @@ class SystemState(object): 'user': 'ask_sdk_model.user.User', 'device': 'ask_sdk_model.device.Device', 'person': 'ask_sdk_model.person.Person', + 'unit': 'ask_sdk_model.interfaces.system_unit.unit.Unit', 'api_endpoint': 'str', 'api_access_token': 'str' } # type: Dict @@ -60,13 +64,14 @@ class SystemState(object): 'user': 'user', 'device': 'device', 'person': 'person', + 'unit': 'unit', 'api_endpoint': 'apiEndpoint', 'api_access_token': 'apiAccessToken' } # type: Dict supports_multiple_types = False - def __init__(self, application=None, user=None, device=None, person=None, api_endpoint=None, api_access_token=None): - # type: (Optional[Application], Optional[User], Optional[Device], Optional[Person], Optional[str], Optional[str]) -> None + def __init__(self, application=None, user=None, device=None, person=None, unit=None, api_endpoint=None, api_access_token=None): + # type: (Optional[Application], Optional[User], Optional[Device], Optional[Person], Optional[Unit], Optional[str], Optional[str]) -> None """ :param application: @@ -77,6 +82,8 @@ def __init__(self, application=None, user=None, device=None, person=None, api_en :type device: (optional) ask_sdk_model.device.Device :param person: :type person: (optional) ask_sdk_model.person.Person + :param unit: + :type unit: (optional) ask_sdk_model.interfaces.system_unit.unit.Unit :param api_endpoint: A string that references the correct base URI to refer to by region, for use with APIs such as the Device Location API and Progressive Response API. :type api_endpoint: (optional) str :param api_access_token: A bearer token string that can be used by the skill (during the skill session) to access Alexa APIs resources of the registered Alexa customer and/or person who is making the request. This token encapsulates the permissions authorized under the registered Alexa account and device, and (optionally) the recognized person. Some resources, such as name or email, require explicit customer consent.\" @@ -88,6 +95,7 @@ def __init__(self, application=None, user=None, device=None, person=None, api_en self.user = user self.device = device self.person = person + self.unit = unit self.api_endpoint = api_endpoint self.api_access_token = api_access_token diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/__init__.py new file mode 100644 index 0000000..6fef2f8 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .unit import Unit diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py new file mode 100644 index 0000000..9672cdd --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class Unit(object): + """ + An object that represents a logical entity for organizing actors and resources that interact with Alexa systems. + + + :param unit_id: A string that represents unitId directed at skill level. Each skill gets a different directed identifier for same internal identifier. This is Skill enablement scoped identifier. This should be in format - amzn1.ask.unit.<skillDirectedId> + :type unit_id: (optional) str + :param persistent_unit_id: A string that represents a unitId directed using directedIdConfuser associated with the respective Organization's developer account. This identifier is directed at an Organization level. Same identifier is shared across Organization's backend systems (which invokes API), Skills owned by the organization and authorized 3P skills. This should be in format - amzn1.alexa.unit.did.<LWAConfuserDirectedId> + :type persistent_unit_id: (optional) str + + """ + deserialized_types = { + 'unit_id': 'str', + 'persistent_unit_id': 'str' + } # type: Dict + + attribute_map = { + 'unit_id': 'unitId', + 'persistent_unit_id': 'persistentUnitId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, unit_id=None, persistent_unit_id=None): + # type: (Optional[str], Optional[str]) -> None + """An object that represents a logical entity for organizing actors and resources that interact with Alexa systems. + + :param unit_id: A string that represents unitId directed at skill level. Each skill gets a different directed identifier for same internal identifier. This is Skill enablement scoped identifier. This should be in format - amzn1.ask.unit.<skillDirectedId> + :type unit_id: (optional) str + :param persistent_unit_id: A string that represents a unitId directed using directedIdConfuser associated with the respective Organization's developer account. This identifier is directed at an Organization level. Same identifier is shared across Organization's backend systems (which invokes API), Skills owned by the organization and authorized 3P skills. This should be in format - amzn1.alexa.unit.did.<LWAConfuserDirectedId> + :type persistent_unit_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.unit_id = unit_id + self.persistent_unit_id = persistent_unit_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Unit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other From 49986547dd6b687a706b9cd834e6dd79e6181cb7 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Wed, 9 Sep 2020 22:08:34 +0000 Subject: [PATCH 002/111] Release 1.27.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 ++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 20 +++ .../authorization/authorization_grant_body.py | 109 +++++++++++++++ .../authorization_grant_request.py | 132 ++++++++++++++++++ .../ask_sdk_model/authorization/grant.py | 116 +++++++++++++++ .../ask_sdk_model/authorization/grant_type.py | 65 +++++++++ .../ask_sdk_model/authorization/py.typed | 0 .../interfaces/connections/__init__.py | 1 + .../interfaces/connections/on_completion.py | 66 +++++++++ .../v1/start_connection_directive.py | 12 +- ask-sdk-model/ask_sdk_model/request.py | 3 + 12 files changed, 531 insertions(+), 3 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/authorization/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py create mode 100644 ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py create mode 100644 ask-sdk-model/ask_sdk_model/authorization/grant.py create mode 100644 ask-sdk-model/ask_sdk_model/authorization/grant_type.py create mode 100644 ask-sdk-model/ask_sdk_model/authorization/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index b1d530f..4cfe1e9 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -340,3 +340,11 @@ This release contains the following changes : This release contains the following changes : - Support for 'Alexa for residential' properties. More information about 'Alexa for residential' can be found here : https://developer.amazon.com/en-US/docs/alexa/alexa-smart-properties/about-alexa-for-residential.html + + +1.27.0 +~~~~~~ + +This release contains the following changes : +- Add “onCompletion” field in Connections.StartConnection directive. When sending this directive to start a Skill Connection, requester skill can set onCompletion to be RESUME_SESSION to receive the control back after the task is completed or SEND_ERRORS_ONLY to only receive error notifications without control back. More information about using Skill Connections to Request Tasks can be found `here `__. +- Add “Authorization.Grant” directive support for user specific access token in out-of-session calls. More information can be found `here `__. diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 7672858..c65c22e 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.26.0' +__version__ = '1.27.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py new file mode 100644 index 0000000..f1586a4 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -0,0 +1,20 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .grant_type import GrantType +from .authorization_grant_request import AuthorizationGrantRequest +from .grant import Grant +from .authorization_grant_body import AuthorizationGrantBody diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py new file mode 100644 index 0000000..1bc2c73 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_sdk_model.authorization.grant import Grant + + +class AuthorizationGrantBody(object): + """ + Authorization grant body. + + + :param grant: + :type grant: (optional) ask_sdk_model.authorization.grant.Grant + + """ + deserialized_types = { + 'grant': 'ask_sdk_model.authorization.grant.Grant' + } # type: Dict + + attribute_map = { + 'grant': 'grant' + } # type: Dict + supports_multiple_types = False + + def __init__(self, grant=None): + # type: (Optional[Grant]) -> None + """Authorization grant body. + + :param grant: + :type grant: (optional) ask_sdk_model.authorization.grant.Grant + """ + self.__discriminator_value = None # type: str + + self.grant = grant + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizationGrantBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py new file mode 100644 index 0000000..d90622f --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_sdk_model.authorization.authorization_grant_body import AuthorizationGrantBody + + +class AuthorizationGrantRequest(Request): + """ + Represents an authorization code delivered to a skill that has out-of-session permissions without requiring account linking. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param body: + :type body: (optional) ask_sdk_model.authorization.authorization_grant_body.AuthorizationGrantBody + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'body': 'ask_sdk_model.authorization.authorization_grant_body.AuthorizationGrantBody' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'body': 'body' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, body=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[AuthorizationGrantBody]) -> None + """Represents an authorization code delivered to a skill that has out-of-session permissions without requiring account linking. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param body: + :type body: (optional) ask_sdk_model.authorization.authorization_grant_body.AuthorizationGrantBody + """ + self.__discriminator_value = "Alexa.Authorization.Grant" # type: str + + self.object_type = self.__discriminator_value + super(AuthorizationGrantRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.body = body + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizationGrantRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/authorization/grant.py b/ask-sdk-model/ask_sdk_model/authorization/grant.py new file mode 100644 index 0000000..5c0bf70 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/authorization/grant.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_sdk_model.authorization.grant_type import GrantType + + +class Grant(object): + """ + Information that identifies a user in Amazon Alexa systems. + + + :param object_type: Type of the grant. + :type object_type: (optional) ask_sdk_model.authorization.grant_type.GrantType + :param code: The authorization code for the user. + :type code: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.authorization.grant_type.GrantType', + 'code': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'code': 'code' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, code=None): + # type: (Optional[GrantType], Optional[str]) -> None + """Information that identifies a user in Amazon Alexa systems. + + :param object_type: Type of the grant. + :type object_type: (optional) ask_sdk_model.authorization.grant_type.GrantType + :param code: The authorization code for the user. + :type code: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.code = code + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Grant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/authorization/grant_type.py b/ask-sdk-model/ask_sdk_model/authorization/grant_type.py new file mode 100644 index 0000000..e71c505 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/authorization/grant_type.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class GrantType(Enum): + """ + One of the grant types supported. + + + + Allowed enum values: [OAuth2_AuthorizationCode] + """ + OAuth2_AuthorizationCode = "OAuth2.AuthorizationCode" + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GrantType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/authorization/py.typed b/ask-sdk-model/ask_sdk_model/authorization/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index e782583..1fdc949 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -15,6 +15,7 @@ from __future__ import absolute_import from .connections_request import ConnectionsRequest +from .on_completion import OnCompletion from .connections_status import ConnectionsStatus from .send_response_directive import SendResponseDirective from .send_request_directive import SendRequestDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py new file mode 100644 index 0000000..136c976 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class OnCompletion(Enum): + """ + This defines the callback mechanism when the task is completed, i.e., whether the requester wants to be resumed after the task is fulfilled or just be notified about errors without being resumed. + + + + Allowed enum values: [RESUME_SESSION, SEND_ERRORS_ONLY] + """ + RESUME_SESSION = "RESUME_SESSION" + SEND_ERRORS_ONLY = "SEND_ERRORS_ONLY" + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, OnCompletion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py index 73e8223..b853b69 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py @@ -24,6 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union from datetime import datetime + from ask_sdk_model.interfaces.connections.on_completion import OnCompletion class StartConnectionDirective(Directive): @@ -33,6 +34,8 @@ class StartConnectionDirective(Directive): :param uri: This defines the name and version of connection that the requester is trying to send. The format of the uri should follow this pattern: connection://connectionName/connectionVersion. Invalid uri will cause an error which will be sent back to the requester. :type uri: (optional) str + :param on_completion: + :type on_completion: (optional) ask_sdk_model.interfaces.connections.on_completion.OnCompletion :param input: This is the input to the connection that the requester is trying to send. It is predefined by the handler of the connection. If the input format is incorrect, an error will be sent to to the requester. :type input: (optional) dict(str, object) :param token: This is an echo back string that requester will receive it when it gets resumed. It is never sent to the handler of the connection. @@ -42,6 +45,7 @@ class StartConnectionDirective(Directive): deserialized_types = { 'object_type': 'str', 'uri': 'str', + 'on_completion': 'ask_sdk_model.interfaces.connections.on_completion.OnCompletion', 'input': 'dict(str, object)', 'token': 'str' } # type: Dict @@ -49,17 +53,20 @@ class StartConnectionDirective(Directive): attribute_map = { 'object_type': 'type', 'uri': 'uri', + 'on_completion': 'onCompletion', 'input': 'input', 'token': 'token' } # type: Dict supports_multiple_types = False - def __init__(self, uri=None, input=None, token=None): - # type: (Optional[str], Optional[Dict[str, object]], Optional[str]) -> None + def __init__(self, uri=None, on_completion=None, input=None, token=None): + # type: (Optional[str], Optional[OnCompletion], Optional[Dict[str, object]], Optional[str]) -> None """This is the directive that a skill can send as part of their response to a session based request to start a connection. A response will be returned to the skill when the connection is handled. :param uri: This defines the name and version of connection that the requester is trying to send. The format of the uri should follow this pattern: connection://connectionName/connectionVersion. Invalid uri will cause an error which will be sent back to the requester. :type uri: (optional) str + :param on_completion: + :type on_completion: (optional) ask_sdk_model.interfaces.connections.on_completion.OnCompletion :param input: This is the input to the connection that the requester is trying to send. It is predefined by the handler of the connection. If the input format is incorrect, an error will be sent to to the requester. :type input: (optional) dict(str, object) :param token: This is an echo back string that requester will receive it when it gets resumed. It is never sent to the handler of the connection. @@ -70,6 +77,7 @@ def __init__(self, uri=None, input=None, token=None): self.object_type = self.__discriminator_value super(StartConnectionDirective, self).__init__(object_type=self.__discriminator_value) self.uri = uri + self.on_completion = on_completion self.input = input self.token = token diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 8f7a711..7fb8add 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -71,6 +71,8 @@ class Request(object): | | LaunchRequest: :py:class:`ask_sdk_model.launch_request.LaunchRequest`, | + | Alexa.Authorization.Grant: :py:class:`ask_sdk_model.authorization.authorization_grant_request.AuthorizationGrantRequest`, + | | Reminders.ReminderCreated: :py:class:`ask_sdk_model.services.reminder_management.reminder_created_event_request.ReminderCreatedEventRequest`, | | Alexa.Presentation.APLT.UserEvent: :py:class:`ask_sdk_model.interfaces.alexa.presentation.aplt.user_event.UserEvent`, @@ -169,6 +171,7 @@ class Request(object): 'CustomInterfaceController.Expired': 'ask_sdk_model.interfaces.custom_interface_controller.expired_request.ExpiredRequest', 'Alexa.Presentation.HTML.Message': 'ask_sdk_model.interfaces.alexa.presentation.html.message_request.MessageRequest', 'LaunchRequest': 'ask_sdk_model.launch_request.LaunchRequest', + 'Alexa.Authorization.Grant': 'ask_sdk_model.authorization.authorization_grant_request.AuthorizationGrantRequest', 'Reminders.ReminderCreated': 'ask_sdk_model.services.reminder_management.reminder_created_event_request.ReminderCreatedEventRequest', 'Alexa.Presentation.APLT.UserEvent': 'ask_sdk_model.interfaces.alexa.presentation.aplt.user_event.UserEvent', 'AlexaHouseholdListEvent.ItemsUpdated': 'ask_sdk_model.services.list_management.list_items_updated_event_request.ListItemsUpdatedEventRequest', From ea0aec56549eb813f6072d943dab978c536ab79a Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 18 Sep 2020 18:39:59 +0000 Subject: [PATCH 003/111] Release 1.8.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 542 ++++++++++++++++++ .../skill/interaction_model/jobs/__init__.py | 39 ++ .../skill/interaction_model/jobs/catalog.py | 113 ++++ .../jobs/catalog_auto_refresh.py | 128 +++++ .../jobs/create_job_definition_request.py | 116 ++++ .../jobs/create_job_definition_response.py | 108 ++++ .../jobs/dynamic_update_error.py | 115 ++++ .../skill/interaction_model/jobs/execution.py | 137 +++++ .../jobs/execution_metadata.py | 122 ++++ .../jobs/get_executions_response.py | 125 ++++ .../jobs/interaction_model.py | 120 ++++ .../jobs/job_api_pagination_context.py | 98 ++++ .../interaction_model/jobs/job_definition.py | 150 +++++ .../jobs/job_definition_metadata.py | 123 ++++ .../jobs/job_definition_status.py | 66 +++ .../jobs/job_error_details.py | 109 ++++ .../jobs/list_job_definitions_response.py | 125 ++++ .../v1/skill/interaction_model/jobs/py.typed | 0 .../jobs/reference_version_update.py | 142 +++++ .../jobs/referenced_resource_jobs_complete.py | 106 ++++ .../interaction_model/jobs/resource_object.py | 138 +++++ .../skill/interaction_model/jobs/scheduled.py | 120 ++++ .../jobs/slot_type_reference.py | 113 ++++ .../skill/interaction_model/jobs/trigger.py | 135 +++++ .../jobs/update_job_status_request.py | 109 ++++ .../jobs/validation_errors.py | 109 ++++ 28 files changed, 3317 insertions(+), 1 deletion(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 1665ad9..3416842 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -131,3 +131,11 @@ This release contains the following changes : This release contains the following changes : - minor bug fixes in existing models. + + +1.8.0 +~~~~~ + +This release contains the following changes : + +- New models for `Jobs Definitions API `__ diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 3c1d5ae..3924f7b 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.7.3' +__version__ = '1.8.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index b01bd85..5e66ea7 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -62,11 +62,13 @@ from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponseV1 from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfoV0 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsListV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request import CreateJobDefinitionRequestV1 from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequestV1 from ask_smapi_model.v1.skill.upload_response import UploadResponseV1 from ask_smapi_model.v0.bad_request_error import BadRequestErrorV0 from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponseV1 from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponseV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response import ListJobDefinitionsResponseV1 from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequestV1 from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayloadV1 from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponseV1 @@ -83,6 +85,7 @@ from ask_smapi_model.v1.skill.history.intent_requests import IntentRequestsV1 from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelDataV1 from ask_smapi_model.v2.bad_request_error import BadRequestErrorV2 + from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequestV1 from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionDataV1 from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponseV0 from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTestV1 @@ -124,6 +127,7 @@ from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponseV1 import str from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response import CreateJobDefinitionResponseV1 from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequestV1 from ask_smapi_model.v1.skill.export_response import ExportResponseV1 from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequestV1 @@ -131,6 +135,7 @@ from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponseV1 from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponseV1 from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_definition_output import SlotTypeDefinitionOutputV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponseV1 from ask_smapi_model.v0.development_events.subscriber.subscriber_info import SubscriberInfoV0 from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequestV0 from ask_smapi_model.v0.development_events.subscription.list_subscriptions_response import ListSubscriptionsResponseV0 @@ -172,6 +177,7 @@ from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayloadV1 from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionDataV1 from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors import ValidationErrorsV1 from ask_smapi_model.v1.skill.interaction_model.version.list_response import ListResponseV1 @@ -3763,6 +3769,542 @@ def create_interaction_model_catalog_v1(self, catalog, **kwargs): return api_response return api_response.body + def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListJobDefinitionsResponseV1, BadRequestErrorV1] + """ + Retrieve a list of jobs associated with the vendor. + + :param vendor_id: (required) The vendor ID. + :type vendor_id: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: float + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, StandardizedErrorV1, ListJobDefinitionsResponseV1, BadRequestErrorV1] + """ + operation_name = "list_job_definitions_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'vendor_id' is set + if ('vendor_id' not in params) or (params['vendor_id'] is None): + raise ValueError( + "Missing the required parameter `vendor_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + + query_params = [] # type: List + if 'vendor_id' in params: + query_params.append(('vendorId', params['vendor_id'])) + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response.ListJobDefinitionsResponse", status_code=200, message="List of all jobs associated with the vendor.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response.ListJobDefinitionsResponse") + + if full_response: + return api_response + return api_response.body + + def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + Delete the job definition for a given jobId. + + :param job_id: (required) The identifier for dynamic jobs. + :type job_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + operation_name = "delete_job_definition_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'job_id' is set + if ('job_id' not in params) or (params['job_id'] is None): + raise ValueError( + "Missing the required parameter `job_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs/{jobId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'job_id' in params: + path_params['jobId'] = params['job_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="No content, confirms the resource is updated.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors.ValidationErrors", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="DELETE", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + + def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + Cancel the next execution for the given job. + + :param job_id: (required) The identifier for dynamic jobs. + :type job_id: str + :param execution_id: (required) The identifier for dynamic job executions. Currently only allowed for scheduled executions. + :type execution_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + operation_name = "cancel_next_job_execution_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'job_id' is set + if ('job_id' not in params) or (params['job_id'] is None): + raise ValueError( + "Missing the required parameter `job_id` when calling `" + operation_name + "`") + # verify the required parameter 'execution_id' is set + if ('execution_id' not in params) or (params['execution_id'] is None): + raise ValueError( + "Missing the required parameter `execution_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs/{jobId}/executions/{executionId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'job_id' in params: + path_params['jobId'] = params['job_id'] + if 'execution_id' in params: + path_params['executionId'] = params['execution_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="No Content; Confirms that the next execution is canceled.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors.ValidationErrors", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="DELETE", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + + def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetExecutionsResponseV1] + """ + List the execution history associated with the job definition, with default sortField to be the executions' timestamp. + + :param job_id: (required) The identifier for dynamic jobs. + :type job_id: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: float + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. + :type sort_direction: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetExecutionsResponseV1] + """ + operation_name = "list_job_executions_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'job_id' is set + if ('job_id' not in params) or (params['job_id'] is None): + raise ValueError( + "Missing the required parameter `job_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs/{jobId}/executions' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'job_id' in params: + path_params['jobId'] = params['job_id'] + + query_params = [] # type: List + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + if 'sort_direction' in params: + query_params.append(('sortDirection', params['sort_direction'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response.GetExecutionsResponse", status_code=200, message="Retrun list of executions associated with the job definition.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response.GetExecutionsResponse") + + if full_response: + return api_response + return api_response.body + + def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + """ + Get the job definition for a given jobId. + + :param job_id: (required) The identifier for dynamic jobs. + :type job_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + """ + operation_name = "get_job_definition_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'job_id' is set + if ('job_id' not in params) or (params['job_id'] is None): + raise ValueError( + "Missing the required parameter `job_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs/{jobId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'job_id' in params: + path_params['jobId'] = params['job_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=200, message="The job definition for a given jobId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + + def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_request, **kwargs): + # type: (str, UpdateJobStatusRequestV1, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + Update the JobStatus to Enable or Disable a job. + + :param job_id: (required) The identifier for dynamic jobs. + :type job_id: str + :param update_job_status_request: (required) Request to update Job Definition status. + :type update_job_status_request: ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request.UpdateJobStatusRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + """ + operation_name = "set_job_status_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'job_id' is set + if ('job_id' not in params) or (params['job_id'] is None): + raise ValueError( + "Missing the required parameter `job_id` when calling `" + operation_name + "`") + # verify the required parameter 'update_job_status_request' is set + if ('update_job_status_request' not in params) or (params['update_job_status_request'] is None): + raise ValueError( + "Missing the required parameter `update_job_status_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs/{jobId}/status' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'job_id' in params: + path_params['jobId'] = params['job_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'update_job_status_request' in params: + body_params = params['update_job_status_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="No content; Confirms that the fields are updated.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors.ValidationErrors", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="PUT", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + + def create_job_definition_for_interaction_model_v1(self, create_job_definition_request, **kwargs): + # type: (CreateJobDefinitionRequestV1, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1, CreateJobDefinitionResponseV1] + """ + Creates a new Job Definition from the Job Definition request provided. This can be either a CatalogAutoRefresh, which supports time-based configurations for catalogs, or a ReferencedResourceVersionUpdate, which is used for slotTypes and Interaction models to be automatically updated on the dynamic update of their referenced catalog. + + :param create_job_definition_request: (required) Request to create a new Job Definition. + :type create_job_definition_request: ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request.CreateJobDefinitionRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1, CreateJobDefinitionResponseV1] + """ + operation_name = "create_job_definition_for_interaction_model_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_job_definition_request' is set + if ('create_job_definition_request' not in params) or (params['create_job_definition_request'] is None): + raise ValueError( + "Missing the required parameter `create_job_definition_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/api/custom/interactionModel/jobs' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'create_job_definition_request' in params: + body_params = params['create_job_definition_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response.CreateJobDefinitionResponse", status_code=201, message="Returns the generated jobId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors.ValidationErrors", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response.CreateJobDefinitionResponse") + + if full_response: + return api_response + return api_response.body + def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListSlotTypeResponseV1, BadRequestErrorV1] """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py new file mode 100644 index 0000000..ad602b8 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .execution import Execution +from .trigger import Trigger +from .catalog_auto_refresh import CatalogAutoRefresh +from .list_job_definitions_response import ListJobDefinitionsResponse +from .reference_version_update import ReferenceVersionUpdate +from .job_api_pagination_context import JobAPIPaginationContext +from .job_error_details import JobErrorDetails +from .update_job_status_request import UpdateJobStatusRequest +from .create_job_definition_response import CreateJobDefinitionResponse +from .job_definition_status import JobDefinitionStatus +from .validation_errors import ValidationErrors +from .get_executions_response import GetExecutionsResponse +from .catalog import Catalog +from .resource_object import ResourceObject +from .job_definition import JobDefinition +from .job_definition_metadata import JobDefinitionMetadata +from .interaction_model import InteractionModel +from .scheduled import Scheduled +from .create_job_definition_request import CreateJobDefinitionRequest +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .slot_type_reference import SlotTypeReference +from .dynamic_update_error import DynamicUpdateError +from .execution_metadata import ExecutionMetadata diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py new file mode 100644 index 0000000..f165bc1 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class Catalog(ResourceObject): + """ + Catalog the job is applied on. + + + :param id: Catalog identifier. + :type id: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'id': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'id': 'id' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None): + # type: (Optional[str]) -> None + """Catalog the job is applied on. + + :param id: Catalog identifier. + :type id: (optional) str + """ + self.__discriminator_value = "Catalog" # type: str + + self.object_type = self.__discriminator_value + super(Catalog, self).__init__(object_type=self.__discriminator_value) + self.id = id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Catalog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py new file mode 100644 index 0000000..1c09abf --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.scheduled import ScheduledV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.catalog import CatalogV1 + + +class CatalogAutoRefresh(JobDefinition): + """ + Definition for CatalogAutoRefresh job. + + + :param trigger: CatalogAutoRefresh can only have CatalogAutoRefresh trigger. + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.scheduled.Scheduled + :param status: Current status of the job definition. + :type status: (optional) str + :param resource: The resource that the job is act on. Only catalog is allowed. + :type resource: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.catalog.Catalog + + """ + deserialized_types = { + 'object_type': 'str', + 'trigger': 'ask_smapi_model.v1.skill.interaction_model.jobs.scheduled.Scheduled', + 'status': 'str', + 'resource': 'ask_smapi_model.v1.skill.interaction_model.jobs.catalog.Catalog' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'trigger': 'trigger', + 'status': 'status', + 'resource': 'resource' + } # type: Dict + supports_multiple_types = False + + def __init__(self, trigger=None, status=None, resource=None): + # type: (Optional[ScheduledV1], Optional[str], Optional[CatalogV1]) -> None + """Definition for CatalogAutoRefresh job. + + :param trigger: CatalogAutoRefresh can only have CatalogAutoRefresh trigger. + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.scheduled.Scheduled + :param status: Current status of the job definition. + :type status: (optional) str + :param resource: The resource that the job is act on. Only catalog is allowed. + :type resource: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.catalog.Catalog + """ + self.__discriminator_value = "CatalogAutoRefresh" # type: str + + self.object_type = self.__discriminator_value + super(CatalogAutoRefresh, self).__init__(object_type=self.__discriminator_value, trigger=trigger, status=status) + self.trigger = trigger + self.resource = resource + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CatalogAutoRefresh): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py new file mode 100644 index 0000000..bc40546 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinitionV1 + + +class CreateJobDefinitionRequest(object): + """ + Request to create job definitions. + + + :param vendor_id: ID of the vendor owning the skill. + :type vendor_id: (optional) str + :param job_definition: + :type job_definition: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition.JobDefinition + + """ + deserialized_types = { + 'vendor_id': 'str', + 'job_definition': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_definition.JobDefinition' + } # type: Dict + + attribute_map = { + 'vendor_id': 'vendorId', + 'job_definition': 'jobDefinition' + } # type: Dict + supports_multiple_types = False + + def __init__(self, vendor_id=None, job_definition=None): + # type: (Optional[str], Optional[JobDefinitionV1]) -> None + """Request to create job definitions. + + :param vendor_id: ID of the vendor owning the skill. + :type vendor_id: (optional) str + :param job_definition: + :type job_definition: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition.JobDefinition + """ + self.__discriminator_value = None # type: str + + self.vendor_id = vendor_id + self.job_definition = job_definition + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CreateJobDefinitionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py new file mode 100644 index 0000000..4e2e4d2 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class CreateJobDefinitionResponse(object): + """ + The response of create job definition. + + + :param job_id: Idenitifier of the job definition. + :type job_id: (optional) str + + """ + deserialized_types = { + 'job_id': 'str' + } # type: Dict + + attribute_map = { + 'job_id': 'jobId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, job_id=None): + # type: (Optional[str]) -> None + """The response of create job definition. + + :param job_id: Idenitifier of the job definition. + :type job_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.job_id = job_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CreateJobDefinitionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py new file mode 100644 index 0000000..e749aa8 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class DynamicUpdateError(object): + """ + Error schema for dynamic update. + + + :param code: Dynamic update error code. + :type code: (optional) str + :param message: Readable description of error. + :type message: (optional) str + + """ + deserialized_types = { + 'code': 'str', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'code': 'code', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, code=None, message=None): + # type: (Optional[str], Optional[str]) -> None + """Error schema for dynamic update. + + :param code: Dynamic update error code. + :type code: (optional) str + :param message: Readable description of error. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.code = code + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DynamicUpdateError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py new file mode 100644 index 0000000..f4c99f4 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details import JobErrorDetailsV1 + + +class Execution(object): + """ + Execution data. + + + :param execution_id: Identifier of the execution. + :type execution_id: (optional) str + :param timestamp: ISO date-time timestamp when the execution starts. + :type timestamp: (optional) datetime + :param error_code: ErrorCode to explain what went wrong in case of FAILUREs. + :type error_code: (optional) str + :param status: Current status of the job execution. + :type status: (optional) str + :param error_details: + :type error_details: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details.JobErrorDetails + + """ + deserialized_types = { + 'execution_id': 'str', + 'timestamp': 'datetime', + 'error_code': 'str', + 'status': 'str', + 'error_details': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details.JobErrorDetails' + } # type: Dict + + attribute_map = { + 'execution_id': 'executionId', + 'timestamp': 'timestamp', + 'error_code': 'errorCode', + 'status': 'status', + 'error_details': 'errorDetails' + } # type: Dict + supports_multiple_types = False + + def __init__(self, execution_id=None, timestamp=None, error_code=None, status=None, error_details=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[JobErrorDetailsV1]) -> None + """Execution data. + + :param execution_id: Identifier of the execution. + :type execution_id: (optional) str + :param timestamp: ISO date-time timestamp when the execution starts. + :type timestamp: (optional) datetime + :param error_code: ErrorCode to explain what went wrong in case of FAILUREs. + :type error_code: (optional) str + :param status: Current status of the job execution. + :type status: (optional) str + :param error_details: + :type error_details: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details.JobErrorDetails + """ + self.__discriminator_value = None # type: str + + self.execution_id = execution_id + self.timestamp = timestamp + self.error_code = error_code + self.status = status + self.error_details = error_details + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Execution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py new file mode 100644 index 0000000..e6c3d81 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class ExecutionMetadata(object): + """ + ExecutionMetadata for executions. + + + :param job_id: Identifier of the job. + :type job_id: (optional) str + :param error_code: ErrorCode to explain what went wrong in case of FAILUREs. + :type error_code: (optional) str + :param status: Current status of the job execution. + :type status: (optional) str + + """ + deserialized_types = { + 'job_id': 'str', + 'error_code': 'str', + 'status': 'str' + } # type: Dict + + attribute_map = { + 'job_id': 'jobId', + 'error_code': 'errorCode', + 'status': 'status' + } # type: Dict + supports_multiple_types = False + + def __init__(self, job_id=None, error_code=None, status=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None + """ExecutionMetadata for executions. + + :param job_id: Identifier of the job. + :type job_id: (optional) str + :param error_code: ErrorCode to explain what went wrong in case of FAILUREs. + :type error_code: (optional) str + :param status: Current status of the job execution. + :type status: (optional) str + """ + self.__discriminator_value = None # type: str + + self.job_id = job_id + self.error_code = error_code + self.status = status + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py new file mode 100644 index 0000000..d301ec0 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContextV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.execution import ExecutionV1 + from ask_smapi_model.v1.links import LinksV1 + + +class GetExecutionsResponse(object): + """ + The response of get execution history. + + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links + :param executions: + :type executions: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.execution.Execution] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext', + 'links': 'ask_smapi_model.v1.links.Links', + 'executions': 'list[ask_smapi_model.v1.skill.interaction_model.jobs.execution.Execution]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'links': '_links', + 'executions': 'executions' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, links=None, executions=None): + # type: (Optional[JobAPIPaginationContextV1], Optional[LinksV1], Optional[List[ExecutionV1]]) -> None + """The response of get execution history. + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links + :param executions: + :type executions: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.execution.Execution] + """ + self.__discriminator_value = None # type: str + + self.pagination_context = pagination_context + self.links = links + self.executions = executions + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetExecutionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py new file mode 100644 index 0000000..3086986 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class InteractionModel(ResourceObject): + """ + Interaction model the job is applied on. + + + :param id: Skill identifier. + :type id: (optional) str + :param locales: Locale identifier and default is empty list which means all available locales. + :type locales: (optional) list[str] + + """ + deserialized_types = { + 'object_type': 'str', + 'id': 'str', + 'locales': 'list[str]' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'id': 'id', + 'locales': 'locales' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None, locales=None): + # type: (Optional[str], Optional[List[object]]) -> None + """Interaction model the job is applied on. + + :param id: Skill identifier. + :type id: (optional) str + :param locales: Locale identifier and default is empty list which means all available locales. + :type locales: (optional) list[str] + """ + self.__discriminator_value = "InteractionModel" # type: str + + self.object_type = self.__discriminator_value + super(InteractionModel, self).__init__(object_type=self.__discriminator_value) + self.id = id + self.locales = locales + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, InteractionModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py new file mode 100644 index 0000000..6a1f2b6 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class JobAPIPaginationContext(object): + """ + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """ + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, JobAPIPaginationContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py new file mode 100644 index 0000000..f2a20dc --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import TriggerV1 + + +class JobDefinition(object): + """ + Definition for dynamic job. + + + :param object_type: Polymorphic type of the job + :type object_type: (optional) str + :param trigger: + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.trigger.Trigger + :param status: Current status of the job definition. + :type status: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | ReferenceVersionUpdate: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.reference_version_update.ReferenceVersionUpdate`, + | + | CatalogAutoRefresh: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.catalog_auto_refresh.CatalogAutoRefresh` + + """ + deserialized_types = { + 'object_type': 'str', + 'trigger': 'ask_smapi_model.v1.skill.interaction_model.jobs.trigger.Trigger', + 'status': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'trigger': 'trigger', + 'status': 'status' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'ReferenceVersionUpdate': 'ask_smapi_model.v1.skill.interaction_model.jobs.reference_version_update.ReferenceVersionUpdate', + 'CatalogAutoRefresh': 'ask_smapi_model.v1.skill.interaction_model.jobs.catalog_auto_refresh.CatalogAutoRefresh' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None, trigger=None, status=None): + # type: (Optional[str], Optional[TriggerV1], Optional[str]) -> None + """Definition for dynamic job. + + :param object_type: Polymorphic type of the job + :type object_type: (optional) str + :param trigger: + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.trigger.Trigger + :param status: Current status of the job definition. + :type status: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.trigger = trigger + self.status = status + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, JobDefinition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py new file mode 100644 index 0000000..025f05d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatusV1 + + +class JobDefinitionMetadata(object): + """ + Metadata of the job definition. + + + :param id: Job identifier. + :type id: (optional) str + :param object_type: Polymorphic type of the job. + :type object_type: (optional) str + :param status: + :type status: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus + + """ + deserialized_types = { + 'id': 'str', + 'object_type': 'str', + 'status': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus' + } # type: Dict + + attribute_map = { + 'id': 'id', + 'object_type': 'type', + 'status': 'status' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None, object_type=None, status=None): + # type: (Optional[str], Optional[str], Optional[JobDefinitionStatusV1]) -> None + """Metadata of the job definition. + + :param id: Job identifier. + :type id: (optional) str + :param object_type: Polymorphic type of the job. + :type object_type: (optional) str + :param status: + :type status: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus + """ + self.__discriminator_value = None # type: str + + self.id = id + self.object_type = object_type + self.status = status + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, JobDefinitionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py new file mode 100644 index 0000000..c7e5cb8 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class JobDefinitionStatus(Enum): + """ + Current status of the job definition. + + + + Allowed enum values: [DISABLED, ENALBED] + """ + DISABLED = "DISABLED" + ENALBED = "ENALBED" + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, JobDefinitionStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py new file mode 100644 index 0000000..1f574fb --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata import ExecutionMetadataV1 + + +class JobErrorDetails(object): + """ + Optional details if the execution is depending on other executions. + + + :param execution_metadata: + :type execution_metadata: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata.ExecutionMetadata] + + """ + deserialized_types = { + 'execution_metadata': 'list[ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata.ExecutionMetadata]' + } # type: Dict + + attribute_map = { + 'execution_metadata': 'executionMetadata' + } # type: Dict + supports_multiple_types = False + + def __init__(self, execution_metadata=None): + # type: (Optional[List[ExecutionMetadataV1]]) -> None + """Optional details if the execution is depending on other executions. + + :param execution_metadata: + :type execution_metadata: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata.ExecutionMetadata] + """ + self.__discriminator_value = None # type: str + + self.execution_metadata = execution_metadata + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, JobErrorDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py new file mode 100644 index 0000000..c5b5466 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata import JobDefinitionMetadataV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContextV1 + from ask_smapi_model.v1.links import LinksV1 + + +class ListJobDefinitionsResponse(object): + """ + The response of list job definitions. + + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links + :param jobs: + :type jobs: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata.JobDefinitionMetadata] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext', + 'links': 'ask_smapi_model.v1.links.Links', + 'jobs': 'list[ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata.JobDefinitionMetadata]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'links': '_links', + 'jobs': 'jobs' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, links=None, jobs=None): + # type: (Optional[JobAPIPaginationContextV1], Optional[LinksV1], Optional[List[JobDefinitionMetadataV1]]) -> None + """The response of list job definitions. + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context.JobAPIPaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links + :param jobs: + :type jobs: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata.JobDefinitionMetadata] + """ + self.__discriminator_value = None # type: str + + self.pagination_context = pagination_context + self.links = links + self.jobs = jobs + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListJobDefinitionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py new file mode 100644 index 0000000..46cd9ae --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObjectV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete import ReferencedResourceJobsCompleteV1 + + +class ReferenceVersionUpdate(JobDefinition): + """ + Definition for ReferenceVersionUpdate job. + + + :param trigger: Can only have ReferencedResourceJobsComplete trigger. + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete.ReferencedResourceJobsComplete + :param status: Current status of the job definition. + :type status: (optional) str + :param resource: The resource that the job is act on. Only slot and interactionModel are allowed. + :type resource: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject + :param references: Referenced resources working with ReferencedResourceJobsComplete trigger. + :type references: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject] + :param publish_to_live: Whether publish development stage to live after the updates. + :type publish_to_live: (optional) bool + + """ + deserialized_types = { + 'object_type': 'str', + 'trigger': 'ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete.ReferencedResourceJobsComplete', + 'status': 'str', + 'resource': 'ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject', + 'references': 'list[ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject]', + 'publish_to_live': 'bool' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'trigger': 'trigger', + 'status': 'status', + 'resource': 'resource', + 'references': 'references', + 'publish_to_live': 'publishToLive' + } # type: Dict + supports_multiple_types = False + + def __init__(self, trigger=None, status=None, resource=None, references=None, publish_to_live=None): + # type: (Optional[ReferencedResourceJobsCompleteV1], Optional[str], Optional[ResourceObjectV1], Optional[List[ResourceObjectV1]], Optional[bool]) -> None + """Definition for ReferenceVersionUpdate job. + + :param trigger: Can only have ReferencedResourceJobsComplete trigger. + :type trigger: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete.ReferencedResourceJobsComplete + :param status: Current status of the job definition. + :type status: (optional) str + :param resource: The resource that the job is act on. Only slot and interactionModel are allowed. + :type resource: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject + :param references: Referenced resources working with ReferencedResourceJobsComplete trigger. + :type references: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.resource_object.ResourceObject] + :param publish_to_live: Whether publish development stage to live after the updates. + :type publish_to_live: (optional) bool + """ + self.__discriminator_value = "ReferenceVersionUpdate" # type: str + + self.object_type = self.__discriminator_value + super(ReferenceVersionUpdate, self).__init__(object_type=self.__discriminator_value, trigger=trigger, status=status) + self.trigger = trigger + self.resource = resource + self.references = references + self.publish_to_live = publish_to_live + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ReferenceVersionUpdate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py new file mode 100644 index 0000000..3871426 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import Trigger + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class ReferencedResourceJobsComplete(Trigger): + """ + Dependent job condition when jobs will be executed. + + + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """Dependent job condition when jobs will be executed. + + """ + self.__discriminator_value = "ReferencedResourceJobsComplete" # type: str + + self.object_type = self.__discriminator_value + super(ReferencedResourceJobsComplete, self).__init__(object_type=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ReferencedResourceJobsComplete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py new file mode 100644 index 0000000..e6c0659 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class ResourceObject(object): + """ + Resource object where the job is applied on. + + + :param object_type: Polymorphic type of the ResourceObject. + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | InteractionModel: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.interaction_model.InteractionModel`, + | + | Catalog: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.catalog.Catalog`, + | + | SlotTypeReference: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.slot_type_reference.SlotTypeReference` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'InteractionModel': 'ask_smapi_model.v1.skill.interaction_model.jobs.interaction_model.InteractionModel', + 'Catalog': 'ask_smapi_model.v1.skill.interaction_model.jobs.catalog.Catalog', + 'SlotTypeReference': 'ask_smapi_model.v1.skill.interaction_model.jobs.slot_type_reference.SlotTypeReference' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Resource object where the job is applied on. + + :param object_type: Polymorphic type of the ResourceObject. + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ResourceObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py new file mode 100644 index 0000000..b30b781 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import Trigger + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class Scheduled(Trigger): + """ + Time-based condition when jobs will be executed. + + + :param hour: The cron-like attribute in UTC time to describe the hour of the day and currently can only be 0,4,8,12,16,20. + :type hour: (optional) int + :param day_of_week: If not null, this means the scheudule is weekly. the cron-like attribute in UTC time to describe the day of the week (0-6). + :type day_of_week: (optional) int + + """ + deserialized_types = { + 'object_type': 'str', + 'hour': 'int', + 'day_of_week': 'int' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'hour': 'hour', + 'day_of_week': 'dayOfWeek' + } # type: Dict + supports_multiple_types = False + + def __init__(self, hour=None, day_of_week=None): + # type: (Optional[int], Optional[int]) -> None + """Time-based condition when jobs will be executed. + + :param hour: The cron-like attribute in UTC time to describe the hour of the day and currently can only be 0,4,8,12,16,20. + :type hour: (optional) int + :param day_of_week: If not null, this means the scheudule is weekly. the cron-like attribute in UTC time to describe the day of the week (0-6). + :type day_of_week: (optional) int + """ + self.__discriminator_value = "Scheduled" # type: str + + self.object_type = self.__discriminator_value + super(Scheduled, self).__init__(object_type=self.__discriminator_value) + self.hour = hour + self.day_of_week = day_of_week + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Scheduled): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py new file mode 100644 index 0000000..8d5fb89 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class SlotTypeReference(ResourceObject): + """ + Slot type reference the job is applied on. + + + :param id: SlotTypeReference identifier. + :type id: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'id': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'id': 'id' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None): + # type: (Optional[str]) -> None + """Slot type reference the job is applied on. + + :param id: SlotTypeReference identifier. + :type id: (optional) str + """ + self.__discriminator_value = "SlotTypeReference" # type: str + + self.object_type = self.__discriminator_value + super(SlotTypeReference, self).__init__(object_type=self.__discriminator_value) + self.id = id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SlotTypeReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py new file mode 100644 index 0000000..5e639b9 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class Trigger(object): + """ + Condition when jobs will be executed. + + + :param object_type: Polymorphic type of the trigger + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | ReferencedResourceJobsComplete: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete.ReferencedResourceJobsComplete`, + | + | Scheduled: :py:class:`ask_smapi_model.v1.skill.interaction_model.jobs.scheduled.Scheduled` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'ReferencedResourceJobsComplete': 'ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete.ReferencedResourceJobsComplete', + 'Scheduled': 'ask_smapi_model.v1.skill.interaction_model.jobs.scheduled.Scheduled' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Condition when jobs will be executed. + + :param object_type: Polymorphic type of the trigger + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Trigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py new file mode 100644 index 0000000..50e81ca --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatusV1 + + +class UpdateJobStatusRequest(object): + """ + Update job status. + + + :param status: + :type status: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus + + """ + deserialized_types = { + 'status': 'ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus' + } # type: Dict + + attribute_map = { + 'status': 'status' + } # type: Dict + supports_multiple_types = False + + def __init__(self, status=None): + # type: (Optional[JobDefinitionStatusV1]) -> None + """Update job status. + + :param status: + :type status: (optional) ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status.JobDefinitionStatus + """ + self.__discriminator_value = None # type: str + + self.status = status + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UpdateJobStatusRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py new file mode 100644 index 0000000..e64ad80 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error import DynamicUpdateErrorV1 + + +class ValidationErrors(object): + """ + The list of errors. + + + :param errors: The list of errors. + :type errors: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error.DynamicUpdateError] + + """ + deserialized_types = { + 'errors': 'list[ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error.DynamicUpdateError]' + } # type: Dict + + attribute_map = { + 'errors': 'errors' + } # type: Dict + supports_multiple_types = False + + def __init__(self, errors=None): + # type: (Optional[List[DynamicUpdateErrorV1]]) -> None + """The list of errors. + + :param errors: The list of errors. + :type errors: (optional) list[ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error.DynamicUpdateError] + """ + self.__discriminator_value = None # type: str + + self.errors = errors + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ValidationErrors): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other From 623f47e70ca8040fe3ba5bc73fde5414d3ec562d Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 22 Sep 2020 00:00:33 +0000 Subject: [PATCH 004/111] Release 1.8.1. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../v1/skill/account_linking/__init__.py | 1 + .../account_linking_request.py | 109 ++-------- .../account_linking_request_payload.py | 195 ++++++++++++++++++ .../get_conflicts_response.py | 16 +- 6 files changed, 232 insertions(+), 99 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 3416842..7aef53c 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -139,3 +139,11 @@ This release contains the following changes : This release contains the following changes : - New models for `Jobs Definitions API `__ + + +1.8.1 +^^^^^ + +This release contains the following changes : + +- Fix the model definition of `AccountLinkingRequest body `__. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 3924f7b..587ad2a 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.8.0' +__version__ = '1.8.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 9fd0734..2e44b41 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -15,6 +15,7 @@ from __future__ import absolute_import from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl +from .account_linking_request_payload import AccountLinkingRequestPayload from .account_linking_response import AccountLinkingResponse from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request import AccountLinkingRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py index 03c303c..a571976 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py @@ -23,116 +23,37 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingTypeV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrlV1 - from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_request_payload import AccountLinkingRequestPayloadV1 class AccountLinkingRequest(object): """ - The payload for creating the account linking partner. - - - :param object_type: - :type object_type: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType - :param authorization_url: The url where customers will be redirected in the companion app to enter login credentials. - :type authorization_url: (optional) str - :param domains: The list of domains that the authorization URL will fetch content from. - :type domains: (optional) list[str] - :param client_id: The unique public string used to identify the client requesting for authentication. - :type client_id: (optional) str - :param scopes: The list of permissions which will be requested from the skill user. - :type scopes: (optional) list[str] - :param access_token_url: The url used for access token and token refresh requests. - :type access_token_url: (optional) str - :param client_secret: The client secret provided by developer. - :type client_secret: (optional) str - :param access_token_scheme: - :type access_token_scheme: (optional) ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType - :param default_token_expiration_in_seconds: The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter. - :type default_token_expiration_in_seconds: (optional) int - :param reciprocal_access_token_url: Optional, if your skill requires reciprocal authorization, provide this additional access token url to handle reciprocal (Alexa) authorization codes that can be exchanged for Alexa access tokens. - :type reciprocal_access_token_url: (optional) str - :param redirect_urls: The list of valid urls to redirect back to, when the linking process is initiated from a third party system. - :type redirect_urls: (optional) list[str] - :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. - :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + The request body of AccountLinkingRequest. + + + :param account_linking_request: + :type account_linking_request: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_request_payload.AccountLinkingRequestPayload """ deserialized_types = { - 'object_type': 'ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType', - 'authorization_url': 'str', - 'domains': 'list[str]', - 'client_id': 'str', - 'scopes': 'list[str]', - 'access_token_url': 'str', - 'client_secret': 'str', - 'access_token_scheme': 'ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType', - 'default_token_expiration_in_seconds': 'int', - 'reciprocal_access_token_url': 'str', - 'redirect_urls': 'list[str]', - 'authorization_urls_by_platform': 'list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl]' + 'account_linking_request': 'ask_smapi_model.v1.skill.account_linking.account_linking_request_payload.AccountLinkingRequestPayload' } # type: Dict attribute_map = { - 'object_type': 'type', - 'authorization_url': 'authorizationUrl', - 'domains': 'domains', - 'client_id': 'clientId', - 'scopes': 'scopes', - 'access_token_url': 'accessTokenUrl', - 'client_secret': 'clientSecret', - 'access_token_scheme': 'accessTokenScheme', - 'default_token_expiration_in_seconds': 'defaultTokenExpirationInSeconds', - 'reciprocal_access_token_url': 'reciprocalAccessTokenUrl', - 'redirect_urls': 'redirectUrls', - 'authorization_urls_by_platform': 'authorizationUrlsByPlatform' + 'account_linking_request': 'accountLinkingRequest' } # type: Dict supports_multiple_types = False - def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None): - # type: (Optional[AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeTypeV1], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrlV1]]) -> None - """The payload for creating the account linking partner. - - :param object_type: - :type object_type: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType - :param authorization_url: The url where customers will be redirected in the companion app to enter login credentials. - :type authorization_url: (optional) str - :param domains: The list of domains that the authorization URL will fetch content from. - :type domains: (optional) list[str] - :param client_id: The unique public string used to identify the client requesting for authentication. - :type client_id: (optional) str - :param scopes: The list of permissions which will be requested from the skill user. - :type scopes: (optional) list[str] - :param access_token_url: The url used for access token and token refresh requests. - :type access_token_url: (optional) str - :param client_secret: The client secret provided by developer. - :type client_secret: (optional) str - :param access_token_scheme: - :type access_token_scheme: (optional) ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType - :param default_token_expiration_in_seconds: The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter. - :type default_token_expiration_in_seconds: (optional) int - :param reciprocal_access_token_url: Optional, if your skill requires reciprocal authorization, provide this additional access token url to handle reciprocal (Alexa) authorization codes that can be exchanged for Alexa access tokens. - :type reciprocal_access_token_url: (optional) str - :param redirect_urls: The list of valid urls to redirect back to, when the linking process is initiated from a third party system. - :type redirect_urls: (optional) list[str] - :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. - :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + def __init__(self, account_linking_request=None): + # type: (Optional[AccountLinkingRequestPayloadV1]) -> None + """The request body of AccountLinkingRequest. + + :param account_linking_request: + :type account_linking_request: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_request_payload.AccountLinkingRequestPayload """ self.__discriminator_value = None # type: str - self.object_type = object_type - self.authorization_url = authorization_url - self.domains = domains - self.client_id = client_id - self.scopes = scopes - self.access_token_url = access_token_url - self.client_secret = client_secret - self.access_token_scheme = access_token_scheme - self.default_token_expiration_in_seconds = default_token_expiration_in_seconds - self.reciprocal_access_token_url = reciprocal_access_token_url - self.redirect_urls = redirect_urls - self.authorization_urls_by_platform = authorization_urls_by_platform + self.account_linking_request = account_linking_request def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py new file mode 100644 index 0000000..3938ce1 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrlV1 + from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeTypeV1 + + +class AccountLinkingRequestPayload(object): + """ + The payload for creating the account linking partner. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType + :param authorization_url: The url where customers will be redirected in the companion app to enter login credentials. + :type authorization_url: (optional) str + :param domains: The list of domains that the authorization URL will fetch content from. + :type domains: (optional) list[str] + :param client_id: The unique public string used to identify the client requesting for authentication. + :type client_id: (optional) str + :param scopes: The list of permissions which will be requested from the skill user. + :type scopes: (optional) list[str] + :param access_token_url: The url used for access token and token refresh requests. + :type access_token_url: (optional) str + :param client_secret: The client secret provided by developer. + :type client_secret: (optional) str + :param access_token_scheme: + :type access_token_scheme: (optional) ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType + :param default_token_expiration_in_seconds: The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter. + :type default_token_expiration_in_seconds: (optional) int + :param reciprocal_access_token_url: Optional, if your skill requires reciprocal authorization, provide this additional access token url to handle reciprocal (Alexa) authorization codes that can be exchanged for Alexa access tokens. + :type reciprocal_access_token_url: (optional) str + :param redirect_urls: The list of valid urls to redirect back to, when the linking process is initiated from a third party system. + :type redirect_urls: (optional) list[str] + :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. + :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + :param skip_on_enablement: Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill. + :type skip_on_enablement: (optional) bool + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType', + 'authorization_url': 'str', + 'domains': 'list[str]', + 'client_id': 'str', + 'scopes': 'list[str]', + 'access_token_url': 'str', + 'client_secret': 'str', + 'access_token_scheme': 'ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType', + 'default_token_expiration_in_seconds': 'int', + 'reciprocal_access_token_url': 'str', + 'redirect_urls': 'list[str]', + 'authorization_urls_by_platform': 'list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl]', + 'skip_on_enablement': 'bool' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'authorization_url': 'authorizationUrl', + 'domains': 'domains', + 'client_id': 'clientId', + 'scopes': 'scopes', + 'access_token_url': 'accessTokenUrl', + 'client_secret': 'clientSecret', + 'access_token_scheme': 'accessTokenScheme', + 'default_token_expiration_in_seconds': 'defaultTokenExpirationInSeconds', + 'reciprocal_access_token_url': 'reciprocalAccessTokenUrl', + 'redirect_urls': 'redirectUrls', + 'authorization_urls_by_platform': 'authorizationUrlsByPlatform', + 'skip_on_enablement': 'skipOnEnablement' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None, skip_on_enablement=None): + # type: (Optional[AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeTypeV1], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrlV1]], Optional[bool]) -> None + """The payload for creating the account linking partner. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.account_linking.account_linking_type.AccountLinkingType + :param authorization_url: The url where customers will be redirected in the companion app to enter login credentials. + :type authorization_url: (optional) str + :param domains: The list of domains that the authorization URL will fetch content from. + :type domains: (optional) list[str] + :param client_id: The unique public string used to identify the client requesting for authentication. + :type client_id: (optional) str + :param scopes: The list of permissions which will be requested from the skill user. + :type scopes: (optional) list[str] + :param access_token_url: The url used for access token and token refresh requests. + :type access_token_url: (optional) str + :param client_secret: The client secret provided by developer. + :type client_secret: (optional) str + :param access_token_scheme: + :type access_token_scheme: (optional) ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType + :param default_token_expiration_in_seconds: The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter. + :type default_token_expiration_in_seconds: (optional) int + :param reciprocal_access_token_url: Optional, if your skill requires reciprocal authorization, provide this additional access token url to handle reciprocal (Alexa) authorization codes that can be exchanged for Alexa access tokens. + :type reciprocal_access_token_url: (optional) str + :param redirect_urls: The list of valid urls to redirect back to, when the linking process is initiated from a third party system. + :type redirect_urls: (optional) list[str] + :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. + :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + :param skip_on_enablement: Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill. + :type skip_on_enablement: (optional) bool + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.authorization_url = authorization_url + self.domains = domains + self.client_id = client_id + self.scopes = scopes + self.access_token_url = access_token_url + self.client_secret = client_secret + self.access_token_scheme = access_token_scheme + self.default_token_expiration_in_seconds = default_token_expiration_in_seconds + self.reciprocal_access_token_url = reciprocal_access_token_url + self.redirect_urls = redirect_urls + self.authorization_urls_by_platform = authorization_urls_by_platform + self.skip_on_enablement = skip_on_enablement + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AccountLinkingRequestPayload): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py index cf4ad9a..1b71e4d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py @@ -26,6 +26,7 @@ from datetime import datetime from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContextV1 from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResultV1 class GetConflictsResponse(PagedResponse): @@ -35,31 +36,38 @@ class GetConflictsResponse(PagedResponse): :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext :param links: :type links: (optional) ask_smapi_model.v1.links.Links + :param results: + :type results: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult] """ deserialized_types = { 'pagination_context': 'ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext', - 'links': 'ask_smapi_model.v1.links.Links' + 'links': 'ask_smapi_model.v1.links.Links', + 'results': 'list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult]' } # type: Dict attribute_map = { 'pagination_context': 'paginationContext', - 'links': '_links' + 'links': '_links', + 'results': 'results' } # type: Dict supports_multiple_types = False - def __init__(self, pagination_context=None, links=None): - # type: (Optional[PaginationContextV1], Optional[LinksV1]) -> None + def __init__(self, pagination_context=None, links=None, results=None): + # type: (Optional[PaginationContextV1], Optional[LinksV1], Optional[List[GetConflictsResponseResultV1]]) -> None """ :param pagination_context: :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext :param links: :type links: (optional) ask_smapi_model.v1.links.Links + :param results: + :type results: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult] """ self.__discriminator_value = None # type: str super(GetConflictsResponse, self).__init__(pagination_context=pagination_context, links=links) + self.results = results def to_dict(self): # type: () -> Dict[str, object] From b5617ffd0f27cdad1d8db2b88f558698a58329f2 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 24 Sep 2020 21:06:50 +0000 Subject: [PATCH 005/111] Release 1.28.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 ++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/context.py | 16 ++- .../interfaces/alexa/extension/__init__.py | 18 +++ .../alexa/extension/available_extension.py | 100 ++++++++++++++++ .../alexa/extension/extensions_state.py | 107 ++++++++++++++++++ .../interfaces/alexa/extension/py.typed | 0 7 files changed, 246 insertions(+), 5 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/py.typed diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4cfe1e9..7db953a 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -348,3 +348,11 @@ This release contains the following changes : This release contains the following changes : - Add “onCompletion” field in Connections.StartConnection directive. When sending this directive to start a Skill Connection, requester skill can set onCompletion to be RESUME_SESSION to receive the control back after the task is completed or SEND_ERRORS_ONLY to only receive error notifications without control back. More information about using Skill Connections to Request Tasks can be found `here `__. - Add “Authorization.Grant” directive support for user specific access token in out-of-session calls. More information can be found `here `__. + + +1.28.0 +~~~~~~ + +This release contains the following changes : + +- Models and support for Extensions interfaces. diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index c65c22e..75f8d29 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.27.0' +__version__ = '1.28.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 1a9bd2c..68f4dd7 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -30,6 +30,7 @@ from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState + from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState from ask_sdk_model.interfaces.display.display_state import DisplayState @@ -52,6 +53,8 @@ class Context(object): :type viewport: (optional) ask_sdk_model.interfaces.viewport.viewport_state.ViewportState :param viewports: This object contains a list of viewports characteristics related to the device's viewports. :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] + :param extensions: Provides the current state for Extensions interface + :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState """ deserialized_types = { @@ -62,7 +65,8 @@ class Context(object): 'display': 'ask_sdk_model.interfaces.display.display_state.DisplayState', 'geolocation': 'ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState', 'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState', - 'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]' + 'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]', + 'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState' } # type: Dict attribute_map = { @@ -73,12 +77,13 @@ class Context(object): 'display': 'Display', 'geolocation': 'Geolocation', 'viewport': 'Viewport', - 'viewports': 'Viewports' + 'viewports': 'Viewports', + 'extensions': 'Extensions' } # type: Dict supports_multiple_types = False - def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None): - # type: (Optional[SystemState], Optional[RenderedDocumentState], Optional[AudioPlayerState], Optional[AutomotiveState], Optional[DisplayState], Optional[GeolocationState], Optional[ViewportState], Optional[List[TypedViewportState]]) -> None + def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None): + # type: (Optional[SystemState], Optional[RenderedDocumentState], Optional[AudioPlayerState], Optional[AutomotiveState], Optional[DisplayState], Optional[GeolocationState], Optional[ViewportState], Optional[List[TypedViewportState]], Optional[ExtensionsState]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. @@ -97,6 +102,8 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, :type viewport: (optional) ask_sdk_model.interfaces.viewport.viewport_state.ViewportState :param viewports: This object contains a list of viewports characteristics related to the device's viewports. :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] + :param extensions: Provides the current state for Extensions interface + :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState """ self.__discriminator_value = None # type: str @@ -108,6 +115,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, self.geolocation = geolocation self.viewport = viewport self.viewports = viewports + self.extensions = extensions def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py new file mode 100644 index 0000000..3334e5a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py @@ -0,0 +1,18 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .extensions_state import ExtensionsState +from .available_extension import AvailableExtension diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py new file mode 100644 index 0000000..ac911b4 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + + +class AvailableExtension(object): + """ + This object describes an extension that skill can request at runtime. + + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """This object describes an extension that skill can request at runtime. + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AvailableExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py new file mode 100644 index 0000000..04c4a33 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union + from datetime import datetime + from ask_sdk_model.interfaces.alexa.extension.available_extension import AvailableExtension + + +class ExtensionsState(object): + """ + + :param available: A map from extension URI to extension object where the object space is reserved for providing authorization information or other such data in the future. + :type available: (optional) dict(str, ask_sdk_model.interfaces.alexa.extension.available_extension.AvailableExtension) + + """ + deserialized_types = { + 'available': 'dict(str, ask_sdk_model.interfaces.alexa.extension.available_extension.AvailableExtension)' + } # type: Dict + + attribute_map = { + 'available': 'available' + } # type: Dict + supports_multiple_types = False + + def __init__(self, available=None): + # type: (Optional[Dict[str, AvailableExtension]]) -> None + """ + + :param available: A map from extension URI to extension object where the object space is reserved for providing authorization information or other such data in the future. + :type available: (optional) dict(str, ask_sdk_model.interfaces.alexa.extension.available_extension.AvailableExtension) + """ + self.__discriminator_value = None # type: str + + self.available = available + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExtensionsState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/py.typed new file mode 100644 index 0000000..e69de29 From ed50bc6c764a6f768b1e94aab07f2659b328f0a7 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 9 Oct 2020 21:33:13 +0000 Subject: [PATCH 006/111] Release 1.28.1. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 +++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/application.py | 2 +- .../authorization/authorization_grant_body.py | 2 +- .../authorization_grant_request.py | 2 +- .../ask_sdk_model/authorization/grant.py | 2 +- .../ask_sdk_model/authorization/grant_type.py | 8 +-- .../canfulfill/can_fulfill_intent.py | 2 +- .../canfulfill/can_fulfill_intent_request.py | 2 +- .../canfulfill/can_fulfill_intent_values.py | 8 +-- .../canfulfill/can_fulfill_slot.py | 2 +- .../canfulfill/can_fulfill_slot_values.py | 8 +-- .../canfulfill/can_understand_slot_values.py | 8 +-- ask-sdk-model/ask_sdk_model/cause.py | 2 +- .../ask_sdk_model/connection_completed.py | 2 +- ask-sdk-model/ask_sdk_model/context.py | 2 +- ask-sdk-model/ask_sdk_model/device.py | 2 +- .../dialog/confirm_intent_directive.py | 2 +- .../dialog/confirm_slot_directive.py | 2 +- .../dialog/delegate_directive.py | 2 +- .../dialog/delegate_request_directive.py | 2 +- .../ask_sdk_model/dialog/delegation_period.py | 2 +- .../dialog/delegation_period_until.py | 8 +-- .../dialog/dynamic_entities_directive.py | 2 +- .../dialog/elicit_slot_directive.py | 2 +- ask-sdk-model/ask_sdk_model/dialog/input.py | 2 +- .../ask_sdk_model/dialog/input_request.py | 2 +- .../dialog/updated_input_request.py | 2 +- .../dialog/updated_intent_request.py | 2 +- .../ask_sdk_model/dialog/updated_request.py | 2 +- ask-sdk-model/ask_sdk_model/dialog_state.py | 8 +-- ask-sdk-model/ask_sdk_model/directive.py | 2 +- .../dynamic_endpoints/base_response.py | 2 +- .../dynamic_endpoints/failure_response.py | 2 +- .../dynamic_endpoints/request.py | 2 +- .../dynamic_endpoints/success_response.py | 2 +- .../ask_sdk_model/er/dynamic/entity.py | 2 +- .../er/dynamic/entity_list_item.py | 2 +- .../er/dynamic/entity_value_and_synonyms.py | 2 +- .../er/dynamic/update_behavior.py | 8 +-- .../events/skillevents/account_linked_body.py | 2 +- .../skillevents/account_linked_request.py | 2 +- .../events/skillevents/permission.py | 2 +- .../permission_accepted_request.py | 2 +- .../events/skillevents/permission_body.py | 2 +- .../skillevents/permission_changed_request.py | 2 +- .../proactive_subscription_changed_body.py | 2 +- .../proactive_subscription_changed_request.py | 2 +- .../proactive_subscription_event.py | 2 +- .../skillevents/skill_disabled_request.py | 2 +- .../skillevents/skill_enabled_request.py | 2 +- ask-sdk-model/ask_sdk_model/intent.py | 2 +- .../intent_confirmation_status.py | 8 +-- ask-sdk-model/ask_sdk_model/intent_request.py | 2 +- .../comms/messagingcontroller/status_map.py | 2 +- .../alexa/extension/available_extension.py | 2 +- .../alexa/extension/extensions_state.py | 2 +- .../apl/alexa_presentation_apl_interface.py | 2 +- .../alexa/presentation/apl/align.py | 8 +-- .../presentation/apl/animate_item_command.py | 2 +- .../apl/animate_item_repeat_mode.py | 8 +-- .../apl/animated_opacity_property.py | 2 +- .../presentation/apl/animated_property.py | 2 +- .../apl/animated_transform_property.py | 2 +- .../alexa/presentation/apl/audio_track.py | 8 +-- .../presentation/apl/auto_page_command.py | 2 +- .../presentation/apl/clear_focus_command.py | 2 +- .../alexa/presentation/apl/command.py | 2 +- .../presentation/apl/component_entity.py | 2 +- .../alexa/presentation/apl/component_state.py | 8 +-- .../apl/component_visible_on_screen.py | 2 +- ...mponent_visible_on_screen_list_item_tag.py | 2 +- .../component_visible_on_screen_list_tag.py | 2 +- .../component_visible_on_screen_media_tag.py | 2 +- ..._visible_on_screen_media_tag_state_enum.py | 8 +-- .../component_visible_on_screen_pager_tag.py | 2 +- ...ponent_visible_on_screen_scrollable_tag.py | 2 +- ...on_screen_scrollable_tag_direction_enum.py | 8 +-- .../apl/component_visible_on_screen_tags.py | 2 +- ...omponent_visible_on_screen_viewport_tag.py | 2 +- .../presentation/apl/control_media_command.py | 2 +- .../apl/execute_commands_directive.py | 2 +- .../alexa/presentation/apl/highlight_mode.py | 8 +-- .../alexa/presentation/apl/idle_command.py | 2 +- .../presentation/apl/list_runtime_error.py | 2 +- .../apl/list_runtime_error_reason.py | 8 +-- .../listoperations/delete_item_operation.py | 2 +- .../delete_multiple_items_operation.py | 2 +- .../listoperations/insert_item_operation.py | 2 +- .../insert_multiple_items_operation.py | 2 +- .../apl/listoperations/operation.py | 2 +- .../apl/listoperations/set_item_operation.py | 2 +- .../apl/load_index_list_data_event.py | 2 +- .../presentation/apl/media_command_type.py | 8 +-- .../apl/move_transform_property.py | 2 +- .../presentation/apl/open_url_command.py | 2 +- .../presentation/apl/parallel_command.py | 2 +- .../presentation/apl/play_media_command.py | 2 +- .../alexa/presentation/apl/position.py | 8 +-- .../apl/render_document_directive.py | 13 +++- .../apl/rendered_document_state.py | 2 +- .../apl/rotate_transform_property.py | 2 +- .../alexa/presentation/apl/runtime.py | 2 +- .../alexa/presentation/apl/runtime_error.py | 2 +- .../presentation/apl/runtime_error_event.py | 2 +- .../apl/scale_transform_property.py | 2 +- .../alexa/presentation/apl/scroll_command.py | 2 +- .../apl/scroll_to_index_command.py | 2 +- .../presentation/apl/send_event_command.py | 2 +- .../apl/send_index_list_data_directive.py | 2 +- .../presentation/apl/sequential_command.py | 2 +- .../presentation/apl/set_focus_command.py | 2 +- .../presentation/apl/set_page_command.py | 2 +- .../presentation/apl/set_state_command.py | 2 +- .../presentation/apl/set_value_command.py | 2 +- .../apl/skew_transform_property.py | 2 +- .../presentation/apl/speak_item_command.py | 2 +- .../presentation/apl/speak_list_command.py | 2 +- .../presentation/apl/transform_property.py | 2 +- .../apl/update_index_list_data_directive.py | 2 +- .../alexa/presentation/apl/user_event.py | 2 +- .../alexa/presentation/apl/video_source.py | 2 +- .../apla/render_document_directive.py | 2 +- .../aplt/alexa_presentation_aplt_interface.py | 2 +- .../presentation/aplt/auto_page_command.py | 2 +- .../alexa/presentation/aplt/command.py | 2 +- .../aplt/execute_commands_directive.py | 2 +- .../alexa/presentation/aplt/idle_command.py | 2 +- .../presentation/aplt/parallel_command.py | 2 +- .../alexa/presentation/aplt/position.py | 8 +-- .../aplt/render_document_directive.py | 2 +- .../alexa/presentation/aplt/runtime.py | 2 +- .../alexa/presentation/aplt/scroll_command.py | 2 +- .../presentation/aplt/send_event_command.py | 2 +- .../presentation/aplt/sequential_command.py | 2 +- .../presentation/aplt/set_page_command.py | 2 +- .../presentation/aplt/set_value_command.py | 2 +- .../alexa/presentation/aplt/target_profile.py | 8 +-- .../alexa/presentation/aplt/user_event.py | 2 +- .../html/alexa_presentation_html_interface.py | 2 +- .../alexa/presentation/html/configuration.py | 2 +- .../html/handle_message_directive.py | 2 +- .../presentation/html/message_request.py | 2 +- .../alexa/presentation/html/runtime.py | 2 +- .../alexa/presentation/html/runtime_error.py | 2 +- .../presentation/html/runtime_error_reason.py | 8 +-- .../html/runtime_error_request.py | 2 +- .../presentation/html/start_directive.py | 2 +- .../alexa/presentation/html/start_request.py | 2 +- .../presentation/html/start_request_method.py | 8 +-- .../alexa/presentation/html/transformer.py | 2 +- .../presentation/html/transformer_type.py | 8 +-- .../model/request/authorize_attributes.py | 2 +- .../model/request/base_amazon_pay_entity.py | 2 +- .../request/billing_agreement_attributes.py | 2 +- .../model/request/billing_agreement_type.py | 8 +-- .../amazonpay/model/request/payment_action.py | 8 +-- .../amazonpay/model/request/price.py | 2 +- .../model/request/provider_attributes.py | 2 +- .../model/request/provider_credit.py | 2 +- .../seller_billing_agreement_attributes.py | 2 +- .../model/request/seller_order_attributes.py | 2 +- .../model/response/authorization_details.py | 2 +- .../model/response/authorization_status.py | 2 +- .../response/billing_agreement_details.py | 8 +-- .../amazonpay/model/response/destination.py | 2 +- .../amazonpay/model/response/price.py | 2 +- .../model/response/release_environment.py | 8 +-- .../amazonpay/model/response/state.py | 8 +-- .../model/v1/authorization_details.py | 8 +-- .../model/v1/authorization_status.py | 6 +- .../model/v1/authorize_attributes.py | 6 +- .../model/v1/billing_agreement_attributes.py | 10 +-- .../model/v1/billing_agreement_details.py | 10 +-- .../model/v1/billing_agreement_status.py | 8 +-- .../model/v1/billing_agreement_type.py | 8 +-- .../amazonpay/model/v1/destination.py | 2 +- .../amazonpay/model/v1/payment_action.py | 8 +-- .../interfaces/amazonpay/model/v1/price.py | 2 +- .../amazonpay/model/v1/provider_attributes.py | 6 +- .../amazonpay/model/v1/provider_credit.py | 6 +- .../amazonpay/model/v1/release_environment.py | 8 +-- .../v1/seller_billing_agreement_attributes.py | 2 +- .../model/v1/seller_order_attributes.py | 2 +- .../interfaces/amazonpay/model/v1/state.py | 8 +-- .../request/charge_amazon_pay_request.py | 2 +- .../request/setup_amazon_pay_request.py | 2 +- .../response/amazon_pay_error_response.py | 2 +- .../response/charge_amazon_pay_result.py | 2 +- .../response/setup_amazon_pay_result.py | 2 +- .../amazonpay/v1/amazon_pay_error_response.py | 2 +- .../amazonpay/v1/charge_amazon_pay.py | 12 ++-- .../amazonpay/v1/charge_amazon_pay_result.py | 6 +- .../amazonpay/v1/setup_amazon_pay.py | 6 +- .../amazonpay/v1/setup_amazon_pay_result.py | 6 +- .../interfaces/audioplayer/audio_item.py | 2 +- .../audioplayer/audio_item_metadata.py | 2 +- .../audioplayer/audio_player_interface.py | 2 +- .../audioplayer/audio_player_state.py | 2 +- .../interfaces/audioplayer/caption_data.py | 2 +- .../interfaces/audioplayer/caption_type.py | 8 +-- .../interfaces/audioplayer/clear_behavior.py | 8 +-- .../audioplayer/clear_queue_directive.py | 2 +- .../audioplayer/current_playback_state.py | 2 +- .../interfaces/audioplayer/error.py | 2 +- .../interfaces/audioplayer/error_type.py | 8 +-- .../interfaces/audioplayer/play_behavior.py | 8 +-- .../interfaces/audioplayer/play_directive.py | 2 +- .../audioplayer/playback_failed_request.py | 2 +- .../audioplayer/playback_finished_request.py | 2 +- .../playback_nearly_finished_request.py | 2 +- .../audioplayer/playback_started_request.py | 2 +- .../audioplayer/playback_stopped_request.py | 2 +- .../interfaces/audioplayer/player_activity.py | 8 +-- .../interfaces/audioplayer/stop_directive.py | 2 +- .../interfaces/audioplayer/stream.py | 2 +- .../interfaces/automotive/automotive_state.py | 2 +- .../connections/connections_request.py | 2 +- .../connections/connections_response.py | 2 +- .../connections/connections_status.py | 2 +- .../connections/entities/base_entity.py | 2 +- .../connections/entities/postal_address.py | 2 +- .../connections/entities/restaurant.py | 2 +- .../interfaces/connections/on_completion.py | 8 +-- .../connections/requests/base_request.py | 2 +- .../requests/print_image_request.py | 2 +- .../connections/requests/print_pdf_request.py | 2 +- .../requests/print_web_page_request.py | 2 +- ..._food_establishment_reservation_request.py | 2 +- .../schedule_taxi_reservation_request.py | 2 +- .../connections/send_request_directive.py | 2 +- .../connections/send_response_directive.py | 2 +- .../v1/start_connection_directive.py | 2 +- .../conversations/api_invocation_request.py | 2 +- .../interfaces/conversations/api_request.py | 2 +- .../custom_interface_controller/endpoint.py | 2 +- .../custom_interface_controller/event.py | 2 +- .../event_filter.py | 2 +- .../events_received_request.py | 2 +- .../custom_interface_controller/expiration.py | 2 +- .../expired_request.py | 2 +- .../filter_match_action.py | 8 +-- .../custom_interface_controller/header.py | 2 +- .../send_directive_directive.py | 2 +- .../start_event_handler_directive.py | 2 +- .../stop_event_handler_directive.py | 2 +- .../display/back_button_behavior.py | 8 +-- .../interfaces/display/body_template1.py | 2 +- .../interfaces/display/body_template2.py | 2 +- .../interfaces/display/body_template3.py | 2 +- .../interfaces/display/body_template6.py | 2 +- .../interfaces/display/body_template7.py | 2 +- .../interfaces/display/display_interface.py | 2 +- .../interfaces/display/display_state.py | 2 +- .../display/element_selected_request.py | 2 +- .../ask_sdk_model/interfaces/display/hint.py | 2 +- .../interfaces/display/hint_directive.py | 2 +- .../ask_sdk_model/interfaces/display/image.py | 2 +- .../interfaces/display/image_instance.py | 2 +- .../interfaces/display/image_size.py | 8 +-- .../interfaces/display/list_item.py | 2 +- .../interfaces/display/list_template1.py | 2 +- .../interfaces/display/list_template2.py | 2 +- .../interfaces/display/plain_text.py | 2 +- .../interfaces/display/plain_text_hint.py | 2 +- .../display/render_template_directive.py | 2 +- .../interfaces/display/rich_text.py | 2 +- .../interfaces/display/template.py | 2 +- .../interfaces/display/text_content.py | 2 +- .../interfaces/display/text_field.py | 2 +- .../gadget_controller/set_light_directive.py | 2 +- .../input_handler_event_request.py | 2 +- .../start_input_handler_directive.py | 2 +- .../stop_input_handler_directive.py | 2 +- .../interfaces/geolocation/access.py | 8 +-- .../interfaces/geolocation/altitude.py | 2 +- .../interfaces/geolocation/coordinate.py | 2 +- .../geolocation/geolocation_interface.py | 2 +- .../geolocation/geolocation_state.py | 2 +- .../interfaces/geolocation/heading.py | 2 +- .../geolocation/location_services.py | 2 +- .../interfaces/geolocation/speed.py | 2 +- .../interfaces/geolocation/status.py | 8 +-- .../messaging/message_received_request.py | 2 +- .../monetization/v1/in_skill_product.py | 2 +- .../monetization/v1/purchase_result.py | 8 +-- .../assistance/announce_road_regulation.py | 2 +- .../navigation/navigation_interface.py | 2 +- .../next_command_issued_request.py | 2 +- .../pause_command_issued_request.py | 2 +- .../play_command_issued_request.py | 2 +- .../previous_command_issued_request.py | 2 +- .../ask_sdk_model/interfaces/system/error.py | 2 +- .../interfaces/system/error_cause.py | 2 +- .../interfaces/system/error_type.py | 8 +-- .../system/exception_encountered_request.py | 2 +- .../interfaces/system/system_state.py | 2 +- .../interfaces/system_unit/unit.py | 2 +- .../tasks/complete_task_directive.py | 2 +- .../interfaces/videoapp/launch_directive.py | 2 +- .../interfaces/videoapp/metadata.py | 2 +- .../videoapp/video_app_interface.py | 2 +- .../interfaces/videoapp/video_item.py | 2 +- .../interfaces/viewport/__init__.py | 2 +- .../viewport/apl/current_configuration.py | 2 +- .../viewport/apl/viewport_configuration.py | 2 +- .../interfaces/viewport/apl_viewport_state.py | 2 +- .../viewport/aplt/character_format.py | 8 +-- .../interfaces/viewport/aplt/inter_segment.py | 2 +- .../viewport/aplt/viewport_profile.py | 8 +-- .../viewport/aplt_viewport_state.py | 2 +- .../interfaces/viewport/dialog.py | 8 +-- .../interfaces/viewport/experience.py | 2 +- .../interfaces/viewport/keyboard.py | 8 +-- .../ask_sdk_model/interfaces/viewport/mode.py | 8 +-- .../interfaces/viewport/presentation_type.py | 8 +-- .../interfaces/viewport/shape.py | 8 +-- .../viewport/size/continuous_viewport_size.py | 2 +- .../viewport/size/discrete_viewport_size.py | 2 +- .../interfaces/viewport/size/viewport_size.py | 2 +- .../interfaces/viewport/touch.py | 8 +-- .../viewport/typed_viewport_state.py | 2 +- .../interfaces/viewport/video/codecs.py | 8 +-- .../interfaces/viewport/viewport_state.py | 12 ++-- .../viewport/viewport_state_video.py | 6 +- .../interfaces/viewport/viewport_video.py | 2 +- ask-sdk-model/ask_sdk_model/launch_request.py | 2 +- .../ask_sdk_model/list_slot_value.py | 2 +- .../ask_sdk_model/permission_status.py | 8 +-- ask-sdk-model/ask_sdk_model/permissions.py | 2 +- ask-sdk-model/ask_sdk_model/person.py | 2 +- ask-sdk-model/ask_sdk_model/request.py | 2 +- .../ask_sdk_model/request_envelope.py | 2 +- ask-sdk-model/ask_sdk_model/response.py | 2 +- .../ask_sdk_model/response_envelope.py | 2 +- ask-sdk-model/ask_sdk_model/scope.py | 2 +- .../services/device_address/address.py | 2 +- .../device_address_service_client.py | 10 +-- .../services/device_address/error.py | 2 +- .../services/device_address/short_address.py | 2 +- .../services/directive/directive.py | 2 +- .../directive/directive_service_client.py | 5 +- .../ask_sdk_model/services/directive/error.py | 2 +- .../services/directive/header.py | 2 +- .../directive/send_directive_request.py | 2 +- .../services/directive/speak_directive.py | 2 +- .../endpoint_capability.py | 2 +- .../endpoint_enumeration_response.py | 2 +- .../endpoint_enumeration_service_client.py | 7 ++- .../endpoint_enumeration/endpoint_info.py | 2 +- .../services/endpoint_enumeration/error.py | 2 +- .../gadget_controller/animation_step.py | 2 +- .../gadget_controller/light_animation.py | 2 +- .../gadget_controller/set_light_parameters.py | 2 +- .../gadget_controller/trigger_event_type.py | 8 +-- .../game_engine/deviation_recognizer.py | 2 +- .../services/game_engine/event.py | 2 +- .../game_engine/event_reporting_type.py | 8 +-- .../services/game_engine/input_event.py | 2 +- .../game_engine/input_event_action_type.py | 8 +-- .../game_engine/input_handler_event.py | 2 +- .../services/game_engine/pattern.py | 2 +- .../game_engine/pattern_recognizer.py | 2 +- .../pattern_recognizer_anchor_type.py | 8 +-- .../game_engine/progress_recognizer.py | 2 +- .../services/game_engine/recognizer.py | 2 +- .../services/list_management/alexa_list.py | 2 +- .../list_management/alexa_list_item.py | 2 +- .../list_management/alexa_list_metadata.py | 2 +- .../list_management/alexa_lists_metadata.py | 2 +- .../create_list_item_request.py | 2 +- .../list_management/create_list_request.py | 2 +- .../services/list_management/error.py | 2 +- .../list_management/forbidden_error.py | 2 +- .../services/list_management/links.py | 2 +- .../services/list_management/list_body.py | 2 +- .../list_created_event_request.py | 2 +- .../list_deleted_event_request.py | 2 +- .../list_management/list_item_body.py | 2 +- .../list_management/list_item_state.py | 8 +-- .../list_items_created_event_request.py | 2 +- .../list_items_deleted_event_request.py | 2 +- .../list_items_updated_event_request.py | 2 +- .../list_management_service_client.py | 63 +++++++++++-------- .../services/list_management/list_state.py | 8 +-- .../list_updated_event_request.py | 2 +- .../services/list_management/status.py | 2 +- .../update_list_item_request.py | 2 +- .../list_management/update_list_request.py | 2 +- .../services/monetization/entitled_state.py | 8 +-- .../monetization/entitlement_reason.py | 8 +-- .../services/monetization/error.py | 2 +- .../services/monetization/in_skill_product.py | 2 +- .../in_skill_product_transactions_response.py | 2 +- .../in_skill_products_response.py | 2 +- .../services/monetization/metadata.py | 2 +- .../monetization_service_client.py | 20 +++--- .../services/monetization/product_type.py | 8 +-- .../monetization/purchasable_state.py | 8 +-- .../services/monetization/purchase_mode.py | 8 +-- .../services/monetization/result_set.py | 2 +- .../services/monetization/status.py | 8 +-- .../services/monetization/transactions.py | 2 +- .../create_proactive_event_request.py | 2 +- .../services/proactive_events/error.py | 2 +- .../services/proactive_events/event.py | 2 +- .../proactive_events_service_client.py | 5 +- .../proactive_events/relevant_audience.py | 2 +- .../relevant_audience_type.py | 8 +-- .../services/proactive_events/skill_stage.py | 8 +-- .../services/reminder_management/__init__.py | 2 +- .../reminder_management/alert_info.py | 12 ++-- .../alert_info_spoken_info.py | 6 +- .../services/reminder_management/error.py | 2 +- .../services/reminder_management/event.py | 2 +- .../get_reminder_response.py | 2 +- .../get_reminders_response.py | 2 +- .../reminder_management/push_notification.py | 2 +- .../push_notification_status.py | 8 +-- .../reminder_management/recurrence.py | 2 +- .../reminder_management/recurrence_day.py | 8 +-- .../reminder_management/recurrence_freq.py | 8 +-- .../services/reminder_management/reminder.py | 2 +- .../reminder_created_event_request.py | 2 +- .../reminder_deleted_event.py | 2 +- .../reminder_deleted_event_request.py | 2 +- .../reminder_management_service_client.py | 29 +++++---- .../reminder_management/reminder_request.py | 2 +- .../reminder_management/reminder_response.py | 2 +- .../reminder_started_event_request.py | 2 +- .../reminder_status_changed_event_request.py | 2 +- .../reminder_updated_event_request.py | 2 +- .../reminder_management/spoken_text.py | 2 +- .../services/reminder_management/status.py | 8 +-- .../services/reminder_management/trigger.py | 2 +- .../reminder_management/trigger_type.py | 8 +-- .../services/skill_messaging/error.py | 2 +- .../send_skill_messaging_request.py | 2 +- .../skill_messaging_service_client.py | 5 +- .../timer_management/announce_operation.py | 2 +- .../timer_management/creation_behavior.py | 2 +- .../timer_management/display_experience.py | 2 +- .../services/timer_management/error.py | 2 +- .../timer_management/launch_task_operation.py | 2 +- .../timer_management/notification_config.py | 2 +- .../timer_management/notify_only_operation.py | 2 +- .../services/timer_management/operation.py | 2 +- .../services/timer_management/status.py | 8 +-- .../services/timer_management/task.py | 2 +- .../timer_management/text_to_announce.py | 2 +- .../timer_management/text_to_confirm.py | 2 +- .../timer_management_service_client.py | 41 +++++++----- .../timer_management/timer_request.py | 2 +- .../timer_management/timer_response.py | 2 +- .../timer_management/timers_response.py | 2 +- .../timer_management/triggering_behavior.py | 2 +- .../services/timer_management/visibility.py | 8 +-- .../services/ups/distance_units.py | 8 +-- .../ask_sdk_model/services/ups/error.py | 2 +- .../ask_sdk_model/services/ups/error_code.py | 8 +-- .../services/ups/phone_number.py | 2 +- .../services/ups/temperature_unit.py | 8 +-- .../services/ups/ups_service_client.py | 50 +++++++++------ ask-sdk-model/ask_sdk_model/session.py | 2 +- .../ask_sdk_model/session_ended_error.py | 2 +- .../ask_sdk_model/session_ended_error_type.py | 8 +-- .../ask_sdk_model/session_ended_reason.py | 8 +-- .../ask_sdk_model/session_ended_request.py | 2 +- .../ask_sdk_model/session_resumed_request.py | 2 +- .../ask_sdk_model/simple_slot_value.py | 2 +- ask-sdk-model/ask_sdk_model/slot.py | 2 +- .../ask_sdk_model/slot_confirmation_status.py | 8 +-- ask-sdk-model/ask_sdk_model/slot_value.py | 2 +- .../slu/entityresolution/resolution.py | 2 +- .../slu/entityresolution/resolutions.py | 2 +- .../slu/entityresolution/status.py | 2 +- .../slu/entityresolution/status_code.py | 8 +-- .../slu/entityresolution/value.py | 2 +- .../slu/entityresolution/value_wrapper.py | 2 +- ask-sdk-model/ask_sdk_model/status.py | 2 +- .../ask_sdk_model/supported_interfaces.py | 2 +- ask-sdk-model/ask_sdk_model/task.py | 2 +- .../ui/ask_for_permissions_consent_card.py | 2 +- ask-sdk-model/ask_sdk_model/ui/card.py | 2 +- ask-sdk-model/ask_sdk_model/ui/image.py | 2 +- .../ask_sdk_model/ui/link_account_card.py | 2 +- .../ask_sdk_model/ui/output_speech.py | 2 +- .../ui/plain_text_output_speech.py | 2 +- .../ask_sdk_model/ui/play_behavior.py | 8 +-- ask-sdk-model/ask_sdk_model/ui/reprompt.py | 2 +- ask-sdk-model/ask_sdk_model/ui/simple_card.py | 2 +- .../ask_sdk_model/ui/ssml_output_speech.py | 2 +- .../ask_sdk_model/ui/standard_card.py | 2 +- ask-sdk-model/ask_sdk_model/user.py | 2 +- ask-sdk-model/setup.py | 2 +- 495 files changed, 938 insertions(+), 882 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 7db953a..bec486c 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -356,3 +356,11 @@ This release contains the following changes : This release contains the following changes : - Models and support for Extensions interfaces. + + +1.28.1 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 75f8d29..3eb3eef 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.28.0' +__version__ = '1.28.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/application.py b/ask-sdk-model/ask_sdk_model/application.py index e54718c..7ba1497 100644 --- a/ask-sdk-model/ask_sdk_model/application.py +++ b/ask-sdk-model/ask_sdk_model/application.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py index 1bc2c73..5738abb 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.authorization.grant import Grant diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py index d90622f..45be1b9 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.authorization.authorization_grant_body import AuthorizationGrantBody diff --git a/ask-sdk-model/ask_sdk_model/authorization/grant.py b/ask-sdk-model/ask_sdk_model/authorization/grant.py index 5c0bf70..26198fa 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/grant.py +++ b/ask-sdk-model/ask_sdk_model/authorization/grant.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.authorization.grant_type import GrantType diff --git a/ask-sdk-model/ask_sdk_model/authorization/grant_type.py b/ask-sdk-model/ask_sdk_model/authorization/grant_type.py index e71c505..813fe21 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/grant_type.py +++ b/ask-sdk-model/ask_sdk_model/authorization/grant_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class GrantType(Enum): OAuth2_AuthorizationCode = "OAuth2.AuthorizationCode" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, GrantType): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py index eb33cba..57c76a8 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.canfulfill.can_fulfill_intent_values import CanFulfillIntentValues from ask_sdk_model.canfulfill.can_fulfill_slot import CanFulfillSlot diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py index d25e40b..7d14625 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog_state import DialogState from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_values.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_values.py index 542f821..0f8d80d 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_values.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_values.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class CanFulfillIntentValues(Enum): MAYBE = "MAYBE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CanFulfillIntentValues): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py index 9cb66fc..7033839 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.canfulfill.can_fulfill_slot_values import CanFulfillSlotValues from ask_sdk_model.canfulfill.can_understand_slot_values import CanUnderstandSlotValues diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot_values.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot_values.py index abdf7ec..f5d0585 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot_values.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot_values.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class CanFulfillSlotValues(Enum): NO = "NO" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CanFulfillSlotValues): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_understand_slot_values.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_understand_slot_values.py index 126e815..686569a 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_understand_slot_values.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_understand_slot_values.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class CanUnderstandSlotValues(Enum): MAYBE = "MAYBE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CanUnderstandSlotValues): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/cause.py b/ask-sdk-model/ask_sdk_model/cause.py index e1b5537..157e899 100644 --- a/ask-sdk-model/ask_sdk_model/cause.py +++ b/ask-sdk-model/ask_sdk_model/cause.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/connection_completed.py b/ask-sdk-model/ask_sdk_model/connection_completed.py index 87c67d7..f5cde4d 100644 --- a/ask-sdk-model/ask_sdk_model/connection_completed.py +++ b/ask-sdk-model/ask_sdk_model/connection_completed.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.status import Status diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 68f4dd7..d027eaf 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state import RenderedDocumentState from ask_sdk_model.interfaces.system.system_state import SystemState diff --git a/ask-sdk-model/ask_sdk_model/device.py b/ask-sdk-model/ask_sdk_model/device.py index c3f6719..588a1e1 100644 --- a/ask-sdk-model/ask_sdk_model/device.py +++ b/ask-sdk-model/ask_sdk_model/device.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.supported_interfaces import SupportedInterfaces diff --git a/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py b/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py index 1d7125d..25402c5 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py b/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py index 5b0cb33..0437c48 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py b/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py index 9e23ba7..00a3dcb 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py b/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py index cff9549..fdf8266 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog.delegation_period import DelegationPeriod from ask_sdk_model.dialog.updated_request import UpdatedRequest diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py b/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py index b4d8f78..3e87f9f 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog.delegation_period_until import DelegationPeriodUntil diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegation_period_until.py b/ask-sdk-model/ask_sdk_model/dialog/delegation_period_until.py index 1d48f09..1df9ed8 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegation_period_until.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegation_period_until.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class DelegationPeriodUntil(Enum): NEXT_TURN = "NEXT_TURN" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DelegationPeriodUntil): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py b/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py index 866016c..56fd605 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.er.dynamic.update_behavior import UpdateBehavior from ask_sdk_model.er.dynamic.entity_list_item import EntityListItem diff --git a/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py b/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py index 987779b..072b060 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/dialog/input.py b/ask-sdk-model/ask_sdk_model/dialog/input.py index dd09ad0..7e1ece2 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/input.py +++ b/ask-sdk-model/ask_sdk_model/dialog/input.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slot import Slot diff --git a/ask-sdk-model/ask_sdk_model/dialog/input_request.py b/ask-sdk-model/ask_sdk_model/dialog/input_request.py index 1277343..d165dde 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/input_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/input_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog.input import Input diff --git a/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py b/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py index ac7306f..1f3b211 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog.input import Input diff --git a/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py b/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py index 2fe769a..ff7fbf7 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/dialog/updated_request.py b/ask-sdk-model/ask_sdk_model/dialog/updated_request.py index f487a04..6576dca 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/updated_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/updated_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/dialog_state.py b/ask-sdk-model/ask_sdk_model/dialog_state.py index 62fe6a9..36622fd 100644 --- a/ask-sdk-model/ask_sdk_model/dialog_state.py +++ b/ask-sdk-model/ask_sdk_model/dialog_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class DialogState(Enum): COMPLETED = "COMPLETED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DialogState): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index a2909ef..6aed33e 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/base_response.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/base_response.py index 15abcac..07e83d3 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/base_response.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/base_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/failure_response.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/failure_response.py index b76374d..3ac21e3 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/failure_response.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/failure_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/request.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/request.py index f84bb4e..e1350b7 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/request.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/success_response.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/success_response.py index 8ba481f..776c7ec 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/success_response.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/success_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py b/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py index 8e61bf4..544e43a 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.er.dynamic.entity_value_and_synonyms import EntityValueAndSynonyms diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py index 417fdd7..e42dcf2 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.er.dynamic.entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_value_and_synonyms.py b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_value_and_synonyms.py index ae5501c..23aa3af 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_value_and_synonyms.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_value_and_synonyms.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/update_behavior.py b/ask-sdk-model/ask_sdk_model/er/dynamic/update_behavior.py index 6af0bf7..d40e2d3 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/update_behavior.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/update_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class UpdateBehavior(Enum): CLEAR = "CLEAR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, UpdateBehavior): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_body.py index 4616ac8..ad658c8 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_body.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py index c241c82..5c9cd44 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.account_linked_body import AccountLinkedBody diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py index 79d0d55..c639378 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py index d42c327..d62ee4a 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.permission_body import PermissionBody diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py index 706f0cc..52fe679 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.permission import Permission diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py index 8901485..8efe885 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.permission_body import PermissionBody diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py index bd9a490..f04d5f8 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.proactive_subscription_event import ProactiveSubscriptionEvent diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py index 86ba300..7c9b9c3 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.events.skillevents.proactive_subscription_changed_body import ProactiveSubscriptionChangedBody diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py index 3b6289a..c30d7dd 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py index f45839f..4937c79 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/skill_enabled_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/skill_enabled_request.py index 02c1067..413b5cf 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/skill_enabled_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/skill_enabled_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/intent.py b/ask-sdk-model/ask_sdk_model/intent.py index e3fd369..2b25549 100644 --- a/ask-sdk-model/ask_sdk_model/intent.py +++ b/ask-sdk-model/ask_sdk_model/intent.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.intent_confirmation_status import IntentConfirmationStatus from ask_sdk_model.slot import Slot diff --git a/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py b/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py index 22ff2b1..5fcf7e5 100644 --- a/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py +++ b/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class IntentConfirmationStatus(Enum): CONFIRMED = "CONFIRMED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IntentConfirmationStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/intent_request.py b/ask-sdk-model/ask_sdk_model/intent_request.py index a0dbcf8..d5ec572 100644 --- a/ask-sdk-model/ask_sdk_model/intent_request.py +++ b/ask-sdk-model/ask_sdk_model/intent_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.dialog_state import DialogState from ask_sdk_model.intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/comms/messagingcontroller/status_map.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/comms/messagingcontroller/status_map.py index 32444d6..0f3cc20 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/comms/messagingcontroller/status_map.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/comms/messagingcontroller/status_map.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py index ac911b4..ed3e2c0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/available_extension.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py index 04c4a33..0ce2f6b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.extension.available_extension import AvailableExtension diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py index d141d44..cd0177f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.runtime import Runtime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/align.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/align.py index 6e5d798..be84d31 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/align.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/align.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class Align(Enum): visible = "visible" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Align): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py index aff8596..d4bab8d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.animated_property import AnimatedProperty from ask_sdk_model.interfaces.alexa.presentation.apl.animate_item_repeat_mode import AnimateItemRepeatMode diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_repeat_mode.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_repeat_mode.py index cb7c25f..d5fecf9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_repeat_mode.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_repeat_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class AnimateItemRepeatMode(Enum): reverse = "reverse" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AnimateItemRepeatMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_opacity_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_opacity_property.py index 9804ed6..bd72387 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_opacity_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_opacity_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_property.py index 846dae8..55ced38 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py index eba66fb..8d46c09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.transform_property import TransformProperty diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py index 362c22c..511814c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class AudioTrack(Enum): foreground = "foreground" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AudioTrack): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py index b2a9526..9c05c3d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py index 919b00d..47d3517 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py index ac9387a..2a2cc9c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py index a1c185e..4fbcf7e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_state.py index 1d27ca9..6bc2072 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ComponentState(Enum): focused = "focused" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ComponentState): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py index fd8a573..9519066 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_item_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_item_tag.py index 93ab8c3..2939565 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_item_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_item_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_tag.py index 0a6758e..4dd6315 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_list_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py index 3901169..92b31ff 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag_state_enum.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag_state_enum.py index 140a35b..5683609 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag_state_enum.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag_state_enum.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ComponentVisibleOnScreenMediaTagStateEnum(Enum): paused = "paused" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ComponentVisibleOnScreenMediaTagStateEnum): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_pager_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_pager_tag.py index 215aead..873d34d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_pager_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_pager_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py index 243dbc7..0cdd2cc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag_direction_enum.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag_direction_enum.py index e089a41..2d59d70 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag_direction_enum.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag_direction_enum.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ComponentVisibleOnScreenScrollableTagDirectionEnum(Enum): vertical = "vertical" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ComponentVisibleOnScreenScrollableTagDirectionEnum): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py index 6910879..008f064 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_viewport_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_viewport_tag.py index 7309dc5..6f878cb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_viewport_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_viewport_tag.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py index c071669..731b33d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.media_command_type import MediaCommandType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py index 6341a7b..7ef3694 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/highlight_mode.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/highlight_mode.py index f00b1e4..953e8f2 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/highlight_mode.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/highlight_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class HighlightMode(Enum): line = "line" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HighlightMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py index 5d55cf5..d70519b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py index bca8dfc..464d22a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason import ListRuntimeErrorReason diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error_reason.py index f424562..4d7ab29 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error_reason.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error_reason.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -53,7 +53,7 @@ class ListRuntimeErrorReason(Enum): INTERNAL_ERROR = "INTERNAL_ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -69,7 +69,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ListRuntimeErrorReason): return False @@ -77,6 +77,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_item_operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_item_operation.py index 6b8ab03..295edea 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_item_operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_item_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_multiple_items_operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_multiple_items_operation.py index d21e8cc..0ab5a1e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_multiple_items_operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/delete_multiple_items_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_item_operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_item_operation.py index 091f60f..00efab9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_item_operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_item_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_multiple_items_operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_multiple_items_operation.py index b330877..537034c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_multiple_items_operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/insert_multiple_items_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/operation.py index e796224..09e3c02 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/set_item_operation.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/set_item_operation.py index 79ed2be..4e6b091 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/set_item_operation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/set_item_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_index_list_data_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_index_list_data_event.py index d4bf13f..eef8f76 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_index_list_data_event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_index_list_data_event.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/media_command_type.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/media_command_type.py index 2f7b498..21b2f0c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/media_command_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/media_command_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class MediaCommandType(Enum): setTrack = "setTrack" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, MediaCommandType): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/move_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/move_transform_property.py index 4a9f3db..2c096d6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/move_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/move_transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py index 36692c3..8aac40f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py index 0491711..da4da65 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py index 182b113..cf2749c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.video_source import VideoSource from ask_sdk_model.interfaces.alexa.presentation.apl.audio_track import AudioTrack diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/position.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/position.py index 829b716..9b3ee4c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/position.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/position.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Position(Enum): relative = "relative" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Position): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/render_document_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/render_document_directive.py index e929160..1b40e90 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/render_document_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/render_document_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,6 +35,8 @@ class RenderDocumentDirective(Directive): :type document: (optional) dict(str, object) :param datasources: Data sources to bind to the document when rendering. :type datasources: (optional) dict(str, object) + :param sources: An object containing named documents or links. These documents can be referenced by the “template” parameter in the transformer. + :type sources: (optional) dict(str, object) :param packages: A list of packages including layouts, styles, and images etc. :type packages: (optional) list[object] @@ -44,6 +46,7 @@ class RenderDocumentDirective(Directive): 'token': 'str', 'document': 'dict(str, object)', 'datasources': 'dict(str, object)', + 'sources': 'dict(str, object)', 'packages': 'list[object]' } # type: Dict @@ -52,12 +55,13 @@ class RenderDocumentDirective(Directive): 'token': 'token', 'document': 'document', 'datasources': 'datasources', + 'sources': 'sources', 'packages': 'packages' } # type: Dict supports_multiple_types = False - def __init__(self, token=None, document=None, datasources=None, packages=None): - # type: (Optional[str], Optional[Dict[str, object]], Optional[Dict[str, object]], Optional[List[object]]) -> None + def __init__(self, token=None, document=None, datasources=None, sources=None, packages=None): + # type: (Optional[str], Optional[Dict[str, object]], Optional[Dict[str, object]], Optional[Dict[str, object]], Optional[List[object]]) -> None """ :param token: A unique identifier for the presentation. @@ -66,6 +70,8 @@ def __init__(self, token=None, document=None, datasources=None, packages=None): :type document: (optional) dict(str, object) :param datasources: Data sources to bind to the document when rendering. :type datasources: (optional) dict(str, object) + :param sources: An object containing named documents or links. These documents can be referenced by the “template” parameter in the transformer. + :type sources: (optional) dict(str, object) :param packages: A list of packages including layouts, styles, and images etc. :type packages: (optional) list[object] """ @@ -76,6 +82,7 @@ def __init__(self, token=None, document=None, datasources=None, packages=None): self.token = token self.document = document self.datasources = datasources + self.sources = sources self.packages = packages def to_dict(self): diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py index b138e1e..7fc7aa0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rotate_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rotate_transform_property.py index 7723824..3df190a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rotate_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rotate_transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime.py index 0f00f56..ab7e203 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py index ede54c5..93e5faf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py index ef6e9c2..f3a7073 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error import RuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scale_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scale_transform_property.py index 512b91d..404810d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scale_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scale_transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py index 15576e3..53b5008 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py index 9514f7e..779c469 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py index cc8c3e8..0db308f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_index_list_data_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_index_list_data_directive.py index 36b9a62..1f53205 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_index_list_data_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_index_list_data_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py index a1a1b20..31c2228 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py index 572a898..c8d929a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py index dd46286..2c05597 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.position import Position diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py index 1a5df67..4bd8232 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.component_state import ComponentState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py index 5317454..e774353 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/skew_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/skew_transform_property.py index cf5bc4c..237e9ec 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/skew_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/skew_transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py index 56e7fd3..e8478a3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.highlight_mode import HighlightMode from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py index 8ca7266..27f2cdf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/transform_property.py index 5d81ff0..3c0575f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/transform_property.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py index 89ef528..d4654a3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.listoperations.operation import Operation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/user_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/user_event.py index 1c39c72..37b9795 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/user_event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/user_event.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/video_source.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/video_source.py index c3c27cc..2b4ef64 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/video_source.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/video_source.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_document_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_document_directive.py index f07cc5d..71042e9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_document_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_document_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py index 88a6ecc..9b25441 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.runtime import Runtime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/auto_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/auto_page_command.py index b8e82a2..43cfc67 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/auto_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/auto_page_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/command.py index 96d388e..15ff265 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py index 391816d..219ec47 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/idle_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/idle_command.py index 9a21304..0df0303 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/idle_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/idle_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py index 200eb8c..2b7a397 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/position.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/position.py index 829b716..9b3ee4c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/position.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/position.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Position(Enum): relative = "relative" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Position): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py index 6c8aecd..8dc1df7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.target_profile import TargetProfile diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/runtime.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/runtime.py index 7be9087..fc96b45 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/runtime.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/runtime.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/scroll_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/scroll_command.py index 526b6a6..fb8de29 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/scroll_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/scroll_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/send_event_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/send_event_command.py index 78a69c2..5ad53b1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/send_event_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/send_event_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py index 6ce7700..dd7195e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py index 8b8c185..7ba6327 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.aplt.position import Position diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py index 6307714..79669b6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/target_profile.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/target_profile.py index 7049244..17d264c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/target_profile.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/target_profile.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class TargetProfile(Enum): NONE = "NONE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TargetProfile): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/user_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/user_event.py index 3b8df31..c070fa8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/user_event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/user_event.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py index 6beb991..e479c9f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.runtime import Runtime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/configuration.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/configuration.py index 2c7f07c..d8a870c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/configuration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/configuration.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py index 263d2e7..0df9078 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.transformer import Transformer diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/message_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/message_request.py index b28fe8e..0669560 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/message_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/message_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime.py index a2dc91c..bf8956a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py index 89dbe79..dc4a7a5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_reason import RuntimeErrorReason diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_reason.py index 73284c5..9a4753e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_reason.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_reason.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class RuntimeErrorReason(Enum): APPLICATION_ERROR = "APPLICATION_ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RuntimeErrorReason): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py index a3d1bb4..b981eae 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error import RuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py index 2cc8afc..0254c4d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.configuration import Configuration from ask_sdk_model.interfaces.alexa.presentation.html.start_request import StartRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py index 7db6ab9..dca2b88 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.start_request_method import StartRequestMethod diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request_method.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request_method.py index 5d2c287..194eca0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request_method.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request_method.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -34,7 +34,7 @@ class StartRequestMethod(Enum): GET = "GET" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -50,7 +50,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, StartRequestMethod): return False @@ -58,6 +58,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py index 36cb865..0734bfd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.html.transformer_type import TransformerType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer_type.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer_type.py index bed589f..40a911f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class TransformerType(Enum): ssmlToText = "ssmlToText" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TransformerType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py index 06a803e..5e2184d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.price import Price diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/base_amazon_pay_entity.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/base_amazon_pay_entity.py index d23f9b2..0d8dd44 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/base_amazon_pay_entity.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/base_amazon_pay_entity.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py index 546ebfe..7c809e2 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.seller_billing_agreement_attributes import SellerBillingAgreementAttributes from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_type import BillingAgreementType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_type.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_type.py index 69c89d9..53922f3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class BillingAgreementType(Enum): MerchantInitiatedTransaction = "MerchantInitiatedTransaction" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, BillingAgreementType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/payment_action.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/payment_action.py index 97948e0..c7e1a07 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/payment_action.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/payment_action.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PaymentAction(Enum): AuthorizeAndCapture = "AuthorizeAndCapture" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PaymentAction): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/price.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/price.py index 007caa2..7ae8a55 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/price.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/price.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py index a0470f9..a10efab 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.provider_credit import ProviderCredit diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py index a25f3af..daaa4cc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.price import Price diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_billing_agreement_attributes.py index b86427c..501e063 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_billing_agreement_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_order_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_order_attributes.py index 6cfa882..70f7519 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_order_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/seller_order_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py index 363d72d..24d8183 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.response.authorization_status import AuthorizationStatus from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py index df9f2f1..60aadd4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.response.state import State diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py index 4eb74a0..f4b47c8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py @@ -22,12 +22,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatusV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.destination import DestinationV1 from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as V1_BillingAgreementStatusV1 from ask_sdk_model.interfaces.amazonpay.model.response.release_environment import ReleaseEnvironment + from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as V1_DestinationV1 class BillingAgreementDetails(BillingAgreementDetails): @@ -73,7 +73,7 @@ class BillingAgreementDetails(BillingAgreementDetails): supports_multiple_types = False def __init__(self, billing_agreement_id=None, creation_timestamp=None, destination=None, checkout_language=None, release_environment=None, billing_agreement_status=None, billing_address=None): - # type: (Optional[str], Optional[datetime], Optional[DestinationV1], Optional[str], Optional[ReleaseEnvironment], Optional[BillingAgreementStatusV1], Optional[Destination]) -> None + # type: (Optional[str], Optional[datetime], Optional[V1_DestinationV1], Optional[str], Optional[ReleaseEnvironment], Optional[V1_BillingAgreementStatusV1], Optional[Destination]) -> None """The result attributes from successful SetupAmazonPay call. :param billing_agreement_id: Billing agreement id which can be used for one time and recurring purchases diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/destination.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/destination.py index 2779b3a..155d98b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/destination.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/destination.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/price.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/price.py index 0b10598..8779c94 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/price.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/price.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/release_environment.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/release_environment.py index 0846a14..7093fcb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/release_environment.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/release_environment.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ReleaseEnvironment(Enum): SANDBOX = "SANDBOX" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ReleaseEnvironment): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/state.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/state.py index 6fcd6ac..f065fae 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class State(Enum): Closed = "Closed" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, State): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py index 02cabf6..1354e21 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import PriceV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_status import AuthorizationStatusV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_status import AuthorizationStatus as V1_AuthorizationStatusV1 class AuthorizationDetails(object): @@ -94,7 +94,7 @@ class AuthorizationDetails(object): supports_multiple_types = False def __init__(self, amazon_authorization_id=None, authorization_reference_id=None, seller_authorization_note=None, authorization_amount=None, captured_amount=None, authorization_fee=None, id_list=None, creation_timestamp=None, expiration_timestamp=None, authorization_status=None, soft_decline=None, capture_now=None, soft_descriptor=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[PriceV1], Optional[PriceV1], Optional[PriceV1], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[AuthorizationStatusV1], Optional[bool], Optional[bool], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[V1_PriceV1], Optional[V1_PriceV1], Optional[V1_PriceV1], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[V1_AuthorizationStatusV1], Optional[bool], Optional[bool], Optional[str]) -> None """This object encapsulates details about an Authorization object including the status, amount captured and fee charged. :param amazon_authorization_id: This is AmazonPay generated identifier for this authorization transaction. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py index 238d44b..de0cdcb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.state import StateV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.state import State as V1_StateV1 class AuthorizationStatus(object): @@ -57,7 +57,7 @@ class AuthorizationStatus(object): supports_multiple_types = False def __init__(self, state=None, reason_code=None, reason_description=None, last_update_timestamp=None): - # type: (Optional[StateV1], Optional[str], Optional[str], Optional[datetime]) -> None + # type: (Optional[V1_StateV1], Optional[str], Optional[str], Optional[datetime]) -> None """Indicates the current status of an Authorization object, a Capture object, or a Refund object. :param state: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py index 4b4bfab..47176df 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 class AuthorizeAttributes(object): @@ -61,7 +61,7 @@ class AuthorizeAttributes(object): supports_multiple_types = False def __init__(self, authorization_reference_id=None, authorization_amount=None, transaction_timeout=None, seller_authorization_note=None, soft_descriptor=None): - # type: (Optional[str], Optional[PriceV1], Optional[int], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[V1_PriceV1], Optional[int], Optional[str], Optional[str]) -> None """This is an object to set the attributes specified in the AuthorizeAttributes table. See the “AuthorizationDetails” section of the Amazon Pay API reference guide for details about this object. :param authorization_reference_id: This is 3P seller's identifier for this authorization transaction. This identifier must be unique for all of your authorization transactions. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py index 09ba1e9..871fe91 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import PriceV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.seller_billing_agreement_attributes import SellerBillingAgreementAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_type import BillingAgreementTypeV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_type import BillingAgreementType as V1_BillingAgreementTypeV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.seller_billing_agreement_attributes import SellerBillingAgreementAttributes as V1_SellerBillingAgreementAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 class BillingAgreementAttributes(object): @@ -63,7 +63,7 @@ class BillingAgreementAttributes(object): supports_multiple_types = False def __init__(self, platform_id=None, seller_note=None, seller_billing_agreement_attributes=None, billing_agreement_type=None, subscription_amount=None): - # type: (Optional[str], Optional[str], Optional[SellerBillingAgreementAttributesV1], Optional[BillingAgreementTypeV1], Optional[PriceV1]) -> None + # type: (Optional[str], Optional[str], Optional[V1_SellerBillingAgreementAttributesV1], Optional[V1_BillingAgreementTypeV1], Optional[V1_PriceV1]) -> None """The merchant can choose to set the attributes specified in the BillingAgreementAttributes. :param platform_id: Represents the SellerId of the Solution Provider that developed the eCommerce platform. This value is only used by Solution Providers, for whom it is required. It should not be provided by merchants creating their own custom integration. Do not specify the SellerId of the merchant for this request parameter. If you are a merchant, do not enter a PlatformId. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py index dbb0802..a3140b5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatusV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.destination import DestinationV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.release_environment import ReleaseEnvironmentV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.release_environment import ReleaseEnvironment as V1_ReleaseEnvironmentV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as V1_BillingAgreementStatusV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as V1_DestinationV1 class BillingAgreementDetails(object): @@ -67,7 +67,7 @@ class BillingAgreementDetails(object): supports_multiple_types = False def __init__(self, billing_agreement_id=None, creation_timestamp=None, destination=None, checkout_language=None, release_environment=None, billing_agreement_status=None): - # type: (Optional[str], Optional[datetime], Optional[DestinationV1], Optional[str], Optional[ReleaseEnvironmentV1], Optional[BillingAgreementStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[V1_DestinationV1], Optional[str], Optional[V1_ReleaseEnvironmentV1], Optional[V1_BillingAgreementStatusV1]) -> None """The result attributes from successful SetupAmazonPay call. :param billing_agreement_id: Billing agreement id which can be used for one time and recurring purchases diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_status.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_status.py index de705c2..821cbe1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class BillingAgreementStatus(Enum): SUSPENDED = "SUSPENDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, BillingAgreementStatus): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_type.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_type.py index 69c89d9..53922f3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class BillingAgreementType(Enum): MerchantInitiatedTransaction = "MerchantInitiatedTransaction" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, BillingAgreementType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/destination.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/destination.py index 412b447..7939348 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/destination.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/destination.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/payment_action.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/payment_action.py index 97948e0..c7e1a07 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/payment_action.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/payment_action.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PaymentAction(Enum): AuthorizeAndCapture = "AuthorizeAndCapture" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PaymentAction): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/price.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/price.py index 90e9ca8..8038f4e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/price.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/price.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py index c7e3238..02e57e0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.provider_credit import ProviderCreditV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.provider_credit import ProviderCredit as V1_ProviderCreditV1 class ProviderAttributes(object): @@ -49,7 +49,7 @@ class ProviderAttributes(object): supports_multiple_types = False def __init__(self, provider_id=None, provider_credit_list=None): - # type: (Optional[str], Optional[List[ProviderCreditV1]]) -> None + # type: (Optional[str], Optional[List[V1_ProviderCreditV1]]) -> None """This is required only for Ecommerce provider (Solution provider) use cases. :param provider_id: Solution provider ID. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py index 8130aad..b26fb21 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 class ProviderCredit(object): @@ -47,7 +47,7 @@ class ProviderCredit(object): supports_multiple_types = False def __init__(self, provider_id=None, credit=None): - # type: (Optional[str], Optional[PriceV1]) -> None + # type: (Optional[str], Optional[V1_PriceV1]) -> None """ :param provider_id: This is required only for Ecommerce provider (Solution provider) use cases. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/release_environment.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/release_environment.py index dae3415..f8d4a7c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/release_environment.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/release_environment.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ReleaseEnvironment(Enum): SANDBOX = "SANDBOX" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ReleaseEnvironment): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_billing_agreement_attributes.py index b043ed5..3a0b5fb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_billing_agreement_attributes.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_order_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_order_attributes.py index f7f159d..ec1dc50 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_order_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/seller_order_attributes.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/state.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/state.py index cad6255..27f69b5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class State(Enum): Completed = "Completed" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, State): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py index 8adaa52..936804a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.payment_action import PaymentAction from ask_sdk_model.interfaces.amazonpay.model.request.seller_order_attributes import SellerOrderAttributes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py index 5816c59..01e69e9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_attributes import BillingAgreementAttributes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/amazon_pay_error_response.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/amazon_pay_error_response.py index cbca501..5f272f7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/amazon_pay_error_response.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/amazon_pay_error_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py index daaefd5..00e46d4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.response.authorization_details import AuthorizationDetails diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py index 0e4122a..dd2feee 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.amazonpay.model.response.billing_agreement_details import BillingAgreementDetails diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/amazon_pay_error_response.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/amazon_pay_error_response.py index 625efe9..3d5b455 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/amazon_pay_error_response.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/amazon_pay_error_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py index 4bc91b5..9c8bfa1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.authorize_attributes import AuthorizeAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.payment_action import PaymentActionV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.seller_order_attributes import SellerOrderAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.provider_attributes import ProviderAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorize_attributes import AuthorizeAttributes as V1_AuthorizeAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.seller_order_attributes import SellerOrderAttributes as V1_SellerOrderAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.provider_attributes import ProviderAttributes as V1_ProviderAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.payment_action import PaymentAction as V1_PaymentActionV1 class ChargeAmazonPay(object): @@ -72,7 +72,7 @@ class ChargeAmazonPay(object): supports_multiple_types = False def __init__(self, consent_token=None, seller_id=None, billing_agreement_id=None, payment_action=None, authorize_attributes=None, seller_order_attributes=None, provider_attributes=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[PaymentActionV1], Optional[AuthorizeAttributesV1], Optional[SellerOrderAttributesV1], Optional[ProviderAttributesV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[V1_PaymentActionV1], Optional[V1_AuthorizeAttributesV1], Optional[V1_SellerOrderAttributesV1], Optional[V1_ProviderAttributesV1]) -> None """Charge Amazon Pay Request Object :param consent_token: Authorization token that contains the permissions consented to by the user. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py index b686b5f..2ce27c9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details import AuthorizationDetailsV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details import AuthorizationDetails as V1_AuthorizationDetailsV1 class ChargeAmazonPayResult(object): @@ -49,7 +49,7 @@ class ChargeAmazonPayResult(object): supports_multiple_types = False def __init__(self, amazon_order_reference_id=None, authorization_details=None): - # type: (Optional[str], Optional[AuthorizationDetailsV1]) -> None + # type: (Optional[str], Optional[V1_AuthorizationDetailsV1]) -> None """Charge Amazon Pay Result Object. It is sent as part of the reponse to ChargeAmazonPay request. :param amazon_order_reference_id: The order reference identifier. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py index c9c1cfa..86e41ed 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_attributes import BillingAgreementAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_attributes import BillingAgreementAttributes as V1_BillingAgreementAttributesV1 class SetupAmazonPay(object): @@ -77,7 +77,7 @@ class SetupAmazonPay(object): supports_multiple_types = False def __init__(self, consent_token=None, seller_id=None, country_of_establishment=None, ledger_currency=None, checkout_language=None, billing_agreement_attributes=None, need_amazon_shipping_address=False, sandbox_mode=False, sandbox_customer_email_id=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[BillingAgreementAttributesV1], Optional[bool], Optional[bool], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[V1_BillingAgreementAttributesV1], Optional[bool], Optional[bool], Optional[str]) -> None """Setup Amazon Pay Request Object :param consent_token: Authorization token that contains the permissions consented to by the user. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py index 3fee289..460201c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_details import BillingAgreementDetailsV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_details import BillingAgreementDetails as V1_BillingAgreementDetailsV1 class SetupAmazonPayResult(object): @@ -45,7 +45,7 @@ class SetupAmazonPayResult(object): supports_multiple_types = False def __init__(self, billing_agreement_details=None): - # type: (Optional[BillingAgreementDetailsV1]) -> None + # type: (Optional[V1_BillingAgreementDetailsV1]) -> None """Setup Amazon Pay Result Object. It is sent as part of the reponse to SetupAmazonPay request. :param billing_agreement_details: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py index d3c541d..44c2f03 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.audio_item_metadata import AudioItemMetadata from ask_sdk_model.interfaces.audioplayer.stream import Stream diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py index 98cbdec..bf6e18f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_interface.py index 282bf77..478183e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py index 677df5f..6693281 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py index 683d78e..6737326 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.caption_type import CaptionType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_type.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_type.py index 3d674fe..a5f4851 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -34,7 +34,7 @@ class CaptionType(Enum): WEBVTT = "WEBVTT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -50,7 +50,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CaptionType): return False @@ -58,6 +58,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_behavior.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_behavior.py index f7e2c8f..4fc3f3d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_behavior.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class ClearBehavior(Enum): CLEAR_ENQUEUED = "CLEAR_ENQUEUED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ClearBehavior): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py index 8262ef3..24dcad1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.clear_behavior import ClearBehavior diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py index e951585..8cd2ee1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py index 905ca0e..fe16b9a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error_type.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error_type.py index 0ddb4c1..720aee9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ErrorType(Enum): MEDIA_ERROR_UNKNOWN = "MEDIA_ERROR_UNKNOWN" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ErrorType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_behavior.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_behavior.py index d2a13c1..0a2fb32 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_behavior.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class PlayBehavior(Enum): REPLACE_ENQUEUED = "REPLACE_ENQUEUED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PlayBehavior): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py index 142028d..cf0033f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.audio_item import AudioItem from ask_sdk_model.interfaces.audioplayer.play_behavior import PlayBehavior diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py index 8bd36da..62357b9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.error import Error from ask_sdk_model.interfaces.audioplayer.current_playback_state import CurrentPlaybackState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_finished_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_finished_request.py index c42710c..e2eecc4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_finished_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_finished_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_nearly_finished_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_nearly_finished_request.py index 9873a22..d4151b7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_nearly_finished_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_nearly_finished_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_started_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_started_request.py index 839491a..33651c0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_started_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_started_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_stopped_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_stopped_request.py index 27f0cb9..f1351d7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_stopped_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_stopped_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/player_activity.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/player_activity.py index 90b8d98..e315ce3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/player_activity.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/player_activity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class PlayerActivity(Enum): STOPPED = "STOPPED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PlayerActivity): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stop_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stop_directive.py index 2b13fd5..caa5695 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stop_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stop_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py index a19827d..9479a2c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.caption_data import CaptionData diff --git a/ask-sdk-model/ask_sdk_model/interfaces/automotive/automotive_state.py b/ask-sdk-model/ask_sdk_model/interfaces/automotive/automotive_state.py index 228478e..8d2e50f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/automotive/automotive_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/automotive/automotive_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_request.py index 2baca35..d163fc4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py index a9776df..ed49516 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_status.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_status.py index e4922f4..15b776d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/base_entity.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/base_entity.py index 7b077fa..d8dc63e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/base_entity.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/base_entity.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/postal_address.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/postal_address.py index 60ef5e6..ad81f3b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/postal_address.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/postal_address.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py index fb9e1ae..213068a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py index 136c976..6e4ec13 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/on_completion.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class OnCompletion(Enum): SEND_ERRORS_ONLY = "SEND_ERRORS_ONLY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, OnCompletion): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/base_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/base_request.py index 71fedaf..5b34bac 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/base_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/base_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_image_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_image_request.py index a5c5f2c..1e6f90d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_image_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_image_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_pdf_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_pdf_request.py index 54a6dbd..272199e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_pdf_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_pdf_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_web_page_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_web_page_request.py index a06cf9b..31d6e83 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_web_page_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/print_web_page_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py index c09a54a..1ba7721 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.entities.restaurant import Restaurant diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py index 70de7d7..d96d293 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_request_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_request_directive.py index 3667e96..fc3c24f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_request_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_request_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py index 89e0e2f..20a9bff 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py index b853b69..9c09001 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.connections.on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py index 205996c..90f75ae 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.conversations.api_request import APIRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py index 794f63f..a1ee00b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slot_value import SlotValue diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/endpoint.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/endpoint.py index 91adefb..391cb09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/endpoint.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/endpoint.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py index 7b9f5af..6776028 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint from ask_sdk_model.interfaces.custom_interface_controller.header import Header diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py index 84e816e..7b7d35c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.custom_interface_controller.filter_match_action import FilterMatchAction diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py index 9b8d8fc..c0a8fbf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.custom_interface_controller.event import Event diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expiration.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expiration.py index b5e92c7..9b684cb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expiration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expiration.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expired_request.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expired_request.py index 15ae2cf..0df4e74 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expired_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/expired_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/filter_match_action.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/filter_match_action.py index 2589cbe..64dfe40 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/filter_match_action.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/filter_match_action.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class FilterMatchAction(Enum): SEND = "SEND" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FilterMatchAction): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/header.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/header.py index e388eb1..3303174 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/header.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/header.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py index 00c0e47..c0280eb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint from ask_sdk_model.interfaces.custom_interface_controller.header import Header diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py index befd450..75364bd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.custom_interface_controller.expiration import Expiration from ask_sdk_model.interfaces.custom_interface_controller.event_filter import EventFilter diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/stop_event_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/stop_event_handler_directive.py index c80e80f..682ad8a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/stop_event_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/stop_event_handler_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/back_button_behavior.py b/ask-sdk-model/ask_sdk_model/interfaces/display/back_button_behavior.py index 5170a1d..80f4214 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/back_button_behavior.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/back_button_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class BackButtonBehavior(Enum): VISIBLE = "VISIBLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, BackButtonBehavior): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py index 5397aca..b558691 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py index b45581f..bef1ec3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py index 06d62e8..de8d3d7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py index 3d2269d..05810a8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py index 6f6e85d..42e488d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/display_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/display/display_interface.py index 2d71ded..d340bc7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/display_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/display_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/display_state.py b/ask-sdk-model/ask_sdk_model/interfaces/display/display_state.py index 38e1a48..27dec7c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/display_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/display_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/element_selected_request.py b/ask-sdk-model/ask_sdk_model/interfaces/display/element_selected_request.py index a83c26a..01472df 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/element_selected_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/element_selected_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py b/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py index f784c8e..9e9987a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py index 9b7e5a3..3998652 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.hint import Hint diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/image.py b/ask-sdk-model/ask_sdk_model/interfaces/display/image.py index fc64e44..f790e79 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.image_instance import ImageInstance diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py b/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py index 1ba772e..191ccab 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.image_size import ImageSize diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/image_size.py b/ask-sdk-model/ask_sdk_model/interfaces/display/image_size.py index b47b7ac..d72fc99 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image_size.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image_size.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ImageSize(Enum): X_LARGE = "X_LARGE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ImageSize): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py index a177e29..946d7e7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.image import Image from ask_sdk_model.interfaces.display.text_content import TextContent diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py index 35e9c96..478ddda 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py index af2182c..5680e0c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior from ask_sdk_model.interfaces.display.image import Image diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text.py b/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text.py index 65d629c..bc9c07d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text_hint.py b/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text_hint.py index 11baeba..b264897 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text_hint.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/plain_text_hint.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py index a600ad2..6004ff6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.template import Template diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/rich_text.py b/ask-sdk-model/ask_sdk_model/interfaces/display/rich_text.py index 7ba8349..fcc47b8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/rich_text.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/rich_text.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/template.py b/ask-sdk-model/ask_sdk_model/interfaces/display/template.py index 494ee61..e634b37 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/template.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/template.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py b/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py index e9f31d0..70b60f9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.display.text_field import TextField diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/text_field.py b/ask-sdk-model/ask_sdk_model/interfaces/display/text_field.py index 40b1aca..2b56141 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/text_field.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/text_field.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py index 4637723..20e7964 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.gadget_controller.set_light_parameters import SetLightParameters diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py index 9c7c964..870ca1d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.input_handler_event import InputHandlerEvent diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py index 1b79422..58858d7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.recognizer import Recognizer from ask_sdk_model.services.game_engine.event import Event diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/stop_input_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/stop_input_handler_directive.py index ec7ac70..826f474 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/stop_input_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/stop_input_handler_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py index 9a474df..f850297 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class Access(Enum): UNKNOWN = "UNKNOWN" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Access): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py index 16f888f..336fa18 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py index 58e61db..ac1af07 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_interface.py index 8a0effb..5f7f3c9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py index 653944f..1600f47 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.geolocation.coordinate import Coordinate from ask_sdk_model.interfaces.geolocation.altitude import Altitude diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py index d6cb992..2e8a833 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py index 7cf41a5..8b4b1b9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.geolocation.status import Status from ask_sdk_model.interfaces.geolocation.access import Access diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py index 9c873c6..02cad3f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py index 41e3566..18d30b1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Status(Enum): STOPPED = "STOPPED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/messaging/message_received_request.py b/ask-sdk-model/ask_sdk_model/interfaces/messaging/message_received_request.py index 1652fd7..52e2a23 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/messaging/message_received_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/messaging/message_received_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/in_skill_product.py b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/in_skill_product.py index 0d0d194..12518dc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/in_skill_product.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/in_skill_product.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/purchase_result.py b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/purchase_result.py index b193beb..92b340b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/purchase_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/purchase_result.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class PurchaseResult(Enum): ALREADY_PURCHASED = "ALREADY_PURCHASED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PurchaseResult): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/navigation/assistance/announce_road_regulation.py b/ask-sdk-model/ask_sdk_model/interfaces/navigation/assistance/announce_road_regulation.py index 2fadd53..3d92db0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/navigation/assistance/announce_road_regulation.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/navigation/assistance/announce_road_regulation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/navigation/navigation_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/navigation/navigation_interface.py index e6a76df..1be0339 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/navigation/navigation_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/navigation/navigation_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/next_command_issued_request.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/next_command_issued_request.py index f365083..7167b4c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/next_command_issued_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/next_command_issued_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/pause_command_issued_request.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/pause_command_issued_request.py index 2bbea9f..1672236 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/pause_command_issued_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/pause_command_issued_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/play_command_issued_request.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/play_command_issued_request.py index c64e368..e1adfcd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/play_command_issued_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/play_command_issued_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/previous_command_issued_request.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/previous_command_issued_request.py index bb61318..34c9405 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/previous_command_issued_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/previous_command_issued_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/error.py b/ask-sdk-model/ask_sdk_model/interfaces/system/error.py index 1c26ed6..e815e1c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.system.error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/error_cause.py b/ask-sdk-model/ask_sdk_model/interfaces/system/error_cause.py index 7da87a7..29e4171 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/error_cause.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/error_cause.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/error_type.py b/ask-sdk-model/ask_sdk_model/interfaces/system/error_type.py index 5417f60..4157139 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/error_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/error_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class ErrorType(Enum): INTERNAL_SERVICE_ERROR = "INTERNAL_SERVICE_ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ErrorType): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py b/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py index 35e1899..da91ff8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.system.error import Error from ask_sdk_model.interfaces.system.error_cause import ErrorCause diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py index 9e7a749..daff577 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.device import Device from ask_sdk_model.interfaces.system_unit.unit import Unit diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py index 9672cdd..ce7be4a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py index 3ad6dc0..c12019c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.status import Status diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py index e99b136..dbb892b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.videoapp.video_item import VideoItem diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py index c232680..f157660 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_app_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_app_interface.py index c36030a..b852d8f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_app_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_app_interface.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py index 1ca47d2..5a8228e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.videoapp.metadata import Metadata diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index b6e8ad1..0c47482 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -22,7 +22,7 @@ from .mode import Mode from .keyboard import Keyboard from .aplt_viewport_state import APLTViewportState -from .viewport_state_video import Video +from .viewport_state_video import ViewportStateVideo from .viewport_state import ViewportState from .experience import Experience from .dialog import Dialog diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py index 9bb652b..eb4e9fa 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.dialog import Dialog from ask_sdk_model.interfaces.viewport.viewport_video import ViewportVideo diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py index 6242246..1dd318b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.apl.current_configuration import CurrentConfiguration diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py index 28abcae..66405c3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.shape import Shape from ask_sdk_model.interfaces.viewport.presentation_type import PresentationType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/character_format.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/character_format.py index b262641..8fd77dd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/character_format.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/character_format.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class CharacterFormat(Enum): SEVEN_SEGMENT = "SEVEN_SEGMENT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CharacterFormat): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/inter_segment.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/inter_segment.py index ce690a7..922eb82 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/inter_segment.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/inter_segment.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/viewport_profile.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/viewport_profile.py index 3022683..1b3dde8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/viewport_profile.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/viewport_profile.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class ViewportProfile(Enum): FOUR_CHARACTER_CLOCK = "FOUR_CHARACTER_CLOCK" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ViewportProfile): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py index c0ba5b9..b5d9286 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.aplt.viewport_profile import ViewportProfile from ask_sdk_model.interfaces.viewport.aplt.inter_segment import InterSegment diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/dialog.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/dialog.py index 70fcfcc..a72f2fa 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/dialog.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/dialog.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Dialog(Enum): UNSUPPORTED = "UNSUPPORTED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Dialog): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py index fa3e47b..fed10d1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py index 4cc8eb6..857c76a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class Keyboard(Enum): DIRECTION = "DIRECTION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Keyboard): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/mode.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/mode.py index 9880d3a..d07e0ba 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/mode.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class Mode(Enum): TV = "TV" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Mode): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/presentation_type.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/presentation_type.py index 152b0d0..522410b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/presentation_type.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/presentation_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PresentationType(Enum): OVERLAY = "OVERLAY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PresentationType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py index 016a2a6..8cfa0eb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Shape(Enum): ROUND = "ROUND" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Shape): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/continuous_viewport_size.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/continuous_viewport_size.py index 905a1ba..884fa6d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/continuous_viewport_size.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/continuous_viewport_size.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/discrete_viewport_size.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/discrete_viewport_size.py index 16ea2fe..1e51e52 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/discrete_viewport_size.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/discrete_viewport_size.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/viewport_size.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/viewport_size.py index febaf26..99bd8a7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/viewport_size.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/viewport_size.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py index ff1e7f9..73ad1c3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class Touch(Enum): SINGLE = "SINGLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Touch): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/typed_viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/typed_viewport_state.py index c02931e..dece1c3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/typed_viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/typed_viewport_state.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/video/codecs.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/video/codecs.py index ff46be0..cdae357 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/video/codecs.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/video/codecs.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Codecs(Enum): H_264_42 = "H_264_42" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Codecs): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py index 707dd74..226f6d3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py @@ -21,13 +21,13 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.experience import Experience + from ask_sdk_model.interfaces.viewport.viewport_state_video import ViewportStateVideo from ask_sdk_model.interfaces.viewport.touch import Touch from ask_sdk_model.interfaces.viewport.keyboard import Keyboard from ask_sdk_model.interfaces.viewport.shape import Shape - from ask_sdk_model.interfaces.viewport.viewport_state_video import Video from ask_sdk_model.interfaces.viewport.mode import Mode @@ -57,7 +57,7 @@ class ViewportState(object): :param keyboard: The physical button input mechanisms supported by the device. An empty array indicates physical button input is unsupported. :type keyboard: (optional) list[ask_sdk_model.interfaces.viewport.keyboard.Keyboard] :param video: - :type video: (optional) ask_sdk_model.interfaces.viewport.viewport_state_video.Video + :type video: (optional) ask_sdk_model.interfaces.viewport.viewport_state_video.ViewportStateVideo """ deserialized_types = { @@ -71,7 +71,7 @@ class ViewportState(object): 'current_pixel_height': 'float', 'touch': 'list[ask_sdk_model.interfaces.viewport.touch.Touch]', 'keyboard': 'list[ask_sdk_model.interfaces.viewport.keyboard.Keyboard]', - 'video': 'ask_sdk_model.interfaces.viewport.viewport_state_video.Video' + 'video': 'ask_sdk_model.interfaces.viewport.viewport_state_video.ViewportStateVideo' } # type: Dict attribute_map = { @@ -90,7 +90,7 @@ class ViewportState(object): supports_multiple_types = False def __init__(self, experiences=None, mode=None, shape=None, pixel_width=None, pixel_height=None, dpi=None, current_pixel_width=None, current_pixel_height=None, touch=None, keyboard=None, video=None): - # type: (Optional[List[Experience]], Optional[Mode], Optional[Shape], Optional[float], Optional[float], Optional[float], Optional[float], Optional[float], Optional[List[Touch]], Optional[List[Keyboard]], Optional[Video]) -> None + # type: (Optional[List[Experience]], Optional[Mode], Optional[Shape], Optional[float], Optional[float], Optional[float], Optional[float], Optional[float], Optional[List[Touch]], Optional[List[Keyboard]], Optional[ViewportStateVideo]) -> None """This object contains the characteristics related to the device's viewport. :param experiences: The experiences supported by the device, in descending order of arcMinuteWidth and arcMinuteHeight. @@ -114,7 +114,7 @@ def __init__(self, experiences=None, mode=None, shape=None, pixel_width=None, pi :param keyboard: The physical button input mechanisms supported by the device. An empty array indicates physical button input is unsupported. :type keyboard: (optional) list[ask_sdk_model.interfaces.viewport.keyboard.Keyboard] :param video: - :type video: (optional) ask_sdk_model.interfaces.viewport.viewport_state_video.Video + :type video: (optional) ask_sdk_model.interfaces.viewport.viewport_state_video.ViewportStateVideo """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py index 0554cfa..4dc8d8b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.video.codecs import Codecs -class Video(object): +class ViewportStateVideo(object): """ Details of the technologies which are available for playing video on the device. @@ -98,7 +98,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Video): + if not isinstance(other, ViewportStateVideo): return False return self.__dict__ == other.__dict__ diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py index 9ddc344..28a4f4f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.viewport.video.codecs import Codecs diff --git a/ask-sdk-model/ask_sdk_model/launch_request.py b/ask-sdk-model/ask_sdk_model/launch_request.py index f464725..7019aa6 100644 --- a/ask-sdk-model/ask_sdk_model/launch_request.py +++ b/ask-sdk-model/ask_sdk_model/launch_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.task import Task diff --git a/ask-sdk-model/ask_sdk_model/list_slot_value.py b/ask-sdk-model/ask_sdk_model/list_slot_value.py index 1d05c43..2dc7648 100644 --- a/ask-sdk-model/ask_sdk_model/list_slot_value.py +++ b/ask-sdk-model/ask_sdk_model/list_slot_value.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slot_value import SlotValue diff --git a/ask-sdk-model/ask_sdk_model/permission_status.py b/ask-sdk-model/ask_sdk_model/permission_status.py index 731d73f..4a2570e 100644 --- a/ask-sdk-model/ask_sdk_model/permission_status.py +++ b/ask-sdk-model/ask_sdk_model/permission_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PermissionStatus(Enum): DENIED = "DENIED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PermissionStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/permissions.py b/ask-sdk-model/ask_sdk_model/permissions.py index 8d5349f..9cbc93c 100644 --- a/ask-sdk-model/ask_sdk_model/permissions.py +++ b/ask-sdk-model/ask_sdk_model/permissions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.scope import Scope diff --git a/ask-sdk-model/ask_sdk_model/person.py b/ask-sdk-model/ask_sdk_model/person.py index 0e257a3..47fd220 100644 --- a/ask-sdk-model/ask_sdk_model/person.py +++ b/ask-sdk-model/ask_sdk_model/person.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 7fb8add..5021d43 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/request_envelope.py b/ask-sdk-model/ask_sdk_model/request_envelope.py index e54643b..9df703a 100644 --- a/ask-sdk-model/ask_sdk_model/request_envelope.py +++ b/ask-sdk-model/ask_sdk_model/request_envelope.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.session import Session from ask_sdk_model.request import Request diff --git a/ask-sdk-model/ask_sdk_model/response.py b/ask-sdk-model/ask_sdk_model/response.py index 969a285..b74f049 100644 --- a/ask-sdk-model/ask_sdk_model/response.py +++ b/ask-sdk-model/ask_sdk_model/response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.canfulfill.can_fulfill_intent import CanFulfillIntent from ask_sdk_model.ui.card import Card diff --git a/ask-sdk-model/ask_sdk_model/response_envelope.py b/ask-sdk-model/ask_sdk_model/response_envelope.py index e513cca..fe40b3b 100644 --- a/ask-sdk-model/ask_sdk_model/response_envelope.py +++ b/ask-sdk-model/ask_sdk_model/response_envelope.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.response import Response diff --git a/ask-sdk-model/ask_sdk_model/scope.py b/ask-sdk-model/ask_sdk_model/scope.py index 53caf66..4dc0d4f 100644 --- a/ask-sdk-model/ask_sdk_model/scope.py +++ b/ask-sdk-model/ask_sdk_model/scope.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.permission_status import PermissionStatus diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/address.py b/ask-sdk-model/ask_sdk_model/services/device_address/address.py index 7589e86..019835c 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/address.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/address.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py b/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py index 8d4e55b..541f01f 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py @@ -53,7 +53,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_country_and_postal_code(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ShortAddress, Error] + # type: (str, **Any) -> Union[ApiResponse, object, ShortAddress, Error] """ Gets the country and postal code of a device @@ -62,7 +62,7 @@ def get_country_and_postal_code(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ShortAddress, Error] + :rtype: Union[ApiResponse, object, ShortAddress, Error] """ operation_name = "get_country_and_postal_code" params = locals() @@ -120,9 +120,10 @@ def get_country_and_postal_code(self, device_id, **kwargs): if full_response: return api_response return api_response.body + def get_full_address(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Address, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Address, Error] """ Gets the address of a device @@ -131,7 +132,7 @@ def get_full_address(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Address, Error] + :rtype: Union[ApiResponse, object, Address, Error] """ operation_name = "get_full_address" params = locals() @@ -189,3 +190,4 @@ def get_full_address(self, device_id, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/error.py b/ask-sdk-model/ask_sdk_model/services/device_address/error.py index 09e0742..934d361 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/error.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/short_address.py b/ask-sdk-model/ask_sdk_model/services/device_address/short_address.py index 2922933..a7fa616 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/short_address.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/short_address.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/directive/directive.py b/ask-sdk-model/ask_sdk_model/services/directive/directive.py index f607f10..d06ff72 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/directive.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py b/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py index 5e58d23..e1c38fd 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py @@ -52,7 +52,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def enqueue(self, send_directive_request, **kwargs): - # type: (SendDirectiveRequest, **Any) -> Union[ApiResponse, Error] + # type: (SendDirectiveRequest, **Any) -> Union[ApiResponse, object, Error] """ Send directives to Alexa. @@ -61,7 +61,7 @@ def enqueue(self, send_directive_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "enqueue" params = locals() @@ -118,3 +118,4 @@ def enqueue(self, send_directive_request, **kwargs): if full_response: return api_response + return None diff --git a/ask-sdk-model/ask_sdk_model/services/directive/error.py b/ask-sdk-model/ask_sdk_model/services/directive/error.py index fc937d4..5af1f06 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/error.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/directive/header.py b/ask-sdk-model/ask_sdk_model/services/directive/header.py index 328e1ae..1131137 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/header.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/header.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py b/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py index 52e1c32..d2385df 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.directive.header import Header from ask_sdk_model.services.directive.directive import Directive diff --git a/ask-sdk-model/ask_sdk_model/services/directive/speak_directive.py b/ask-sdk-model/ask_sdk_model/services/directive/speak_directive.py index f65b2fb..46ff3c3 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/speak_directive.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/speak_directive.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_capability.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_capability.py index d0f1a98..e1a91a2 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_capability.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_capability.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py index 7ce57dc..0d7c128 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.endpoint_enumeration.endpoint_info import EndpointInfo diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py index 274d851..046179f 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py @@ -52,14 +52,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_endpoints(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, EndpointEnumerationResponse, Error] + # type: (**Any) -> Union[ApiResponse, object, EndpointEnumerationResponse, Error] """ This API is invoked by the skill to retrieve endpoints connected to the Echo device. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, EndpointEnumerationResponse, Error] + :rtype: Union[ApiResponse, object, EndpointEnumerationResponse, Error] """ operation_name = "get_endpoints" params = locals() @@ -67,7 +67,7 @@ def get_endpoints(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v1/endpoints/' + resource_path = '/v1/endpoints' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -112,3 +112,4 @@ def get_endpoints(self, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py index df2e48a..da8d402 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.endpoint_enumeration.endpoint_capability import EndpointCapability diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/error.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/error.py index e15fd68..e3c1569 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/error.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/animation_step.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/animation_step.py index 9e37ce3..c798875 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/animation_step.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/animation_step.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py index 707386b..d0e6b80 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.gadget_controller.animation_step import AnimationStep diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py index b651e4f..6454e10 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.gadget_controller.light_animation import LightAnimation from ask_sdk_model.services.gadget_controller.trigger_event_type import TriggerEventType diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/trigger_event_type.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/trigger_event_type.py index b6e1449..7677c7d 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/trigger_event_type.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/trigger_event_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class TriggerEventType(Enum): none = "none" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TriggerEventType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/deviation_recognizer.py b/ask-sdk-model/ask_sdk_model/services/game_engine/deviation_recognizer.py index c852958..91514db 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/deviation_recognizer.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/deviation_recognizer.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/event.py index 0907c45..3485e2c 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.event_reporting_type import EventReportingType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/event_reporting_type.py b/ask-sdk-model/ask_sdk_model/services/game_engine/event_reporting_type.py index 150b897..6fb19e2 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/event_reporting_type.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/event_reporting_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class EventReportingType(Enum): matches = "matches" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EventReportingType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py index c7a5fed..77616b7 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event_action_type.py b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event_action_type.py index 59a4568..9df9998 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event_action_type.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event_action_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class InputEventActionType(Enum): up = "up" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, InputEventActionType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py index 75b2ed2..a4bb3ed 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.input_event import InputEvent diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py index a7238a9..38f24e4 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py index 885c759..615cacb 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.game_engine.pattern import Pattern from ask_sdk_model.services.game_engine.pattern_recognizer_anchor_type import PatternRecognizerAnchorType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer_anchor_type.py b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer_anchor_type.py index 22265d7..948dd2e 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer_anchor_type.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer_anchor_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class PatternRecognizerAnchorType(Enum): anywhere = "anywhere" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PatternRecognizerAnchorType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/progress_recognizer.py b/ask-sdk-model/ask_sdk_model/services/game_engine/progress_recognizer.py index d7451f9..8ddae96 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/progress_recognizer.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/progress_recognizer.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/recognizer.py b/ask-sdk-model/ask_sdk_model/services/game_engine/recognizer.py index e7c796a..68dbd73 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/recognizer.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/recognizer.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py index 1c493c2..201d52d 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.alexa_list_item import AlexaListItem from ask_sdk_model.services.list_management.list_state import ListState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py index 853d681..799f6c4 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_state import ListItemState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py index 61ca037..fb1547e 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_state import ListState from ask_sdk_model.services.list_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py index 785e3e9..67c28fe 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.alexa_list_metadata import AlexaListMetadata diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py index 5a53715..a9bf919 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_state import ListItemState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py index c5c925e..94ee094 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_state import ListState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/error.py b/ask-sdk-model/ask_sdk_model/services/list_management/error.py index b2dc737..a10b758 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/error.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/forbidden_error.py b/ask-sdk-model/ask_sdk_model/services/list_management/forbidden_error.py index 7876c49..c888285 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/forbidden_error.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/forbidden_error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/links.py b/ask-sdk-model/ask_sdk_model/services/list_management/links.py index de51e17..c85e9f3 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/links.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/links.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_body.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_body.py index bd8cf97..b26c392 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_body.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py index 8fdf03c..348b240 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_body import ListBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py index 2f70b0c..c5e7b01 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_body import ListBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_item_body.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_item_body.py index 2623bf8..d4a30f0 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_item_body.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_item_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_item_state.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_item_state.py index 5b96061..3bd9eb9 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_item_state.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_item_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class ListItemState(Enum): completed = "completed" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ListItemState): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py index 8a49c26..456faf4 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_body import ListItemBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py index 4867043..50af93a 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_body import ListItemBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py index 430b11d..4b804a8 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_body import ListItemBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py index 89c80ee..20f1a56 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py @@ -60,14 +60,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_lists_metadata(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, ForbiddenError, Error, AlexaListsMetadata] + # type: (**Any) -> Union[ApiResponse, object, ForbiddenError, Error, AlexaListsMetadata] """ Retrieves the metadata for all customer lists, including the customer’s default lists. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ForbiddenError, Error, AlexaListsMetadata] + :rtype: Union[ApiResponse, object, ForbiddenError, Error, AlexaListsMetadata] """ operation_name = "get_lists_metadata" params = locals() @@ -75,7 +75,7 @@ def get_lists_metadata(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/householdlists/' + resource_path = '/v2/householdlists' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -116,9 +116,10 @@ def get_lists_metadata(self, **kwargs): if full_response: return api_response return api_response.body + def delete_list(self, list_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error] """ This API deletes a customer custom list. @@ -127,7 +128,7 @@ def delete_list(self, list_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "delete_list" params = locals() @@ -139,7 +140,7 @@ def delete_list(self, list_id, **kwargs): raise ValueError( "Missing the required parameter `list_id` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/' + resource_path = '/v2/householdlists/{listId}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -184,9 +185,10 @@ def delete_list(self, list_id, **kwargs): if full_response: return api_response + return None def delete_list_item(self, list_id, item_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error] """ This API deletes an item in the specified list. @@ -197,7 +199,7 @@ def delete_list_item(self, list_id, item_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "delete_list_item" params = locals() @@ -213,7 +215,7 @@ def delete_list_item(self, list_id, item_id, **kwargs): raise ValueError( "Missing the required parameter `item_id` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = '/v2/householdlists/{listId}/items/{itemId}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -260,9 +262,10 @@ def delete_list_item(self, list_id, item_id, **kwargs): if full_response: return api_response + return None def get_list_item(self, list_id, item_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, AlexaListItem, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] """ This API can be used to retrieve single item with in any list by listId and itemId. This API can read list items from an archived list. Attempting to read list items from a deleted list return an ObjectNotFound 404 error. @@ -273,7 +276,7 @@ def get_list_item(self, list_id, item_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, AlexaListItem, Error] """ operation_name = "get_list_item" params = locals() @@ -289,7 +292,7 @@ def get_list_item(self, list_id, item_id, **kwargs): raise ValueError( "Missing the required parameter `item_id` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = '/v2/householdlists/{listId}/items/{itemId}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -336,9 +339,10 @@ def get_list_item(self, list_id, item_id, **kwargs): if full_response: return api_response return api_response.body + def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs): - # type: (str, str, UpdateListItemRequest, **Any) -> Union[ApiResponse, AlexaListItem, Error] + # type: (str, str, UpdateListItemRequest, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] """ API used to update an item value or item status. @@ -351,7 +355,7 @@ def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, AlexaListItem, Error] """ operation_name = "update_list_item" params = locals() @@ -371,7 +375,7 @@ def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs) raise ValueError( "Missing the required parameter `update_list_item_request` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = '/v2/householdlists/{listId}/items/{itemId}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -421,9 +425,10 @@ def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs) if full_response: return api_response return api_response.body + def create_list_item(self, list_id, create_list_item_request, **kwargs): - # type: (str, CreateListItemRequest, **Any) -> Union[ApiResponse, AlexaListItem, Error] + # type: (str, CreateListItemRequest, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] """ This API creates an item in an active list or in a default list. @@ -434,7 +439,7 @@ def create_list_item(self, list_id, create_list_item_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, AlexaListItem, Error] """ operation_name = "create_list_item" params = locals() @@ -450,7 +455,7 @@ def create_list_item(self, list_id, create_list_item_request, **kwargs): raise ValueError( "Missing the required parameter `create_list_item_request` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/items/' + resource_path = '/v2/householdlists/{listId}/items' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -498,9 +503,10 @@ def create_list_item(self, list_id, create_list_item_request, **kwargs): if full_response: return api_response return api_response.body + def update_list(self, list_id, update_list_request, **kwargs): - # type: (str, UpdateListRequest, **Any) -> Union[ApiResponse, Error, AlexaListMetadata] + # type: (str, UpdateListRequest, **Any) -> Union[ApiResponse, object, Error, AlexaListMetadata] """ This API updates a custom list. Only the list name or state can be updated. An Alexa customer can turn an archived list into an active one. @@ -511,7 +517,7 @@ def update_list(self, list_id, update_list_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, AlexaListMetadata] + :rtype: Union[ApiResponse, object, Error, AlexaListMetadata] """ operation_name = "update_list" params = locals() @@ -527,7 +533,7 @@ def update_list(self, list_id, update_list_request, **kwargs): raise ValueError( "Missing the required parameter `update_list_request` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/' + resource_path = '/v2/householdlists/{listId}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -576,9 +582,10 @@ def update_list(self, list_id, update_list_request, **kwargs): if full_response: return api_response return api_response.body + def get_list(self, list_id, status, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, AlexaList, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, AlexaList, Error] """ Retrieves the list metadata including the items in the list with requested status. @@ -589,7 +596,7 @@ def get_list(self, list_id, status, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, AlexaList, Error] + :rtype: Union[ApiResponse, object, AlexaList, Error] """ operation_name = "get_list" params = locals() @@ -605,7 +612,7 @@ def get_list(self, list_id, status, **kwargs): raise ValueError( "Missing the required parameter `status` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/{status}/' + resource_path = '/v2/householdlists/{listId}/{status}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -653,9 +660,10 @@ def get_list(self, list_id, status, **kwargs): if full_response: return api_response return api_response.body + def create_list(self, create_list_request, **kwargs): - # type: (CreateListRequest, **Any) -> Union[ApiResponse, Error, AlexaListMetadata] + # type: (CreateListRequest, **Any) -> Union[ApiResponse, object, Error, AlexaListMetadata] """ This API creates a custom list. The new list name must be different than any existing list name. @@ -664,7 +672,7 @@ def create_list(self, create_list_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, AlexaListMetadata] + :rtype: Union[ApiResponse, object, Error, AlexaListMetadata] """ operation_name = "create_list" params = locals() @@ -676,7 +684,7 @@ def create_list(self, create_list_request, **kwargs): raise ValueError( "Missing the required parameter `create_list_request` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/' + resource_path = '/v2/householdlists' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -722,3 +730,4 @@ def create_list(self, create_list_request, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_state.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_state.py index e8ca3d7..2c74b58 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_state.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class ListState(Enum): archived = "archived" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ListState): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py index 5933823..2222b3a 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_body import ListBody diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/status.py b/ask-sdk-model/ask_sdk_model/services/list_management/status.py index b5e0bb5..b582e26 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/status.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_state import ListItemState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py index 1f875f8..9641cdf 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_item_state import ListItemState diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py index 47606b8..3045fcf 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.list_management.list_state import ListState diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/entitled_state.py b/ask-sdk-model/ask_sdk_model/services/monetization/entitled_state.py index d44157f..1f14b2a 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/entitled_state.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/entitled_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class EntitledState(Enum): NOT_ENTITLED = "NOT_ENTITLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EntitledState): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py b/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py index 99e1fc7..17d3d2f 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class EntitlementReason(Enum): AUTO_ENTITLED = "AUTO_ENTITLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EntitlementReason): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/error.py b/ask-sdk-model/ask_sdk_model/services/monetization/error.py index 82ddc29..598167b 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/error.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py index 115d22d..7b34961 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.monetization.purchasable_state import PurchasableState from ask_sdk_model.services.monetization.purchase_mode import PurchaseMode diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py index b71831c..b0abe2b 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.monetization.transactions import Transactions from ask_sdk_model.services.monetization.metadata import Metadata diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py index 21196f7..65bd98e 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.monetization.in_skill_product import InSkillProduct diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py b/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py index 841366a..d79e5f0 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.monetization.result_set import ResultSet diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py b/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py index 9d6443b..39c24f6 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py @@ -55,7 +55,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_in_skill_products(self, accept_language, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error, InSkillProductsResponse] + # type: (str, **Any) -> Union[ApiResponse, object, Error, InSkillProductsResponse] """ Gets In-Skill Products based on user's context for the Skill. @@ -74,7 +74,7 @@ def get_in_skill_products(self, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, InSkillProductsResponse] + :rtype: Union[ApiResponse, object, Error, InSkillProductsResponse] """ operation_name = "get_in_skill_products" params = locals() @@ -140,9 +140,10 @@ def get_in_skill_products(self, accept_language, **kwargs): if full_response: return api_response return api_response.body + def get_in_skill_product(self, accept_language, product_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, Error, InSkillProduct] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error, InSkillProduct] """ Get In-Skill Product information based on user context for the Skill. @@ -153,7 +154,7 @@ def get_in_skill_product(self, accept_language, product_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, InSkillProduct] + :rtype: Union[ApiResponse, object, Error, InSkillProduct] """ operation_name = "get_in_skill_product" params = locals() @@ -216,9 +217,10 @@ def get_in_skill_product(self, accept_language, product_id, **kwargs): if full_response: return api_response return api_response.body + def get_in_skill_products_transactions(self, accept_language, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error, InSkillProductTransactionsResponse] + # type: (str, **Any) -> Union[ApiResponse, object, Error, InSkillProductTransactionsResponse] """ Returns transactions of all in skill products purchases of the customer @@ -239,7 +241,7 @@ def get_in_skill_products_transactions(self, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, InSkillProductTransactionsResponse] + :rtype: Union[ApiResponse, object, Error, InSkillProductTransactionsResponse] """ operation_name = "get_in_skill_products_transactions" params = locals() @@ -311,16 +313,17 @@ def get_in_skill_products_transactions(self, accept_language, **kwargs): if full_response: return api_response return api_response.body + def get_voice_purchase_setting(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, bool, Error] + # type: (**Any) -> Union[ApiResponse, object, bool, Error] """ Returns whether or not voice purchasing is enabled for the skill :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, bool, Error] + :rtype: Union[ApiResponse, object, bool, Error] """ operation_name = "get_voice_purchase_setting" params = locals() @@ -370,3 +373,4 @@ def get_voice_purchase_setting(self, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/product_type.py b/ask-sdk-model/ask_sdk_model/services/monetization/product_type.py index 4f3b94e..3682de6 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/product_type.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/product_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ProductType(Enum): CONSUMABLE = "CONSUMABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ProductType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/purchasable_state.py b/ask-sdk-model/ask_sdk_model/services/monetization/purchasable_state.py index f0e2f36..3ca4104 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/purchasable_state.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/purchasable_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PurchasableState(Enum): NOT_PURCHASABLE = "NOT_PURCHASABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PurchasableState): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/purchase_mode.py b/ask-sdk-model/ask_sdk_model/services/monetization/purchase_mode.py index 7edc4b7..51bdb34 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/purchase_mode.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/purchase_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PurchaseMode(Enum): LIVE = "LIVE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PurchaseMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/result_set.py b/ask-sdk-model/ask_sdk_model/services/monetization/result_set.py index d3c33c4..036624d 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/result_set.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/result_set.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/status.py b/ask-sdk-model/ask_sdk_model/services/monetization/status.py index 1088a7b..12a89d2 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/status.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class Status(Enum): ERROR = "ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py b/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py index bed8315..4095cc6 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.monetization.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py index 117c063..f28ff08 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.proactive_events.relevant_audience import RelevantAudience from ask_sdk_model.services.proactive_events.event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/error.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/error.py index 8f46815..9382874 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/error.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/event.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/event.py index 67c7f4a..661803a 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/event.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py index 720187e..01c8f9b 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py @@ -71,7 +71,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def create_proactive_event(self, create_proactive_event_request, stage, **kwargs): - # type: (CreateProactiveEventRequest, SkillStage, **Any) -> Union[ApiResponse, Error] + # type: (CreateProactiveEventRequest, SkillStage, **Any) -> Union[ApiResponse, object, Error] """ Create a new proactive event in live stage. @@ -80,7 +80,7 @@ def create_proactive_event(self, create_proactive_event_request, stage, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "create_proactive_event" params = locals() @@ -143,3 +143,4 @@ def create_proactive_event(self, create_proactive_event_request, stage, **kwargs if full_response: return api_response + return None diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py index da68eae..4863382 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.proactive_events.relevant_audience_type import RelevantAudienceType diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py index cff0ea5..1b30fcd 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class RelevantAudienceType(Enum): Multicast = "Multicast" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RelevantAudienceType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py index a6e53c0..00987e9 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SkillStage(Enum): LIVE = "LIVE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SkillStage): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index b9ae74f..28fe407 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -27,7 +27,7 @@ from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest from .recurrence_freq import RecurrenceFreq from .spoken_text import SpokenText -from .alert_info_spoken_info import SpokenInfo +from .alert_info_spoken_info import AlertInfoSpokenInfo from .status import Status from .recurrence import Recurrence from .recurrence_day import RecurrenceDay diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py index 327629a..ee90752 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.alert_info_spoken_info import SpokenInfo + from ask_sdk_model.services.reminder_management.alert_info_spoken_info import AlertInfoSpokenInfo class AlertInfo(object): @@ -32,11 +32,11 @@ class AlertInfo(object): :param spoken_info: - :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo + :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo """ deserialized_types = { - 'spoken_info': 'ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo' + 'spoken_info': 'ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo' } # type: Dict attribute_map = { @@ -45,11 +45,11 @@ class AlertInfo(object): supports_multiple_types = False def __init__(self, spoken_info=None): - # type: (Optional[SpokenInfo]) -> None + # type: (Optional[AlertInfoSpokenInfo]) -> None """Alert info for VUI / GUI :param spoken_info: - :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo + :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py index 33c2409..b67f7b0 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.spoken_text import SpokenText -class SpokenInfo(object): +class AlertInfoSpokenInfo(object): """ Parameters for VUI presentation of the reminder @@ -98,7 +98,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, SpokenInfo): + if not isinstance(other, AlertInfoSpokenInfo): return False return self.__dict__ == other.__dict__ diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/error.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/error.py index 9ccae55..31804e6 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/error.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py index c874005..9726c4a 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py index b345c1c..a87ff4e 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.push_notification import PushNotification from ask_sdk_model.services.reminder_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py index 9eee8d9..679eba5 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.reminder import Reminder diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py index c7b2db8..1169cb9 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.push_notification_status import PushNotificationStatus diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification_status.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification_status.py index 2a8048a..ca3c184 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification_status.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PushNotificationStatus(Enum): DISABLED = "DISABLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PushNotificationStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py index a14a13d..dc16404 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.recurrence_freq import RecurrenceFreq from ask_sdk_model.services.reminder_management.recurrence_day import RecurrenceDay diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_day.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_day.py index e61e8de..a744428 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_day.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_day.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class RecurrenceDay(Enum): SA = "SA" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RecurrenceDay): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_freq.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_freq.py index 3de0d74..5134495 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_freq.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence_freq.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class RecurrenceFreq(Enum): DAILY = "DAILY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RecurrenceFreq): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py index edaceb2..000e3d5 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.push_notification import PushNotification from ask_sdk_model.services.reminder_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py index 8cfd2d4..657d328 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event.py index f19bd17..88d02f2 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py index cdaa826..05cf736 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.reminder_deleted_event import ReminderDeletedEvent diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py index a39938b..c1b4e6e 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py @@ -55,7 +55,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def delete_reminder(self, alert_token, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error] """ This API is invoked by the skill to delete a single reminder. @@ -64,7 +64,7 @@ def delete_reminder(self, alert_token, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "delete_reminder" params = locals() @@ -120,9 +120,10 @@ def delete_reminder(self, alert_token, **kwargs): if full_response: return api_response + return None def get_reminder(self, alert_token, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, GetReminderResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, GetReminderResponse, Error] """ This API is invoked by the skill to get a single reminder. @@ -131,7 +132,7 @@ def get_reminder(self, alert_token, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, GetReminderResponse, Error] + :rtype: Union[ApiResponse, object, GetReminderResponse, Error] """ operation_name = "get_reminder" params = locals() @@ -187,9 +188,10 @@ def get_reminder(self, alert_token, **kwargs): if full_response: return api_response return api_response.body + def update_reminder(self, alert_token, reminder_request, **kwargs): - # type: (str, ReminderRequest, **Any) -> Union[ApiResponse, ReminderResponse, Error] + # type: (str, ReminderRequest, **Any) -> Union[ApiResponse, object, ReminderResponse, Error] """ This API is invoked by the skill to update a reminder. @@ -200,7 +202,7 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ReminderResponse, Error] + :rtype: Union[ApiResponse, object, ReminderResponse, Error] """ operation_name = "update_reminder" params = locals() @@ -264,16 +266,17 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): if full_response: return api_response return api_response.body + def get_reminders(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, GetRemindersResponse, Error] + # type: (**Any) -> Union[ApiResponse, object, GetRemindersResponse, Error] """ This API is invoked by the skill to get a all reminders created by the caller. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, GetRemindersResponse, Error] + :rtype: Union[ApiResponse, object, GetRemindersResponse, Error] """ operation_name = "get_reminders" params = locals() @@ -281,7 +284,7 @@ def get_reminders(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v1/alerts/reminders/' + resource_path = '/v1/alerts/reminders' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -323,9 +326,10 @@ def get_reminders(self, **kwargs): if full_response: return api_response return api_response.body + def create_reminder(self, reminder_request, **kwargs): - # type: (ReminderRequest, **Any) -> Union[ApiResponse, ReminderResponse, Error] + # type: (ReminderRequest, **Any) -> Union[ApiResponse, object, ReminderResponse, Error] """ This API is invoked by the skill to create a new reminder. @@ -334,7 +338,7 @@ def create_reminder(self, reminder_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ReminderResponse, Error] + :rtype: Union[ApiResponse, object, ReminderResponse, Error] """ operation_name = "create_reminder" params = locals() @@ -346,7 +350,7 @@ def create_reminder(self, reminder_request, **kwargs): raise ValueError( "Missing the required parameter `reminder_request` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/reminders/' + resource_path = '/v1/alerts/reminders' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -393,3 +397,4 @@ def create_reminder(self, reminder_request, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py index ab46afc..9c9a08a 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.push_notification import PushNotification from ask_sdk_model.services.reminder_management.alert_info import AlertInfo diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py index b5bd18a..1a5abc5 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py index 89a2a25..b09130b 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py index 8052213..86eda0f 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py index 8be97d1..79e6fef 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_text.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_text.py index 490dbe5..473049a 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_text.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_text.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/status.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/status.py index b747c69..d8dfa78 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/status.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Status(Enum): COMPLETED = "COMPLETED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py index a8a8eb3..12418a9 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.reminder_management.trigger_type import TriggerType from ask_sdk_model.services.reminder_management.recurrence import Recurrence diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger_type.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger_type.py index 8779ddb..e9ed464 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger_type.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class TriggerType(Enum): SCHEDULED_RELATIVE = "SCHEDULED_RELATIVE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TriggerType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/error.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/error.py index 8f46815..9382874 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/error.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/send_skill_messaging_request.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/send_skill_messaging_request.py index d99ff43..e4e81c2 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/send_skill_messaging_request.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/send_skill_messaging_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py index 0781346..d8d2f88 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py @@ -70,7 +70,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def send_skill_message(self, user_id, send_skill_messaging_request, **kwargs): - # type: (str, SendSkillMessagingRequest, **Any) -> Union[ApiResponse, Error] + # type: (str, SendSkillMessagingRequest, **Any) -> Union[ApiResponse, object, Error] """ Send a message request to a skill for a specified user. @@ -81,7 +81,7 @@ def send_skill_message(self, user_id, send_skill_messaging_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "send_skill_message" params = locals() @@ -148,3 +148,4 @@ def send_skill_message(self, user_id, send_skill_messaging_request, **kwargs): if full_response: return api_response + return None diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py index 6936d13..080855e 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.text_to_announce import TextToAnnounce diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py b/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py index a67c159..3c2fb7f 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.display_experience import DisplayExperience diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py b/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py index ac86f3d..f658eaa 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.visibility import Visibility diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/error.py b/ask-sdk-model/ask_sdk_model/services/timer_management/error.py index 3e38a7d..b725100 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/error.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py index 8088399..e2c37db 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.text_to_confirm import TextToConfirm from ask_sdk_model.services.timer_management.task import Task diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/notification_config.py b/ask-sdk-model/ask_sdk_model/services/timer_management/notification_config.py index bc729f3..0a45e26 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/notification_config.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/notification_config.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/notify_only_operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/notify_only_operation.py index 4a29319..f585511 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/notify_only_operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/notify_only_operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/operation.py index f45139b..741a0ba 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/operation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/status.py b/ask-sdk-model/ask_sdk_model/services/timer_management/status.py index 4ec73ec..11948ae 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/status.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class Status(Enum): OFF = "OFF" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/task.py b/ask-sdk-model/ask_sdk_model/services/timer_management/task.py index 26cb104..7eaa6c4 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/task.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/task.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_announce.py b/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_announce.py index 51d37da..0982be9 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_announce.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_announce.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_confirm.py b/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_confirm.py index 39067d7..842a01b 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_confirm.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/text_to_confirm.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py index fd809bd..9c72d2e 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py @@ -54,14 +54,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def delete_timers(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, Error] + # type: (**Any) -> Union[ApiResponse, object, Error] """ Delete all timers created by the skill. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "delete_timers" params = locals() @@ -69,7 +69,7 @@ def delete_timers(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v1/alerts/timers/' + resource_path = '/v1/alerts/timers' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -111,16 +111,17 @@ def delete_timers(self, **kwargs): if full_response: return api_response + return None def get_timers(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, Error, TimersResponse] + # type: (**Any) -> Union[ApiResponse, object, Error, TimersResponse] """ Get all timers created by the skill. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, TimersResponse] + :rtype: Union[ApiResponse, object, Error, TimersResponse] """ operation_name = "get_timers" params = locals() @@ -128,7 +129,7 @@ def get_timers(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v1/alerts/timers/' + resource_path = '/v1/alerts/timers' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -170,9 +171,10 @@ def get_timers(self, **kwargs): if full_response: return api_response return api_response.body + def delete_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error] """ Delete a timer by ID. @@ -181,7 +183,7 @@ def delete_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "delete_timer" params = locals() @@ -238,9 +240,10 @@ def delete_timer(self, id, **kwargs): if full_response: return api_response + return None def get_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, TimerResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, TimerResponse, Error] """ Get timer by ID. @@ -249,7 +252,7 @@ def get_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, TimerResponse, Error] + :rtype: Union[ApiResponse, object, TimerResponse, Error] """ operation_name = "get_timer" params = locals() @@ -306,9 +309,10 @@ def get_timer(self, id, **kwargs): if full_response: return api_response return api_response.body + def pause_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error] """ Pause a timer. @@ -317,7 +321,7 @@ def pause_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "pause_timer" params = locals() @@ -375,9 +379,10 @@ def pause_timer(self, id, **kwargs): if full_response: return api_response + return None def resume_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error] """ Resume a timer. @@ -386,7 +391,7 @@ def resume_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error] + :rtype: Union[ApiResponse, object, Error] """ operation_name = "resume_timer" params = locals() @@ -444,9 +449,10 @@ def resume_timer(self, id, **kwargs): if full_response: return api_response + return None def create_timer(self, timer_request, **kwargs): - # type: (TimerRequest, **Any) -> Union[ApiResponse, TimerResponse, Error] + # type: (TimerRequest, **Any) -> Union[ApiResponse, object, TimerResponse, Error] """ Create a new timer. @@ -455,7 +461,7 @@ def create_timer(self, timer_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, TimerResponse, Error] + :rtype: Union[ApiResponse, object, TimerResponse, Error] """ operation_name = "create_timer" params = locals() @@ -467,7 +473,7 @@ def create_timer(self, timer_request, **kwargs): raise ValueError( "Missing the required parameter `timer_request` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/timers/' + resource_path = '/v1/alerts/timers' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict @@ -513,3 +519,4 @@ def create_timer(self, timer_request, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py index c61165c..cba8acc 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.creation_behavior import CreationBehavior from ask_sdk_model.services.timer_management.triggering_behavior import TriggeringBehavior diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py index 0b03d1c..df5bbbf 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py index 1099f8c..2d48ace 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.timer_response import TimerResponse diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py b/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py index f683b2f..e6be7da 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.timer_management.operation import Operation from ask_sdk_model.services.timer_management.notification_config import NotificationConfig diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/visibility.py b/ask-sdk-model/ask_sdk_model/services/timer_management/visibility.py index 1ec5b5b..4af91fc 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/visibility.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/visibility.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Visibility(Enum): HIDDEN = "HIDDEN" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Visibility): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/ups/distance_units.py b/ask-sdk-model/ask_sdk_model/services/ups/distance_units.py index 87cc5ce..b01dbc5 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/distance_units.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/distance_units.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class DistanceUnits(Enum): IMPERIAL = "IMPERIAL" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DistanceUnits): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/ups/error.py b/ask-sdk-model/ask_sdk_model/services/ups/error.py index 28c436e..1bb88f8 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/error.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.services.ups.error_code import ErrorCode diff --git a/ask-sdk-model/ask_sdk_model/services/ups/error_code.py b/ask-sdk-model/ask_sdk_model/services/ups/error_code.py index b67a7ec..d2fd48d 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/error_code.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/error_code.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class ErrorCode(Enum): UNKNOWN_ERROR = "UNKNOWN_ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ErrorCode): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/ups/phone_number.py b/ask-sdk-model/ask_sdk_model/services/ups/phone_number.py index 72cf5c0..c54689c 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/phone_number.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/phone_number.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/services/ups/temperature_unit.py b/ask-sdk-model/ask_sdk_model/services/ups/temperature_unit.py index d8c518a..cfe2dd5 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/temperature_unit.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/temperature_unit.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class TemperatureUnit(Enum): FAHRENHEIT = "FAHRENHEIT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TemperatureUnit): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py b/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py index 7a23a61..f1902e6 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py @@ -55,14 +55,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_profile_email(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error] """ Gets the email address of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:email:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_profile_email" params = locals() @@ -114,16 +114,17 @@ def get_profile_email(self, **kwargs): if full_response: return api_response return api_response.body + def get_profile_given_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error] """ Gets the given name (first name) of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:given_name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_profile_given_name" params = locals() @@ -175,16 +176,17 @@ def get_profile_given_name(self, **kwargs): if full_response: return api_response return api_response.body + def get_profile_mobile_number(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, PhoneNumber, Error] + # type: (**Any) -> Union[ApiResponse, object, PhoneNumber, Error] """ Gets the mobile phone number of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:mobile_number:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, PhoneNumber, Error] + :rtype: Union[ApiResponse, object, PhoneNumber, Error] """ operation_name = "get_profile_mobile_number" params = locals() @@ -236,16 +238,17 @@ def get_profile_mobile_number(self, **kwargs): if full_response: return api_response return api_response.body + def get_profile_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error] """ Gets the full name of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_profile_name" params = locals() @@ -297,9 +300,10 @@ def get_profile_name(self, **kwargs): if full_response: return api_response return api_response.body + def get_system_distance_units(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, Error, DistanceUnits] + # type: (str, **Any) -> Union[ApiResponse, object, Error, DistanceUnits] """ Gets the distance measurement unit of the device. Does not require explict customer consent. @@ -308,7 +312,7 @@ def get_system_distance_units(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, Error, DistanceUnits] + :rtype: Union[ApiResponse, object, Error, DistanceUnits] """ operation_name = "get_system_distance_units" params = locals() @@ -366,9 +370,10 @@ def get_system_distance_units(self, device_id, **kwargs): if full_response: return api_response return api_response.body + def get_system_temperature_unit(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, TemperatureUnit, Error] + # type: (str, **Any) -> Union[ApiResponse, object, TemperatureUnit, Error] """ Gets the temperature measurement units of the device. Does not require explict customer consent. @@ -377,7 +382,7 @@ def get_system_temperature_unit(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, TemperatureUnit, Error] + :rtype: Union[ApiResponse, object, TemperatureUnit, Error] """ operation_name = "get_system_temperature_unit" params = locals() @@ -435,9 +440,10 @@ def get_system_temperature_unit(self, device_id, **kwargs): if full_response: return api_response return api_response.body + def get_system_time_zone(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, str, Error] + # type: (str, **Any) -> Union[ApiResponse, object, str, Error] """ Gets the time zone of the device. Does not require explict customer consent. @@ -446,7 +452,7 @@ def get_system_time_zone(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_system_time_zone" params = locals() @@ -504,16 +510,17 @@ def get_system_time_zone(self, device_id, **kwargs): if full_response: return api_response return api_response.body + def get_persons_profile_given_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error] """ Gets the given name (first name) of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:given_name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_persons_profile_given_name" params = locals() @@ -565,16 +572,17 @@ def get_persons_profile_given_name(self, **kwargs): if full_response: return api_response return api_response.body + def get_persons_profile_mobile_number(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, PhoneNumber, Error] + # type: (**Any) -> Union[ApiResponse, object, PhoneNumber, Error] """ Gets the mobile phone number of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:mobile_number:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, PhoneNumber, Error] + :rtype: Union[ApiResponse, object, PhoneNumber, Error] """ operation_name = "get_persons_profile_mobile_number" params = locals() @@ -626,16 +634,17 @@ def get_persons_profile_mobile_number(self, **kwargs): if full_response: return api_response return api_response.body + def get_persons_profile_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error] """ Gets the full name of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, str, Error] + :rtype: Union[ApiResponse, object, str, Error] """ operation_name = "get_persons_profile_name" params = locals() @@ -687,3 +696,4 @@ def get_persons_profile_name(self, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/session.py b/ask-sdk-model/ask_sdk_model/session.py index eb6ccfd..c264c16 100644 --- a/ask-sdk-model/ask_sdk_model/session.py +++ b/ask-sdk-model/ask_sdk_model/session.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.application import Application from ask_sdk_model.user import User diff --git a/ask-sdk-model/ask_sdk_model/session_ended_error.py b/ask-sdk-model/ask_sdk_model/session_ended_error.py index 4e169b0..48aca09 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_error.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.session_ended_error_type import SessionEndedErrorType diff --git a/ask-sdk-model/ask_sdk_model/session_ended_error_type.py b/ask-sdk-model/ask_sdk_model/session_ended_error_type.py index b4860af..b95df3b 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_error_type.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_error_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class SessionEndedErrorType(Enum): ENDPOINT_TIMEOUT = "ENDPOINT_TIMEOUT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SessionEndedErrorType): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/session_ended_reason.py b/ask-sdk-model/ask_sdk_model/session_ended_reason.py index feec997..e633e34 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_reason.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_reason.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SessionEndedReason(Enum): EXCEEDED_MAX_REPROMPTS = "EXCEEDED_MAX_REPROMPTS" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SessionEndedReason): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/session_ended_request.py b/ask-sdk-model/ask_sdk_model/session_ended_request.py index af5cd52..a57f714 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_request.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.session_ended_error import SessionEndedError from ask_sdk_model.session_ended_reason import SessionEndedReason diff --git a/ask-sdk-model/ask_sdk_model/session_resumed_request.py b/ask-sdk-model/ask_sdk_model/session_resumed_request.py index d89a5ac..d3553a6 100644 --- a/ask-sdk-model/ask_sdk_model/session_resumed_request.py +++ b/ask-sdk-model/ask_sdk_model/session_resumed_request.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.cause import Cause diff --git a/ask-sdk-model/ask_sdk_model/simple_slot_value.py b/ask-sdk-model/ask_sdk_model/simple_slot_value.py index 9519eca..0878bf6 100644 --- a/ask-sdk-model/ask_sdk_model/simple_slot_value.py +++ b/ask-sdk-model/ask_sdk_model/simple_slot_value.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slu.entityresolution.resolutions import Resolutions diff --git a/ask-sdk-model/ask_sdk_model/slot.py b/ask-sdk-model/ask_sdk_model/slot.py index 710b899..10d332e 100644 --- a/ask-sdk-model/ask_sdk_model/slot.py +++ b/ask-sdk-model/ask_sdk_model/slot.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slot_value import SlotValue from ask_sdk_model.slu.entityresolution.resolutions import Resolutions diff --git a/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py b/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py index b79b411..3e72924 100644 --- a/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py +++ b/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SlotConfirmationStatus(Enum): CONFIRMED = "CONFIRMED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SlotConfirmationStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/slot_value.py b/ask-sdk-model/ask_sdk_model/slot_value.py index e2b0926..bec628f 100644 --- a/ask-sdk-model/ask_sdk_model/slot_value.py +++ b/ask-sdk-model/ask_sdk_model/slot_value.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py index 8ae9591..794445e 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slu.entityresolution.status import Status from ask_sdk_model.slu.entityresolution.value_wrapper import ValueWrapper diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py index 0baca03..7b6914d 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slu.entityresolution.resolution import Resolution diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py index 6e3e9ec..38f118b 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slu.entityresolution.status_code import StatusCode diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status_code.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status_code.py index f5c2c5f..a143b9e 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status_code.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status_code.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class StatusCode(Enum): ER_ERROR_EXCEPTION = "ER_ERROR_EXCEPTION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, StatusCode): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py index 3b02489..c67cba1 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py index 05425f0..689a6b2 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.slu.entityresolution.value import Value diff --git a/ask-sdk-model/ask_sdk_model/status.py b/ask-sdk-model/ask_sdk_model/status.py index b44c1e8..a57cfd1 100644 --- a/ask-sdk-model/ask_sdk_model/status.py +++ b/ask-sdk-model/ask_sdk_model/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/supported_interfaces.py b/ask-sdk-model/ask_sdk_model/supported_interfaces.py index 6abfd50..95b1828 100644 --- a/ask-sdk-model/ask_sdk_model/supported_interfaces.py +++ b/ask-sdk-model/ask_sdk_model/supported_interfaces.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.audioplayer.audio_player_interface import AudioPlayerInterface from ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface import AlexaPresentationHtmlInterface diff --git a/ask-sdk-model/ask_sdk_model/task.py b/ask-sdk-model/ask_sdk_model/task.py index 24a056e..c5c8cea 100644 --- a/ask-sdk-model/ask_sdk_model/task.py +++ b/ask-sdk-model/ask_sdk_model/task.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/ask_for_permissions_consent_card.py b/ask-sdk-model/ask_sdk_model/ui/ask_for_permissions_consent_card.py index b308b7a..5bf5978 100644 --- a/ask-sdk-model/ask_sdk_model/ui/ask_for_permissions_consent_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/ask_for_permissions_consent_card.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/card.py b/ask-sdk-model/ask_sdk_model/ui/card.py index 2afae86..0136c8e 100644 --- a/ask-sdk-model/ask_sdk_model/ui/card.py +++ b/ask-sdk-model/ask_sdk_model/ui/card.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/image.py b/ask-sdk-model/ask_sdk_model/ui/image.py index f0b4354..6cee199 100644 --- a/ask-sdk-model/ask_sdk_model/ui/image.py +++ b/ask-sdk-model/ask_sdk_model/ui/image.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/link_account_card.py b/ask-sdk-model/ask_sdk_model/ui/link_account_card.py index ff4ef82..b34b9d3 100644 --- a/ask-sdk-model/ask_sdk_model/ui/link_account_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/link_account_card.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/output_speech.py b/ask-sdk-model/ask_sdk_model/ui/output_speech.py index 8ba1336..44fc95c 100644 --- a/ask-sdk-model/ask_sdk_model/ui/output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/output_speech.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.ui.play_behavior import PlayBehavior diff --git a/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py b/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py index a61b39f..68c91e3 100644 --- a/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.ui.play_behavior import PlayBehavior diff --git a/ask-sdk-model/ask_sdk_model/ui/play_behavior.py b/ask-sdk-model/ask_sdk_model/ui/play_behavior.py index 68952a5..25580ef 100644 --- a/ask-sdk-model/ask_sdk_model/ui/play_behavior.py +++ b/ask-sdk-model/ask_sdk_model/ui/play_behavior.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class PlayBehavior(Enum): REPLACE_ENQUEUED = "REPLACE_ENQUEUED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PlayBehavior): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-sdk-model/ask_sdk_model/ui/reprompt.py b/ask-sdk-model/ask_sdk_model/ui/reprompt.py index d4a94c3..624f653 100644 --- a/ask-sdk-model/ask_sdk_model/ui/reprompt.py +++ b/ask-sdk-model/ask_sdk_model/ui/reprompt.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.ui.output_speech import OutputSpeech diff --git a/ask-sdk-model/ask_sdk_model/ui/simple_card.py b/ask-sdk-model/ask_sdk_model/ui/simple_card.py index 587732a..28d167f 100644 --- a/ask-sdk-model/ask_sdk_model/ui/simple_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/simple_card.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py b/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py index eacc47e..f95e44d 100644 --- a/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.ui.play_behavior import PlayBehavior diff --git a/ask-sdk-model/ask_sdk_model/ui/standard_card.py b/ask-sdk-model/ask_sdk_model/ui/standard_card.py index 0cebef7..72188ff 100644 --- a/ask-sdk-model/ask_sdk_model/ui/standard_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/standard_card.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.ui.image import Image diff --git a/ask-sdk-model/ask_sdk_model/user.py b/ask-sdk-model/ask_sdk_model/user.py index 1d28464..4a8bde5 100644 --- a/ask-sdk-model/ask_sdk_model/user.py +++ b/ask-sdk-model/ask_sdk_model/user.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.permissions import Permissions diff --git a/ask-sdk-model/setup.py b/ask-sdk-model/setup.py index 6963446..d975050 100644 --- a/ask-sdk-model/setup.py +++ b/ask-sdk-model/setup.py @@ -19,7 +19,7 @@ here = os.path.abspath(os.path.dirname(__file__)) -about = {} +about = {} # type: ignore with open(os.path.join(here, 'ask_sdk_model', '__version__.py'), 'r', 'utf-8') as f: exec(f.read(), about) From d22c1712cb53a442b72f830f53d97ef66075750b Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 9 Oct 2020 21:41:03 +0000 Subject: [PATCH 007/111] Release 1.8.2. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 1067 ++++++++++------- .../ask_smapi_model/v0/bad_request_error.py | 6 +- .../v0/catalog/catalog_details.py | 8 +- .../v0/catalog/catalog_summary.py | 8 +- .../v0/catalog/catalog_type.py | 8 +- .../v0/catalog/catalog_usage.py | 8 +- .../v0/catalog/create_catalog_request.py | 8 +- .../v0/catalog/list_catalogs_response.py | 8 +- .../catalog/upload/complete_upload_request.py | 6 +- .../upload/content_upload_file_summary.py | 6 +- .../catalog/upload/content_upload_summary.py | 6 +- .../upload/create_content_upload_request.py | 2 +- .../upload/create_content_upload_response.py | 10 +- .../v0/catalog/upload/file_upload_status.py | 8 +- .../upload/get_content_upload_response.py | 10 +- .../v0/catalog/upload/ingestion_status.py | 8 +- .../v0/catalog/upload/ingestion_step_name.py | 8 +- .../catalog/upload/list_uploads_response.py | 8 +- .../v0/catalog/upload/pre_signed_url_item.py | 2 +- .../catalog/upload/presigned_upload_part.py | 2 +- .../catalog/upload/upload_ingestion_step.py | 10 +- .../v0/catalog/upload/upload_status.py | 8 +- .../subscriber/create_subscriber_request.py | 6 +- .../development_events/subscriber/endpoint.py | 6 +- .../subscriber/endpoint_authorization.py | 2 +- .../subscriber/endpoint_authorization_type.py | 8 +- .../subscriber/endpoint_aws_authorization.py | 2 +- .../subscriber/list_subscribers_response.py | 8 +- .../subscriber/subscriber_info.py | 6 +- .../subscriber/subscriber_status.py | 8 +- .../subscriber/subscriber_summary.py | 8 +- .../subscriber/update_subscriber_request.py | 6 +- .../create_subscription_request.py | 6 +- .../development_events/subscription/event.py | 8 +- .../list_subscriptions_response.py | 8 +- .../subscription/subscription_info.py | 6 +- .../subscription/subscription_summary.py | 6 +- .../update_subscription_request.py | 6 +- ask-smapi-model/ask_smapi_model/v0/error.py | 2 +- .../v0/event_schema/actor_attributes.py | 2 +- .../interaction_model_update.py | 6 +- .../manifest_update.py | 6 +- .../skill_certification.py | 6 +- .../alexa_development_event/skill_publish.py | 6 +- .../v0/event_schema/base_schema.py | 2 +- .../interaction_model_attributes.py | 2 +- .../interaction_model_event_attributes.py | 12 +- .../v0/event_schema/request_status.py | 8 +- .../v0/event_schema/skill_attributes.py | 2 +- .../v0/event_schema/skill_event_attributes.py | 12 +- .../event_schema/subscription_attributes.py | 2 +- ask-smapi-model/ask_smapi_model/v0/link.py | 2 +- ask-smapi-model/ask_smapi_model/v0/links.py | 6 +- .../v1/audit_logs/audit_log.py | 12 +- .../v1/audit_logs/audit_logs_request.py | 12 +- .../v1/audit_logs/audit_logs_response.py | 8 +- .../ask_smapi_model/v1/audit_logs/client.py | 2 +- .../v1/audit_logs/client_filter.py | 2 +- .../v1/audit_logs/operation.py | 2 +- .../v1/audit_logs/operation_filter.py | 2 +- .../v1/audit_logs/request_filters.py | 12 +- .../audit_logs/request_pagination_context.py | 2 +- .../v1/audit_logs/requester.py | 2 +- .../v1/audit_logs/requester_filter.py | 2 +- .../ask_smapi_model/v1/audit_logs/resource.py | 2 +- .../v1/audit_logs/resource_filter.py | 6 +- .../v1/audit_logs/resource_type_enum.py | 8 +- .../audit_logs/response_pagination_context.py | 2 +- .../v1/audit_logs/sort_direction.py | 8 +- .../v1/audit_logs/sort_field.py | 8 +- .../ask_smapi_model/v1/bad_request_error.py | 6 +- .../create_content_upload_url_request.py | 2 +- .../create_content_upload_url_response.py | 6 +- .../v1/catalog/presigned_upload_part_items.py | 2 +- .../v1/catalog/upload/catalog_upload_base.py | 2 +- .../upload/content_upload_file_summary.py | 6 +- .../v1/catalog/upload/file_upload_status.py | 8 +- .../upload/get_content_upload_response.py | 10 +- .../v1/catalog/upload/ingestion_status.py | 8 +- .../v1/catalog/upload/ingestion_step_name.py | 8 +- .../v1/catalog/upload/location.py | 2 +- .../v1/catalog/upload/pre_signed_url.py | 6 +- .../v1/catalog/upload/pre_signed_url_item.py | 2 +- .../catalog/upload/upload_ingestion_step.py | 10 +- .../v1/catalog/upload/upload_status.py | 8 +- ask-smapi-model/ask_smapi_model/v1/error.py | 2 +- .../v1/isp/associated_skill_response.py | 6 +- .../v1/isp/create_in_skill_product_request.py | 6 +- .../ask_smapi_model/v1/isp/currency.py | 8 +- .../v1/isp/custom_product_prompts.py | 18 +- .../v1/isp/distribution_countries.py | 8 +- .../ask_smapi_model/v1/isp/editable_state.py | 8 +- .../v1/isp/in_skill_product_definition.py | 14 +- .../in_skill_product_definition_response.py | 6 +- .../v1/isp/in_skill_product_summary.py | 18 +- .../isp/in_skill_product_summary_response.py | 6 +- .../v1/isp/isp_summary_links.py | 6 +- .../v1/isp/list_in_skill_product.py | 8 +- .../v1/isp/list_in_skill_product_response.py | 6 +- .../isp/localized_privacy_and_compliance.py | 2 +- .../isp/localized_publishing_information.py | 6 +- .../v1/isp/marketplace_pricing.py | 6 +- .../ask_smapi_model/v1/isp/price_listing.py | 6 +- .../v1/isp/privacy_and_compliance.py | 6 +- .../v1/isp/product_response.py | 2 +- .../ask_smapi_model/v1/isp/product_type.py | 8 +- .../v1/isp/publishing_information.py | 12 +- .../v1/isp/purchasable_state.py | 8 +- .../ask_smapi_model/v1/isp/stage.py | 8 +- .../ask_smapi_model/v1/isp/status.py | 8 +- .../v1/isp/subscription_information.py | 6 +- .../v1/isp/subscription_payment_frequency.py | 8 +- .../v1/isp/summary_marketplace_pricing.py | 6 +- .../v1/isp/summary_price_listing.py | 6 +- .../ask_smapi_model/v1/isp/tax_information.py | 6 +- .../v1/isp/tax_information_category.py | 8 +- .../v1/isp/update_in_skill_product_request.py | 6 +- ask-smapi-model/ask_smapi_model/v1/link.py | 2 +- ask-smapi-model/ask_smapi_model/v1/links.py | 6 +- .../access_token_scheme_type.py | 8 +- ...ount_linking_platform_authorization_url.py | 6 +- .../account_linking_request.py | 6 +- .../account_linking_request_payload.py | 10 +- .../account_linking_response.py | 10 +- .../account_linking/account_linking_type.py | 8 +- .../v1/skill/account_linking/platform_type.py | 8 +- .../ask_smapi_model/v1/skill/action.py | 8 +- .../v1/skill/agreement_type.py | 8 +- .../skill/alexa_hosted/alexa_hosted_config.py | 6 +- .../skill/alexa_hosted/hosted_skill_info.py | 8 +- .../alexa_hosted/hosted_skill_metadata.py | 6 +- .../alexa_hosted/hosted_skill_permission.py | 8 +- .../hosted_skill_permission_status.py | 8 +- .../hosted_skill_permission_type.py | 8 +- .../alexa_hosted/hosted_skill_repository.py | 8 +- .../hosted_skill_repository_credentials.py | 2 +- ...osted_skill_repository_credentials_list.py | 6 +- ...ed_skill_repository_credentials_request.py | 6 +- .../hosted_skill_repository_info.py | 6 +- .../alexa_hosted/hosted_skill_runtime.py | 8 +- .../alexa_hosted/hosting_configuration.py | 6 +- .../v1/skill/asr/annotation_sets/__init__.py | 2 - .../skill/asr/annotation_sets/annotation.py | 2 +- .../annotation_sets/annotation_set_items.py | 2 +- .../annotation_set_metadata.py | 2 +- .../annotation_with_audio_asset.py | 6 +- .../skill/asr/annotation_sets/audio_asset.py | 26 +- .../audio_asset_download_url.py | 100 -- .../audio_asset_download_url_expiry_time.py | 100 -- ...reate_asr_annotation_set_request_object.py | 2 +- .../create_asr_annotation_set_response.py | 2 +- ...asr_annotation_set_annotations_response.py | 8 +- ...asr_annotation_sets_properties_response.py | 2 +- .../list_asr_annotation_sets_response.py | 8 +- .../asr/annotation_sets/pagination_context.py | 2 +- ...ate_asr_annotation_set_contents_payload.py | 6 +- ...nnotation_set_properties_request_object.py | 2 +- .../v1/skill/asr/evaluations/annotation.py | 2 +- .../annotation_with_audio_asset.py | 6 +- .../v1/skill/asr/evaluations/audio_asset.py | 2 +- .../v1/skill/asr/evaluations/error_object.py | 2 +- .../skill/asr/evaluations/evaluation_items.py | 12 +- .../asr/evaluations/evaluation_metadata.py | 12 +- .../evaluations/evaluation_metadata_result.py | 8 +- .../asr/evaluations/evaluation_result.py | 12 +- .../evaluations/evaluation_result_output.py | 2 +- .../evaluations/evaluation_result_status.py | 8 +- .../asr/evaluations/evaluation_status.py | 8 +- ...t_asr_evaluation_status_response_object.py | 12 +- .../get_asr_evaluations_results_response.py | 8 +- .../list_asr_evaluations_response.py | 8 +- .../v1/skill/asr/evaluations/metrics.py | 2 +- .../asr/evaluations/pagination_context.py | 2 +- .../post_asr_evaluations_request_object.py | 6 +- .../post_asr_evaluations_response_object.py | 2 +- .../v1/skill/asr/evaluations/skill.py | 6 +- .../v1/skill/beta_test/beta_test.py | 6 +- .../v1/skill/beta_test/status.py | 8 +- .../v1/skill/beta_test/test_body.py | 2 +- .../beta_test/testers/invitation_status.py | 8 +- .../testers/list_testers_response.py | 6 +- .../v1/skill/beta_test/testers/tester.py | 2 +- .../beta_test/testers/tester_with_details.py | 6 +- .../skill/beta_test/testers/testers_list.py | 6 +- .../ask_smapi_model/v1/skill/build_details.py | 6 +- .../ask_smapi_model/v1/skill/build_step.py | 10 +- .../v1/skill/build_step_name.py | 8 +- .../certification/certification_response.py | 10 +- .../certification/certification_result.py | 6 +- .../certification/certification_status.py | 8 +- .../certification/certification_summary.py | 8 +- .../skill/certification/distribution_info.py | 6 +- .../skill/certification/estimation_update.py | 2 +- .../list_certifications_response.py | 8 +- .../certification/publication_failure.py | 2 +- .../certification/review_tracking_info.py | 6 +- .../review_tracking_info_summary.py | 2 +- .../v1/skill/clone_locale_request.py | 6 +- .../v1/skill/clone_locale_request_status.py | 8 +- .../v1/skill/clone_locale_resource_status.py | 8 +- .../v1/skill/clone_locale_stage_type.py | 8 +- .../v1/skill/clone_locale_status.py | 8 +- .../v1/skill/clone_locale_status_response.py | 10 +- .../v1/skill/create_rollback_request.py | 2 +- .../v1/skill/create_rollback_response.py | 2 +- .../v1/skill/create_skill_request.py | 8 +- .../v1/skill/create_skill_response.py | 2 +- .../create_skill_with_package_request.py | 2 +- .../evaluations/confirmation_status_type.py | 8 +- .../v1/skill/evaluations/dialog_act.py | 6 +- .../v1/skill/evaluations/dialog_act_type.py | 8 +- .../v1/skill/evaluations/intent.py | 8 +- .../v1/skill/evaluations/multi_turn.py | 6 +- .../skill/evaluations/profile_nlu_request.py | 2 +- .../skill/evaluations/profile_nlu_response.py | 10 +- .../profile_nlu_selected_intent.py | 8 +- .../resolutions_per_authority_items.py | 8 +- .../resolutions_per_authority_status.py | 6 +- .../resolutions_per_authority_status_code.py | 8 +- .../resolutions_per_authority_value_items.py | 2 +- .../v1/skill/evaluations/slot.py | 8 +- .../v1/skill/evaluations/slot_resolutions.py | 6 +- .../v1/skill/export_response.py | 8 +- .../v1/skill/export_response_skill.py | 2 +- .../ask_smapi_model/v1/skill/format.py | 8 +- .../v1/skill/history/confidence.py | 6 +- .../v1/skill/history/confidence_bin.py | 8 +- .../v1/skill/history/dialog_act.py | 6 +- .../v1/skill/history/dialog_act_name.py | 8 +- .../v1/skill/history/intent.py | 8 +- .../v1/skill/history/intent_confidence_bin.py | 8 +- .../v1/skill/history/intent_request.py | 16 +- .../skill/history/intent_request_locales.py | 8 +- .../v1/skill/history/intent_requests.py | 8 +- .../v1/skill/history/interaction_type.py | 8 +- .../v1/skill/history/locale_in_query.py | 8 +- .../v1/skill/history/publication_status.py | 8 +- .../ask_smapi_model/v1/skill/history/slot.py | 2 +- .../sort_field_for_intent_request_type.py | 8 +- .../skill/hosted_skill_deployment_details.py | 2 +- .../skill/hosted_skill_deployment_status.py | 6 +- ...l_deployment_status_last_update_request.py | 10 +- ..._skill_provisioning_last_update_request.py | 8 +- .../skill/hosted_skill_provisioning_status.py | 6 +- .../v1/skill/image_attributes.py | 8 +- .../v1/skill/image_dimension.py | 2 +- .../ask_smapi_model/v1/skill/image_size.py | 6 +- .../v1/skill/image_size_unit.py | 8 +- .../v1/skill/import_response.py | 10 +- .../v1/skill/import_response_skill.py | 6 +- .../ask_smapi_model/v1/skill/instance.py | 6 +- .../catalog/catalog_definition_output.py | 6 +- .../catalog/catalog_entity.py | 2 +- .../catalog/catalog_input.py | 2 +- .../interaction_model/catalog/catalog_item.py | 6 +- .../catalog/catalog_response.py | 2 +- .../catalog/catalog_status.py | 6 +- .../catalog/catalog_status_type.py | 8 +- .../catalog/definition_data.py | 6 +- .../catalog/last_update_request.py | 8 +- .../catalog/list_catalog_response.py | 8 +- .../catalog/update_request.py | 2 +- .../catalog_value_supplier.py | 6 +- .../conflict_detection_job_status.py | 8 +- .../conflict_detection/conflict_intent.py | 6 +- .../conflict_intent_slot.py | 2 +- .../conflict_detection/conflict_result.py | 6 +- ..._conflict_detection_job_status_response.py | 6 +- .../get_conflicts_response.py | 10 +- .../get_conflicts_response_result.py | 6 +- .../conflict_detection/paged_response.py | 8 +- .../conflict_detection/pagination_context.py | 2 +- .../delegation_strategy_type.py | 8 +- .../v1/skill/interaction_model/dialog.py | 8 +- .../skill/interaction_model/dialog_intents.py | 10 +- .../dialog_intents_prompts.py | 2 +- .../skill/interaction_model/dialog_prompts.py | 2 +- .../interaction_model/dialog_slot_items.py | 8 +- .../fallback_intent_sensitivity.py | 6 +- .../fallback_intent_sensitivity_level.py | 8 +- .../has_entity_resolution_match.py | 2 +- .../inline_value_supplier.py | 6 +- .../v1/skill/interaction_model/intent.py | 6 +- .../interaction_model_data.py | 6 +- .../interaction_model_schema.py | 10 +- .../interaction_model/is_greater_than.py | 2 +- .../is_greater_than_or_equal_to.py | 2 +- .../skill/interaction_model/is_in_duration.py | 2 +- .../v1/skill/interaction_model/is_in_set.py | 2 +- .../skill/interaction_model/is_less_than.py | 2 +- .../is_less_than_or_equal_to.py | 2 +- .../interaction_model/is_not_in_duration.py | 2 +- .../skill/interaction_model/is_not_in_set.py | 2 +- .../skill/interaction_model/jobs/catalog.py | 2 +- .../jobs/catalog_auto_refresh.py | 8 +- .../jobs/create_job_definition_request.py | 6 +- .../jobs/create_job_definition_response.py | 2 +- .../jobs/dynamic_update_error.py | 2 +- .../skill/interaction_model/jobs/execution.py | 6 +- .../jobs/execution_metadata.py | 2 +- .../jobs/get_executions_response.py | 10 +- .../jobs/interaction_model.py | 2 +- .../jobs/job_api_pagination_context.py | 14 +- .../interaction_model/jobs/job_definition.py | 6 +- .../jobs/job_definition_metadata.py | 6 +- .../jobs/job_definition_status.py | 8 +- .../jobs/job_error_details.py | 6 +- .../jobs/list_job_definitions_response.py | 10 +- .../jobs/reference_version_update.py | 8 +- .../jobs/referenced_resource_jobs_complete.py | 2 +- .../interaction_model/jobs/resource_object.py | 2 +- .../skill/interaction_model/jobs/scheduled.py | 2 +- .../jobs/slot_type_reference.py | 2 +- .../skill/interaction_model/jobs/trigger.py | 2 +- .../jobs/update_job_status_request.py | 6 +- .../jobs/validation_errors.py | 6 +- .../skill/interaction_model/language_model.py | 10 +- .../interaction_model/model_configuration.py | 6 +- .../model_type/definition_data.py | 6 +- .../interaction_model/model_type/error.py | 2 +- .../model_type/last_update_request.py | 10 +- .../model_type/list_slot_type_response.py | 8 +- .../model_type/slot_type_definition_output.py | 6 +- .../model_type/slot_type_input.py | 2 +- .../model_type/slot_type_item.py | 6 +- .../model_type/slot_type_response.py | 6 +- .../model_type/slot_type_response_entity.py | 2 +- .../model_type/slot_type_status.py | 6 +- .../model_type/slot_type_status_type.py | 8 +- .../model_type/slot_type_update_definition.py | 2 +- .../model_type/update_request.py | 6 +- .../interaction_model/model_type/warning.py | 2 +- .../multiple_values_config.py | 2 +- .../v1/skill/interaction_model/prompt.py | 6 +- .../skill/interaction_model/prompt_items.py | 6 +- .../interaction_model/prompt_items_type.py | 8 +- .../interaction_model/slot_definition.py | 6 +- .../v1/skill/interaction_model/slot_type.py | 8 +- .../interaction_model/slot_validation.py | 2 +- .../v1/skill/interaction_model/type_value.py | 6 +- .../interaction_model/type_value_object.py | 2 +- .../list_slot_type_version_response.py | 8 +- .../type_version/slot_type_update.py | 6 +- .../type_version/slot_type_update_object.py | 2 +- .../type_version/slot_type_version_data.py | 6 +- .../slot_type_version_data_object.py | 6 +- .../type_version/slot_type_version_item.py | 6 +- .../type_version/value_supplier_object.py | 6 +- .../type_version/version_data.py | 6 +- .../type_version/version_data_object.py | 6 +- .../skill/interaction_model/value_catalog.py | 2 +- .../skill/interaction_model/value_supplier.py | 2 +- .../version/catalog_entity_version.py | 6 +- .../version/catalog_update.py | 2 +- .../version/catalog_values.py | 8 +- .../version/catalog_version_data.py | 6 +- .../interaction_model/version/input_source.py | 2 +- .../skill/interaction_model/version/links.py | 6 +- .../list_catalog_entity_versions_response.py | 8 +- .../version/list_response.py | 8 +- .../interaction_model/version/value_schema.py | 6 +- .../version/value_schema_name.py | 2 +- .../interaction_model/version/version_data.py | 6 +- .../version/version_items.py | 6 +- .../interaction_model_last_update_request.py | 10 +- .../v1/skill/invocations/end_point_regions.py | 8 +- .../invocations/invocation_response_result.py | 8 +- .../invocations/invocation_response_status.py | 8 +- .../skill/invocations/invoke_skill_request.py | 8 +- .../invocations/invoke_skill_response.py | 8 +- .../v1/skill/invocations/metrics.py | 2 +- .../v1/skill/invocations/request.py | 2 +- .../v1/skill/invocations/response.py | 2 +- .../skill/invocations/skill_execution_info.py | 10 +- .../v1/skill/invocations/skill_request.py | 2 +- .../v1/skill/list_skill_response.py | 8 +- .../v1/skill/list_skill_versions_response.py | 8 +- .../skill/manifest/alexa_for_business_apis.py | 10 +- .../manifest/alexa_for_business_interface.py | 8 +- .../alexa_presentation_apl_interface.py | 6 +- .../alexa_presentation_html_interface.py | 2 +- .../v1/skill/manifest/audio_interface.py | 2 +- .../v1/skill/manifest/connections.py | 6 +- .../v1/skill/manifest/connections_payload.py | 2 +- .../v1/skill/manifest/custom_apis.py | 14 +- .../v1/skill/manifest/custom_connections.py | 6 +- .../v1/skill/manifest/custom_interface.py | 2 +- .../v1/skill/manifest/display_interface.py | 8 +- .../display_interface_apml_version.py | 8 +- .../display_interface_template_version.py | 8 +- .../skill/manifest/distribution_countries.py | 8 +- .../v1/skill/manifest/distribution_mode.py | 8 +- .../v1/skill/manifest/event_name.py | 6 +- .../v1/skill/manifest/event_name_type.py | 12 +- .../v1/skill/manifest/event_publications.py | 2 +- .../v1/skill/manifest/flash_briefing_apis.py | 6 +- .../manifest/flash_briefing_content_type.py | 8 +- .../v1/skill/manifest/flash_briefing_genre.py | 8 +- .../flash_briefing_update_frequency.py | 8 +- .../manifest/gadget_controller_interface.py | 2 +- .../v1/skill/manifest/gadget_support.py | 8 +- .../skill/manifest/game_engine_interface.py | 2 +- .../v1/skill/manifest/health_alias.py | 2 +- .../v1/skill/manifest/health_apis.py | 12 +- .../v1/skill/manifest/health_interface.py | 10 +- .../skill/manifest/health_protocol_version.py | 8 +- .../v1/skill/manifest/health_request.py | 2 +- .../v1/skill/manifest/house_hold_list.py | 2 +- .../v1/skill/manifest/interface.py | 2 +- .../v1/skill/manifest/lambda_endpoint.py | 2 +- .../v1/skill/manifest/lambda_region.py | 6 +- .../manifest/localized_flash_briefing_info.py | 6 +- .../localized_flash_briefing_info_items.py | 10 +- .../skill/manifest/localized_health_info.py | 6 +- .../v1/skill/manifest/localized_music_info.py | 10 +- .../skill/manifest/manifest_gadget_support.py | 6 +- .../v1/skill/manifest/music_alias.py | 2 +- .../v1/skill/manifest/music_apis.py | 16 +- .../v1/skill/manifest/music_capability.py | 2 +- .../v1/skill/manifest/music_content_name.py | 8 +- .../v1/skill/manifest/music_content_type.py | 6 +- .../v1/skill/manifest/music_feature.py | 2 +- .../v1/skill/manifest/music_interfaces.py | 6 +- .../v1/skill/manifest/music_request.py | 2 +- .../v1/skill/manifest/music_wordmark.py | 2 +- .../v1/skill/manifest/permission_items.py | 6 +- .../v1/skill/manifest/permission_name.py | 8 +- .../v1/skill/manifest/region.py | 6 +- .../v1/skill/manifest/request.py | 6 +- .../v1/skill/manifest/request_name.py | 8 +- .../v1/skill/manifest/skill_manifest.py | 14 +- .../v1/skill/manifest/skill_manifest_apis.py | 20 +- .../manifest/skill_manifest_custom_task.py | 2 +- .../skill/manifest/skill_manifest_endpoint.py | 6 +- .../skill/manifest/skill_manifest_envelope.py | 6 +- .../skill/manifest/skill_manifest_events.py | 12 +- ...nifest_localized_privacy_and_compliance.py | 2 +- ...nifest_localized_publishing_information.py | 2 +- .../skill_manifest_privacy_and_compliance.py | 6 +- .../skill_manifest_publishing_information.py | 12 +- .../v1/skill/manifest/smart_home_apis.py | 10 +- .../v1/skill/manifest/smart_home_protocol.py | 8 +- .../v1/skill/manifest/ssl_certificate_type.py | 8 +- .../v1/skill/manifest/up_channel_items.py | 2 +- .../v1/skill/manifest/version.py | 8 +- .../v1/skill/manifest/video_apis.py | 12 +- .../v1/skill/manifest/video_apis_locale.py | 6 +- .../v1/skill/manifest/video_app_interface.py | 2 +- .../v1/skill/manifest/video_catalog_info.py | 2 +- .../v1/skill/manifest/video_country_info.py | 6 +- .../v1/skill/manifest/video_region.py | 8 +- .../v1/skill/manifest/viewport_mode.py | 8 +- .../v1/skill/manifest/viewport_shape.py | 8 +- .../skill/manifest/viewport_specification.py | 8 +- .../v1/skill/manifest_last_update_request.py | 8 +- .../v1/skill/manifest_status.py | 6 +- .../skill/metrics/get_metric_data_response.py | 2 +- .../v1/skill/metrics/metric.py | 8 +- .../v1/skill/metrics/period.py | 8 +- .../v1/skill/metrics/skill_type.py | 8 +- .../v1/skill/metrics/stage_for_metric.py | 8 +- .../nlu/annotation_sets/annotation_set.py | 2 +- .../annotation_sets/annotation_set_entity.py | 2 +- .../create_nlu_annotation_set_request.py | 2 +- .../create_nlu_annotation_set_response.py | 2 +- ..._nlu_annotation_set_properties_response.py | 2 +- .../v1/skill/nlu/annotation_sets/links.py | 6 +- .../list_nlu_annotation_sets_response.py | 10 +- .../nlu/annotation_sets/pagination_context.py | 2 +- ..._nlu_annotation_set_annotations_request.py | 2 +- ...e_nlu_annotation_set_properties_request.py | 2 +- .../v1/skill/nlu/evaluations/actual.py | 6 +- .../nlu/evaluations/confirmation_status.py | 8 +- .../nlu/evaluations/evaluate_nlu_request.py | 14 +- .../nlu/evaluations/evaluate_response.py | 2 +- .../v1/skill/nlu/evaluations/evaluation.py | 8 +- .../nlu/evaluations/evaluation_entity.py | 8 +- .../nlu/evaluations/evaluation_inputs.py | 12 +- .../v1/skill/nlu/evaluations/expected.py | 6 +- .../skill/nlu/evaluations/expected_intent.py | 6 +- .../expected_intent_slots_props.py | 2 +- .../get_nlu_evaluation_response.py | 10 +- .../get_nlu_evaluation_response_links.py | 6 +- .../get_nlu_evaluation_results_response.py | 10 +- .../v1/skill/nlu/evaluations/inputs.py | 2 +- .../v1/skill/nlu/evaluations/intent.py | 8 +- .../v1/skill/nlu/evaluations/links.py | 6 +- .../list_nlu_evaluations_response.py | 10 +- .../skill/nlu/evaluations/paged_response.py | 8 +- .../nlu/evaluations/paged_results_response.py | 8 +- ...ged_results_response_pagination_context.py | 2 +- .../nlu/evaluations/pagination_context.py | 2 +- .../v1/skill/nlu/evaluations/resolutions.py | 2 +- .../evaluations/resolutions_per_authority.py | 8 +- .../resolutions_per_authority_status.py | 6 +- .../resolutions_per_authority_status_code.py | 8 +- .../resolutions_per_authority_value.py | 2 +- .../v1/skill/nlu/evaluations/results.py | 2 +- .../skill/nlu/evaluations/results_status.py | 8 +- .../v1/skill/nlu/evaluations/slots_props.py | 8 +- .../v1/skill/nlu/evaluations/source.py | 2 +- .../v1/skill/nlu/evaluations/status.py | 8 +- .../v1/skill/nlu/evaluations/test_case.py | 12 +- .../v1/skill/overwrite_mode.py | 8 +- .../v1/skill/private/accept_status.py | 8 +- ..._private_distribution_accounts_response.py | 8 +- .../private/private_distribution_account.py | 6 +- .../publication/publish_skill_request.py | 2 +- .../publication/skill_publication_response.py | 6 +- .../publication/skill_publication_status.py | 8 +- .../v1/skill/publication_method.py | 8 +- .../v1/skill/publication_status.py | 8 +- .../ask_smapi_model/v1/skill/reason.py | 8 +- .../v1/skill/regional_ssl_certificate.py | 2 +- .../v1/skill/resource_import_status.py | 10 +- .../v1/skill/response_status.py | 8 +- .../v1/skill/rollback_request_status.py | 8 +- .../v1/skill/rollback_request_status_types.py | 8 +- .../skill/simulations/alexa_execution_info.py | 6 +- .../v1/skill/simulations/alexa_response.py | 6 +- .../simulations/alexa_response_content.py | 2 +- .../v1/skill/simulations/device.py | 2 +- .../v1/skill/simulations/input.py | 2 +- .../v1/skill/simulations/invocation.py | 10 +- .../skill/simulations/invocation_request.py | 2 +- .../skill/simulations/invocation_response.py | 2 +- .../v1/skill/simulations/metrics.py | 2 +- .../v1/skill/simulations/session.py | 6 +- .../v1/skill/simulations/session_mode.py | 8 +- .../v1/skill/simulations/simulation_result.py | 10 +- .../simulations/simulations_api_request.py | 10 +- .../simulations/simulations_api_response.py | 8 +- .../simulations_api_response_status.py | 8 +- .../v1/skill/skill_credentials.py | 6 +- .../skill/skill_interaction_model_status.py | 6 +- .../v1/skill/skill_messaging_credentials.py | 2 +- .../v1/skill/skill_resources_enum.py | 8 +- .../ask_smapi_model/v1/skill/skill_status.py | 12 +- .../ask_smapi_model/v1/skill/skill_summary.py | 20 +- .../v1/skill/skill_summary_apis.py | 8 +- .../ask_smapi_model/v1/skill/skill_version.py | 6 +- .../v1/skill/ssl_certificate_payload.py | 6 +- .../v1/skill/standardized_error.py | 6 +- .../ask_smapi_model/v1/skill/status.py | 8 +- .../submit_skill_for_certification_request.py | 6 +- .../update_skill_with_package_request.py | 2 +- .../v1/skill/upload_response.py | 2 +- .../v1/skill/validation_data_types.py | 8 +- .../v1/skill/validation_details.py | 20 +- .../v1/skill/validation_endpoint.py | 2 +- .../v1/skill/validation_failure_reason.py | 6 +- .../v1/skill/validation_failure_type.py | 8 +- .../v1/skill/validation_feature.py | 2 +- .../skill/validations/response_validation.py | 8 +- .../response_validation_importance.py | 8 +- .../validations/response_validation_status.py | 8 +- .../validations/validations_api_request.py | 2 +- .../validations/validations_api_response.py | 8 +- .../validations_api_response_result.py | 8 +- .../validations_api_response_status.py | 8 +- .../v1/skill/version_submission.py | 6 +- .../v1/skill/version_submission_status.py | 8 +- .../v1/skill/withdraw_request.py | 6 +- .../ask_smapi_model/v1/stage_type.py | 8 +- .../ask_smapi_model/v1/stage_v2_type.py | 8 +- .../v1/vendor_management/vendor.py | 2 +- .../v1/vendor_management/vendors.py | 6 +- .../ask_smapi_model/v2/bad_request_error.py | 6 +- ask-smapi-model/ask_smapi_model/v2/error.py | 2 +- .../ask_smapi_model/v2/skill/invocation.py | 10 +- .../v2/skill/invocation_request.py | 2 +- .../v2/skill/invocation_response.py | 2 +- .../v2/skill/invocations/end_point_regions.py | 8 +- .../invocations/invocation_response_result.py | 8 +- .../invocations/invocation_response_status.py | 8 +- .../invocations/invocations_api_request.py | 8 +- .../invocations/invocations_api_response.py | 8 +- .../v2/skill/invocations/skill_request.py | 2 +- .../ask_smapi_model/v2/skill/metrics.py | 2 +- .../skill/simulations/alexa_execution_info.py | 8 +- .../v2/skill/simulations/alexa_response.py | 6 +- .../simulations/alexa_response_content.py | 2 +- .../simulations/confirmation_status_type.py | 8 +- .../v2/skill/simulations/device.py | 2 +- .../v2/skill/simulations/input.py | 2 +- .../v2/skill/simulations/intent.py | 8 +- .../resolutions_per_authority_items.py | 8 +- .../resolutions_per_authority_status.py | 6 +- .../resolutions_per_authority_status_code.py | 8 +- .../resolutions_per_authority_value_items.py | 2 +- .../v2/skill/simulations/session.py | 6 +- .../v2/skill/simulations/session_mode.py | 8 +- .../v2/skill/simulations/simulation_result.py | 10 +- .../simulations/simulations_api_request.py | 10 +- .../simulations/simulations_api_response.py | 8 +- .../simulations_api_response_status.py | 8 +- .../skill/simulations/skill_execution_info.py | 6 +- .../v2/skill/simulations/slot.py | 8 +- .../v2/skill/simulations/slot_resolutions.py | 6 +- ask-smapi-model/setup.py | 2 +- 602 files changed, 2467 insertions(+), 2490 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url_expiry_time.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 7aef53c..cf7d6ba 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -147,3 +147,11 @@ This release contains the following changes : This release contains the following changes : - Fix the model definition of `AccountLinkingRequest body `__. + + +1.8.2 +^^^^^ + +This release contains the following changes : + +- Updating model definitions diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 587ad2a..ab49f17 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.8.1' +__version__ = '1.8.2' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 5e66ea7..ccf8f5c 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -32,153 +32,154 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_response import CatalogResponseV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.list_slot_type_version_response import ListSlotTypeVersionResponseV1 - from ask_smapi_model.v1.skill.beta_test.test_body import TestBodyV1 - from ask_smapi_model.v1.skill.update_skill_with_package_request import UpdateSkillWithPackageRequestV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponseV1 - from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponseV1 - from ask_smapi_model.v1.skill.metrics.get_metric_data_response import GetMetricDataResponseV1 - from ask_smapi_model.v1.isp.list_in_skill_product_response import ListInSkillProductResponseV1 - from ask_smapi_model.v1.isp.update_in_skill_product_request import UpdateInSkillProductRequestV1 - from ask_smapi_model.v1.skill.evaluations.profile_nlu_response import ProfileNluResponseV1 - from ask_smapi_model.v0.catalog.upload.create_content_upload_request import CreateContentUploadRequestV0 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequestV1 - from ask_smapi_model.v2.skill.invocations.invocations_api_response import InvocationsApiResponseV2 - from ask_smapi_model.v1.skill.beta_test.testers.list_testers_response import ListTestersResponseV1 - from ask_smapi_model.v0.catalog.upload.create_content_upload_response import CreateContentUploadResponseV0 - from ask_smapi_model.v1.skill.interaction_model.model_type.list_slot_type_response import ListSlotTypeResponseV1 - from ask_smapi_model.v1.skill.create_skill_response import CreateSkillResponseV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObjectV1 - from ask_smapi_model.v1.skill.rollback_request_status import RollbackRequestStatusV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequestV1 - from ask_smapi_model.v0.catalog.create_catalog_request import CreateCatalogRequestV0 - from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponseV1 - from ask_smapi_model.v1.stage_type import StageTypeV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_nlu_request import EvaluateNLURequestV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission import HostedSkillPermissionV1 - from ask_smapi_model.v2.skill.simulations.simulations_api_request import SimulationsApiRequestV2 - from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponseV1 - from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfoV0 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsListV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request import CreateJobDefinitionRequestV1 - from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequestV1 - from ask_smapi_model.v1.skill.upload_response import UploadResponseV1 - from ask_smapi_model.v0.bad_request_error import BadRequestErrorV0 - from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponseV1 - from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponseV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response import ListJobDefinitionsResponseV1 - from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequestV1 - from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayloadV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponseV1 - from ask_smapi_model.v1.catalog.create_content_upload_url_request import CreateContentUploadUrlRequestV1 - from ask_smapi_model.v1.skill.certification.list_certifications_response import ListCertificationsResponseV1 - from ask_smapi_model.v2.skill.simulations.simulations_api_response import SimulationsApiResponseV2 - from ask_smapi_model.v1.catalog.upload.catalog_upload_base import CatalogUploadBaseV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_values import CatalogValuesV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object import PostAsrEvaluationsResponseObjectV1 - from ask_smapi_model.v1.error import ErrorV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponseV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequestV1 - from ask_smapi_model.v0.catalog.catalog_details import CatalogDetailsV0 - from ask_smapi_model.v1.skill.history.intent_requests import IntentRequestsV1 - from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelDataV1 - from ask_smapi_model.v2.bad_request_error import BadRequestErrorV2 - from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequestV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionDataV1 - from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponseV0 - from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTestV1 - from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQueryV1 - from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequestV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_definition_output import CatalogDefinitionOutputV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_response import AccountLinkingResponseV1 - from ask_smapi_model.v0.error import ErrorV0 - from ask_smapi_model.v1.skill.interaction_model.version.version_data import VersionDataV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponseV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update import SlotTypeUpdateV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_request import CreateNLUAnnotationSetRequestV1 - from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponseV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.update_request import UpdateRequestV1 - from ask_smapi_model.v1.skill.certification.certification_response import CertificationResponseV1 - from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponseV1 - from ask_smapi_model.v1.skill.history.interaction_type import InteractionTypeV1 - from ask_smapi_model.v0.catalog.upload.get_content_upload_response import GetContentUploadResponseV0 - from ask_smapi_model.v1.skill.publication.skill_publication_response import SkillPublicationResponseV1 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObjectV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatusV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponseV1 - from ask_smapi_model.v1.skill.invocations.invoke_skill_response import InvokeSkillResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response import CreateAsrAnnotationSetResponseV1 - from ask_smapi_model.v0.development_events.subscriber.create_subscriber_request import CreateSubscriberRequestV0 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionDataV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.definition_data import DefinitionDataV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_metadata import HostedSkillMetadataV1 - from ask_smapi_model.v1.audit_logs.audit_logs_response import AuditLogsResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_response import CreateNLUAnnotationSetResponseV1 - from ask_smapi_model.v0.development_events.subscription.update_subscription_request import UpdateSubscriptionRequestV0 - from ask_smapi_model.v0.catalog.upload.complete_upload_request import CompleteUploadRequestV0 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response import GetNLUEvaluationResponseV1 - from ask_smapi_model.v1.skill.publication.publish_skill_request import PublishSkillRequestV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_update import CatalogUpdateV1 - from ask_smapi_model.v0.development_events.subscriber.update_subscriber_request import UpdateSubscriberRequestV0 - from ask_smapi_model.v1.skill.validations.validations_api_response import ValidationsApiResponseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponseV1 + from ask_smapi_model.v0.catalog.upload.create_content_upload_response import CreateContentUploadResponse as Upload_CreateContentUploadResponseV0 + from ask_smapi_model.v0.catalog.upload.complete_upload_request import CompleteUploadRequest as Upload_CompleteUploadRequestV0 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest as AlexaHosted_HostedSkillRepositoryCredentialsRequestV1 + from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequest as Skill_CloneLocaleRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors import ValidationErrors as Jobs_ValidationErrorsV1 + from ask_smapi_model.v0.development_events.subscriber.update_subscriber_request import UpdateSubscriberRequest as Subscriber_UpdateSubscriberRequestV0 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request import CreateJobDefinitionRequest as Jobs_CreateJobDefinitionRequestV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as AlexaHosted_HostedSkillRepositoryCredentialsListV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject as AnnotationSets_CreateAsrAnnotationSetRequestObjectV1 + from ask_smapi_model.v2.skill.simulations.simulations_api_request import SimulationsApiRequest as Simulations_SimulationsApiRequestV2 + from ask_smapi_model.v1.skill.history.intent_confidence_bin import IntentConfidenceBin as History_IntentConfidenceBinV1 + from ask_smapi_model.v1.catalog.upload.get_content_upload_response import GetContentUploadResponse as Upload_GetContentUploadResponseV1 + from ask_smapi_model.v1.skill.interaction_model.version.list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse as Version_ListCatalogEntityVersionsResponseV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse as AnnotationSets_CreateNLUAnnotationSetResponseV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_metadata import HostedSkillMetadata as AlexaHosted_HostedSkillMetadataV1 + from ask_smapi_model.v1.skill.update_skill_with_package_request import UpdateSkillWithPackageRequest as Skill_UpdateSkillWithPackageRequestV1 + from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequest as Skill_WithdrawRequestV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.update_request import UpdateRequest as Catalog_UpdateRequestV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response import CreateAsrAnnotationSetResponse as AnnotationSets_CreateAsrAnnotationSetResponseV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest as AnnotationSets_CreateNLUAnnotationSetRequestV1 + from ask_smapi_model.v1.skill.publication.skill_publication_response import SkillPublicationResponse as Publication_SkillPublicationResponseV1 + from ask_smapi_model.v1.skill.certification.certification_response import CertificationResponse as Certification_CertificationResponseV1 + from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as History_PublicationStatusV1 + from ask_smapi_model.v0.development_events.subscription.list_subscriptions_response import ListSubscriptionsResponse as Subscription_ListSubscriptionsResponseV0 + from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequest as Isp_CreateInSkillProductRequestV1 + from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelData as InteractionModel_InteractionModelDataV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.definition_data import DefinitionData as ModelType_DefinitionDataV1 + from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTest as BetaTest_BetaTestV1 + from ask_smapi_model.v1.skill.submit_skill_for_certification_request import SubmitSkillForCertificationRequest as Skill_SubmitSkillForCertificationRequestV1 + from ask_smapi_model.v2.skill.invocations.invocations_api_request import InvocationsApiRequest as Invocations_InvocationsApiRequestV2 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update import SlotTypeUpdate as TypeVersion_SlotTypeUpdateV1 + from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponse as Evaluations_ListAsrEvaluationsResponseV1 + from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as History_LocaleInQueryV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject as AnnotationSets_UpdateAsrAnnotationSetPropertiesRequestObjectV1 + from ask_smapi_model.v1.skill.create_rollback_response import CreateRollbackResponse as Skill_CreateRollbackResponseV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_response import EvaluateResponse as Evaluations_EvaluateResponseV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest as AnnotationSets_UpdateNLUAnnotationSetPropertiesRequestV1 + from ask_smapi_model.v0.development_events.subscriber.subscriber_info import SubscriberInfo as Subscriber_SubscriberInfoV0 + from ask_smapi_model.v2.skill.simulations.simulations_api_response import SimulationsApiResponse as Simulations_SimulationsApiResponseV2 + from ask_smapi_model.v1.skill.account_linking.account_linking_response import AccountLinkingResponse as AccountLinking_AccountLinkingResponseV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest as AnnotationSets_UpdateNLUAnnotationSetAnnotationsRequestV1 + from ask_smapi_model.v1.skill.certification.list_certifications_response import ListCertificationsResponse as Certification_ListCertificationsResponseV1 + from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse as Evaluations_GetAsrEvaluationsResultsResponseV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.list_slot_type_version_response import ListSlotTypeVersionResponse as TypeVersion_ListSlotTypeVersionResponseV1 + from ask_smapi_model.v1.skill.validations.validations_api_request import ValidationsApiRequest as Validations_ValidationsApiRequestV1 + from ask_smapi_model.v1.skill.beta_test.testers.testers_list import TestersList as Testers_TestersListV1 + from ask_smapi_model.v0.development_events.subscription.update_subscription_request import UpdateSubscriptionRequest as Subscription_UpdateSubscriptionRequestV0 + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse as Evaluations_GetNLUEvaluationResultsResponseV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponse as AnnotationSets_ListASRAnnotationSetsResponseV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse as AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1 + from ask_smapi_model.v1.skill.rollback_request_status import RollbackRequestStatus as Skill_RollbackRequestStatusV1 + from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as Skill_CloneLocaleStatusResponseV1 + from ask_smapi_model.v1.skill.upload_response import UploadResponse as Skill_UploadResponseV1 + from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfo as Subscription_SubscriptionInfoV0 + from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionData as TypeVersion_VersionDataV1 + from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponse as Isp_AssociatedSkillResponseV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.list_catalog_response import ListCatalogResponse as Catalog_ListCatalogResponseV1 + from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as ConflictDetection_GetConflictsResponseV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.list_slot_type_response import ListSlotTypeResponse as ModelType_ListSlotTypeResponseV1 + from ask_smapi_model.v1.error import Error as V1_ErrorV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_definition_output import SlotTypeDefinitionOutput as ModelType_SlotTypeDefinitionOutputV1 + from ask_smapi_model.v1.skill.beta_test.test_body import TestBody as BetaTest_TestBodyV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_nlu_request import EvaluateNLURequest as Evaluations_EvaluateNLURequestV1 + from ask_smapi_model.v0.catalog.upload.list_uploads_response import ListUploadsResponse as Upload_ListUploadsResponseV0 + from ask_smapi_model.v1.skill.interaction_model.version.version_data import VersionData as Version_VersionDataV1 + from ask_smapi_model.v1.catalog.create_content_upload_url_request import CreateContentUploadUrlRequest as Catalog_CreateContentUploadUrlRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response import CreateJobDefinitionResponse as Jobs_CreateJobDefinitionResponseV1 + from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponse as Evaluations_ListNLUEvaluationsResponseV1 + from ask_smapi_model.v1.isp.in_skill_product_definition_response import InSkillProductDefinitionResponse as Isp_InSkillProductDefinitionResponseV1 + from ask_smapi_model.v0.catalog.upload.create_content_upload_request import CreateContentUploadRequest as Upload_CreateContentUploadRequestV0 + from ask_smapi_model.v1.skill.import_response import ImportResponse as Skill_ImportResponseV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatus as ModelType_SlotTypeStatusV1 + from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as History_InteractionTypeV1 + from ask_smapi_model.v0.catalog.upload.get_content_upload_response import GetContentUploadResponse as Upload_GetContentUploadResponseV0 + from ask_smapi_model.v0.catalog.catalog_details import CatalogDetails as Catalog_CatalogDetailsV0 + from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponse as Isp_InSkillProductSummaryResponseV1 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionData as Version_CatalogVersionDataV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequest as ModelType_UpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatus as Catalog_CatalogStatusV1 + from ask_smapi_model.v1.skill.publication.publish_skill_request import PublishSkillRequest as Publication_PublishSkillRequestV1 + from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequest as Skill_CreateRollbackRequestV1 + from ask_smapi_model.v1.skill.evaluations.profile_nlu_response import ProfileNluResponse as Evaluations_ProfileNluResponseV1 + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response import GetNLUEvaluationResponse as Evaluations_GetNLUEvaluationResponseV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as Jobs_GetExecutionsResponseV1 + from ask_smapi_model.v1.skill.metrics.get_metric_data_response import GetMetricDataResponse as Metrics_GetMetricDataResponseV1 + from ask_smapi_model.v2.skill.invocations.invocations_api_response import InvocationsApiResponse as Invocations_InvocationsApiResponseV2 + from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponse as Subscriber_ListSubscribersResponseV0 + from ask_smapi_model.v0.catalog.create_catalog_request import CreateCatalogRequest as Catalog_CreateCatalogRequestV0 + from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponse as Catalog_CreateContentUploadUrlResponseV1 import str - from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response import CreateJobDefinitionResponseV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequestV1 - from ask_smapi_model.v1.skill.export_response import ExportResponseV1 - from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequestV1 - from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequestV1 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponseV1 - from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponseV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_definition_output import SlotTypeDefinitionOutputV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponseV1 - from ask_smapi_model.v0.development_events.subscriber.subscriber_info import SubscriberInfoV0 - from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequestV0 - from ask_smapi_model.v0.development_events.subscription.list_subscriptions_response import ListSubscriptionsResponseV0 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponseV1 - from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequestV1 - from ask_smapi_model.v1.skill.skill_credentials import SkillCredentialsV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponseV1 - from ask_smapi_model.v1.audit_logs.audit_logs_request import AuditLogsRequestV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 - from ask_smapi_model.v1.isp.in_skill_product_definition_response import InSkillProductDefinitionResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObjectV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatusV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.definition_data import DefinitionDataV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_envelope import SkillManifestEnvelopeV1 - from ask_smapi_model.v1.skill.interaction_model.version.list_catalog_entity_versions_response import ListCatalogEntityVersionsResponseV1 - from ask_smapi_model.v2.error import ErrorV2 - from ask_smapi_model.v1.skill.list_skill_response import ListSkillResponseV1 - from ask_smapi_model.v0.catalog.list_catalogs_response import ListCatalogsResponseV0 - from ask_smapi_model.v1.skill.create_rollback_response import CreateRollbackResponseV1 - from ask_smapi_model.v1.skill.validations.validations_api_request import ValidationsApiRequestV1 - from ask_smapi_model.v1.skill.submit_skill_for_certification_request import SubmitSkillForCertificationRequestV1 - from ask_smapi_model.v0.catalog.upload.list_uploads_response import ListUploadsResponseV0 - from ask_smapi_model.v1.catalog.upload.get_content_upload_response import GetContentUploadResponseV1 - from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActNameV1 - from ask_smapi_model.v1.skill.import_response import ImportResponseV1 - from ask_smapi_model.v1.skill.skill_status import SkillStatusV1 - from ask_smapi_model.v1.skill.history.publication_status import PublicationStatusV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObjectV1 - from ask_smapi_model.v2.skill.invocations.invocations_api_request import InvocationsApiRequestV2 - from ask_smapi_model.v1.skill.interaction_model.catalog.list_catalog_response import ListCatalogResponseV1 - from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequestV1 - from ask_smapi_model.v1.skill.history.intent_confidence_bin import IntentConfidenceBinV1 - from ask_smapi_model.v1.skill.beta_test.testers.testers_list import TestersListV1 - from ask_smapi_model.v1.bad_request_error import BadRequestErrorV1 - from ask_smapi_model.v1.isp.product_response import ProductResponseV1 - from ask_smapi_model.v1.skill.create_skill_request import CreateSkillRequestV1 - from ask_smapi_model.v1.vendor_management.vendors import VendorsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_response import EvaluateResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayloadV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionDataV1 - from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors import ValidationErrorsV1 - from ask_smapi_model.v1.skill.interaction_model.version.list_response import ListResponseV1 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_update import CatalogUpdate as Version_CatalogUpdateV1 + from ask_smapi_model.v1.skill.list_skill_response import ListSkillResponse as Skill_ListSkillResponseV1 + from ask_smapi_model.v0.bad_request_error import BadRequestError as V0_BadRequestErrorV0 + from ask_smapi_model.v1.skill.manifest.skill_manifest_envelope import SkillManifestEnvelope as Manifest_SkillManifestEnvelopeV1 + from ask_smapi_model.v1.isp.product_response import ProductResponse as Isp_ProductResponseV1 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_values import CatalogValues as Version_CatalogValuesV1 + from ask_smapi_model.v1.audit_logs.audit_logs_response import AuditLogsResponse as AuditLogs_AuditLogsResponseV1 + from ask_smapi_model.v1.isp.update_in_skill_product_request import UpdateInSkillProductRequest as Isp_UpdateInSkillProductRequestV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse as AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1 + from ask_smapi_model.v1.catalog.upload.catalog_upload_base import CatalogUploadBase as Upload_CatalogUploadBaseV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse as AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1 + from ask_smapi_model.v1.skill.skill_status import SkillStatus as Skill_SkillStatusV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponse as ModelType_SlotTypeResponseV1 + from ask_smapi_model.v2.bad_request_error import BadRequestError as V2_BadRequestErrorV2 + from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponse as Simulations_SimulationsApiResponseV1 + from ask_smapi_model.v1.skill.skill_credentials import SkillCredentials as Skill_SkillCredentialsV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse as AnnotationSets_ListNLUAnnotationSetsResponseV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequest as AccountLinking_AccountLinkingRequestV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.definition_data import DefinitionData as Catalog_DefinitionDataV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionData as TypeVersion_SlotTypeVersionDataV1 + from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponse as Skill_ListSkillVersionsResponseV1 + from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequest as Subscription_CreateSubscriptionRequestV0 + from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequest as Skill_CreateSkillWithPackageRequestV1 + from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequest as Invocations_InvokeSkillRequestV1 + from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequest as Evaluations_ProfileNluRequestV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.export_response import ExportResponse as Skill_ExportResponseV1 + from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse as Private_ListPrivateDistributionAccountsResponseV1 + from ask_smapi_model.v1.audit_logs.audit_logs_request import AuditLogsRequest as AuditLogs_AuditLogsRequestV1 + from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject as Evaluations_GetAsrEvaluationStatusResponseObjectV1 + from ask_smapi_model.v1.skill.create_skill_response import CreateSkillResponse as Skill_CreateSkillResponseV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject as Evaluations_PostAsrEvaluationsResponseObjectV1 + from ask_smapi_model.v1.skill.invocations.invoke_skill_response import InvokeSkillResponse as Invocations_InvokeSkillResponseV1 + from ask_smapi_model.v1.skill.validations.validations_api_response import ValidationsApiResponse as Validations_ValidationsApiResponseV1 + from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as Skill_SSLCertificatePayloadV1 + from ask_smapi_model.v1.isp.list_in_skill_product_response import ListInSkillProductResponse as Isp_ListInSkillProductResponseV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse as ConflictDetection_GetConflictDetectionJobStatusResponseV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload as AnnotationSets_UpdateAsrAnnotationSetContentsPayloadV1 + from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as History_DialogActNameV1 + from ask_smapi_model.v1.skill.create_skill_request import CreateSkillRequest as Skill_CreateSkillRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as Jobs_JobDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_response import CatalogResponse as Catalog_CatalogResponseV1 + from ask_smapi_model.v1.skill.interaction_model.version.list_response import ListResponse as Version_ListResponseV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission import HostedSkillPermission as AlexaHosted_HostedSkillPermissionV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequest as Jobs_UpdateJobStatusRequestV1 + from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequest as Simulations_SimulationsApiRequestV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response import ListJobDefinitionsResponse as Jobs_ListJobDefinitionsResponseV1 + from ask_smapi_model.v0.error import Error as V0_ErrorV0 + from ask_smapi_model.v1.bad_request_error import BadRequestError as V1_BadRequestErrorV1 + from ask_smapi_model.v0.catalog.list_catalogs_response import ListCatalogsResponse as Catalog_ListCatalogsResponseV0 + from ask_smapi_model.v1.skill.beta_test.testers.list_testers_response import ListTestersResponse as Testers_ListTestersResponseV1 + from ask_smapi_model.v0.development_events.subscriber.create_subscriber_request import CreateSubscriberRequest as Subscriber_CreateSubscriberRequestV0 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_definition_output import CatalogDefinitionOutput as Catalog_CatalogDefinitionOutputV1 + from ask_smapi_model.v1.skill.history.intent_requests import IntentRequests as History_IntentRequestsV1 + from ask_smapi_model.v2.error import Error as V2_ErrorV2 + from ask_smapi_model.v1.vendor_management.vendors import Vendors as VendorManagement_VendorsV1 class SkillManagementServiceClient(BaseServiceClient): @@ -215,7 +216,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def get_catalog_v0(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, CatalogDetailsV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] """ Returns information about a particular catalog. @@ -224,7 +225,7 @@ def get_catalog_v0(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, CatalogDetailsV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] """ operation_name = "get_catalog_v0" params = locals() @@ -285,9 +286,10 @@ def get_catalog_v0(self, catalog_id, **kwargs): if full_response: return api_response return api_response.body + def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ListUploadsResponseV0, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, Upload_ListUploadsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Lists all the uploads for a particular catalog. @@ -300,7 +302,7 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListUploadsResponseV0, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, Upload_ListUploadsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "list_uploads_for_catalog_v0" params = locals() @@ -365,9 +367,10 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): if full_response: return api_response return api_response.body + def create_content_upload_v0(self, catalog_id, create_content_upload_request, **kwargs): - # type: (str, CreateContentUploadRequestV0, **Any) -> Union[ApiResponse, ErrorV0, CreateContentUploadResponseV0, BadRequestErrorV0] + # type: (str, Upload_CreateContentUploadRequestV0, **Any) -> Union[ApiResponse, object, Upload_CreateContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Creates a new upload for a catalog and returns presigned upload parts for uploading the file. @@ -378,7 +381,7 @@ def create_content_upload_v0(self, catalog_id, create_content_upload_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, CreateContentUploadResponseV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, Upload_CreateContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "create_content_upload_v0" params = locals() @@ -445,9 +448,10 @@ def create_content_upload_v0(self, catalog_id, create_content_upload_request, ** if full_response: return api_response return api_response.body + def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV0, GetContentUploadResponseV0, BadRequestErrorV0] + # type: (str, str, **Any) -> Union[ApiResponse, object, Upload_GetContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a presigned url for downloading the file. @@ -458,7 +462,7 @@ def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, GetContentUploadResponseV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, Upload_GetContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "get_content_upload_by_id_v0" params = locals() @@ -525,9 +529,10 @@ def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): if full_response: return api_response return api_response.body + def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_request_payload, **kwargs): - # type: (str, str, CompleteUploadRequestV0, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, str, Upload_CompleteUploadRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Completes an upload. To be called after the file is uploaded to the backend data store using presigned url(s). @@ -540,7 +545,7 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "complete_catalog_upload_v0" params = locals() @@ -613,9 +618,10 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ if full_response: return api_response + return None def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, ListCatalogsResponseV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Lists catalogs associated with a vendor. @@ -628,7 +634,7 @@ def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, ListCatalogsResponseV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "list_catalogs_for_vendor_v0" params = locals() @@ -693,9 +699,10 @@ def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_catalog_v0(self, create_catalog_request, **kwargs): - # type: (CreateCatalogRequestV0, **Any) -> Union[ApiResponse, ErrorV0, CatalogDetailsV0, BadRequestErrorV0] + # type: (Catalog_CreateCatalogRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] """ Creates a new catalog based on information provided in the request. @@ -704,7 +711,7 @@ def create_catalog_v0(self, create_catalog_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, CatalogDetailsV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] """ operation_name = "create_catalog_v0" params = locals() @@ -765,9 +772,10 @@ def create_catalog_v0(self, create_catalog_request, **kwargs): if full_response: return api_response return api_response.body + def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0, ListSubscribersResponseV0] + # type: (str, **Any) -> Union[ApiResponse, object, Subscriber_ListSubscribersResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Lists the subscribers for a particular vendor. @@ -780,7 +788,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0, ListSubscribersResponseV0] + :rtype: Union[ApiResponse, object, Subscriber_ListSubscribersResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "list_subscribers_for_development_events_v0" params = locals() @@ -845,9 +853,10 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_subscriber_for_development_events_v0(self, create_subscriber_request, **kwargs): - # type: (CreateSubscriberRequestV0, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (Subscriber_CreateSubscriberRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Creates a new subscriber resource for a vendor. @@ -856,7 +865,7 @@ def create_subscriber_for_development_events_v0(self, create_subscriber_request, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "create_subscriber_for_development_events_v0" params = locals() @@ -915,9 +924,10 @@ def create_subscriber_for_development_events_v0(self, create_subscriber_request, if full_response: return api_response + return None def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Deletes a specified subscriber. @@ -926,7 +936,7 @@ def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "delete_subscriber_for_development_events_v0" params = locals() @@ -987,9 +997,10 @@ def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): if full_response: return api_response + return None def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0, SubscriberInfoV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscriber_SubscriberInfoV0, V0_ErrorV0] """ Returns information about specified subscriber. @@ -998,7 +1009,7 @@ def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0, SubscriberInfoV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscriber_SubscriberInfoV0, V0_ErrorV0] """ operation_name = "get_subscriber_for_development_events_v0" params = locals() @@ -1059,9 +1070,10 @@ def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): if full_response: return api_response return api_response.body + def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscriber_request, **kwargs): - # type: (str, UpdateSubscriberRequestV0, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, Subscriber_UpdateSubscriberRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Updates the properties of a subscriber. @@ -1072,7 +1084,7 @@ def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscri :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "set_subscriber_for_development_events_v0" params = locals() @@ -1139,9 +1151,10 @@ def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscri if full_response: return api_response + return None def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ListSubscriptionsResponseV0, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_ListSubscriptionsResponseV0, V0_ErrorV0] """ Lists all the subscriptions for a vendor/subscriber depending on the query parameter. @@ -1156,7 +1169,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListSubscriptionsResponseV0, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_ListSubscriptionsResponseV0, V0_ErrorV0] """ operation_name = "list_subscriptions_for_development_events_v0" params = locals() @@ -1223,9 +1236,10 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_subscription_for_development_events_v0(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (**Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Creates a new subscription for a subscriber. This needs to be authorized by the client/vendor who created the subscriber and the vendor who publishes the event. @@ -1234,7 +1248,7 @@ def create_subscription_for_development_events_v0(self, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "create_subscription_for_development_events_v0" params = locals() @@ -1291,9 +1305,10 @@ def create_subscription_for_development_events_v0(self, **kwargs): if full_response: return api_response + return None def delete_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Deletes a particular subscription. Both, the vendor who created the subscriber and the vendor who publishes the event can delete this resource with appropriate authorization. @@ -1302,7 +1317,7 @@ def delete_subscription_for_development_events_v0(self, subscription_id, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "delete_subscription_for_development_events_v0" params = locals() @@ -1363,9 +1378,10 @@ def delete_subscription_for_development_events_v0(self, subscription_id, **kwarg if full_response: return api_response + return None def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, SubscriptionInfoV0, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_SubscriptionInfoV0, V0_ErrorV0] """ Returns information about a particular subscription. Both, the vendor who created the subscriber and the vendor who publishes the event can retrieve this resource with appropriate authorization. @@ -1374,7 +1390,7 @@ def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, SubscriptionInfoV0, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_SubscriptionInfoV0, V0_ErrorV0] """ operation_name = "get_subscription_for_development_events_v0" params = locals() @@ -1435,9 +1451,10 @@ def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): if full_response: return api_response return api_response.body + def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Updates the mutable properties of a subscription. This needs to be authorized by the client/vendor who created the subscriber and the vendor who publishes the event. The subscriberId cannot be updated. @@ -1448,7 +1465,7 @@ def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "set_subscription_for_development_events_v0" params = locals() @@ -1511,9 +1528,10 @@ def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): if full_response: return api_response + return None def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV0, BadRequestErrorV0] + # type: (str, str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ Associate skill with catalog. @@ -1524,7 +1542,7 @@ def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "associate_catalog_with_skill_v0" params = locals() @@ -1591,9 +1609,10 @@ def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): if full_response: return api_response + return None def list_catalogs_for_skill_v0(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV0, ListCatalogsResponseV0, BadRequestErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ Lists all the catalogs associated with a skill. @@ -1606,7 +1625,7 @@ def list_catalogs_for_skill_v0(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV0, ListCatalogsResponseV0, BadRequestErrorV0] + :rtype: Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] """ operation_name = "list_catalogs_for_skill_v0" params = locals() @@ -1671,9 +1690,10 @@ def list_catalogs_for_skill_v0(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kwargs): - # type: (str, CatalogUploadBaseV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, Upload_CatalogUploadBaseV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Create new upload Creates a new upload for a catalog and returns location to track the upload process. @@ -1685,7 +1705,7 @@ def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "create_catalog_upload_v1" params = locals() @@ -1752,9 +1772,10 @@ def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kw if full_response: return api_response + return None def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, GetContentUploadResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Upload_GetContentUploadResponseV1, V1_ErrorV1] """ Get upload Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a url for downloading the file. @@ -1766,7 +1787,7 @@ def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, GetContentUploadResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Upload_GetContentUploadResponseV1, V1_ErrorV1] """ operation_name = "get_content_upload_by_id_v1" params = locals() @@ -1832,9 +1853,10 @@ def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): if full_response: return api_response return api_response.body + def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url_request_body, **kwargs): - # type: (str, CreateContentUploadUrlRequestV1, **Any) -> Union[ApiResponse, ErrorV1, CreateContentUploadUrlResponseV1, BadRequestErrorV1] + # type: (str, Catalog_CreateContentUploadUrlRequestV1, **Any) -> Union[ApiResponse, object, Catalog_CreateContentUploadUrlResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Generates preSigned urls to upload data @@ -1845,7 +1867,7 @@ def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, CreateContentUploadUrlResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Catalog_CreateContentUploadUrlResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "generate_catalog_upload_url_v1" params = locals() @@ -1912,9 +1934,10 @@ def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url if full_response: return api_response return api_response.body + def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): - # type: (AuditLogsRequestV1, **Any) -> Union[ApiResponse, ErrorV1, AuditLogsResponseV1, BadRequestErrorV1] + # type: (AuditLogs_AuditLogsRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AuditLogs_AuditLogsResponseV1, V1_ErrorV1] """ The SMAPI Audit Logs API provides customers with an audit history of all SMAPI calls made by a developer or developers with permissions on that account. @@ -1923,7 +1946,7 @@ def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, AuditLogsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AuditLogs_AuditLogsResponseV1, V1_ErrorV1] """ operation_name = "query_development_audit_logs_v1" params = locals() @@ -1984,9 +2007,10 @@ def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): if full_response: return api_response return api_response.body + def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListInSkillProductResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] """ Get the list of in-skill products for the vendor. @@ -2011,7 +2035,7 @@ def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListInSkillProductResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] """ operation_name = "get_isp_list_for_vendor_v1" params = locals() @@ -2085,9 +2109,10 @@ def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): - # type: (CreateInSkillProductRequestV1, **Any) -> Union[ApiResponse, ProductResponseV1, ErrorV1, BadRequestErrorV1] + # type: (Isp_CreateInSkillProductRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ProductResponseV1] """ Creates a new in-skill product for given vendorId. @@ -2096,7 +2121,7 @@ def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ProductResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ProductResponseV1] """ operation_name = "create_isp_for_vendor_v1" params = locals() @@ -2154,9 +2179,10 @@ def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): if full_response: return api_response return api_response.body + def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Disassociates an in-skill product from a skill. @@ -2167,7 +2193,7 @@ def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "disassociate_isp_with_skill_v1" params = locals() @@ -2233,9 +2259,10 @@ def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): if full_response: return api_response + return None def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Associates an in-skill product with a skill. @@ -2246,7 +2273,7 @@ def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "associate_isp_with_skill_v1" params = locals() @@ -2312,9 +2339,10 @@ def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): if full_response: return api_response + return None def delete_isp_for_product_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Deletes the in-skill product for given productId. Only development stage supported. Live in-skill products or in-skill products associated with a skill cannot be deleted by this API. @@ -2327,7 +2355,7 @@ def delete_isp_for_product_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "delete_isp_for_product_v1" params = locals() @@ -2396,9 +2424,10 @@ def delete_isp_for_product_v1(self, product_id, stage, **kwargs): if full_response: return api_response + return None def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Resets the entitlement(s) of the Product for the current user. @@ -2409,7 +2438,7 @@ def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "reset_entitlement_for_product_v1" params = locals() @@ -2476,9 +2505,10 @@ def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): if full_response: return api_response + return None def get_isp_definition_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, InSkillProductDefinitionResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_InSkillProductDefinitionResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Returns the in-skill product definition for given productId. @@ -2489,7 +2519,7 @@ def get_isp_definition_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, InSkillProductDefinitionResponseV1] + :rtype: Union[ApiResponse, object, Isp_InSkillProductDefinitionResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "get_isp_definition_v1" params = locals() @@ -2554,9 +2584,10 @@ def get_isp_definition_v1(self, product_id, stage, **kwargs): if full_response: return api_response return api_response.body + def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_request, **kwargs): - # type: (str, str, UpdateInSkillProductRequestV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, Isp_UpdateInSkillProductRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Updates in-skill product definition for given productId. Only development stage supported. @@ -2571,7 +2602,7 @@ def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "update_isp_for_product_v1" params = locals() @@ -2646,9 +2677,10 @@ def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_r if full_response: return api_response + return None def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, AssociatedSkillResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_AssociatedSkillResponseV1, V1_ErrorV1] """ Get the associated skills for the in-skill product. @@ -2663,7 +2695,7 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, AssociatedSkillResponseV1] + :rtype: Union[ApiResponse, object, Isp_AssociatedSkillResponseV1, V1_ErrorV1] """ operation_name = "get_isp_associated_skills_v1" params = locals() @@ -2731,9 +2763,10 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): if full_response: return api_response return api_response.body + def get_isp_summary_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, InSkillProductSummaryResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_InSkillProductSummaryResponseV1, V1_ErrorV1] """ Get the summary information for an in-skill product. @@ -2744,7 +2777,7 @@ def get_isp_summary_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, InSkillProductSummaryResponseV1] + :rtype: Union[ApiResponse, object, Isp_InSkillProductSummaryResponseV1, V1_ErrorV1] """ operation_name = "get_isp_summary_v1" params = locals() @@ -2808,9 +2841,10 @@ def get_isp_summary_v1(self, product_id, stage, **kwargs): if full_response: return api_response return api_response.body + def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete the catalog. @@ -2819,7 +2853,7 @@ def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_interaction_model_catalog_v1" params = locals() @@ -2880,9 +2914,10 @@ def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): if full_response: return api_response + return None def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, CatalogDefinitionOutputV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Catalog_CatalogDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ get the catalog definition @@ -2891,7 +2926,7 @@ def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CatalogDefinitionOutputV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Catalog_CatalogDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_catalog_definition_v1" params = locals() @@ -2952,9 +2987,10 @@ def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): if full_response: return api_response return api_response.body + def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwargs): - # type: (str, UpdateRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Catalog_UpdateRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ update description and vendorGuidance string for certain version of a catalog. @@ -2965,7 +3001,7 @@ def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwar :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_interaction_model_catalog_v1" params = locals() @@ -3032,9 +3068,10 @@ def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwar if full_response: return api_response + return None def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, CatalogStatusV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_CatalogStatusV1] """ Get the status of catalog resource and its sub-resources for a given catalogId. @@ -3045,7 +3082,7 @@ def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, CatalogStatusV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_CatalogStatusV1] """ operation_name = "get_interaction_model_catalog_update_status_v1" params = locals() @@ -3112,9 +3149,10 @@ def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_requ if full_response: return api_response return api_response.body + def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListCatalogEntityVersionsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Version_ListCatalogEntityVersionsResponseV1] """ List all the historical versions of the given catalogId. @@ -3131,7 +3169,7 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListCatalogEntityVersionsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Version_ListCatalogEntityVersionsResponseV1] """ operation_name = "list_interaction_model_catalog_versions_v1" params = locals() @@ -3200,9 +3238,10 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): if full_response: return api_response return api_response.body + def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwargs): - # type: (str, VersionDataV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Version_VersionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Create a new version of catalog entity for the given catalogId. @@ -3213,7 +3252,7 @@ def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "create_interaction_model_catalog_version_v1" params = locals() @@ -3280,9 +3319,10 @@ def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwa if full_response: return api_response + return None def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete catalog version. @@ -3293,7 +3333,7 @@ def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_interaction_model_catalog_version_v1" params = locals() @@ -3360,9 +3400,10 @@ def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa if full_response: return api_response + return None def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, CatalogVersionDataV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Version_CatalogVersionDataV1, V1_BadRequestErrorV1] """ Get catalog version data of given catalog version. @@ -3373,7 +3414,7 @@ def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CatalogVersionDataV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Version_CatalogVersionDataV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_catalog_version_v1" params = locals() @@ -3440,9 +3481,10 @@ def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs if full_response: return api_response return api_response.body + def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Update description and vendorGuidance string for certain version of a catalog. @@ -3455,7 +3497,7 @@ def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_interaction_model_catalog_version_v1" params = locals() @@ -3524,9 +3566,10 @@ def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa if full_response: return api_response + return None def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, CatalogValuesV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Version_CatalogValuesV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get catalog values from the given catalogId & version. @@ -3541,7 +3584,7 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CatalogValuesV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Version_CatalogValuesV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_catalog_values_v1" params = locals() @@ -3612,9 +3655,10 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) if full_response: return api_response return api_response.body + def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ListCatalogResponseV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_ListCatalogResponseV1] """ List all catalogs for the vendor. @@ -3629,7 +3673,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListCatalogResponseV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_ListCatalogResponseV1] """ operation_name = "list_interaction_model_catalogs_v1" params = locals() @@ -3696,9 +3740,10 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_interaction_model_catalog_v1(self, catalog, **kwargs): - # type: (DefinitionDataV1, **Any) -> Union[ApiResponse, CatalogResponseV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (Catalog_DefinitionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Catalog_CatalogResponseV1, V1_BadRequestErrorV1] """ Create a new version of catalog within the given catalogId. @@ -3707,7 +3752,7 @@ def create_interaction_model_catalog_v1(self, catalog, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, CatalogResponseV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Catalog_CatalogResponseV1, V1_BadRequestErrorV1] """ operation_name = "create_interaction_model_catalog_v1" params = locals() @@ -3768,9 +3813,10 @@ def create_interaction_model_catalog_v1(self, catalog, **kwargs): if full_response: return api_response return api_response.body + def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListJobDefinitionsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_ListJobDefinitionsResponseV1] """ Retrieve a list of jobs associated with the vendor. @@ -3783,7 +3829,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListJobDefinitionsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_ListJobDefinitionsResponseV1] """ operation_name = "list_job_definitions_for_interaction_model_v1" params = locals() @@ -3847,9 +3893,10 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete the job definition for a given jobId. @@ -3858,7 +3905,7 @@ def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_job_definition_for_interaction_model_v1" params = locals() @@ -3919,9 +3966,10 @@ def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): if full_response: return api_response + return None def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Cancel the next execution for the given job. @@ -3932,7 +3980,7 @@ def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_i :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "cancel_next_job_execution_for_interaction_model_v1" params = locals() @@ -3999,9 +4047,10 @@ def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_i if full_response: return api_response + return None def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetExecutionsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_GetExecutionsResponseV1] """ List the execution history associated with the job definition, with default sortField to be the executions' timestamp. @@ -4016,7 +4065,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetExecutionsResponseV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_GetExecutionsResponseV1] """ operation_name = "list_job_executions_for_interaction_model_v1" params = locals() @@ -4082,9 +4131,10 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): if full_response: return api_response return api_response.body + def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_JobDefinitionV1] """ Get the job definition for a given jobId. @@ -4093,7 +4143,7 @@ def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_JobDefinitionV1] """ operation_name = "get_job_definition_for_interaction_model_v1" params = locals() @@ -4131,7 +4181,7 @@ def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): header_params.append(('Authorization', authorization_value)) error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=200, message="The job definition for a given jobId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.jobs.job_definition.JobDefinition", status_code=200, message="The job definition for a given jobId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) @@ -4148,14 +4198,15 @@ def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): header_params=header_params, body=body_params, response_definitions=error_definitions, - response_type=None) + response_type="ask_smapi_model.v1.skill.interaction_model.jobs.job_definition.JobDefinition") if full_response: return api_response + return api_response.body def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_request, **kwargs): - # type: (str, UpdateJobStatusRequestV1, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Jobs_UpdateJobStatusRequestV1, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Update the JobStatus to Enable or Disable a job. @@ -4166,7 +4217,7 @@ def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "set_job_status_for_interaction_model_v1" params = locals() @@ -4233,9 +4284,10 @@ def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_requ if full_response: return api_response + return None def create_job_definition_for_interaction_model_v1(self, create_job_definition_request, **kwargs): - # type: (CreateJobDefinitionRequestV1, **Any) -> Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1, CreateJobDefinitionResponseV1] + # type: (Jobs_CreateJobDefinitionRequestV1, **Any) -> Union[ApiResponse, object, Jobs_CreateJobDefinitionResponseV1, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates a new Job Definition from the Job Definition request provided. This can be either a CatalogAutoRefresh, which supports time-based configurations for catalogs, or a ReferencedResourceVersionUpdate, which is used for slotTypes and Interaction models to be automatically updated on the dynamic update of their referenced catalog. @@ -4244,7 +4296,7 @@ def create_job_definition_for_interaction_model_v1(self, create_job_definition_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationErrorsV1, StandardizedErrorV1, BadRequestErrorV1, CreateJobDefinitionResponseV1] + :rtype: Union[ApiResponse, object, Jobs_CreateJobDefinitionResponseV1, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "create_job_definition_for_interaction_model_v1" params = locals() @@ -4304,9 +4356,10 @@ def create_job_definition_for_interaction_model_v1(self, create_job_definition_r if full_response: return api_response return api_response.body + def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListSlotTypeResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_ListSlotTypeResponseV1] """ List all slot types for the vendor. @@ -4321,7 +4374,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListSlotTypeResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_ListSlotTypeResponseV1] """ operation_name = "list_interaction_model_slot_types_v1" params = locals() @@ -4387,9 +4440,10 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): - # type: (DefinitionDataV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, SlotTypeResponseV1, BadRequestErrorV1] + # type: (ModelType_DefinitionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_SlotTypeResponseV1] """ Create a new version of slot type within the given slotTypeId. @@ -4398,7 +4452,7 @@ def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SlotTypeResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_SlotTypeResponseV1] """ operation_name = "create_interaction_model_slot_type_v1" params = locals() @@ -4457,9 +4511,10 @@ def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): if full_response: return api_response return api_response.body + def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete the slot type. @@ -4468,7 +4523,7 @@ def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_interaction_model_slot_type_v1" params = locals() @@ -4529,9 +4584,10 @@ def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): if full_response: return api_response + return None def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SlotTypeDefinitionOutputV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, ModelType_SlotTypeDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get the slot type definition. @@ -4540,7 +4596,7 @@ def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SlotTypeDefinitionOutputV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, ModelType_SlotTypeDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_slot_type_definition_v1" params = locals() @@ -4601,9 +4657,10 @@ def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): if full_response: return api_response return api_response.body + def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, **kwargs): - # type: (str, UpdateRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, ModelType_UpdateRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Update description and vendorGuidance string for certain version of a slot type. @@ -4614,7 +4671,7 @@ def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_interaction_model_slot_type_v1" params = locals() @@ -4681,9 +4738,10 @@ def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, ** if full_response: return api_response + return None def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SlotTypeStatusV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, ModelType_SlotTypeStatusV1, V1_BadRequestErrorV1] """ Get the status of slot type resource and its sub-resources for a given slotTypeId. @@ -4694,7 +4752,7 @@ def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SlotTypeStatusV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, ModelType_SlotTypeStatusV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_slot_type_build_status_v1" params = locals() @@ -4761,9 +4819,10 @@ def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_r if full_response: return api_response return api_response.body + def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ListSlotTypeVersionResponseV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_ListSlotTypeVersionResponseV1] """ List all slot type versions for the slot type id. @@ -4778,7 +4837,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListSlotTypeVersionResponseV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_ListSlotTypeVersionResponseV1] """ operation_name = "list_interaction_model_slot_type_versions_v1" params = locals() @@ -4844,9 +4903,10 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): if full_response: return api_response return api_response.body + def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, **kwargs): - # type: (str, VersionDataV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, TypeVersion_VersionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Create a new version of slot type entity for the given slotTypeId. @@ -4857,7 +4917,7 @@ def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "create_interaction_model_slot_type_version_v1" params = locals() @@ -4924,9 +4984,10 @@ def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, if full_response: return api_response + return None def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete slot type version. @@ -4937,7 +4998,7 @@ def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_interaction_model_slot_type_version_v1" params = locals() @@ -5004,9 +5065,10 @@ def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, * if full_response: return api_response + return None def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SlotTypeVersionDataV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_SlotTypeVersionDataV1] """ Get slot type version data of given slot type version. @@ -5017,7 +5079,7 @@ def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SlotTypeVersionDataV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_SlotTypeVersionDataV1] """ operation_name = "get_interaction_model_slot_type_version_v1" params = locals() @@ -5084,9 +5146,10 @@ def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kw if full_response: return api_response return api_response.body + def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, slot_type_update, **kwargs): - # type: (str, str, SlotTypeUpdateV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, TypeVersion_SlotTypeUpdateV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Update description and vendorGuidance string for certain version of a slot type. @@ -5099,7 +5162,7 @@ def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, s :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_interaction_model_slot_type_version_v1" params = locals() @@ -5172,9 +5235,10 @@ def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, s if full_response: return api_response + return None def get_status_of_export_request_v1(self, export_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ExportResponseV1, StandardizedErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ExportResponseV1] """ Get status for given exportId @@ -5183,7 +5247,7 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ExportResponseV1, StandardizedErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ExportResponseV1] """ operation_name = "get_status_of_export_request_v1" params = locals() @@ -5242,9 +5306,10 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): if full_response: return api_response return api_response.body + def list_skills_for_vendor_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListSkillResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_ListSkillResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get the list of skills for the vendor. @@ -5259,7 +5324,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListSkillResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_ListSkillResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "list_skills_for_vendor_v1" params = locals() @@ -5324,9 +5389,10 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): if full_response: return api_response return api_response.body + def get_import_status_v1(self, import_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ImportResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_ImportResponseV1, Skill_StandardizedErrorV1] """ Get status for given importId. @@ -5335,7 +5401,7 @@ def get_import_status_v1(self, import_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ImportResponseV1] + :rtype: Union[ApiResponse, object, Skill_ImportResponseV1, Skill_StandardizedErrorV1] """ operation_name = "get_import_status_v1" params = locals() @@ -5394,9 +5460,10 @@ def get_import_status_v1(self, import_id, **kwargs): if full_response: return api_response return api_response.body + def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): - # type: (CreateSkillWithPackageRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (Skill_CreateSkillWithPackageRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates a new import for a skill. @@ -5405,7 +5472,7 @@ def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "create_skill_package_v1" params = locals() @@ -5465,9 +5532,10 @@ def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): if full_response: return api_response + return None def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): - # type: (CreateSkillRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, CreateSkillResponseV1, BadRequestErrorV1] + # type: (Skill_CreateSkillRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_CreateSkillResponseV1, V1_BadRequestErrorV1] """ Creates a new skill for given vendorId. @@ -5476,7 +5544,7 @@ def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CreateSkillResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_CreateSkillResponseV1, V1_BadRequestErrorV1] """ operation_name = "create_skill_for_vendor_v1" params = locals() @@ -5536,9 +5604,10 @@ def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): if full_response: return api_response return api_response.body + def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, HostedSkillMetadataV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillMetadataV1] """ Get Alexa hosted skill's metadata @@ -5547,7 +5616,7 @@ def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, HostedSkillMetadataV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillMetadataV1] """ operation_name = "get_alexa_hosted_skill_metadata_v1" params = locals() @@ -5607,9 +5676,10 @@ def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_repository_credentials_request, **kwargs): - # type: (str, HostedSkillRepositoryCredentialsRequestV1, **Any) -> Union[ApiResponse, HostedSkillRepositoryCredentialsListV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, AlexaHosted_HostedSkillRepositoryCredentialsRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillRepositoryCredentialsListV1] """ Generates hosted skill repository credentials to access the hosted skill repository. @@ -5620,7 +5690,7 @@ def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, HostedSkillRepositoryCredentialsListV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillRepositoryCredentialsListV1] """ operation_name = "generate_credentials_for_alexa_hosted_skill_v1" params = locals() @@ -5686,9 +5756,10 @@ def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_ if full_response: return api_response return api_response.body + def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, accept, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, GetAsrAnnotationSetAnnotationsResponseV1, ErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1, V1_ErrorV1] """ Download the annotation set contents. @@ -5705,7 +5776,7 @@ def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, GetAsrAnnotationSetAnnotationsResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1, V1_ErrorV1] """ operation_name = "get_annotations_for_asr_annotation_set_v1" params = locals() @@ -5782,9 +5853,10 @@ def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, if full_response: return api_response return api_response.body + def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_contents_request, **kwargs): - # type: (str, str, UpdateAsrAnnotationSetContentsPayloadV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, AnnotationSets_UpdateAsrAnnotationSetContentsPayloadV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Update the annotations in the annotation set API that updates the annotaions in the annotation set @@ -5798,7 +5870,7 @@ def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "set_annotations_for_asr_annotation_set_v1" params = locals() @@ -5871,9 +5943,10 @@ def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, if full_response: return api_response + return None def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Delete the ASR annotation set API which deletes the ASR annotation set. Developers cannot get/list the deleted annotation set. @@ -5885,7 +5958,7 @@ def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "delete_asr_annotation_set_v1" params = locals() @@ -5953,9 +6026,10 @@ def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): if full_response: return api_response + return None def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, GetASRAnnotationSetsPropertiesResponseV1, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1] """ Get the metadata of an ASR annotation set Return the metadata for an ASR annotation set. @@ -5967,7 +6041,7 @@ def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, GetASRAnnotationSetsPropertiesResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1] """ operation_name = "get_asr_annotation_set_v1" params = locals() @@ -6034,9 +6108,10 @@ def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): if full_response: return api_response return api_response.body + def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_properties_request_v1, **kwargs): - # type: (str, str, UpdateAsrAnnotationSetPropertiesRequestObjectV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, AnnotationSets_UpdateAsrAnnotationSetPropertiesRequestObjectV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ update the ASR annotation set properties. API which updates the ASR annotation set properties. Currently, the only data can be updated is annotation set name. @@ -6050,7 +6125,7 @@ def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_anno :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "set_asr_annotation_set_v1" params = locals() @@ -6123,9 +6198,10 @@ def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_anno if full_response: return api_response + return None def list_asr_annotation_sets_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListASRAnnotationSetsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_ListASRAnnotationSetsResponseV1] """ List ASR annotation sets metadata for a given skill. API which requests all the ASR annotation sets for a skill. Returns the annotation set id and properties for each ASR annotation set. Supports paging of results. @@ -6139,7 +6215,7 @@ def list_asr_annotation_sets_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListASRAnnotationSetsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_ListASRAnnotationSetsResponseV1] """ operation_name = "list_asr_annotation_sets_v1" params = locals() @@ -6204,9 +6280,10 @@ def list_asr_annotation_sets_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_request, **kwargs): - # type: (str, CreateAsrAnnotationSetRequestObjectV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, CreateAsrAnnotationSetResponseV1] + # type: (str, AnnotationSets_CreateAsrAnnotationSetRequestObjectV1, **Any) -> Union[ApiResponse, object, AnnotationSets_CreateAsrAnnotationSetResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Create a new ASR annotation set for a skill This is an API that creates a new ASR annotation set with a name and returns the annotationSetId which can later be used to retrieve or reference the annotation set @@ -6218,7 +6295,7 @@ def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_reque :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, CreateAsrAnnotationSetResponseV1] + :rtype: Union[ApiResponse, object, AnnotationSets_CreateAsrAnnotationSetResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "create_asr_annotation_set_v1" params = locals() @@ -6285,9 +6362,10 @@ def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_reque if full_response: return api_response return api_response.body + def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Delete an evaluation. API which enables the deletion of an evaluation. @@ -6299,7 +6377,7 @@ def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "delete_asr_evaluation_v1" params = locals() @@ -6366,9 +6444,10 @@ def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): if full_response: return api_response + return None def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, GetAsrEvaluationsResultsResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetAsrEvaluationsResultsResponseV1] """ List results for a completed Evaluation. Paginated API which returns the test case results of an evaluation. This should be considered the \"expensive\" operation while GetAsrEvaluationsStatus is \"cheap\". @@ -6386,7 +6465,7 @@ def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, GetAsrEvaluationsResultsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetAsrEvaluationsResultsResponseV1] """ operation_name = "list_asr_evaluations_results_v1" params = locals() @@ -6459,9 +6538,10 @@ def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): if full_response: return api_response return api_response.body + def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, GetAsrEvaluationStatusResponseObjectV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Evaluations_GetAsrEvaluationStatusResponseObjectV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Get high level information and status of a asr evaluation. API which requests high level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns the request used to start the job, like the number of total evaluations, number of completed evaluations, and start time. This should be considered the \"cheap\" operation while GetAsrEvaluationsResults is \"expensive\". @@ -6473,7 +6553,7 @@ def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, GetAsrEvaluationStatusResponseObjectV1] + :rtype: Union[ApiResponse, object, Evaluations_GetAsrEvaluationStatusResponseObjectV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "get_asr_evaluation_status_v1" params = locals() @@ -6540,9 +6620,10 @@ def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): if full_response: return api_response return api_response.body + def list_asr_evaluations_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListAsrEvaluationsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_ListAsrEvaluationsResponseV1] """ List asr evaluations run for a skill. API that allows developers to get historical ASR evaluations they run before. @@ -6562,7 +6643,7 @@ def list_asr_evaluations_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListAsrEvaluationsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_ListAsrEvaluationsResponseV1] """ operation_name = "list_asr_evaluations_v1" params = locals() @@ -6633,9 +6714,10 @@ def list_asr_evaluations_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwargs): - # type: (PostAsrEvaluationsRequestObjectV1, str, **Any) -> Union[ApiResponse, ErrorV1, PostAsrEvaluationsResponseObjectV1, BadRequestErrorV1] + # type: (Evaluations_PostAsrEvaluationsRequestObjectV1, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_PostAsrEvaluationsResponseObjectV1] """ Start an evaluation against the ASR model built by the skill's interaction model. This is an asynchronous API that starts an evaluation against the ASR model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results upon completion. This operation is unified, meaning both internal and external skill developers may use it to evaluate ASR models. @@ -6647,7 +6729,7 @@ def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, PostAsrEvaluationsResponseObjectV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_PostAsrEvaluationsResponseObjectV1] """ operation_name = "create_asr_evaluation_v1" params = locals() @@ -6715,9 +6797,10 @@ def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwa if full_response: return api_response return api_response.body + def end_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ End beta test. End a beta test for a given Alexa skill. System will revoke the entitlement of each tester and send access-end notification email to them. @@ -6727,7 +6810,7 @@ def end_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "end_beta_test_v1" params = locals() @@ -6787,9 +6870,10 @@ def end_beta_test_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def get_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, BetaTestV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, BetaTest_BetaTestV1] """ Get beta test. Get beta test for a given Alexa skill. @@ -6799,7 +6883,7 @@ def get_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, BetaTestV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, BetaTest_BetaTestV1] """ operation_name = "get_beta_test_v1" params = locals() @@ -6858,9 +6942,10 @@ def get_beta_test_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Create beta test. Create a beta test for a given Alexa skill. @@ -6872,7 +6957,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "create_beta_test_v1" params = locals() @@ -6934,9 +7019,10 @@ def create_beta_test_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def update_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Update beta test. Update a beta test for a given Alexa skill. @@ -6948,7 +7034,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "update_beta_test_v1" params = locals() @@ -7009,9 +7095,10 @@ def update_beta_test_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def start_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Start beta test Start a beta test for a given Alexa skill. System will send invitation emails to each tester in the test, and add entitlement on the acceptance. @@ -7021,7 +7108,7 @@ def start_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "start_beta_test_v1" params = locals() @@ -7081,9 +7168,10 @@ def start_beta_test_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): - # type: (str, TestersListV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Add testers to an existing beta test. Add testers to a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance. @@ -7095,7 +7183,7 @@ def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "add_testers_to_beta_test_v1" params = locals() @@ -7160,9 +7248,10 @@ def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): if full_response: return api_response + return None def get_list_of_testers_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListTestersResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Testers_ListTestersResponseV1, V1_ErrorV1] """ List testers. List all testers in a beta test for the given Alexa skill. @@ -7176,7 +7265,7 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListTestersResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Testers_ListTestersResponseV1, V1_ErrorV1] """ operation_name = "get_list_of_testers_v1" params = locals() @@ -7239,9 +7328,10 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): - # type: (str, TestersListV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Remove testers from an existing beta test. Remove testers from a beta test for the given Alexa skill. System will send access end email to each tester and remove entitlement for them. @@ -7253,7 +7343,7 @@ def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "remove_testers_from_beta_test_v1" params = locals() @@ -7318,9 +7408,10 @@ def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): if full_response: return api_response + return None def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): - # type: (str, TestersListV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Request feedback from testers. Request feedback from the testers in a beta test for the given Alexa skill. System will send notification emails to testers to request feedback. @@ -7332,7 +7423,7 @@ def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "request_feedback_from_testers_v1" params = locals() @@ -7398,9 +7489,10 @@ def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): if full_response: return api_response + return None def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): - # type: (str, TestersListV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Send reminder to testers in a beta test. Send reminder to the testers in a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance. @@ -7412,7 +7504,7 @@ def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "send_reminder_to_testers_v1" params = locals() @@ -7478,9 +7570,10 @@ def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): if full_response: return api_response + return None def get_certification_review_v1(self, skill_id, certification_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, CertificationResponseV1, ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Certification_CertificationResponseV1, V1_ErrorV1] """ Gets a specific certification resource. The response contains the review tracking information for a skill to show how much time the skill is expected to remain under review by Amazon. Once the review is complete, the response also contains the outcome of the review. Old certifications may not be available, however any ongoing certification would always give a response. If the certification is unavailable the result will return a 404 HTTP status code. @@ -7493,7 +7586,7 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, CertificationResponseV1, ErrorV1] + :rtype: Union[ApiResponse, object, Certification_CertificationResponseV1, V1_ErrorV1] """ operation_name = "get_certification_review_v1" params = locals() @@ -7559,9 +7652,10 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): if full_response: return api_response return api_response.body + def get_certifications_list_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListCertificationsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Certification_ListCertificationsResponseV1, V1_ErrorV1] """ Get list of all certifications available for a skill, including information about past certifications and any ongoing certification. The default sort order is descending on skillSubmissionTimestamp for Certifications. @@ -7574,7 +7668,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListCertificationsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Certification_ListCertificationsResponseV1, V1_ErrorV1] """ operation_name = "get_certifications_list_v1" params = locals() @@ -7637,9 +7731,10 @@ def get_certifications_list_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def get_skill_credentials_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SkillCredentialsV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SkillCredentialsV1] """ Get the client credentials for the skill. @@ -7648,7 +7743,7 @@ def get_skill_credentials_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SkillCredentialsV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SkillCredentialsV1] """ operation_name = "get_skill_credentials_v1" params = locals() @@ -7707,9 +7802,10 @@ def get_skill_credentials_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def delete_skill_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete the skill and model for given skillId. @@ -7718,7 +7814,7 @@ def delete_skill_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_skill_v1" params = locals() @@ -7778,9 +7874,10 @@ def delete_skill_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def get_utterance_data_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, IntentRequestsV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, History_IntentRequestsV1, V1_BadRequestErrorV1] """ The Intent Request History API provides customers with the aggregated and anonymized transcription of user speech data and intent request details for their skills. @@ -7815,7 +7912,7 @@ def get_utterance_data_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, IntentRequestsV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, History_IntentRequestsV1, V1_BadRequestErrorV1] """ operation_name = "get_utterance_data_v1" params = locals() @@ -7901,9 +7998,10 @@ def get_utterance_data_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def import_skill_package_v1(self, update_skill_with_package_request, skill_id, **kwargs): - # type: (UpdateSkillWithPackageRequestV1, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (Skill_UpdateSkillWithPackageRequestV1, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates a new import for a skill with given skillId. @@ -7916,7 +8014,7 @@ def import_skill_package_v1(self, update_skill_with_package_request, skill_id, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "import_skill_package_v1" params = locals() @@ -7986,9 +8084,10 @@ def import_skill_package_v1(self, update_skill_with_package_request, skill_id, * if full_response: return api_response + return None def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): - # type: (str, InvokeSkillRequestV1, **Any) -> Union[ApiResponse, InvokeSkillResponseV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Invocations_InvokeSkillRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Invocations_InvokeSkillResponseV1, V1_BadRequestErrorV1] """ This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where invoking the skill endpoint specifically fails, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the endpoint. The skill must belong to and be enabled by the user of this API. Also, note that calls to the skill endpoint will timeout after 10 seconds. @@ -7999,7 +8098,7 @@ def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, InvokeSkillResponseV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Invocations_InvokeSkillResponseV1, V1_BadRequestErrorV1] """ operation_name = "invoke_skill_v1" params = locals() @@ -8065,9 +8164,10 @@ def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): if full_response: return api_response return api_response.body + def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, stage, skill_type, **kwargs): - # type: (str, datetime, datetime, str, str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetMetricDataResponseV1] + # type: (str, datetime, datetime, str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Metrics_GetMetricDataResponseV1] """ Get analytic metrics report of skill usage. @@ -8096,7 +8196,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, GetMetricDataResponseV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Metrics_GetMetricDataResponseV1] """ operation_name = "get_skill_metrics_v1" params = locals() @@ -8201,9 +8301,10 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s if full_response: return api_response return api_response.body + def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, accept, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Get the annotations of an NLU annotation set @@ -8216,7 +8317,7 @@ def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, ac :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "get_annotations_for_nlu_annotation_sets_v1" params = locals() @@ -8288,9 +8389,10 @@ def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, ac if full_response: return api_response + return None def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, content_type, update_nlu_annotation_set_annotations_request, **kwargs): - # type: (str, str, str, UpdateNLUAnnotationSetAnnotationsRequestV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, str, AnnotationSets_UpdateNLUAnnotationSetAnnotationsRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Replace the annotations in NLU annotation set. API which replaces the annotations in NLU annotation set. @@ -8306,7 +8408,7 @@ def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "update_annotations_for_nlu_annotation_sets_v1" params = locals() @@ -8384,9 +8486,10 @@ def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, if full_response: return api_response + return None def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ Delete the NLU annotation set API which deletes the NLU annotation set. Developers cannot get/list the deleted annotation set. @@ -8398,7 +8501,7 @@ def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "delete_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8464,9 +8567,10 @@ def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, if full_response: return api_response + return None def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, GetNLUAnnotationSetPropertiesResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1] """ Get the properties of an NLU annotation set Return the properties for an NLU annotation set. @@ -8478,7 +8582,7 @@ def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **k :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, GetNLUAnnotationSetPropertiesResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1] """ operation_name = "get_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8544,9 +8648,10 @@ def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **k if full_response: return api_response return api_response.body + def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, update_nlu_annotation_set_properties_request, **kwargs): - # type: (str, str, UpdateNLUAnnotationSetPropertiesRequestV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1] + # type: (str, str, AnnotationSets_UpdateNLUAnnotationSetPropertiesRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ update the NLU annotation set properties. API which updates the NLU annotation set properties. Currently, the only data can be updated is annotation set name. @@ -8560,7 +8665,7 @@ def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "update_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8632,9 +8737,10 @@ def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, if full_response: return api_response + return None def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ErrorV1, ListNLUAnnotationSetsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_ListNLUAnnotationSetsResponseV1, V1_ErrorV1] """ List NLU annotation sets for a given skill. API which requests all the NLU annotation sets for a skill. Returns the annotationId and properties for each NLU annotation set. Developers can filter the results using locale. Supports paging of results. @@ -8650,7 +8756,7 @@ def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListNLUAnnotationSetsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_ListNLUAnnotationSetsResponseV1, V1_ErrorV1] """ operation_name = "list_nlu_annotation_sets_v1" params = locals() @@ -8716,9 +8822,10 @@ def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_request, **kwargs): - # type: (str, CreateNLUAnnotationSetRequestV1, **Any) -> Union[ApiResponse, CreateNLUAnnotationSetResponseV1, ErrorV1, BadRequestErrorV1] + # type: (str, AnnotationSets_CreateNLUAnnotationSetRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_CreateNLUAnnotationSetResponseV1, V1_ErrorV1] """ Create a new NLU annotation set for a skill which will generate a new annotationId. This is an API that creates a new NLU annotation set with properties and returns the annotationId. @@ -8730,7 +8837,7 @@ def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_reque :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, CreateNLUAnnotationSetResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_CreateNLUAnnotationSetResponseV1, V1_ErrorV1] """ operation_name = "create_nlu_annotation_set_v1" params = locals() @@ -8797,9 +8904,10 @@ def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_reque if full_response: return api_response return api_response.body + def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, GetNLUEvaluationResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Evaluations_GetNLUEvaluationResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Get top level information and status of a nlu evaluation. API which requests top level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns data used to start the job, like the number of test cases, stage, locale, and start time. This should be considered the 'cheap' operation while getResultForNLUEvaluations is 'expensive'. @@ -8811,7 +8919,7 @@ def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, GetNLUEvaluationResponseV1] + :rtype: Union[ApiResponse, object, Evaluations_GetNLUEvaluationResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "get_nlu_evaluation_v1" params = locals() @@ -8877,9 +8985,10 @@ def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): if full_response: return api_response return api_response.body + def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, GetNLUEvaluationResultsResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetNLUEvaluationResultsResponseV1] """ Get test case results for a completed Evaluation. Paginated API which returns the test case results of an evaluation. This should be considered the 'expensive' operation while getNluEvaluation is 'cheap'. @@ -8903,7 +9012,7 @@ def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, GetNLUEvaluationResultsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetNLUEvaluationResultsResponseV1] """ operation_name = "get_result_for_nlu_evaluations_v1" params = locals() @@ -8981,9 +9090,10 @@ def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): if full_response: return api_response return api_response.body + def list_nlu_evaluations_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, ListNLUEvaluationsResponseV1, ErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Evaluations_ListNLUEvaluationsResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ List nlu evaluations run for a skill. API which requests recently run nlu evaluations started by a vendor for a skill. Returns the evaluation id and some of the parameters used to start the evaluation. Developers can filter the results using locale and stage. Supports paging of results. @@ -9003,7 +9113,7 @@ def list_nlu_evaluations_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListNLUEvaluationsResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Evaluations_ListNLUEvaluationsResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "list_nlu_evaluations_v1" params = locals() @@ -9073,9 +9183,10 @@ def list_nlu_evaluations_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): - # type: (EvaluateNLURequestV1, str, **Any) -> Union[ApiResponse, EvaluateResponseV1, ErrorV1, BadRequestErrorV1] + # type: (Evaluations_EvaluateNLURequestV1, str, **Any) -> Union[ApiResponse, object, Evaluations_EvaluateResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Start an evaluation against the NLU model built by the skill's interaction model. This is an asynchronous API that starts an evaluation against the NLU model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results upon completion. This operation is unified, meaning both internal and external skill developers may use it evaluate NLU models. @@ -9087,7 +9198,7 @@ def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, EvaluateResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Evaluations_EvaluateResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "create_nlu_evaluations_v1" params = locals() @@ -9153,9 +9264,10 @@ def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): if full_response: return api_response return api_response.body + def publish_skill_v1(self, skill_id, accept_language, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SkillPublicationResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Publication_SkillPublicationResponseV1] """ If the skill is in certified stage, initiate publishing immediately or set a date at which the skill can publish at. @@ -9168,7 +9280,7 @@ def publish_skill_v1(self, skill_id, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SkillPublicationResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Publication_SkillPublicationResponseV1] """ operation_name = "publish_skill_v1" params = locals() @@ -9237,9 +9349,10 @@ def publish_skill_v1(self, skill_id, accept_language, **kwargs): if full_response: return api_response return api_response.body + def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SkillPublicationResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Publication_SkillPublicationResponseV1] """ Retrieves the latest skill publishing details of the certified stage of the skill. The publishesAtDate and status of skill publishing. @@ -9250,7 +9363,7 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SkillPublicationResponseV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Publication_SkillPublicationResponseV1] """ operation_name = "get_skill_publications_v1" params = locals() @@ -9315,9 +9428,10 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): if full_response: return api_response return api_response.body + def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): - # type: (str, CreateRollbackRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, CreateRollbackResponseV1, BadRequestErrorV1] + # type: (str, Skill_CreateRollbackRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_CreateRollbackResponseV1] """ Submit a target skill version to rollback to. Only one rollback or publish operation can be outstanding for a given skillId. @@ -9328,7 +9442,7 @@ def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CreateRollbackResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_CreateRollbackResponseV1] """ operation_name = "rollback_skill_v1" params = locals() @@ -9396,9 +9510,10 @@ def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): if full_response: return api_response return api_response.body + def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, RollbackRequestStatusV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_RollbackRequestStatusV1] """ Get the rollback status of a skill given an associated rollbackRequestId. Use ~latest in place of rollbackRequestId to get the latest rollback status. @@ -9409,7 +9524,7 @@ def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, RollbackRequestStatusV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_RollbackRequestStatusV1] """ operation_name = "get_rollback_for_skill_v1" params = locals() @@ -9476,9 +9591,10 @@ def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): if full_response: return api_response return api_response.body + def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): - # type: (str, SimulationsApiRequestV1, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, SimulationsApiResponseV1] + # type: (str, Simulations_SimulationsApiRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] """ Simulate executing a skill with the given id. This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must be in development stage, and it must also belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. @@ -9490,7 +9606,7 @@ def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, SimulationsApiResponseV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] """ operation_name = "simulate_skill_v1" params = locals() @@ -9558,9 +9674,10 @@ def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): if full_response: return api_response return api_response.body + def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, BadRequestErrorV1, SimulationsApiResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] """ Get the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where the simulation failed, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the skill endpoint. Note that simulation results are stored for 10 minutes. A request for an expired simulation result will return a 404 HTTP status code. @@ -9572,7 +9689,7 @@ def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, BadRequestErrorV1, SimulationsApiResponseV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] """ operation_name = "get_skill_simulation_v1" params = locals() @@ -9638,9 +9755,10 @@ def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): if full_response: return api_response return api_response.body + def get_ssl_certificates_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SSLCertificatePayloadV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SSLCertificatePayloadV1] """ Returns the ssl certificate sets currently associated with this skill. Sets consist of one ssl certificate blob associated with a region as well as the default certificate for the skill. @@ -9649,7 +9767,7 @@ def get_ssl_certificates_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SSLCertificatePayloadV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SSLCertificatePayloadV1] """ operation_name = "get_ssl_certificates_v1" params = locals() @@ -9708,9 +9826,10 @@ def get_ssl_certificates_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): - # type: (str, SSLCertificatePayloadV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Skill_SSLCertificatePayloadV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Updates the ssl certificates associated with this skill. @@ -9721,7 +9840,7 @@ def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "set_ssl_certificates_v1" params = locals() @@ -9787,9 +9906,10 @@ def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): if full_response: return api_response + return None def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Deletes the enablement for given skillId/stage and customerId (retrieved from Auth token). @@ -9800,7 +9920,7 @@ def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_skill_enablement_v1" params = locals() @@ -9867,9 +9987,10 @@ def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): if full_response: return api_response + return None def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Checks whether an enablement exist for given skillId/stage and customerId (retrieved from Auth token) @@ -9880,7 +10001,7 @@ def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_skill_enablement_status_v1" params = locals() @@ -9947,9 +10068,10 @@ def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): if full_response: return api_response + return None def set_skill_enablement_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates/Updates the enablement for given skillId/stage and customerId (retrieved from Auth token) @@ -9960,7 +10082,7 @@ def set_skill_enablement_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "set_skill_enablement_v1" params = locals() @@ -10028,9 +10150,10 @@ def set_skill_enablement_v1(self, skill_id, stage, **kwargs): if full_response: return api_response + return None def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1] """ Creates a new export for a skill with given skillId and stage. @@ -10041,7 +10164,7 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1] """ operation_name = "create_export_request_for_skill_v1" params = locals() @@ -10107,9 +10230,10 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): if full_response: return api_response + return None def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, ErrorV1, ListInSkillProductResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] """ Get the list of in-skill products for the skillId. @@ -10124,7 +10248,7 @@ def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ListInSkillProductResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] """ operation_name = "get_isp_list_for_skill_id_v1" params = locals() @@ -10193,9 +10317,10 @@ def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): if full_response: return api_response return api_response.body + def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs): - # type: (ProfileNluRequestV1, str, str, str, **Any) -> Union[ApiResponse, ErrorV1, ProfileNluResponseV1, BadRequestErrorV1] + # type: (Evaluations_ProfileNluRequestV1, str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Evaluations_ProfileNluResponseV1, V1_ErrorV1] """ Profile a test utterance. This is a synchronous API that profiles an utterance against interaction model. @@ -10211,7 +10336,7 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV1, ProfileNluResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Evaluations_ProfileNluResponseV1, V1_ErrorV1] """ operation_name = "profile_nlu_v1" params = locals() @@ -10289,9 +10414,10 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) if full_response: return api_response return api_response.body + def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, GetConflictDetectionJobStatusResponseV1, BadRequestErrorV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictDetectionJobStatusResponseV1] """ Retrieve conflict detection job status for skill. This API returns the job status of conflict detection job for a specified interaction model. @@ -10307,7 +10433,7 @@ def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, l :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, GetConflictDetectionJobStatusResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictDetectionJobStatusResponseV1] """ operation_name = "get_conflict_detection_job_status_for_interaction_model_v1" params = locals() @@ -10386,9 +10512,10 @@ def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, l if full_response: return api_response return api_response.body + def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, GetConflictsResponseV1, BadRequestErrorV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictsResponseV1] """ Retrieve conflict detection results for a specified interaction model. This is a paginated API that retrieves results of conflict detection job for a specified interaction model. @@ -10408,7 +10535,7 @@ def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, versio :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, GetConflictsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictsResponseV1] """ operation_name = "get_conflicts_for_interaction_model_v1" params = locals() @@ -10491,9 +10618,10 @@ def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, versio if full_response: return api_response return api_response.body + def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListPrivateDistributionAccountsResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Private_ListPrivateDistributionAccountsResponseV1, V1_BadRequestErrorV1] """ List private distribution accounts. @@ -10508,7 +10636,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListPrivateDistributionAccountsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Private_ListPrivateDistributionAccountsResponseV1, V1_BadRequestErrorV1] """ operation_name = "list_private_distribution_accounts_v1" params = locals() @@ -10579,9 +10707,10 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): if full_response: return api_response return api_response.body + def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Remove an id from the private distribution accounts. @@ -10594,7 +10723,7 @@ def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_private_distribution_account_id_v1" params = locals() @@ -10667,9 +10796,10 @@ def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwarg if full_response: return api_response + return None def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Add an id to the private distribution accounts. @@ -10682,7 +10812,7 @@ def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "set_private_distribution_account_id_v1" params = locals() @@ -10755,9 +10885,10 @@ def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): if full_response: return api_response + return None def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Delete AccountLinking information of a skill for the given stage. @@ -10768,7 +10899,7 @@ def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "delete_account_linking_info_v1" params = locals() @@ -10834,9 +10965,10 @@ def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): if full_response: return api_response + return None def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, AccountLinkingResponseV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AccountLinking_AccountLinkingResponseV1] """ Get AccountLinking information for the skill. @@ -10847,7 +10979,7 @@ def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, AccountLinkingResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AccountLinking_AccountLinkingResponseV1] """ operation_name = "get_account_linking_info_v1" params = locals() @@ -10913,9 +11045,10 @@ def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): if full_response: return api_response return api_response.body + def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_request, **kwargs): - # type: (str, str, AccountLinkingRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, AccountLinking_AccountLinkingRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Create AccountLinking information for the skill. @@ -10930,7 +11063,7 @@ def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_req :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_account_linking_info_v1" params = locals() @@ -11006,9 +11139,10 @@ def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_req if full_response: return api_response + return None def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): - # type: (str, str, CloneLocaleRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, Skill_CloneLocaleRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates a new clone locale workflow for a skill with given skillId, source locale, and target locales. In a single workflow, a locale can be cloned to multiple target locales. However, only one such workflow can be started at any time. @@ -11021,7 +11155,7 @@ def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "clone_locale_v1" params = locals() @@ -11095,9 +11229,10 @@ def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): if full_response: return api_response + return None def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, CloneLocaleStatusResponseV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_CloneLocaleStatusResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Returns the status of a clone locale workflow associated with the unique identifier of cloneLocaleRequestId. @@ -11110,7 +11245,7 @@ def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, CloneLocaleStatusResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_CloneLocaleStatusResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_clone_locale_status_v1" params = locals() @@ -11183,9 +11318,10 @@ def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id if full_response: return api_response return api_response.body + def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, InteractionModelDataV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] """ Gets the `InteractionModel` for the skill in the given stage. The path params **skillId**, **stage** and **locale** are required. @@ -11198,7 +11334,7 @@ def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, InteractionModelDataV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] """ operation_name = "get_interaction_model_v1" params = locals() @@ -11271,9 +11407,10 @@ def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): if full_response: return api_response return api_response.body + def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get the latest metadata for the interaction model resource for the given stage. @@ -11286,7 +11423,7 @@ def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_interaction_model_metadata_v1" params = locals() @@ -11359,9 +11496,10 @@ def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs if full_response: return api_response + return None def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model, **kwargs): - # type: (str, str, str, InteractionModelDataV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, str, InteractionModel_InteractionModelDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Creates an `InteractionModel` for the skill. @@ -11378,7 +11516,7 @@ def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "set_interaction_model_v1" params = locals() @@ -11460,9 +11598,10 @@ def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model if full_response: return api_response + return None def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, ListResponseV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Version_ListResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get the list of interactionModel versions of a skill for the vendor. @@ -11483,7 +11622,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ListResponseV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Version_ListResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "list_interaction_model_versions_v1" params = locals() @@ -11564,9 +11703,10 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg if full_response: return api_response return api_response.body + def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, InteractionModelDataV1, BadRequestErrorV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] """ Gets the specified version `InteractionModel` of a skill for the vendor. Use `~current` as version parameter to get the current version model. @@ -11581,7 +11721,7 @@ def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, InteractionModelDataV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] """ operation_name = "get_interaction_model_version_v1" params = locals() @@ -11660,9 +11800,10 @@ def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, if full_response: return api_response return api_response.body + def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, SkillManifestEnvelopeV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Manifest_SkillManifestEnvelopeV1, V1_BadRequestErrorV1] """ Returns the skill manifest for given skillId and stage. @@ -11673,7 +11814,7 @@ def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1, SkillManifestEnvelopeV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Manifest_SkillManifestEnvelopeV1, V1_BadRequestErrorV1] """ operation_name = "get_skill_manifest_v1" params = locals() @@ -11741,9 +11882,10 @@ def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): if full_response: return api_response return api_response.body + def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs): - # type: (str, str, SkillManifestEnvelopeV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, Manifest_SkillManifestEnvelopeV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Updates skill manifest for given skillId and stage. @@ -11758,7 +11900,7 @@ def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **k :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "update_skill_manifest_v1" params = locals() @@ -11835,9 +11977,10 @@ def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **k if full_response: return api_response + return None def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, **kwargs): - # type: (ValidationsApiRequestV1, str, str, **Any) -> Union[ApiResponse, ValidationsApiResponseV1, ErrorV1, BadRequestErrorV1] + # type: (Validations_ValidationsApiRequestV1, str, str, **Any) -> Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Validate a skill. This is an asynchronous API which allows a skill developer to execute various validations against their skill. @@ -11851,7 +11994,7 @@ def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationsApiResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "submit_skill_validation_v1" params = locals() @@ -11924,9 +12067,10 @@ def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, * if full_response: return api_response return api_response.body + def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, ValidationsApiResponseV1, ErrorV1, BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ Get the result of a previously executed validation. This API gets the result of a previously executed validation. A successful response will contain the status of the executed validation. If the validation successfully completed, the response will also contain information related to executed validations. In cases where requests to this API results in an error, the response will contain a description of the problem. In cases where the validation failed, the response will contain a status attribute indicating that a failure occurred. Note that validation results are stored for 60 minutes. A request for an expired validation result will return a 404 HTTP status code. @@ -11942,7 +12086,7 @@ def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ValidationsApiResponseV1, ErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] """ operation_name = "get_skill_validations_v1" params = locals() @@ -12015,9 +12159,10 @@ def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): if full_response: return api_response return api_response.body + def get_skill_status_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, SkillStatusV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_SkillStatusV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Get the status of skill resource and its sub-resources for a given skillId. @@ -12028,7 +12173,7 @@ def get_skill_status_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, SkillStatusV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_SkillStatusV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "get_skill_status_v1" params = locals() @@ -12091,9 +12236,10 @@ def get_skill_status_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def submit_skill_for_certification_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Submit the skill for certification. @@ -12104,7 +12250,7 @@ def submit_skill_for_certification_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "submit_skill_for_certification_v1" params = locals() @@ -12167,9 +12313,10 @@ def submit_skill_for_certification_v1(self, skill_id, **kwargs): if full_response: return api_response + return None def list_versions_for_skill_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, StandardizedErrorV1, ListSkillVersionsResponseV1, BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ListSkillVersionsResponseV1, V1_BadRequestErrorV1] """ Retrieve a list of all skill versions associated with this skill id @@ -12182,7 +12329,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, ListSkillVersionsResponseV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ListSkillVersionsResponseV1, V1_BadRequestErrorV1] """ operation_name = "list_versions_for_skill_v1" params = locals() @@ -12247,9 +12394,10 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): if full_response: return api_response return api_response.body + def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwargs): - # type: (str, WithdrawRequestV1, **Any) -> Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, Skill_WithdrawRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ Withdraws the skill from certification. @@ -12260,7 +12408,7 @@ def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] """ operation_name = "withdraw_skill_from_certification_v1" params = locals() @@ -12327,16 +12475,17 @@ def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwa if full_response: return api_response + return None def create_upload_url_v1(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, StandardizedErrorV1, UploadResponseV1] + # type: (**Any) -> Union[ApiResponse, object, Skill_UploadResponseV1, Skill_StandardizedErrorV1] """ Creates a new uploadUrl. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, StandardizedErrorV1, UploadResponseV1] + :rtype: Union[ApiResponse, object, Skill_UploadResponseV1, Skill_StandardizedErrorV1] """ operation_name = "create_upload_url_v1" params = locals() @@ -12388,16 +12537,17 @@ def create_upload_url_v1(self, **kwargs): if full_response: return api_response return api_response.body + def get_vendor_list_v1(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, VendorsV1, ErrorV1] + # type: (**Any) -> Union[ApiResponse, object, V1_ErrorV1, VendorManagement_VendorsV1] """ Get the list of Vendor information. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, VendorsV1, ErrorV1] + :rtype: Union[ApiResponse, object, V1_ErrorV1, VendorManagement_VendorsV1] """ operation_name = "get_vendor_list_v1" params = locals() @@ -12449,9 +12599,10 @@ def get_vendor_list_v1(self, **kwargs): if full_response: return api_response return api_response.body + def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, HostedSkillPermissionV1, StandardizedErrorV1, BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, AlexaHosted_HostedSkillPermissionV1, V1_BadRequestErrorV1] """ Get the current user permissions about Alexa hosted skill features. @@ -12462,7 +12613,7 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, HostedSkillPermissionV1, StandardizedErrorV1, BadRequestErrorV1] + :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, AlexaHosted_HostedSkillPermissionV1, V1_BadRequestErrorV1] """ operation_name = "get_alexa_hosted_skill_user_permissions_v1" params = locals() @@ -12527,9 +12678,10 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw if full_response: return api_response return api_response.body + def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, **kwargs): - # type: (str, str, InvocationsApiRequestV2, **Any) -> Union[ApiResponse, ErrorV2, BadRequestErrorV2, InvocationsApiResponseV2] + # type: (str, str, Invocations_InvocationsApiRequestV2, **Any) -> Union[ApiResponse, object, Invocations_InvocationsApiResponseV2, V2_ErrorV2, V2_BadRequestErrorV2] """ Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where invoking the skill endpoint specifically fails, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the endpoint. The skill must belong to and be enabled by the user of this API. Also, note that calls to the skill endpoint will timeout after 10 seconds. This API is currently designed in a way that allows extension to an asynchronous API if a significantly bigger timeout is required. @@ -12543,7 +12695,7 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV2, BadRequestErrorV2, InvocationsApiResponseV2] + :rtype: Union[ApiResponse, object, Invocations_InvocationsApiResponseV2, V2_ErrorV2, V2_BadRequestErrorV2] """ operation_name = "invoke_skill_end_point_v2" params = locals() @@ -12616,9 +12768,10 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** if full_response: return api_response return api_response.body + def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): - # type: (str, str, SimulationsApiRequestV2, **Any) -> Union[ApiResponse, ErrorV2, BadRequestErrorV2, SimulationsApiResponseV2] + # type: (str, str, Simulations_SimulationsApiRequestV2, **Any) -> Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] """ Simulate executing a skill with the given id against a given stage. This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. @@ -12632,7 +12785,7 @@ def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV2, BadRequestErrorV2, SimulationsApiResponseV2] + :rtype: Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] """ operation_name = "simulate_skill_v2" params = locals() @@ -12706,9 +12859,10 @@ def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): if full_response: return api_response return api_response.body + def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, ErrorV2, BadRequestErrorV2, SimulationsApiResponseV2] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] """ Get the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where the simulation failed, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the skill endpoint. Note that simulation results are stored for 10 minutes. A request for an expired simulation result will return a 404 HTTP status code. @@ -12722,7 +12876,7 @@ def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, ErrorV2, BadRequestErrorV2, SimulationsApiResponseV2] + :rtype: Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] """ operation_name = "get_skill_simulation_v2" params = locals() @@ -12794,3 +12948,4 @@ def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): if full_response: return api_response return api_response.body + diff --git a/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py index aee5804..a0a5f5d 100644 --- a/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.error import ErrorV0 + from ask_smapi_model.v0.error import Error as V0_ErrorV0 class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[ErrorV0]]) -> None + # type: (Optional[str], Optional[List[V0_ErrorV0]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py index 9482a88..0ab5f80 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 class CatalogDetails(object): @@ -68,7 +68,7 @@ class CatalogDetails(object): supports_multiple_types = False def __init__(self, id=None, title=None, object_type=None, usage=None, last_updated_date=None, created_date=None, associated_skill_ids=None): - # type: (Optional[str], Optional[str], Optional[CatalogTypeV0], Optional[CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """ :param id: Unique identifier of the added catalog object. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py index 58aaedc..cb6d35e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 class CatalogSummary(object): @@ -68,7 +68,7 @@ class CatalogSummary(object): supports_multiple_types = False def __init__(self, id=None, title=None, object_type=None, usage=None, last_updated_date=None, created_date=None, associated_skill_ids=None): - # type: (Optional[str], Optional[str], Optional[CatalogTypeV0], Optional[CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """ :param id: Unique identifier of the added catalog object. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_type.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_type.py index d95efc2..3699281 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_type.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -43,7 +43,7 @@ class CatalogType(Enum): AMAZON_AudioRecording = "AMAZON.AudioRecording" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -59,7 +59,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CatalogType): return False @@ -67,6 +67,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_usage.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_usage.py index 8443b55..cd48782 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_usage.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_usage.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -43,7 +43,7 @@ class CatalogUsage(Enum): AlexaTest_Catalog_AudioRecording = "AlexaTest.Catalog.AudioRecording" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -59,7 +59,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CatalogUsage): return False @@ -67,6 +67,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py b/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py index a935432..fa0fcad 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 class CreateCatalogRequest(object): @@ -56,7 +56,7 @@ class CreateCatalogRequest(object): supports_multiple_types = False def __init__(self, title=None, object_type=None, usage=None, vendor_id=None): - # type: (Optional[str], Optional[CatalogTypeV0], Optional[CatalogUsageV0], Optional[str]) -> None + # type: (Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[str]) -> None """ :param title: Title of the catalog. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py index 33b7789..ea51650 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import LinksV0 - from ask_smapi_model.v0.catalog.catalog_summary import CatalogSummaryV0 + from ask_smapi_model.v0.links import Links as V0_LinksV0 + from ask_smapi_model.v0.catalog.catalog_summary import CatalogSummary as Catalog_CatalogSummaryV0 class ListCatalogsResponse(object): @@ -58,7 +58,7 @@ class ListCatalogsResponse(object): supports_multiple_types = False def __init__(self, links=None, catalogs=None, is_truncated=None, next_token=None): - # type: (Optional[LinksV0], Optional[List[CatalogSummaryV0]], Optional[bool], Optional[str]) -> None + # type: (Optional[V0_LinksV0], Optional[List[Catalog_CatalogSummaryV0]], Optional[bool], Optional[str]) -> None """Information about catalogs. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py index 679c72c..62af3fc 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.pre_signed_url_item import PreSignedUrlItemV0 + from ask_smapi_model.v0.catalog.upload.pre_signed_url_item import PreSignedUrlItem as Upload_PreSignedUrlItemV0 class CompleteUploadRequest(object): @@ -43,7 +43,7 @@ class CompleteUploadRequest(object): supports_multiple_types = False def __init__(self, part_e_tags=None): - # type: (Optional[List[PreSignedUrlItemV0]]) -> None + # type: (Optional[List[Upload_PreSignedUrlItemV0]]) -> None """ :param part_e_tags: List of (eTag, part number) pairs for each part of the file uploaded. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py index f9e18a1..9547b90 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.file_upload_status import FileUploadStatusV0 + from ask_smapi_model.v0.catalog.upload.file_upload_status import FileUploadStatus as Upload_FileUploadStatusV0 class ContentUploadFileSummary(object): @@ -47,7 +47,7 @@ class ContentUploadFileSummary(object): supports_multiple_types = False def __init__(self, presigned_download_url=None, status=None): - # type: (Optional[str], Optional[FileUploadStatusV0]) -> None + # type: (Optional[str], Optional[Upload_FileUploadStatusV0]) -> None """ :param presigned_download_url: If the file is available for download, presigned download URL can be used to download the file. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py index f1fc6e4..6ba67b0 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 class ContentUploadSummary(object): @@ -59,7 +59,7 @@ class ContentUploadSummary(object): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None): - # type: (Optional[str], Optional[str], Optional[UploadStatusV0], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime]) -> None """ :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_request.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_request.py index 8eca530..0744397 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py index ec6ebf1..f16e517 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStepV0 - from ask_smapi_model.v0.catalog.upload.presigned_upload_part import PresignedUploadPartV0 - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV0 + from ask_smapi_model.v0.catalog.upload.presigned_upload_part import PresignedUploadPart as Upload_PresignedUploadPartV0 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 class CreateContentUploadResponse(ContentUploadSummary): @@ -72,7 +72,7 @@ class CreateContentUploadResponse(ContentUploadSummary): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, ingestion_steps=None, presigned_upload_parts=None): - # type: (Optional[str], Optional[str], Optional[UploadStatusV0], Optional[datetime], Optional[datetime], Optional[List[UploadIngestionStepV0]], Optional[List[PresignedUploadPartV0]]) -> None + # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime], Optional[List[Upload_UploadIngestionStepV0]], Optional[List[Upload_PresignedUploadPartV0]]) -> None """Request body for self-hosted catalog uploads. :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/file_upload_status.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/file_upload_status.py index 54e4fdc..6d28cee 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/file_upload_status.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/file_upload_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class FileUploadStatus(Enum): UNAVAILABLE = "UNAVAILABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FileUploadStatus): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py index 08a5029..663ecbe 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStepV0 - from ask_smapi_model.v0.catalog.upload.content_upload_file_summary import ContentUploadFileSummaryV0 - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as Upload_ContentUploadFileSummaryV0 + from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV0 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 class GetContentUploadResponse(ContentUploadSummary): @@ -72,7 +72,7 @@ class GetContentUploadResponse(ContentUploadSummary): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, file=None, ingestion_steps=None): - # type: (Optional[str], Optional[str], Optional[UploadStatusV0], Optional[datetime], Optional[datetime], Optional[ContentUploadFileSummaryV0], Optional[List[UploadIngestionStepV0]]) -> None + # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime], Optional[Upload_ContentUploadFileSummaryV0], Optional[List[Upload_UploadIngestionStepV0]]) -> None """Response object for get content upload request. :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_status.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_status.py index ae46697..14b4823 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_status.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class IngestionStatus(Enum): CANCELLED = "CANCELLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IngestionStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_step_name.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_step_name.py index 9cc1f9e..c7890b8 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_step_name.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/ingestion_step_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class IngestionStepName(Enum): SCHEMA_VALIDATION = "SCHEMA_VALIDATION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IngestionStepName): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py index 855d4fb..c9fb462 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.content_upload_summary import ContentUploadSummaryV0 - from ask_smapi_model.v0.links import LinksV0 + from ask_smapi_model.v0.links import Links as V0_LinksV0 + from ask_smapi_model.v0.catalog.upload.content_upload_summary import ContentUploadSummary as Upload_ContentUploadSummaryV0 class ListUploadsResponse(object): @@ -56,7 +56,7 @@ class ListUploadsResponse(object): supports_multiple_types = False def __init__(self, links=None, is_truncated=None, next_token=None, uploads=None): - # type: (Optional[LinksV0], Optional[bool], Optional[str], Optional[List[ContentUploadSummaryV0]]) -> None + # type: (Optional[V0_LinksV0], Optional[bool], Optional[str], Optional[List[Upload_ContentUploadSummaryV0]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/pre_signed_url_item.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/pre_signed_url_item.py index d467a9f..b7402bc 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/pre_signed_url_item.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/pre_signed_url_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/presigned_upload_part.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/presigned_upload_part.py index a204fc8..1572076 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/presigned_upload_part.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/presigned_upload_part.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py index 8251a53..87d4112 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.ingestion_step_name import IngestionStepNameV0 - from ask_smapi_model.v0.error import ErrorV0 - from ask_smapi_model.v0.catalog.upload.ingestion_status import IngestionStatusV0 + from ask_smapi_model.v0.error import Error as V0_ErrorV0 + from ask_smapi_model.v0.catalog.upload.ingestion_step_name import IngestionStepName as Upload_IngestionStepNameV0 + from ask_smapi_model.v0.catalog.upload.ingestion_status import IngestionStatus as Upload_IngestionStatusV0 class UploadIngestionStep(object): @@ -59,7 +59,7 @@ class UploadIngestionStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, log_url=None, errors=None): - # type: (Optional[IngestionStepNameV0], Optional[IngestionStatusV0], Optional[str], Optional[List[ErrorV0]]) -> None + # type: (Optional[Upload_IngestionStepNameV0], Optional[Upload_IngestionStatusV0], Optional[str], Optional[List[V0_ErrorV0]]) -> None """Represents a single step in the ingestion process of a new upload. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_status.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_status.py index 04c6e86..355a5ed 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_status.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class UploadStatus(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, UploadStatus): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py index 7683a6f..4063bc0 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 class CreateSubscriberRequest(object): @@ -51,7 +51,7 @@ class CreateSubscriberRequest(object): supports_multiple_types = False def __init__(self, name=None, vendor_id=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[Subscriber_EndpointV0]) -> None """ :param name: Name of the subscriber. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py index 948ec4d..8faf697 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint_authorization import EndpointAuthorizationV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint_authorization import EndpointAuthorization as Subscriber_EndpointAuthorizationV0 class Endpoint(object): @@ -47,7 +47,7 @@ class Endpoint(object): supports_multiple_types = False def __init__(self, uri=None, authorization=None): - # type: (Optional[str], Optional[EndpointAuthorizationV0]) -> None + # type: (Optional[str], Optional[Subscriber_EndpointAuthorizationV0]) -> None """ :param uri: Uri of the endpoint that receives the notification. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization.py index 2cfc31b..cc67a97 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization_type.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization_type.py index a82f273..0172a31 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization_type.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_authorization_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class EndpointAuthorizationType(Enum): AWS_IAM = "AWS_IAM" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EndpointAuthorizationType): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_aws_authorization.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_aws_authorization.py index 5261c71..d6c5dec 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_aws_authorization.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint_aws_authorization.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py index a7e7965..9524421 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.subscriber_summary import SubscriberSummaryV0 - from ask_smapi_model.v0.links import LinksV0 + from ask_smapi_model.v0.links import Links as V0_LinksV0 + from ask_smapi_model.v0.development_events.subscriber.subscriber_summary import SubscriberSummary as Subscriber_SubscriberSummaryV0 class ListSubscribersResponse(object): @@ -52,7 +52,7 @@ class ListSubscribersResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscribers=None): - # type: (Optional[LinksV0], Optional[str], Optional[List[SubscriberSummaryV0]]) -> None + # type: (Optional[V0_LinksV0], Optional[str], Optional[List[Subscriber_SubscriberSummaryV0]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py index ecc35db..69af0e9 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 class SubscriberInfo(object): @@ -53,7 +53,7 @@ class SubscriberInfo(object): supports_multiple_types = False def __init__(self, subscriber_id=None, name=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[Subscriber_EndpointV0]) -> None """Information about the subscriber. :param subscriber_id: Unique identifier of the subscriber resource. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_status.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_status.py index 6b81427..e4cbbc5 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_status.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SubscriberStatus(Enum): INACTIVE = "INACTIVE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SubscriberStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py index 0114d15..de39466 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import EndpointV0 - from ask_smapi_model.v0.development_events.subscriber.subscriber_status import SubscriberStatusV0 + from ask_smapi_model.v0.development_events.subscriber.subscriber_status import SubscriberStatus as Subscriber_SubscriberStatusV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 class SubscriberSummary(object): @@ -60,7 +60,7 @@ class SubscriberSummary(object): supports_multiple_types = False def __init__(self, subscriber_id=None, name=None, status=None, client_id=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[SubscriberStatusV0], Optional[str], Optional[EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[Subscriber_SubscriberStatusV0], Optional[str], Optional[Subscriber_EndpointV0]) -> None """ :param subscriber_id: Unique identifier of the subscriber resource. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py index 1768054..d919f5a 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 class UpdateSubscriberRequest(object): @@ -47,7 +47,7 @@ class UpdateSubscriberRequest(object): supports_multiple_types = False def __init__(self, name=None, endpoint=None): - # type: (Optional[str], Optional[EndpointV0]) -> None + # type: (Optional[str], Optional[Subscriber_EndpointV0]) -> None """ :param name: Name of the subscriber. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py index 141bf93..5f7d15e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 class CreateSubscriptionRequest(object): @@ -55,7 +55,7 @@ class CreateSubscriptionRequest(object): supports_multiple_types = False def __init__(self, name=None, events=None, vendor_id=None, subscriber_id=None): - # type: (Optional[str], Optional[List[EventV0]], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[List[Subscription_EventV0]], Optional[str], Optional[str]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py index 6fa0ba1..b3140ba 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class Event(Enum): AlexaDevelopmentEvent_All = "AlexaDevelopmentEvent.All" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Event): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py index 9c44350..8745c4c 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.subscription_summary import SubscriptionSummaryV0 - from ask_smapi_model.v0.links import LinksV0 + from ask_smapi_model.v0.development_events.subscription.subscription_summary import SubscriptionSummary as Subscription_SubscriptionSummaryV0 + from ask_smapi_model.v0.links import Links as V0_LinksV0 class ListSubscriptionsResponse(object): @@ -52,7 +52,7 @@ class ListSubscriptionsResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscriptions=None): - # type: (Optional[LinksV0], Optional[str], Optional[List[SubscriptionSummaryV0]]) -> None + # type: (Optional[V0_LinksV0], Optional[str], Optional[List[Subscription_SubscriptionSummaryV0]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py index 2f55bdd..0327d99 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 class SubscriptionInfo(object): @@ -59,7 +59,7 @@ class SubscriptionInfo(object): supports_multiple_types = False def __init__(self, name=None, subscription_id=None, subscriber_id=None, vendor_id=None, events=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[EventV0]]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Subscription_EventV0]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py index af40dc9..7c2275e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 class SubscriptionSummary(object): @@ -59,7 +59,7 @@ class SubscriptionSummary(object): supports_multiple_types = False def __init__(self, name=None, subscription_id=None, subscriber_id=None, vendor_id=None, events=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[EventV0]]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Subscription_EventV0]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py index 55570c6..13ff15f 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 class UpdateSubscriptionRequest(object): @@ -47,7 +47,7 @@ class UpdateSubscriptionRequest(object): supports_multiple_types = False def __init__(self, name=None, events=None): - # type: (Optional[str], Optional[List[EventV0]]) -> None + # type: (Optional[str], Optional[List[Subscription_EventV0]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/error.py b/ask-smapi-model/ask_smapi_model/v0/error.py index 7de1f24..e31fd1c 100644 --- a/ask-smapi-model/ask_smapi_model/v0/error.py +++ b/ask-smapi-model/ask_smapi_model/v0/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/actor_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/actor_attributes.py index 027402a..baa2add 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/actor_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/actor_attributes.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py index 783fcf1..44cf3e5 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.interaction_model_event_attributes import InteractionModelEventAttributesV0 + from ask_smapi_model.v0.event_schema.interaction_model_event_attributes import InteractionModelEventAttributes as EventSchema_InteractionModelEventAttributesV0 class InteractionModelUpdate(BaseSchema): @@ -56,7 +56,7 @@ class InteractionModelUpdate(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[InteractionModelEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[EventSchema_InteractionModelEventAttributesV0]) -> None """'AlexaDevelopmentEvent.InteractionModelUpdate' event represents the status of set/update interaction model request. The update request may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py index 55fe459..d8dc448 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 class ManifestUpdate(BaseSchema): @@ -56,7 +56,7 @@ class ManifestUpdate(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None """'AlexaDevelopmentEvent.ManifestUpdate' event represents the status of the update request on the Manifest. This event is generated when request to create a skill or update an existing skill is completed. The request may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py index 48696ee..05a7f95 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 class SkillCertification(BaseSchema): @@ -56,7 +56,7 @@ class SkillCertification(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None """'AlexaDevelopmentEvent.SkillCertification' event represents the status of various validations of `certification workflow`. This step may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py index b48e644..e080e7b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 class SkillPublish(BaseSchema): @@ -56,7 +56,7 @@ class SkillPublish(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None """'AlexaDevelopmentEvent.SkillPublish' event represents the status of publish to live operation. When a developer submits a skill for certification, it goes through `certification workflow` followed by publish to live workflow. This event is generated in publish workflow and may complete either with `SUCCEEDED` or `FAILED` status. If 'SUCCEEDED', users can see and enable latest version of the skill via Alexa Skill Store. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py index 38dd19c..56c1245 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py index 1efa972..90a6a9b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py index 4b87b43..f110bae 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributesV0 - from ask_smapi_model.v0.event_schema.interaction_model_attributes import InteractionModelAttributesV0 - from ask_smapi_model.v0.event_schema.request_status import RequestStatusV0 - from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributesV0 + from ask_smapi_model.v0.event_schema.request_status import RequestStatus as EventSchema_RequestStatusV0 + from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as EventSchema_ActorAttributesV0 + from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as EventSchema_SubscriptionAttributesV0 + from ask_smapi_model.v0.event_schema.interaction_model_attributes import InteractionModelAttributes as EventSchema_InteractionModelAttributesV0 class InteractionModelEventAttributes(object): @@ -60,7 +60,7 @@ class InteractionModelEventAttributes(object): supports_multiple_types = False def __init__(self, status=None, actor=None, interaction_model=None, subscription=None): - # type: (Optional[RequestStatusV0], Optional[ActorAttributesV0], Optional[InteractionModelAttributesV0], Optional[SubscriptionAttributesV0]) -> None + # type: (Optional[EventSchema_RequestStatusV0], Optional[EventSchema_ActorAttributesV0], Optional[EventSchema_InteractionModelAttributesV0], Optional[EventSchema_SubscriptionAttributesV0]) -> None """Interaction model event specific attributes. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/request_status.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/request_status.py index 8c0303e..ac010d8 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/request_status.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/request_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class RequestStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RequestStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_attributes.py index ffb9131..51371ff 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_attributes.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py index a94954f..01db604 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributesV0 - from ask_smapi_model.v0.event_schema.request_status import RequestStatusV0 - from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributesV0 - from ask_smapi_model.v0.event_schema.skill_attributes import SkillAttributesV0 + from ask_smapi_model.v0.event_schema.request_status import RequestStatus as EventSchema_RequestStatusV0 + from ask_smapi_model.v0.event_schema.skill_attributes import SkillAttributes as EventSchema_SkillAttributesV0 + from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as EventSchema_ActorAttributesV0 + from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as EventSchema_SubscriptionAttributesV0 class SkillEventAttributes(object): @@ -60,7 +60,7 @@ class SkillEventAttributes(object): supports_multiple_types = False def __init__(self, status=None, actor=None, skill=None, subscription=None): - # type: (Optional[RequestStatusV0], Optional[ActorAttributesV0], Optional[SkillAttributesV0], Optional[SubscriptionAttributesV0]) -> None + # type: (Optional[EventSchema_RequestStatusV0], Optional[EventSchema_ActorAttributesV0], Optional[EventSchema_SkillAttributesV0], Optional[EventSchema_SubscriptionAttributesV0]) -> None """Skill event specific attributes. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/subscription_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/subscription_attributes.py index 3a90178..2439717 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/subscription_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/subscription_attributes.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/link.py b/ask-smapi-model/ask_smapi_model/v0/link.py index f49885a..1ea807e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/link.py +++ b/ask-smapi-model/ask_smapi_model/v0/link.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v0/links.py b/ask-smapi-model/ask_smapi_model/v0/links.py index 563f152..a57d85d 100644 --- a/ask-smapi-model/ask_smapi_model/v0/links.py +++ b/ask-smapi-model/ask_smapi_model/v0/links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.link import LinkV0 + from ask_smapi_model.v0.link import Link as V0_LinkV0 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[LinkV0], Optional[LinkV0]) -> None + # type: (Optional[V0_LinkV0], Optional[V0_LinkV0]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py index b43dbd2..fc6dce5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.operation import OperationV1 - from ask_smapi_model.v1.audit_logs.resource import ResourceV1 - from ask_smapi_model.v1.audit_logs.requester import RequesterV1 - from ask_smapi_model.v1.audit_logs.client import ClientV1 + from ask_smapi_model.v1.audit_logs.client import Client as AuditLogs_ClientV1 + from ask_smapi_model.v1.audit_logs.requester import Requester as AuditLogs_RequesterV1 + from ask_smapi_model.v1.audit_logs.resource import Resource as AuditLogs_ResourceV1 + from ask_smapi_model.v1.audit_logs.operation import Operation as AuditLogs_OperationV1 class AuditLog(object): @@ -70,7 +70,7 @@ class AuditLog(object): supports_multiple_types = False def __init__(self, x_amzn_request_id=None, timestamp=None, client=None, operation=None, resources=None, requester=None, http_response_code=None): - # type: (Optional[str], Optional[datetime], Optional[ClientV1], Optional[OperationV1], Optional[List[ResourceV1]], Optional[RequesterV1], Optional[int]) -> None + # type: (Optional[str], Optional[datetime], Optional[AuditLogs_ClientV1], Optional[AuditLogs_OperationV1], Optional[List[AuditLogs_ResourceV1]], Optional[AuditLogs_RequesterV1], Optional[int]) -> None """ :param x_amzn_request_id: UUID that identifies a specific request. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py index 6282f7c..120c02d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.sort_field import SortFieldV1 - from ask_smapi_model.v1.audit_logs.request_pagination_context import RequestPaginationContextV1 - from ask_smapi_model.v1.audit_logs.sort_direction import SortDirectionV1 - from ask_smapi_model.v1.audit_logs.request_filters import RequestFiltersV1 + from ask_smapi_model.v1.audit_logs.sort_direction import SortDirection as AuditLogs_SortDirectionV1 + from ask_smapi_model.v1.audit_logs.request_filters import RequestFilters as AuditLogs_RequestFiltersV1 + from ask_smapi_model.v1.audit_logs.sort_field import SortField as AuditLogs_SortFieldV1 + from ask_smapi_model.v1.audit_logs.request_pagination_context import RequestPaginationContext as AuditLogs_RequestPaginationContextV1 class AuditLogsRequest(object): @@ -62,7 +62,7 @@ class AuditLogsRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, request_filters=None, sort_direction=None, sort_field=None, pagination_context=None): - # type: (Optional[str], Optional[RequestFiltersV1], Optional[SortDirectionV1], Optional[SortFieldV1], Optional[RequestPaginationContextV1]) -> None + # type: (Optional[str], Optional[AuditLogs_RequestFiltersV1], Optional[AuditLogs_SortDirectionV1], Optional[AuditLogs_SortFieldV1], Optional[AuditLogs_RequestPaginationContextV1]) -> None """ :param vendor_id: Vendor Id. See developer.amazon.com/mycid.html. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py index 77a9db6..1f271d3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.audit_log import AuditLogV1 - from ask_smapi_model.v1.audit_logs.response_pagination_context import ResponsePaginationContextV1 + from ask_smapi_model.v1.audit_logs.audit_log import AuditLog as AuditLogs_AuditLogV1 + from ask_smapi_model.v1.audit_logs.response_pagination_context import ResponsePaginationContext as AuditLogs_ResponsePaginationContextV1 class AuditLogsResponse(object): @@ -50,7 +50,7 @@ class AuditLogsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, audit_logs=None): - # type: (Optional[ResponsePaginationContextV1], Optional[List[AuditLogV1]]) -> None + # type: (Optional[AuditLogs_ResponsePaginationContextV1], Optional[List[AuditLogs_AuditLogV1]]) -> None """Response to the Query Audit Logs API. It contains the collection of audit logs for the vendor, nextToken and other metadata related to the search query. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/client.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/client.py index 3130065..c62e4fa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/client.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/client.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/client_filter.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/client_filter.py index e786313..7b8af63 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/client_filter.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/client_filter.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation.py index 59abb81..ff5aa97 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation_filter.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation_filter.py index 69194c2..d395310 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation_filter.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/operation_filter.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py index 4a109c3..c214e6f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.resource_filter import ResourceFilterV1 - from ask_smapi_model.v1.audit_logs.client_filter import ClientFilterV1 - from ask_smapi_model.v1.audit_logs.operation_filter import OperationFilterV1 - from ask_smapi_model.v1.audit_logs.requester_filter import RequesterFilterV1 + from ask_smapi_model.v1.audit_logs.client_filter import ClientFilter as AuditLogs_ClientFilterV1 + from ask_smapi_model.v1.audit_logs.resource_filter import ResourceFilter as AuditLogs_ResourceFilterV1 + from ask_smapi_model.v1.audit_logs.requester_filter import RequesterFilter as AuditLogs_RequesterFilterV1 + from ask_smapi_model.v1.audit_logs.operation_filter import OperationFilter as AuditLogs_OperationFilterV1 class RequestFilters(object): @@ -72,7 +72,7 @@ class RequestFilters(object): supports_multiple_types = False def __init__(self, clients=None, operations=None, resources=None, requesters=None, start_time=None, end_time=None, http_response_codes=None): - # type: (Optional[List[ClientFilterV1]], Optional[List[OperationFilterV1]], Optional[List[ResourceFilterV1]], Optional[List[RequesterFilterV1]], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[List[AuditLogs_ClientFilterV1]], Optional[List[AuditLogs_OperationFilterV1]], Optional[List[AuditLogs_ResourceFilterV1]], Optional[List[AuditLogs_RequesterFilterV1]], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """Request Filters for filtering audit logs. :param clients: List of Client IDs for filtering. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py index 78edd5a..b8d9789 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester.py index 3b921c6..6b51054 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester_filter.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester_filter.py index 4ceed6e..679ea01 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester_filter.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/requester_filter.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource.py index 913f874..188fdbb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py index 3ceb455..fdc47b3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.resource_type_enum import ResourceTypeEnumV1 + from ask_smapi_model.v1.audit_logs.resource_type_enum import ResourceTypeEnum as AuditLogs_ResourceTypeEnumV1 class ResourceFilter(object): @@ -49,7 +49,7 @@ class ResourceFilter(object): supports_multiple_types = False def __init__(self, id=None, object_type=None): - # type: (Optional[str], Optional[ResourceTypeEnumV1]) -> None + # type: (Optional[str], Optional[AuditLogs_ResourceTypeEnumV1]) -> None """Resource that the developer operated on. Both do not need to be provided. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_type_enum.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_type_enum.py index 7cbbb10..5a6242c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_type_enum.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_type_enum.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ResourceTypeEnum(Enum): Export = "Export" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResourceTypeEnum): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/response_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/response_pagination_context.py index 9e3fd9c..0f3097a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/response_pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/response_pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_direction.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_direction.py index f9e8151..f633e33 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_direction.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_direction.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SortDirection(Enum): DESC = "DESC" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SortDirection): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_field.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_field.py index a7fdb22..9fcf41d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_field.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/sort_field.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class SortField(Enum): httpResponseCode = "httpResponseCode" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SortField): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py index c97b811..daa19a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.error import ErrorV1 + from ask_smapi_model.v1.error import Error as V1_ErrorV1 class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[ErrorV1]]) -> None + # type: (Optional[str], Optional[List[V1_ErrorV1]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_request.py b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_request.py index 402482d..89b9bfa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py index baad7e6..626a30e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.presigned_upload_part_items import PresignedUploadPartItemsV1 + from ask_smapi_model.v1.catalog.presigned_upload_part_items import PresignedUploadPartItems as Catalog_PresignedUploadPartItemsV1 class CreateContentUploadUrlResponse(object): @@ -47,7 +47,7 @@ class CreateContentUploadUrlResponse(object): supports_multiple_types = False def __init__(self, url_id=None, pre_signed_upload_parts=None): - # type: (Optional[str], Optional[List[PresignedUploadPartItemsV1]]) -> None + # type: (Optional[str], Optional[List[Catalog_PresignedUploadPartItemsV1]]) -> None """ :param url_id: Unique identifier for collection of generated urls. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/presigned_upload_part_items.py b/ask-smapi-model/ask_smapi_model/v1/catalog/presigned_upload_part_items.py index d3dcb42..aae81f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/presigned_upload_part_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/presigned_upload_part_items.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/catalog_upload_base.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/catalog_upload_base.py index 31a7d96..8404788 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/catalog_upload_base.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/catalog_upload_base.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py index c7c550b..d0d9cea 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.file_upload_status import FileUploadStatusV1 + from ask_smapi_model.v1.catalog.upload.file_upload_status import FileUploadStatus as Upload_FileUploadStatusV1 class ContentUploadFileSummary(object): @@ -51,7 +51,7 @@ class ContentUploadFileSummary(object): supports_multiple_types = False def __init__(self, download_url=None, expires_at=None, status=None): - # type: (Optional[str], Optional[datetime], Optional[FileUploadStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[Upload_FileUploadStatusV1]) -> None """ :param download_url: If the file is available for download, downloadUrl can be used to download the file. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/file_upload_status.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/file_upload_status.py index 54e4fdc..6d28cee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/file_upload_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/file_upload_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class FileUploadStatus(Enum): UNAVAILABLE = "UNAVAILABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FileUploadStatus): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py index b841cc3..a71a189 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.upload_status import UploadStatusV1 - from ask_smapi_model.v1.catalog.upload.content_upload_file_summary import ContentUploadFileSummaryV1 - from ask_smapi_model.v1.catalog.upload.upload_ingestion_step import UploadIngestionStepV1 + from ask_smapi_model.v1.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV1 + from ask_smapi_model.v1.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as Upload_ContentUploadFileSummaryV1 + from ask_smapi_model.v1.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV1 class GetContentUploadResponse(object): @@ -69,7 +69,7 @@ class GetContentUploadResponse(object): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, file=None, ingestion_steps=None): - # type: (Optional[str], Optional[str], Optional[UploadStatusV1], Optional[datetime], Optional[datetime], Optional[ContentUploadFileSummaryV1], Optional[List[UploadIngestionStepV1]]) -> None + # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV1], Optional[datetime], Optional[datetime], Optional[Upload_ContentUploadFileSummaryV1], Optional[List[Upload_UploadIngestionStepV1]]) -> None """ :param id: Unique identifier of the upload diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_status.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_status.py index ae46697..14b4823 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class IngestionStatus(Enum): CANCELLED = "CANCELLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IngestionStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_step_name.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_step_name.py index 9cc1f9e..c7890b8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_step_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/ingestion_step_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class IngestionStepName(Enum): SCHEMA_VALIDATION = "SCHEMA_VALIDATION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IngestionStepName): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/location.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/location.py index 5acec8d..eea1e56 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/location.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/location.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py index d8fc17f..e99ce85 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.pre_signed_url_item import PreSignedUrlItemV1 + from ask_smapi_model.v1.catalog.upload.pre_signed_url_item import PreSignedUrlItem as Upload_PreSignedUrlItemV1 class PreSignedUrl(CatalogUploadBase): @@ -50,7 +50,7 @@ class PreSignedUrl(CatalogUploadBase): supports_multiple_types = False def __init__(self, url_id=None, part_e_tags=None): - # type: (Optional[str], Optional[List[PreSignedUrlItemV1]]) -> None + # type: (Optional[str], Optional[List[Upload_PreSignedUrlItemV1]]) -> None """Request body for self-hosted catalog uploads :param url_id: Unique identifier for urls diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url_item.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url_item.py index d467a9f..b7402bc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url_item.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py index 88f10a1..73f8e3b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.ingestion_status import IngestionStatusV1 - from ask_smapi_model.v1.catalog.upload.ingestion_step_name import IngestionStepNameV1 - from ask_smapi_model.v1.error import ErrorV1 + from ask_smapi_model.v1.catalog.upload.ingestion_step_name import IngestionStepName as Upload_IngestionStepNameV1 + from ask_smapi_model.v1.error import Error as V1_ErrorV1 + from ask_smapi_model.v1.catalog.upload.ingestion_status import IngestionStatus as Upload_IngestionStatusV1 class UploadIngestionStep(object): @@ -59,7 +59,7 @@ class UploadIngestionStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, log_url=None, violations=None): - # type: (Optional[IngestionStepNameV1], Optional[IngestionStatusV1], Optional[str], Optional[List[ErrorV1]]) -> None + # type: (Optional[Upload_IngestionStepNameV1], Optional[Upload_IngestionStatusV1], Optional[str], Optional[List[V1_ErrorV1]]) -> None """Represents a single step in the multi-step ingestion process of a new upload. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_status.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_status.py index b64b414..a9aa07f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class UploadStatus(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, UploadStatus): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/error.py b/ask-smapi-model/ask_smapi_model/v1/error.py index a7d162a..a942904 100644 --- a/ask-smapi-model/ask_smapi_model/v1/error.py +++ b/ask-smapi-model/ask_smapi_model/v1/error.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py index fc6abd5..15de8f9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class AssociatedSkillResponse(object): @@ -57,7 +57,7 @@ class AssociatedSkillResponse(object): supports_multiple_types = False def __init__(self, associated_skill_ids=None, links=None, is_truncated=None, next_token=None): - # type: (Optional[List[object]], Optional[LinksV1], Optional[bool], Optional[str]) -> None + # type: (Optional[List[object]], Optional[V1_LinksV1], Optional[bool], Optional[str]) -> None """In-skill product skill association details. :param associated_skill_ids: List of skill IDs that correspond to the skills associated with the in-skill product. The associations are stage specific. A live association is created through successful skill certification. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py b/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py index 2763519..b61efa2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 class CreateInSkillProductRequest(object): @@ -47,7 +47,7 @@ class CreateInSkillProductRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, in_skill_product_definition=None): - # type: (Optional[str], Optional[InSkillProductDefinitionV1]) -> None + # type: (Optional[str], Optional[Isp_InSkillProductDefinitionV1]) -> None """ :param vendor_id: ID of the vendor owning the in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/currency.py b/ask-smapi-model/ask_smapi_model/v1/isp/currency.py index 9a49ca4..8b51540 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/currency.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/currency.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class Currency(Enum): JPY = "JPY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Currency): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/custom_product_prompts.py b/ask-smapi-model/ask_smapi_model/v1/isp/custom_product_prompts.py index f96b8f1..08f5c49 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/custom_product_prompts.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/custom_product_prompts.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -32,34 +32,34 @@ class CustomProductPrompts(object): :param purchase_prompt_description: Description of in-skill product heard before customer is prompted for purchase. :type purchase_prompt_description: (optional) str - :param bought_confirmation_prompt: Confirmation of in-skill product purchase. - :type bought_confirmation_prompt: (optional) str + :param bought_card_description: A description of the product that displays on the skill card in the Alexa app. + :type bought_card_description: (optional) str """ deserialized_types = { 'purchase_prompt_description': 'str', - 'bought_confirmation_prompt': 'str' + 'bought_card_description': 'str' } # type: Dict attribute_map = { 'purchase_prompt_description': 'purchasePromptDescription', - 'bought_confirmation_prompt': 'boughtConfirmationPrompt' + 'bought_card_description': 'boughtCardDescription' } # type: Dict supports_multiple_types = False - def __init__(self, purchase_prompt_description=None, bought_confirmation_prompt=None): + def __init__(self, purchase_prompt_description=None, bought_card_description=None): # type: (Optional[str], Optional[str]) -> None """Custom prompts used for in-skill product purchasing options. Supports Speech Synthesis Markup Language (SSML), which can be used to control pronunciation, intonation, timing, and emotion. :param purchase_prompt_description: Description of in-skill product heard before customer is prompted for purchase. :type purchase_prompt_description: (optional) str - :param bought_confirmation_prompt: Confirmation of in-skill product purchase. - :type bought_confirmation_prompt: (optional) str + :param bought_card_description: A description of the product that displays on the skill card in the Alexa app. + :type bought_card_description: (optional) str """ self.__discriminator_value = None # type: str self.purchase_prompt_description = purchase_prompt_description - self.bought_confirmation_prompt = bought_confirmation_prompt + self.bought_card_description = bought_card_description def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/distribution_countries.py b/ask-smapi-model/ask_smapi_model/v1/isp/distribution_countries.py index c05eb7f..e6fe087 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/distribution_countries.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/distribution_countries.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -274,7 +274,7 @@ class DistributionCountries(Enum): ZW = "ZW" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -290,7 +290,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DistributionCountries): return False @@ -298,6 +298,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py b/ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py index 33ca0a4..fda4c40 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/editable_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class EditableState(Enum): NOT_EDITABLE = "NOT_EDITABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EditableState): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py index 50cd6f1..7328ec8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py @@ -21,13 +21,13 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.subscription_information import SubscriptionInformationV1 - from ask_smapi_model.v1.isp.publishing_information import PublishingInformationV1 - from ask_smapi_model.v1.isp.privacy_and_compliance import PrivacyAndComplianceV1 - from ask_smapi_model.v1.isp.product_type import ProductTypeV1 - from ask_smapi_model.v1.isp.purchasable_state import PurchasableStateV1 + from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as Isp_PurchasableStateV1 + from ask_smapi_model.v1.isp.privacy_and_compliance import PrivacyAndCompliance as Isp_PrivacyAndComplianceV1 + from ask_smapi_model.v1.isp.subscription_information import SubscriptionInformation as Isp_SubscriptionInformationV1 + from ask_smapi_model.v1.isp.publishing_information import PublishingInformation as Isp_PublishingInformationV1 + from ask_smapi_model.v1.isp.product_type import ProductType as Isp_ProductTypeV1 class InSkillProductDefinition(object): @@ -77,7 +77,7 @@ class InSkillProductDefinition(object): supports_multiple_types = False def __init__(self, version=None, object_type=None, reference_name=None, purchasable_state=None, subscription_information=None, publishing_information=None, privacy_and_compliance=None, testing_instructions=None): - # type: (Optional[str], Optional[ProductTypeV1], Optional[str], Optional[PurchasableStateV1], Optional[SubscriptionInformationV1], Optional[PublishingInformationV1], Optional[PrivacyAndComplianceV1], Optional[str]) -> None + # type: (Optional[str], Optional[Isp_ProductTypeV1], Optional[str], Optional[Isp_PurchasableStateV1], Optional[Isp_SubscriptionInformationV1], Optional[Isp_PublishingInformationV1], Optional[Isp_PrivacyAndComplianceV1], Optional[str]) -> None """Defines the structure for an in-skill product. :param version: Version of in-skill product definition. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py index c454d79..924b07d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 class InSkillProductDefinitionResponse(object): @@ -45,7 +45,7 @@ class InSkillProductDefinitionResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_definition=None): - # type: (Optional[InSkillProductDefinitionV1]) -> None + # type: (Optional[Isp_InSkillProductDefinitionV1]) -> None """Defines In-skill product response. :param in_skill_product_definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py index b7647b5..a1a02f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py @@ -21,15 +21,15 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.summary_marketplace_pricing import SummaryMarketplacePricingV1 - from ask_smapi_model.v1.isp.stage import StageV1 - from ask_smapi_model.v1.isp.isp_summary_links import IspSummaryLinksV1 - from ask_smapi_model.v1.isp.product_type import ProductTypeV1 - from ask_smapi_model.v1.isp.status import StatusV1 - from ask_smapi_model.v1.isp.editable_state import EditableStateV1 - from ask_smapi_model.v1.isp.purchasable_state import PurchasableStateV1 + from ask_smapi_model.v1.isp.stage import Stage as Isp_StageV1 + from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as Isp_PurchasableStateV1 + from ask_smapi_model.v1.isp.editable_state import EditableState as Isp_EditableStateV1 + from ask_smapi_model.v1.isp.status import Status as Isp_StatusV1 + from ask_smapi_model.v1.isp.summary_marketplace_pricing import SummaryMarketplacePricing as Isp_SummaryMarketplacePricingV1 + from ask_smapi_model.v1.isp.isp_summary_links import IspSummaryLinks as Isp_IspSummaryLinksV1 + from ask_smapi_model.v1.isp.product_type import ProductType as Isp_ProductTypeV1 class InSkillProductSummary(object): @@ -91,7 +91,7 @@ class InSkillProductSummary(object): supports_multiple_types = False def __init__(self, object_type=None, product_id=None, reference_name=None, last_updated=None, name_by_locale=None, status=None, stage=None, editable_state=None, purchasable_state=None, links=None, pricing=None): - # type: (Optional[ProductTypeV1], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[StatusV1], Optional[StageV1], Optional[EditableStateV1], Optional[PurchasableStateV1], Optional[IspSummaryLinksV1], Optional[Dict[str, SummaryMarketplacePricingV1]]) -> None + # type: (Optional[Isp_ProductTypeV1], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[Isp_StatusV1], Optional[Isp_StageV1], Optional[Isp_EditableStateV1], Optional[Isp_PurchasableStateV1], Optional[Isp_IspSummaryLinksV1], Optional[Dict[str, Isp_SummaryMarketplacePricingV1]]) -> None """Information about the in-skill product that is not editable. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py index 9d5aa9f..bdf15ec 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummaryV1 + from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as Isp_InSkillProductSummaryV1 class InSkillProductSummaryResponse(object): @@ -45,7 +45,7 @@ class InSkillProductSummaryResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_summary=None): - # type: (Optional[InSkillProductSummaryV1]) -> None + # type: (Optional[Isp_InSkillProductSummaryV1]) -> None """In-skill product summary response. :param in_skill_product_summary: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py b/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py index b463168..353b1ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import LinkV1 + from ask_smapi_model.v1.link import Link as V1_LinkV1 class IspSummaryLinks(object): @@ -43,7 +43,7 @@ class IspSummaryLinks(object): supports_multiple_types = False def __init__(self, object_self=None): - # type: (Optional[LinkV1]) -> None + # type: (Optional[V1_LinkV1]) -> None """ :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py index 73d09b8..5a71afd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummaryV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as Isp_InSkillProductSummaryV1 class ListInSkillProduct(object): @@ -58,7 +58,7 @@ class ListInSkillProduct(object): supports_multiple_types = False def __init__(self, links=None, in_skill_products=None, is_truncated=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[InSkillProductSummaryV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Isp_InSkillProductSummaryV1]], Optional[bool], Optional[str]) -> None """List of in-skill products. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py index d2c2b25..34a28e7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.list_in_skill_product import ListInSkillProductV1 + from ask_smapi_model.v1.isp.list_in_skill_product import ListInSkillProduct as Isp_ListInSkillProductV1 class ListInSkillProductResponse(object): @@ -45,7 +45,7 @@ class ListInSkillProductResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_summary_list=None): - # type: (Optional[ListInSkillProductV1]) -> None + # type: (Optional[Isp_ListInSkillProductV1]) -> None """List of in-skill product response. :param in_skill_product_summary_list: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/localized_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/isp/localized_privacy_and_compliance.py index 252145d..239c909 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/localized_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/localized_privacy_and_compliance.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py index c1bb7ce..954267c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.custom_product_prompts import CustomProductPromptsV1 + from ask_smapi_model.v1.isp.custom_product_prompts import CustomProductPrompts as Isp_CustomProductPromptsV1 class LocalizedPublishingInformation(object): @@ -73,7 +73,7 @@ class LocalizedPublishingInformation(object): supports_multiple_types = False def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary=None, description=None, example_phrases=None, keywords=None, custom_product_prompts=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]], Optional[CustomProductPromptsV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]], Optional[Isp_CustomProductPromptsV1]) -> None """Defines the structure for locale specific publishing information in the in-skill product definition. :param name: Name of the in-skill product that is heard by customers and displayed in the Alexa app. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py b/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py index ffead3a..bc865a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.price_listing import PriceListingV1 + from ask_smapi_model.v1.isp.price_listing import PriceListing as Isp_PriceListingV1 class MarketplacePricing(object): @@ -49,7 +49,7 @@ class MarketplacePricing(object): supports_multiple_types = False def __init__(self, release_date=None, default_price_listing=None): - # type: (Optional[datetime], Optional[PriceListingV1]) -> None + # type: (Optional[datetime], Optional[Isp_PriceListingV1]) -> None """In-skill product pricing information for a marketplace. :param release_date: Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py b/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py index af94905..34b7093 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.currency import CurrencyV1 + from ask_smapi_model.v1.isp.currency import Currency as Isp_CurrencyV1 class PriceListing(object): @@ -49,7 +49,7 @@ class PriceListing(object): supports_multiple_types = False def __init__(self, price=None, currency=None): - # type: (Optional[float], Optional[CurrencyV1]) -> None + # type: (Optional[float], Optional[Isp_CurrencyV1]) -> None """Price listing information for in-skill product. :param price: Defines the price of an in-skill product. The list price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py index 024e8d1..3cc4edc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.localized_privacy_and_compliance import LocalizedPrivacyAndComplianceV1 + from ask_smapi_model.v1.isp.localized_privacy_and_compliance import LocalizedPrivacyAndCompliance as Isp_LocalizedPrivacyAndComplianceV1 class PrivacyAndCompliance(object): @@ -45,7 +45,7 @@ class PrivacyAndCompliance(object): supports_multiple_types = False def __init__(self, locales=None): - # type: (Optional[Dict[str, LocalizedPrivacyAndComplianceV1]]) -> None + # type: (Optional[Dict[str, Isp_LocalizedPrivacyAndComplianceV1]]) -> None """Defines the structure for privacy and compliance. :param locales: Defines the structure for locale specific privacy and compliance. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/product_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/product_response.py index 6c819ce..a0f5bab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/product_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/product_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/product_type.py b/ask-smapi-model/ask_smapi_model/v1/isp/product_type.py index e4674e7..f07f36e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/product_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/product_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ProductType(Enum): CONSUMABLE = "CONSUMABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ProductType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py index 3d632bb..1efce68 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.localized_publishing_information import LocalizedPublishingInformationV1 - from ask_smapi_model.v1.isp.marketplace_pricing import MarketplacePricingV1 - from ask_smapi_model.v1.isp.distribution_countries import DistributionCountriesV1 - from ask_smapi_model.v1.isp.tax_information import TaxInformationV1 + from ask_smapi_model.v1.isp.localized_publishing_information import LocalizedPublishingInformation as Isp_LocalizedPublishingInformationV1 + from ask_smapi_model.v1.isp.distribution_countries import DistributionCountries as Isp_DistributionCountriesV1 + from ask_smapi_model.v1.isp.marketplace_pricing import MarketplacePricing as Isp_MarketplacePricingV1 + from ask_smapi_model.v1.isp.tax_information import TaxInformation as Isp_TaxInformationV1 class PublishingInformation(object): @@ -60,7 +60,7 @@ class PublishingInformation(object): supports_multiple_types = False def __init__(self, locales=None, distribution_countries=None, pricing=None, tax_information=None): - # type: (Optional[Dict[str, LocalizedPublishingInformationV1]], Optional[List[DistributionCountriesV1]], Optional[Dict[str, MarketplacePricingV1]], Optional[TaxInformationV1]) -> None + # type: (Optional[Dict[str, Isp_LocalizedPublishingInformationV1]], Optional[List[Isp_DistributionCountriesV1]], Optional[Dict[str, Isp_MarketplacePricingV1]], Optional[Isp_TaxInformationV1]) -> None """Defines the structure for in-skill product publishing information. :param locales: Defines the structure for locale specific publishing information for an in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/purchasable_state.py b/ask-smapi-model/ask_smapi_model/v1/isp/purchasable_state.py index 7b45d13..f702f5a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/purchasable_state.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/purchasable_state.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PurchasableState(Enum): NOT_PURCHASABLE = "NOT_PURCHASABLE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PurchasableState): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/stage.py b/ask-smapi-model/ask_smapi_model/v1/isp/stage.py index 15413f8..aff0121 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/stage.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/stage.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Stage(Enum): live = "live" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Stage): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/status.py b/ask-smapi-model/ask_smapi_model/v1/isp/status.py index edad1a6..7f8c25e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/status.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class Status(Enum): SUPPRESSED = "SUPPRESSED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py index 95a4982..11be446 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.subscription_payment_frequency import SubscriptionPaymentFrequencyV1 + from ask_smapi_model.v1.isp.subscription_payment_frequency import SubscriptionPaymentFrequency as Isp_SubscriptionPaymentFrequencyV1 class SubscriptionInformation(object): @@ -49,7 +49,7 @@ class SubscriptionInformation(object): supports_multiple_types = False def __init__(self, subscription_payment_frequency=None, subscription_trial_period_days=None): - # type: (Optional[SubscriptionPaymentFrequencyV1], Optional[int]) -> None + # type: (Optional[Isp_SubscriptionPaymentFrequencyV1], Optional[int]) -> None """Defines the structure for in-skill product subscription information. :param subscription_payment_frequency: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_payment_frequency.py b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_payment_frequency.py index d5dca0b..21b6522 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_payment_frequency.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_payment_frequency.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SubscriptionPaymentFrequency(Enum): YEARLY = "YEARLY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SubscriptionPaymentFrequency): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py b/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py index 5f970b1..635f324 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.summary_price_listing import SummaryPriceListingV1 + from ask_smapi_model.v1.isp.summary_price_listing import SummaryPriceListing as Isp_SummaryPriceListingV1 class SummaryMarketplacePricing(object): @@ -49,7 +49,7 @@ class SummaryMarketplacePricing(object): supports_multiple_types = False def __init__(self, release_date=None, default_price_listing=None): - # type: (Optional[datetime], Optional[SummaryPriceListingV1]) -> None + # type: (Optional[datetime], Optional[Isp_SummaryPriceListingV1]) -> None """Localized in-skill product pricing information. :param release_date: Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py b/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py index bc6ca78..de4b619 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.currency import CurrencyV1 + from ask_smapi_model.v1.isp.currency import Currency as Isp_CurrencyV1 class SummaryPriceListing(object): @@ -53,7 +53,7 @@ class SummaryPriceListing(object): supports_multiple_types = False def __init__(self, price=None, prime_member_price=None, currency=None): - # type: (Optional[float], Optional[float], Optional[CurrencyV1]) -> None + # type: (Optional[float], Optional[float], Optional[Isp_CurrencyV1]) -> None """Price listing information for in-skill product. :param price: The price of an in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py index e295e09..0035d88 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.tax_information_category import TaxInformationCategoryV1 + from ask_smapi_model.v1.isp.tax_information_category import TaxInformationCategory as Isp_TaxInformationCategoryV1 class TaxInformation(object): @@ -45,7 +45,7 @@ class TaxInformation(object): supports_multiple_types = False def __init__(self, category=None): - # type: (Optional[TaxInformationCategoryV1]) -> None + # type: (Optional[Isp_TaxInformationCategoryV1]) -> None """Defines the structure for in-skill product tax information. :param category: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information_category.py b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information_category.py index 36347ba..e7a46ae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information_category.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information_category.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class TaxInformationCategory(Enum): NEWSPAPERS = "NEWSPAPERS" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, TaxInformationCategory): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py b/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py index fa49a94..0939a9a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 class UpdateInSkillProductRequest(object): @@ -43,7 +43,7 @@ class UpdateInSkillProductRequest(object): supports_multiple_types = False def __init__(self, in_skill_product_definition=None): - # type: (Optional[InSkillProductDefinitionV1]) -> None + # type: (Optional[Isp_InSkillProductDefinitionV1]) -> None """ :param in_skill_product_definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/link.py b/ask-smapi-model/ask_smapi_model/v1/link.py index f49885a..1ea807e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/link.py +++ b/ask-smapi-model/ask_smapi_model/v1/link.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/links.py b/ask-smapi-model/ask_smapi_model/v1/links.py index 906416c..e59d67f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import LinkV1 + from ask_smapi_model.v1.link import Link as V1_LinkV1 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[LinkV1], Optional[LinkV1]) -> None + # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/access_token_scheme_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/access_token_scheme_type.py index f4b101a..9a5b816 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/access_token_scheme_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/access_token_scheme_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class AccessTokenSchemeType(Enum): REQUEST_BODY_CREDENTIALS = "REQUEST_BODY_CREDENTIALS" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AccessTokenSchemeType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py index c52d4ef..b8b2b15 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.platform_type import PlatformTypeV1 + from ask_smapi_model.v1.skill.account_linking.platform_type import PlatformType as AccountLinking_PlatformTypeV1 class AccountLinkingPlatformAuthorizationUrl(object): @@ -49,7 +49,7 @@ class AccountLinkingPlatformAuthorizationUrl(object): supports_multiple_types = False def __init__(self, platform_type=None, platform_authorization_url=None): - # type: (Optional[PlatformTypeV1], Optional[str]) -> None + # type: (Optional[AccountLinking_PlatformTypeV1], Optional[str]) -> None """A key-value pair object that contains the OAuth2 authorization url to initiate the skill account linking process. :param platform_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py index a571976..8108d43 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_request_payload import AccountLinkingRequestPayloadV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_request_payload import AccountLinkingRequestPayload as AccountLinking_AccountLinkingRequestPayloadV1 class AccountLinkingRequest(object): @@ -45,7 +45,7 @@ class AccountLinkingRequest(object): supports_multiple_types = False def __init__(self, account_linking_request=None): - # type: (Optional[AccountLinkingRequestPayloadV1]) -> None + # type: (Optional[AccountLinking_AccountLinkingRequestPayloadV1]) -> None """The request body of AccountLinkingRequest. :param account_linking_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py index 3938ce1..f47f3c6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingTypeV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrlV1 - from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinking_AccountLinkingTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinking_AccountLinkingPlatformAuthorizationUrlV1 + from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccountLinking_AccessTokenSchemeTypeV1 class AccountLinkingRequestPayload(object): @@ -95,7 +95,7 @@ class AccountLinkingRequestPayload(object): supports_multiple_types = False def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None, skip_on_enablement=None): - # type: (Optional[AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeTypeV1], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrlV1]], Optional[bool]) -> None + # type: (Optional[AccountLinking_AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccountLinking_AccessTokenSchemeTypeV1], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinking_AccountLinkingPlatformAuthorizationUrlV1]], Optional[bool]) -> None """The payload for creating the account linking partner. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py index f0eb960..1bdc395 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingTypeV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrlV1 - from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinking_AccountLinkingTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinking_AccountLinkingPlatformAuthorizationUrlV1 + from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccountLinking_AccessTokenSchemeTypeV1 class AccountLinkingResponse(object): @@ -83,7 +83,7 @@ class AccountLinkingResponse(object): supports_multiple_types = False def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, access_token_scheme=None, default_token_expiration_in_seconds=None, redirect_urls=None, authorization_urls_by_platform=None): - # type: (Optional[AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccessTokenSchemeTypeV1], Optional[int], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrlV1]]) -> None + # type: (Optional[AccountLinking_AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccountLinking_AccessTokenSchemeTypeV1], Optional[int], Optional[List[object]], Optional[List[AccountLinking_AccountLinkingPlatformAuthorizationUrlV1]]) -> None """The account linking information of a skill. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_type.py index 0973732..bbfa325 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class AccountLinkingType(Enum): IMPLICIT = "IMPLICIT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AccountLinkingType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/platform_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/platform_type.py index 3ab796d..8082bdf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/platform_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/platform_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PlatformType(Enum): Android = "Android" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PlatformType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/action.py b/ask-smapi-model/ask_smapi_model/v1/skill/action.py index f39ac75..69328c8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/action.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/action.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class Action(Enum): DISASSOCIATE = "DISASSOCIATE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Action): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/agreement_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/agreement_type.py index 65ff6d2..c7f8959 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/agreement_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/agreement_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class AgreementType(Enum): EXPORT_COMPLIANCE = "EXPORT_COMPLIANCE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AgreementType): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py index cfb0a25..dc15977 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntimeV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as AlexaHosted_HostedSkillRuntimeV1 class AlexaHostedConfig(object): @@ -45,7 +45,7 @@ class AlexaHostedConfig(object): supports_multiple_types = False def __init__(self, runtime=None): - # type: (Optional[HostedSkillRuntimeV1]) -> None + # type: (Optional[AlexaHosted_HostedSkillRuntimeV1]) -> None """Alexa hosted skill create configuration :param runtime: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py index 2584cbb..3fda0e8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfoV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntimeV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as AlexaHosted_HostedSkillRuntimeV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as AlexaHosted_HostedSkillRepositoryInfoV1 class HostedSkillInfo(object): @@ -48,7 +48,7 @@ class HostedSkillInfo(object): supports_multiple_types = False def __init__(self, repository=None, runtime=None): - # type: (Optional[HostedSkillRepositoryInfoV1], Optional[HostedSkillRuntimeV1]) -> None + # type: (Optional[AlexaHosted_HostedSkillRepositoryInfoV1], Optional[AlexaHosted_HostedSkillRuntimeV1]) -> None """ :param repository: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py index 7813882..65f30bc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_info import HostedSkillInfoV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_info import HostedSkillInfo as AlexaHosted_HostedSkillInfoV1 class HostedSkillMetadata(object): @@ -45,7 +45,7 @@ class HostedSkillMetadata(object): supports_multiple_types = False def __init__(self, alexa_hosted=None): - # type: (Optional[HostedSkillInfoV1]) -> None + # type: (Optional[AlexaHosted_HostedSkillInfoV1]) -> None """Alexa Hosted skill's metadata :param alexa_hosted: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py index 681bf80..ce0be53 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_type import HostedSkillPermissionTypeV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_status import HostedSkillPermissionStatusV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_status import HostedSkillPermissionStatus as AlexaHosted_HostedSkillPermissionStatusV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_type import HostedSkillPermissionType as AlexaHosted_HostedSkillPermissionTypeV1 class HostedSkillPermission(object): @@ -54,7 +54,7 @@ class HostedSkillPermission(object): supports_multiple_types = False def __init__(self, permission=None, status=None, action_url=None): - # type: (Optional[HostedSkillPermissionTypeV1], Optional[HostedSkillPermissionStatusV1], Optional[str]) -> None + # type: (Optional[AlexaHosted_HostedSkillPermissionTypeV1], Optional[AlexaHosted_HostedSkillPermissionStatusV1], Optional[str]) -> None """Customer's permission about Hosted skill features. :param permission: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_status.py index 55c54a0..a71d27f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class HostedSkillPermissionStatus(Enum): RATE_EXCEEDED = "RATE_EXCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HostedSkillPermissionStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_type.py index e5155bf..7c97295 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -34,7 +34,7 @@ class HostedSkillPermissionType(Enum): NEW_SKILL = "NEW_SKILL" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -50,7 +50,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HostedSkillPermissionType): return False @@ -58,6 +58,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository.py index 571df26..bc2628f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -34,7 +34,7 @@ class HostedSkillRepository(Enum): GIT = "GIT" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -50,7 +50,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HostedSkillRepository): return False @@ -58,6 +58,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials.py index fc0a368..fb16069 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py index 3ffd06a..2fd5445 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials import HostedSkillRepositoryCredentialsV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials import HostedSkillRepositoryCredentials as AlexaHosted_HostedSkillRepositoryCredentialsV1 class HostedSkillRepositoryCredentialsList(object): @@ -45,7 +45,7 @@ class HostedSkillRepositoryCredentialsList(object): supports_multiple_types = False def __init__(self, repository_credentials=None): - # type: (Optional[HostedSkillRepositoryCredentialsV1]) -> None + # type: (Optional[AlexaHosted_HostedSkillRepositoryCredentialsV1]) -> None """defines the structure for the hosted skill repository credentials response :param repository_credentials: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py index d0f4fde..b8257a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfoV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as AlexaHosted_HostedSkillRepositoryInfoV1 class HostedSkillRepositoryCredentialsRequest(object): @@ -43,7 +43,7 @@ class HostedSkillRepositoryCredentialsRequest(object): supports_multiple_types = False def __init__(self, repository=None): - # type: (Optional[HostedSkillRepositoryInfoV1]) -> None + # type: (Optional[AlexaHosted_HostedSkillRepositoryInfoV1]) -> None """ :param repository: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py index f4589f0..1f9ff96 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository import HostedSkillRepositoryV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository import HostedSkillRepository as AlexaHosted_HostedSkillRepositoryV1 class HostedSkillRepositoryInfo(object): @@ -49,7 +49,7 @@ class HostedSkillRepositoryInfo(object): supports_multiple_types = False def __init__(self, url=None, object_type=None): - # type: (Optional[str], Optional[HostedSkillRepositoryV1]) -> None + # type: (Optional[str], Optional[AlexaHosted_HostedSkillRepositoryV1]) -> None """Alexa Hosted Skill's Repository Information :param url: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py index 108cbc9..129916f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class HostedSkillRuntime(Enum): PYTHON_3_7 = "PYTHON_3_7" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HostedSkillRuntime): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py index f02a514..63e4a7d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.alexa_hosted_config import AlexaHostedConfigV1 + from ask_smapi_model.v1.skill.alexa_hosted.alexa_hosted_config import AlexaHostedConfig as AlexaHosted_AlexaHostedConfigV1 class HostingConfiguration(object): @@ -45,7 +45,7 @@ class HostingConfiguration(object): supports_multiple_types = False def __init__(self, alexa_hosted=None): - # type: (Optional[AlexaHostedConfigV1]) -> None + # type: (Optional[AlexaHosted_AlexaHostedConfigV1]) -> None """Configurations for creating new hosted skill :param alexa_hosted: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 0e91f48..18d830b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -19,13 +19,11 @@ from .pagination_context import PaginationContext from .annotation_with_audio_asset import AnnotationWithAudioAsset from .annotation_set_items import AnnotationSetItems -from .audio_asset_download_url_expiry_time import AudioAssetDownloadUrlExpiryTime from .annotation import Annotation from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse from .annotation_set_metadata import AnnotationSetMetadata -from .audio_asset_download_url import AudioAssetDownloadUrl from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py index 5199621..a9db246 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py index bce0640..1e0beb1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py index 9049e07..df3bfe0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py index dd1c441..cc43410 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset import AudioAssetV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset import AudioAsset as AnnotationSets_AudioAssetV1 class AnnotationWithAudioAsset(Annotation): @@ -62,7 +62,7 @@ class AnnotationWithAudioAsset(Annotation): supports_multiple_types = False def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAssetV1]) -> None + # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AnnotationSets_AudioAssetV1]) -> None """Object containing annotation content and audio file download information. :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py index 50299af..3762c44 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py @@ -21,10 +21,8 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url import AudioAssetDownloadUrlV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url_expiry_time import AudioAssetDownloadUrlExpiryTimeV1 class AudioAsset(object): @@ -32,15 +30,15 @@ class AudioAsset(object): Object containing information about downloading audio file - :param download_url: - :type download_url: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url.AudioAssetDownloadUrl - :param expiry_time: - :type expiry_time: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url_expiry_time.AudioAssetDownloadUrlExpiryTime + :param download_url: S3 presigned download url for downloading the audio file + :type download_url: (optional) str + :param expiry_time: Timestamp when the audio download url expire in ISO 8601 format + :type expiry_time: (optional) str """ deserialized_types = { - 'download_url': 'ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url.AudioAssetDownloadUrl', - 'expiry_time': 'ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url_expiry_time.AudioAssetDownloadUrlExpiryTime' + 'download_url': 'str', + 'expiry_time': 'str' } # type: Dict attribute_map = { @@ -50,13 +48,13 @@ class AudioAsset(object): supports_multiple_types = False def __init__(self, download_url=None, expiry_time=None): - # type: (Optional[AudioAssetDownloadUrlV1], Optional[AudioAssetDownloadUrlExpiryTimeV1]) -> None + # type: (Optional[str], Optional[str]) -> None """Object containing information about downloading audio file - :param download_url: - :type download_url: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url.AudioAssetDownloadUrl - :param expiry_time: - :type expiry_time: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset_download_url_expiry_time.AudioAssetDownloadUrlExpiryTime + :param download_url: S3 presigned download url for downloading the audio file + :type download_url: (optional) str + :param expiry_time: Timestamp when the audio download url expire in ISO 8601 format + :type expiry_time: (optional) str """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url.py deleted file mode 100644 index 22d1ee1..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union - from datetime import datetime - - -class AudioAssetDownloadUrl(object): - """ - S3 presigned download url for downloading the audio file - - - - """ - deserialized_types = { - } # type: Dict - - attribute_map = { - } # type: Dict - supports_multiple_types = False - - def __init__(self): - # type: () -> None - """S3 presigned download url for downloading the audio file - - """ - self.__discriminator_value = None # type: str - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AudioAssetDownloadUrl): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url_expiry_time.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url_expiry_time.py deleted file mode 100644 index 1e8f3a7..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset_download_url_expiry_time.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union - from datetime import datetime - - -class AudioAssetDownloadUrlExpiryTime(object): - """ - Timestamp when the audio download url expire in ISO 8601 format - - - - """ - deserialized_types = { - } # type: Dict - - attribute_map = { - } # type: Dict - supports_multiple_types = False - - def __init__(self): - # type: () -> None - """Timestamp when the audio download url expire in ISO 8601 format - - """ - self.__discriminator_value = None # type: str - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AudioAssetDownloadUrlExpiryTime): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py index a17e7a0..4c575af 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py index 0c3e371..f6773b6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py index 65b545a..69e84ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset import AnnotationWithAudioAssetV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationSets_AnnotationWithAudioAssetV1 class GetAsrAnnotationSetAnnotationsResponse(object): @@ -50,7 +50,7 @@ class GetAsrAnnotationSetAnnotationsResponse(object): supports_multiple_types = False def __init__(self, annotations=None, pagination_context=None): - # type: (Optional[List[AnnotationWithAudioAssetV1]], Optional[PaginationContextV1]) -> None + # type: (Optional[List[AnnotationSets_AnnotationWithAudioAssetV1]], Optional[AnnotationSets_PaginationContextV1]) -> None """This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download. :param annotations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py index 40e1104..1398127 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py index f7abacb..6c81426 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items import AnnotationSetItemsV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContextV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items import AnnotationSetItems as AnnotationSets_AnnotationSetItemsV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 class ListASRAnnotationSetsResponse(object): @@ -48,7 +48,7 @@ class ListASRAnnotationSetsResponse(object): supports_multiple_types = False def __init__(self, annotation_sets=None, pagination_context=None): - # type: (Optional[List[AnnotationSetItemsV1]], Optional[PaginationContextV1]) -> None + # type: (Optional[List[AnnotationSets_AnnotationSetItemsV1]], Optional[AnnotationSets_PaginationContextV1]) -> None """ :param annotation_sets: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py index f6d5a01..090ebde 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py index 6823241..8d9fbde 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import AnnotationV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import Annotation as AnnotationSets_AnnotationV1 class UpdateAsrAnnotationSetContentsPayload(object): @@ -45,7 +45,7 @@ class UpdateAsrAnnotationSetContentsPayload(object): supports_multiple_types = False def __init__(self, annotations=None): - # type: (Optional[List[AnnotationV1]]) -> None + # type: (Optional[List[AnnotationSets_AnnotationV1]]) -> None """This is the payload shema for updating asr annotation set contents. Note for text/csv content type, the csv header definitions need to follow the properties of '#/definitions/Annotaion' :param annotations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py index d072200..5b93f0a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py index 4ebb406..46a326c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py index 8d3d33e..120c08d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.audio_asset import AudioAssetV1 + from ask_smapi_model.v1.skill.asr.evaluations.audio_asset import AudioAsset as Evaluations_AudioAssetV1 class AnnotationWithAudioAsset(Annotation): @@ -62,7 +62,7 @@ class AnnotationWithAudioAsset(Annotation): supports_multiple_types = False def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAssetV1]) -> None + # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[Evaluations_AudioAssetV1]) -> None """object containing annotation content and audio file download information. :param upload_id: upload id obtained when developer creates an upload using catalog API diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py index c9164a8..752aab9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py index 50282b6..72534e5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py index 226ad6b..0b4e955 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py @@ -22,12 +22,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 class EvaluationItems(EvaluationMetadata): @@ -75,7 +75,7 @@ class EvaluationItems(EvaluationMetadata): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None, id=None): - # type: (Optional[EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObjectV1], Optional[ErrorObjectV1], Optional[EvaluationMetadataResultV1], Optional[str]) -> None + # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1], Optional[str]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py index 0235bfe..7e69436 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 class EvaluationMetadata(object): @@ -72,7 +72,7 @@ class EvaluationMetadata(object): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObjectV1], Optional[ErrorObjectV1], Optional[EvaluationMetadataResultV1]) -> None + # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1]) -> None """response body for GetAsrEvaluationsStatus API :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py index d9c9fac..4a69ea7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.metrics import MetricsV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as Evaluations_EvaluationResultStatusV1 + from ask_smapi_model.v1.skill.asr.evaluations.metrics import Metrics as Evaluations_MetricsV1 class EvaluationMetadataResult(object): @@ -50,7 +50,7 @@ class EvaluationMetadataResult(object): supports_multiple_types = False def __init__(self, status=None, metrics=None): - # type: (Optional[EvaluationResultStatusV1], Optional[MetricsV1]) -> None + # type: (Optional[Evaluations_EvaluationResultStatusV1], Optional[Evaluations_MetricsV1]) -> None """indicate the result of the evaluation. This field would be present if the evaluation status is `COMPLETED` :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py index 1fb9140..3811c87 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset import AnnotationWithAudioAssetV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output import EvaluationResultOutputV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as Evaluations_EvaluationResultStatusV1 + from ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset import AnnotationWithAudioAsset as Evaluations_AnnotationWithAudioAssetV1 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output import EvaluationResultOutput as Evaluations_EvaluationResultOutputV1 class EvaluationResult(object): @@ -60,7 +60,7 @@ class EvaluationResult(object): supports_multiple_types = False def __init__(self, status=None, annotation=None, output=None, error=None): - # type: (Optional[EvaluationResultStatusV1], Optional[AnnotationWithAudioAssetV1], Optional[EvaluationResultOutputV1], Optional[ErrorObjectV1]) -> None + # type: (Optional[Evaluations_EvaluationResultStatusV1], Optional[Evaluations_AnnotationWithAudioAssetV1], Optional[Evaluations_EvaluationResultOutputV1], Optional[Evaluations_ErrorObjectV1]) -> None """evaluation detailed result :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py index 81abba1..3d6da75 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py index 483adec..f102c4c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class EvaluationResultStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EvaluationResultStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py index faa9a49..d011954 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class EvaluationStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EvaluationStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py index 1c425ce..db80661 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py @@ -22,12 +22,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 class GetAsrEvaluationStatusResponseObject(EvaluationMetadata): @@ -71,7 +71,7 @@ class GetAsrEvaluationStatusResponseObject(EvaluationMetadata): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObjectV1], Optional[ErrorObjectV1], Optional[EvaluationMetadataResultV1]) -> None + # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py index 17f4f2c..cbb803e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result import EvaluationResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContextV1 + from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result import EvaluationResult as Evaluations_EvaluationResultV1 class GetAsrEvaluationsResultsResponse(object): @@ -50,7 +50,7 @@ class GetAsrEvaluationsResultsResponse(object): supports_multiple_types = False def __init__(self, results=None, pagination_context=None): - # type: (Optional[List[EvaluationResultV1]], Optional[PaginationContextV1]) -> None + # type: (Optional[List[Evaluations_EvaluationResultV1]], Optional[Evaluations_PaginationContextV1]) -> None """response for GetAsrEvaluationsResults :param results: array containing all evaluation results. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py index a997315..a548cf3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_items import EvaluationItemsV1 + from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_items import EvaluationItems as Evaluations_EvaluationItemsV1 class ListAsrEvaluationsResponse(object): @@ -50,7 +50,7 @@ class ListAsrEvaluationsResponse(object): supports_multiple_types = False def __init__(self, evaluations=None, pagination_context=None): - # type: (Optional[List[EvaluationItemsV1]], Optional[PaginationContextV1]) -> None + # type: (Optional[List[Evaluations_EvaluationItemsV1]], Optional[Evaluations_PaginationContextV1]) -> None """response body for a list evaluation API :param evaluations: an array containing all evaluations that have ever run by developers based on the filter criteria defined in the request diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py index 0f4e615..467e026 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py index f6d5a01..090ebde 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py index e34661e..71818de 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.skill import SkillV1 + from ask_smapi_model.v1.skill.asr.evaluations.skill import Skill as Evaluations_SkillV1 class PostAsrEvaluationsRequestObject(object): @@ -47,7 +47,7 @@ class PostAsrEvaluationsRequestObject(object): supports_multiple_types = False def __init__(self, skill=None, annotation_set_id=None): - # type: (Optional[SkillV1], Optional[str]) -> None + # type: (Optional[Evaluations_SkillV1], Optional[str]) -> None """ :param skill: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py index e6d6528..5e8704c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py index 77c8e24..73a7e09 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.stage_type import StageTypeV1 + from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 class Skill(object): @@ -47,7 +47,7 @@ class Skill(object): supports_multiple_types = False def __init__(self, stage=None, locale=None): - # type: (Optional[StageTypeV1], Optional[str]) -> None + # type: (Optional[V1_StageTypeV1], Optional[str]) -> None """ :param stage: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py index 227be69..4a75995 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.status import StatusV1 + from ask_smapi_model.v1.skill.beta_test.status import Status as BetaTest_StatusV1 class BetaTest(object): @@ -61,7 +61,7 @@ class BetaTest(object): supports_multiple_types = False def __init__(self, expiry_date=None, status=None, feedback_email=None, invitation_url=None, invites_remaining=None): - # type: (Optional[datetime], Optional[StatusV1], Optional[str], Optional[str], Optional[float]) -> None + # type: (Optional[datetime], Optional[BetaTest_StatusV1], Optional[str], Optional[str], Optional[float]) -> None """Beta test for an Alexa skill. :param expiry_date: Expiry date of the beta test. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/status.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/status.py index 756ff6a..c7af7ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class Status(Enum): ENDED = "ENDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/test_body.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/test_body.py index 5c2d4c7..279160f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/test_body.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/test_body.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/invitation_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/invitation_status.py index 3a1db28..4b8ce24 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/invitation_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/invitation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class InvitationStatus(Enum): NOT_ACCEPTED = "NOT_ACCEPTED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, InvitationStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py index ac4547c..ea063d5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.tester_with_details import TesterWithDetailsV1 + from ask_smapi_model.v1.skill.beta_test.testers.tester_with_details import TesterWithDetails as Testers_TesterWithDetailsV1 class ListTestersResponse(object): @@ -51,7 +51,7 @@ class ListTestersResponse(object): supports_multiple_types = False def __init__(self, testers=None, is_truncated=None, next_token=None): - # type: (Optional[List[TesterWithDetailsV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[List[Testers_TesterWithDetailsV1]], Optional[bool], Optional[str]) -> None """ :param testers: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester.py index 43f80f5..81c3bbc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py index d6a9d82..7313e2f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.invitation_status import InvitationStatusV1 + from ask_smapi_model.v1.skill.beta_test.testers.invitation_status import InvitationStatus as Testers_InvitationStatusV1 class TesterWithDetails(object): @@ -57,7 +57,7 @@ class TesterWithDetails(object): supports_multiple_types = False def __init__(self, email_id=None, association_date=None, is_reminder_allowed=None, invitation_status=None): - # type: (Optional[str], Optional[datetime], Optional[bool], Optional[InvitationStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[bool], Optional[Testers_InvitationStatusV1]) -> None """Tester information. :param email_id: Email address of the tester. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py index 2ba0c2a..c1b9988 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.tester import TesterV1 + from ask_smapi_model.v1.skill.beta_test.testers.tester import Tester as Testers_TesterV1 class TestersList(object): @@ -45,7 +45,7 @@ class TestersList(object): supports_multiple_types = False def __init__(self, testers=None): - # type: (Optional[List[TesterV1]]) -> None + # type: (Optional[List[Testers_TesterV1]]) -> None """List of testers. :param testers: List of the email address of testers. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py index ca65696..bbed89c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.build_step import BuildStepV1 + from ask_smapi_model.v1.skill.build_step import BuildStep as Skill_BuildStepV1 class BuildDetails(object): @@ -45,7 +45,7 @@ class BuildDetails(object): supports_multiple_types = False def __init__(self, steps=None): - # type: (Optional[List[BuildStepV1]]) -> None + # type: (Optional[List[Skill_BuildStepV1]]) -> None """Contains array which describes steps involved in a build. Elements (or build steps) are added to this array as they become IN_PROGRESS. :param steps: An array where each element represents a build step. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py index 1f9eba4..79a55ac 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.build_step_name import BuildStepNameV1 - from ask_smapi_model.v1.skill.status import StatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.build_step_name import BuildStepName as Skill_BuildStepNameV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 class BuildStep(object): @@ -55,7 +55,7 @@ class BuildStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, errors=None): - # type: (Optional[BuildStepNameV1], Optional[StatusV1], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[Skill_BuildStepNameV1], Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]]) -> None """Describes the status of a build step. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py index 244f24d..61d68ef 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class BuildStepName(Enum): LANGUAGE_MODEL_FULL_BUILD = "LANGUAGE_MODEL_FULL_BUILD" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, BuildStepName): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py index 20b8c88..825592e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.review_tracking_info import ReviewTrackingInfoV1 - from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatusV1 - from ask_smapi_model.v1.skill.certification.certification_result import CertificationResultV1 + from ask_smapi_model.v1.skill.certification.review_tracking_info import ReviewTrackingInfo as Certification_ReviewTrackingInfoV1 + from ask_smapi_model.v1.skill.certification.certification_result import CertificationResult as Certification_CertificationResultV1 + from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as Certification_CertificationStatusV1 class CertificationResponse(object): @@ -61,7 +61,7 @@ class CertificationResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, skill_submission_timestamp=None, review_tracking_info=None, result=None): - # type: (Optional[str], Optional[CertificationStatusV1], Optional[datetime], Optional[ReviewTrackingInfoV1], Optional[CertificationResultV1]) -> None + # type: (Optional[str], Optional[Certification_CertificationStatusV1], Optional[datetime], Optional[Certification_ReviewTrackingInfoV1], Optional[Certification_CertificationResultV1]) -> None """ :param id: Certification Id for the skill diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py index d01b485..d860989 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.distribution_info import DistributionInfoV1 + from ask_smapi_model.v1.skill.certification.distribution_info import DistributionInfo as Certification_DistributionInfoV1 class CertificationResult(object): @@ -45,7 +45,7 @@ class CertificationResult(object): supports_multiple_types = False def __init__(self, distribution_info=None): - # type: (Optional[DistributionInfoV1]) -> None + # type: (Optional[Certification_DistributionInfoV1]) -> None """Structure for the result for the outcomes of certification review for the skill. Currently provides the distribution information of a skill if the certification SUCCEEDED. :param distribution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_status.py index ba3e8ea..4fef2ae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class CertificationStatus(Enum): CANCELLED = "CANCELLED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CertificationStatus): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py index dbe451c..a82e7fc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.review_tracking_info_summary import ReviewTrackingInfoSummaryV1 - from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatusV1 + from ask_smapi_model.v1.skill.certification.review_tracking_info_summary import ReviewTrackingInfoSummary as Certification_ReviewTrackingInfoSummaryV1 + from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as Certification_CertificationStatusV1 class CertificationSummary(object): @@ -58,7 +58,7 @@ class CertificationSummary(object): supports_multiple_types = False def __init__(self, id=None, status=None, skill_submission_timestamp=None, review_tracking_info=None): - # type: (Optional[str], Optional[CertificationStatusV1], Optional[datetime], Optional[ReviewTrackingInfoSummaryV1]) -> None + # type: (Optional[str], Optional[Certification_CertificationStatusV1], Optional[datetime], Optional[Certification_ReviewTrackingInfoSummaryV1]) -> None """Summary of the certification resource. This is a leaner view of the certification resource for the collections API. :param id: Certification Id for the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py index a83f811..43fb282 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.publication_failure import PublicationFailureV1 + from ask_smapi_model.v1.skill.certification.publication_failure import PublicationFailure as Certification_PublicationFailureV1 class DistributionInfo(object): @@ -49,7 +49,7 @@ class DistributionInfo(object): supports_multiple_types = False def __init__(self, published_countries=None, publication_failures=None): - # type: (Optional[List[object]], Optional[List[PublicationFailureV1]]) -> None + # type: (Optional[List[object]], Optional[List[Certification_PublicationFailureV1]]) -> None """The distribution information for skill where Amazon distributed the skill :param published_countries: All countries where the skill was published in by Amazon. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/estimation_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/estimation_update.py index 336394f..6111080 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/estimation_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/estimation_update.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py index dad7a37..75429b5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.certification_summary import CertificationSummaryV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.certification.certification_summary import CertificationSummary as Certification_CertificationSummaryV1 class ListCertificationsResponse(object): @@ -62,7 +62,7 @@ class ListCertificationsResponse(object): supports_multiple_types = False def __init__(self, links=None, is_truncated=None, next_token=None, total_count=None, items=None): - # type: (Optional[LinksV1], Optional[bool], Optional[str], Optional[int], Optional[List[CertificationSummaryV1]]) -> None + # type: (Optional[V1_LinksV1], Optional[bool], Optional[str], Optional[int], Optional[List[Certification_CertificationSummaryV1]]) -> None """List of certification summary for a skill. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/publication_failure.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/publication_failure.py index d2d9e0b..de3ab8d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/publication_failure.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/publication_failure.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py index d3c7ad4..98f4840 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.estimation_update import EstimationUpdateV1 + from ask_smapi_model.v1.skill.certification.estimation_update import EstimationUpdate as Certification_EstimationUpdateV1 class ReviewTrackingInfo(object): @@ -57,7 +57,7 @@ class ReviewTrackingInfo(object): supports_multiple_types = False def __init__(self, estimated_completion_timestamp=None, actual_completion_timestamp=None, last_updated=None, estimation_updates=None): - # type: (Optional[datetime], Optional[datetime], Optional[datetime], Optional[List[EstimationUpdateV1]]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[datetime], Optional[List[Certification_EstimationUpdateV1]]) -> None """Structure for review tracking information of the skill. :param estimated_completion_timestamp: Timestamp for estimated completion of certification review for the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info_summary.py index beec2c9..264c22a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info_summary.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py index 4eb8614..5e64742 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.overwrite_mode import OverwriteModeV1 + from ask_smapi_model.v1.skill.overwrite_mode import OverwriteMode as Skill_OverwriteModeV1 class CloneLocaleRequest(object): @@ -53,7 +53,7 @@ class CloneLocaleRequest(object): supports_multiple_types = False def __init__(self, source_locale=None, target_locales=None, overwrite_mode=None): - # type: (Optional[str], Optional[List[object]], Optional[OverwriteModeV1]) -> None + # type: (Optional[str], Optional[List[object]], Optional[Skill_OverwriteModeV1]) -> None """Defines the request body for the cloneLocale API. :param source_locale: Locale with the assets that will be cloned. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request_status.py index 99fe480..190d0e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class CloneLocaleRequestStatus(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CloneLocaleRequestStatus): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py index e7129cc..0c5a84b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.clone_locale_status import CloneLocaleStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.clone_locale_status import CloneLocaleStatus as Skill_CloneLocaleStatusV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 class CloneLocaleResourceStatus(object): @@ -50,7 +50,7 @@ class CloneLocaleResourceStatus(object): supports_multiple_types = False def __init__(self, status=None, errors=None): - # type: (Optional[CloneLocaleStatusV1], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[Skill_CloneLocaleStatusV1], Optional[List[Skill_StandardizedErrorV1]]) -> None """an object detailing the status of a locale clone request and if applicable the errors occurred when saving/building resources during clone process. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_stage_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_stage_type.py index fcf769d..60eec16 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_stage_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_stage_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -34,7 +34,7 @@ class CloneLocaleStageType(Enum): development = "development" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -50,7 +50,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CloneLocaleStageType): return False @@ -58,6 +58,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status.py index ff9938a..9e71e29 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class CloneLocaleStatus(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CloneLocaleStatus): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py index 94e1119..b72ec15 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.clone_locale_resource_status import CloneLocaleResourceStatusV1 - from ask_smapi_model.v1.skill.clone_locale_request_status import CloneLocaleRequestStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.clone_locale_resource_status import CloneLocaleResourceStatus as Skill_CloneLocaleResourceStatusV1 + from ask_smapi_model.v1.skill.clone_locale_request_status import CloneLocaleRequestStatus as Skill_CloneLocaleRequestStatusV1 class CloneLocaleStatusResponse(object): @@ -59,7 +59,7 @@ class CloneLocaleStatusResponse(object): supports_multiple_types = False def __init__(self, status=None, errors=None, source_locale=None, target_locales=None): - # type: (Optional[CloneLocaleRequestStatusV1], Optional[List[StandardizedErrorV1]], Optional[str], Optional[Dict[str, CloneLocaleResourceStatusV1]]) -> None + # type: (Optional[Skill_CloneLocaleRequestStatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[str], Optional[Dict[str, Skill_CloneLocaleResourceStatusV1]]) -> None """A mapping of statuses per locale detailing progress of resource or error if encountered. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_request.py index 62121dd..438356c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_response.py index bf9c6f9..a4ed6c0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_rollback_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py index cc91a55..4da17fd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifestV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosting_configuration import HostingConfigurationV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosting_configuration import HostingConfiguration as AlexaHosted_HostingConfigurationV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as Manifest_SkillManifestV1 class CreateSkillRequest(object): @@ -52,7 +52,7 @@ class CreateSkillRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, manifest=None, hosting=None): - # type: (Optional[str], Optional[SkillManifestV1], Optional[HostingConfigurationV1]) -> None + # type: (Optional[str], Optional[Manifest_SkillManifestV1], Optional[AlexaHosted_HostingConfigurationV1]) -> None """ :param vendor_id: ID of the vendor owning the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_response.py index 4781899..7207a26 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_with_package_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_with_package_request.py index 5d21a84..28a700d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_with_package_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_with_package_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/confirmation_status_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/confirmation_status_type.py index 034ee51..a6752a6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/confirmation_status_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/confirmation_status_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ConfirmationStatusType(Enum): DENIED = "DENIED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ConfirmationStatusType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py index 0bab3a7..c356010 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.dialog_act_type import DialogActTypeV1 + from ask_smapi_model.v1.skill.evaluations.dialog_act_type import DialogActType as Evaluations_DialogActTypeV1 class DialogAct(object): @@ -49,7 +49,7 @@ class DialogAct(object): supports_multiple_types = False def __init__(self, object_type=None, target_slot=None): - # type: (Optional[DialogActTypeV1], Optional[str]) -> None + # type: (Optional[Evaluations_DialogActTypeV1], Optional[str]) -> None """A representation of question prompts to the user for multi-turn, which requires user to fill a slot value, or confirm a slot value, or confirm an intent. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act_type.py index 58cbded..24e905f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class DialogActType(Enum): Dialog_ConfirmIntent = "Dialog.ConfirmIntent" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DialogActType): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py index a4295fe..dd36605 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.slot import SlotV1 - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.slot import Slot as Evaluations_SlotV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[ConfirmationStatusTypeV1], Optional[Dict[str, SlotV1]]) -> None + # type: (Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Dict[str, Evaluations_SlotV1]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py index 1b39c9d..2f5e890 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.dialog_act import DialogActV1 + from ask_smapi_model.v1.skill.evaluations.dialog_act import DialogAct as Evaluations_DialogActV1 class MultiTurn(object): @@ -53,7 +53,7 @@ class MultiTurn(object): supports_multiple_types = False def __init__(self, dialog_act=None, token=None, prompt=None): - # type: (Optional[DialogActV1], Optional[str], Optional[str]) -> None + # type: (Optional[Evaluations_DialogActV1], Optional[str], Optional[str]) -> None """Included when the selected intent has dialog defined and the dialog is not completed. To continue the dialog, provide the value of the token in the multiTurnToken field in the next request. :param dialog_act: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_request.py index 2341b27..9d0f90b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py index 6adc9d0..06cc6ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.profile_nlu_selected_intent import ProfileNluSelectedIntentV1 - from ask_smapi_model.v1.skill.evaluations.intent import IntentV1 - from ask_smapi_model.v1.skill.evaluations.multi_turn import MultiTurnV1 + from ask_smapi_model.v1.skill.evaluations.profile_nlu_selected_intent import ProfileNluSelectedIntent as Evaluations_ProfileNluSelectedIntentV1 + from ask_smapi_model.v1.skill.evaluations.intent import Intent as Evaluations_IntentV1 + from ask_smapi_model.v1.skill.evaluations.multi_turn import MultiTurn as Evaluations_MultiTurnV1 class ProfileNluResponse(object): @@ -57,7 +57,7 @@ class ProfileNluResponse(object): supports_multiple_types = False def __init__(self, session_ended=None, selected_intent=None, considered_intents=None, multi_turn=None): - # type: (Optional[bool], Optional[ProfileNluSelectedIntentV1], Optional[List[IntentV1]], Optional[MultiTurnV1]) -> None + # type: (Optional[bool], Optional[Evaluations_ProfileNluSelectedIntentV1], Optional[List[Evaluations_IntentV1]], Optional[Evaluations_MultiTurnV1]) -> None """ :param session_ended: Represents when an utterance results in the skill exiting. It would be true when NLU selects 1P ExitAppIntent or GoHomeIntent, and false otherwise. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py index df12f31..8314ab7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py @@ -22,10 +22,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.slot import SlotV1 - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.slot import Slot as Evaluations_SlotV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 class ProfileNluSelectedIntent(Intent): @@ -55,7 +55,7 @@ class ProfileNluSelectedIntent(Intent): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[ConfirmationStatusTypeV1], Optional[Dict[str, SlotV1]]) -> None + # type: (Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Dict[str, Evaluations_SlotV1]]) -> None """The intent that Alexa selected for the utterance in the request. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py index d396f01..7986b9b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatusV1 - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItemsV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as Evaluations_ResolutionsPerAuthorityValueItemsV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Evaluations_ResolutionsPerAuthorityStatusV1 class ResolutionsPerAuthorityItems(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthorityItems(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[ResolutionsPerAuthorityStatusV1], Optional[List[ResolutionsPerAuthorityValueItemsV1]]) -> None + # type: (Optional[str], Optional[Evaluations_ResolutionsPerAuthorityStatusV1], Optional[List[Evaluations_ResolutionsPerAuthorityValueItemsV1]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py index 3562fcb..e5be07b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCodeV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Evaluations_ResolutionsPerAuthorityStatusCodeV1 class ResolutionsPerAuthorityStatus(object): @@ -45,7 +45,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[ResolutionsPerAuthorityStatusCodeV1]) -> None + # type: (Optional[Evaluations_ResolutionsPerAuthorityStatusCodeV1]) -> None """An object representing the status of entity resolution for the slot. :param code: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status_code.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status_code.py index 4eb4398..08e06d2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status_code.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status_code.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class ResolutionsPerAuthorityStatusCode(Enum): ER_ERROR_EXCEPTION = "ER_ERROR_EXCEPTION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResolutionsPerAuthorityStatusCode): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_value_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_value_items.py index 4f37232..a5aa939 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_value_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_value_items.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py index 2e0de56..6dfc6f2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.slot_resolutions import SlotResolutionsV1 - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.slot_resolutions import SlotResolutions as Evaluations_SlotResolutionsV1 class Slot(object): @@ -56,7 +56,7 @@ class Slot(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[ConfirmationStatusTypeV1], Optional[SlotResolutionsV1]) -> None + # type: (Optional[str], Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Evaluations_SlotResolutionsV1]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py index 6ce95f6..29530f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_items import ResolutionsPerAuthorityItemsV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as Evaluations_ResolutionsPerAuthorityItemsV1 class SlotResolutions(object): @@ -45,7 +45,7 @@ class SlotResolutions(object): supports_multiple_types = False def __init__(self, resolutions_per_authority=None): - # type: (Optional[List[ResolutionsPerAuthorityItemsV1]]) -> None + # type: (Optional[List[Evaluations_ResolutionsPerAuthorityItemsV1]]) -> None """A resolutions object representing the results of resolving the words captured from the user's utterance. :param resolutions_per_authority: An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py index 4e832fa..7576539 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.response_status import ResponseStatusV1 - from ask_smapi_model.v1.skill.export_response_skill import ExportResponseSkillV1 + from ask_smapi_model.v1.skill.export_response_skill import ExportResponseSkill as Skill_ExportResponseSkillV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 class ExportResponse(object): @@ -48,7 +48,7 @@ class ExportResponse(object): supports_multiple_types = False def __init__(self, status=None, skill=None): - # type: (Optional[ResponseStatusV1], Optional[ExportResponseSkillV1]) -> None + # type: (Optional[Skill_ResponseStatusV1], Optional[Skill_ExportResponseSkillV1]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/export_response_skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/export_response_skill.py index b87a083..02976ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/export_response_skill.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/export_response_skill.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/format.py b/ask-smapi-model/ask_smapi_model/v1/skill/format.py index 39c73e1..19fed02 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/format.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/format.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class Format(Enum): URI = "URI" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Format): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py index 5f9b8ee..cd9e0b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.confidence_bin import ConfidenceBinV1 + from ask_smapi_model.v1.skill.history.confidence_bin import ConfidenceBin as History_ConfidenceBinV1 class Confidence(object): @@ -45,7 +45,7 @@ class Confidence(object): supports_multiple_types = False def __init__(self, bin=None): - # type: (Optional[ConfidenceBinV1]) -> None + # type: (Optional[History_ConfidenceBinV1]) -> None """The hypothesized confidence for this interaction. :param bin: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence_bin.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence_bin.py index 99143dd..9120bb2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence_bin.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence_bin.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ConfidenceBin(Enum): LOW = "LOW" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ConfidenceBin): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py index c3635c8..a9974e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActNameV1 + from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as History_DialogActNameV1 class DialogAct(object): @@ -45,7 +45,7 @@ class DialogAct(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[DialogActNameV1]) -> None + # type: (Optional[History_DialogActNameV1]) -> None """The dialog act used in the interaction. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act_name.py index bec91c6..6ed4e08 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class DialogActName(Enum): Dialog_ConfirmIntent = "Dialog.ConfirmIntent" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DialogActName): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py index 410caf1..f0dba0d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.slot import SlotV1 - from ask_smapi_model.v1.skill.history.confidence import ConfidenceV1 + from ask_smapi_model.v1.skill.history.slot import Slot as History_SlotV1 + from ask_smapi_model.v1.skill.history.confidence import Confidence as History_ConfidenceV1 class Intent(object): @@ -54,7 +54,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confidence=None, slots=None): - # type: (Optional[str], Optional[ConfidenceV1], Optional[Dict[str, SlotV1]]) -> None + # type: (Optional[str], Optional[History_ConfidenceV1], Optional[Dict[str, History_SlotV1]]) -> None """Provides the intent name, slots and confidence of the intent used in this interaction. :param name: The hypothesized intent for this utterance. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_confidence_bin.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_confidence_bin.py index 1bed71f..5425e34 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_confidence_bin.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_confidence_bin.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class IntentConfidenceBin(Enum): LOW = "LOW" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IntentConfidenceBin): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py index 3f381b4..7aaa463 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py @@ -21,14 +21,14 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.stage_type import StageTypeV1 - from ask_smapi_model.v1.skill.history.intent_request_locales import IntentRequestLocalesV1 - from ask_smapi_model.v1.skill.history.dialog_act import DialogActV1 - from ask_smapi_model.v1.skill.history.interaction_type import InteractionTypeV1 - from ask_smapi_model.v1.skill.history.intent import IntentV1 - from ask_smapi_model.v1.skill.history.publication_status import PublicationStatusV1 + from ask_smapi_model.v1.skill.history.dialog_act import DialogAct as History_DialogActV1 + from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as History_PublicationStatusV1 + from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 + from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as History_InteractionTypeV1 + from ask_smapi_model.v1.skill.history.intent_request_locales import IntentRequestLocales as History_IntentRequestLocalesV1 + from ask_smapi_model.v1.skill.history.intent import Intent as History_IntentV1 class IntentRequest(object): @@ -72,7 +72,7 @@ class IntentRequest(object): supports_multiple_types = False def __init__(self, dialog_act=None, intent=None, interaction_type=None, locale=None, publication_status=None, stage=None, utterance_text=None): - # type: (Optional[DialogActV1], Optional[IntentV1], Optional[InteractionTypeV1], Optional[IntentRequestLocalesV1], Optional[PublicationStatusV1], Optional[StageTypeV1], Optional[str]) -> None + # type: (Optional[History_DialogActV1], Optional[History_IntentV1], Optional[History_InteractionTypeV1], Optional[History_IntentRequestLocalesV1], Optional[History_PublicationStatusV1], Optional[V1_StageTypeV1], Optional[str]) -> None """ :param dialog_act: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request_locales.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request_locales.py index a9559cf..1722d04 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request_locales.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request_locales.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class IntentRequestLocales(Enum): ja_JP = "ja-JP" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, IntentRequestLocales): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py index beea622..2fc55af 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.history.intent_request import IntentRequestV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.history.intent_request import IntentRequest as History_IntentRequestV1 class IntentRequests(object): @@ -70,7 +70,7 @@ class IntentRequests(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, is_truncated=None, total_count=None, start_index=None, skill_id=None, items=None): - # type: (Optional[LinksV1], Optional[str], Optional[bool], Optional[float], Optional[float], Optional[str], Optional[List[IntentRequestV1]]) -> None + # type: (Optional[V1_LinksV1], Optional[str], Optional[bool], Optional[float], Optional[float], Optional[str], Optional[List[History_IntentRequestV1]]) -> None """Response to the GET Intent Request History API. It contains the collection of utterances for the skill, nextToken and other metadata related to the search query. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/interaction_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/interaction_type.py index fbf4c65..55aa3a2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/interaction_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/interaction_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class InteractionType(Enum): MODAL = "MODAL" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, InteractionType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/locale_in_query.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/locale_in_query.py index 0fb9ad9..6a1f2d9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/locale_in_query.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/locale_in_query.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class LocaleInQuery(Enum): ja_JP = "ja-JP" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, LocaleInQuery): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/publication_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/publication_status.py index 9d24100..0e116f6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/publication_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/publication_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PublicationStatus(Enum): Certification = "Certification" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PublicationStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/slot.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/slot.py index 742f876..adcd245 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/slot.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/slot.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/sort_field_for_intent_request_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/sort_field_for_intent_request_type.py index 9c808cc..cb80b1c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/sort_field_for_intent_request_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/sort_field_for_intent_request_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class SortFieldForIntentRequestType(Enum): interactionType = "interactionType" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SortFieldForIntentRequestType): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_details.py index 566546d..94d2179 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_details.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py index 3d829ee..e935912 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequestV1 + from ask_smapi_model.v1.skill.hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest as Skill_HostedSkillDeploymentStatusLastUpdateRequestV1 class HostedSkillDeploymentStatus(object): @@ -45,7 +45,7 @@ class HostedSkillDeploymentStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[HostedSkillDeploymentStatusLastUpdateRequestV1]) -> None + # type: (Optional[Skill_HostedSkillDeploymentStatusLastUpdateRequestV1]) -> None """Defines the most recent deployment status for the Alexa hosted skill. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py index 9fc31ef..cba7dec 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_deployment_details import HostedSkillDeploymentDetailsV1 - from ask_smapi_model.v1.skill.status import StatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.hosted_skill_deployment_details import HostedSkillDeploymentDetails as Skill_HostedSkillDeploymentDetailsV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 class HostedSkillDeploymentStatusLastUpdateRequest(object): @@ -59,7 +59,7 @@ class HostedSkillDeploymentStatusLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, deployment_details=None): - # type: (Optional[StatusV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]], Optional[HostedSkillDeploymentDetailsV1]) -> None + # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_HostedSkillDeploymentDetailsV1]) -> None """Contains attributes related to last modification request of a hosted skill deployment resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py index ef3c69f..3530356 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.status import StatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 class HostedSkillProvisioningLastUpdateRequest(object): @@ -54,7 +54,7 @@ class HostedSkillProvisioningLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None): - # type: (Optional[StatusV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]]) -> None """Contains attributes related to last modification request of a hosted skill provisioning resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py index 48cd8bf..6de60e1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequestV1 + from ask_smapi_model.v1.skill.hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest as Skill_HostedSkillProvisioningLastUpdateRequestV1 class HostedSkillProvisioningStatus(object): @@ -45,7 +45,7 @@ class HostedSkillProvisioningStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[HostedSkillProvisioningLastUpdateRequestV1]) -> None + # type: (Optional[Skill_HostedSkillProvisioningLastUpdateRequestV1]) -> None """Defines the provisioning status for hosted skill. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py index c84ef86..3f1a96b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.image_dimension import ImageDimensionV1 - from ask_smapi_model.v1.skill.image_size import ImageSizeV1 + from ask_smapi_model.v1.skill.image_size import ImageSize as Skill_ImageSizeV1 + from ask_smapi_model.v1.skill.image_dimension import ImageDimension as Skill_ImageDimensionV1 class ImageAttributes(object): @@ -50,7 +50,7 @@ class ImageAttributes(object): supports_multiple_types = False def __init__(self, dimension=None, size=None): - # type: (Optional[ImageDimensionV1], Optional[ImageSizeV1]) -> None + # type: (Optional[Skill_ImageDimensionV1], Optional[Skill_ImageSizeV1]) -> None """Set of properties of the image provided by the customer. :param dimension: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_dimension.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_dimension.py index c17b6c3..133bae8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_dimension.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_dimension.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py index ad60db9..4bfe09e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.image_size_unit import ImageSizeUnitV1 + from ask_smapi_model.v1.skill.image_size_unit import ImageSizeUnit as Skill_ImageSizeUnitV1 class ImageSize(object): @@ -49,7 +49,7 @@ class ImageSize(object): supports_multiple_types = False def __init__(self, value=None, unit=None): - # type: (Optional[float], Optional[ImageSizeUnitV1]) -> None + # type: (Optional[float], Optional[Skill_ImageSizeUnitV1]) -> None """On disk storage size of image. :param value: Value measuring the size of the image. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_size_unit.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_size_unit.py index b672c1e..5ba2829 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_size_unit.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_size_unit.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class ImageSizeUnit(Enum): MB = "MB" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ImageSizeUnit): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py index 1bd5fe3..1514d72 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.response_status import ResponseStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 - from ask_smapi_model.v1.skill.import_response_skill import ImportResponseSkillV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.import_response_skill import ImportResponseSkill as Skill_ImportResponseSkillV1 class ImportResponse(object): @@ -57,7 +57,7 @@ class ImportResponse(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, skill=None): - # type: (Optional[ResponseStatusV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]], Optional[ImportResponseSkillV1]) -> None + # type: (Optional[Skill_ResponseStatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_ImportResponseSkillV1]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py index 5b2b83e..31590ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.resource_import_status import ResourceImportStatusV1 + from ask_smapi_model.v1.skill.resource_import_status import ResourceImportStatus as Skill_ResourceImportStatusV1 class ImportResponseSkill(object): @@ -51,7 +51,7 @@ class ImportResponseSkill(object): supports_multiple_types = False def __init__(self, skill_id=None, e_tag=None, resources=None): - # type: (Optional[str], Optional[str], Optional[List[ResourceImportStatusV1]]) -> None + # type: (Optional[str], Optional[str], Optional[List[Skill_ResourceImportStatusV1]]) -> None """ :param skill_id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/instance.py b/ask-smapi-model/ask_smapi_model/v1/skill/instance.py index f244d31..0aaab3c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/instance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/instance.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypesV1 + from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as Skill_ValidationDataTypesV1 class Instance(object): @@ -53,7 +53,7 @@ class Instance(object): supports_multiple_types = False def __init__(self, property_path=None, data_type=None, value=None): - # type: (Optional[str], Optional[ValidationDataTypesV1], Optional[str]) -> None + # type: (Optional[str], Optional[Skill_ValidationDataTypesV1], Optional[str]) -> None """Structure representing properties of an instance of data. Definition will be either one of a booleanInstance, stringInstance, integerInstance, or compoundInstance. :param property_path: Path that uniquely identifies the instance in the resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py index 0ff520b..40452d3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_entity import CatalogEntityV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_entity import CatalogEntity as Catalog_CatalogEntityV1 class CatalogDefinitionOutput(object): @@ -53,7 +53,7 @@ class CatalogDefinitionOutput(object): supports_multiple_types = False def __init__(self, catalog=None, creation_time=None, total_versions=None): - # type: (Optional[CatalogEntityV1], Optional[str], Optional[str]) -> None + # type: (Optional[Catalog_CatalogEntityV1], Optional[str], Optional[str]) -> None """Catalog request definitions. :param catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_entity.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_entity.py index cdeb0d5..d114bf5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_entity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_entity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_input.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_input.py index 28a28a5..871ba76 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_input.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_input.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py index 384054b..7b2481a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class CatalogItem(object): @@ -57,7 +57,7 @@ class CatalogItem(object): supports_multiple_types = False def __init__(self, name=None, description=None, catalog_id=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[V1_LinksV1]) -> None """Definition for catalog entity. :param name: Name of the catalog. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_response.py index e31d139..80cfb37 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py index 42b5137..42063ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.last_update_request import LastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.last_update_request import LastUpdateRequest as Catalog_LastUpdateRequestV1 class CatalogStatus(object): @@ -45,7 +45,7 @@ class CatalogStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[LastUpdateRequestV1]) -> None + # type: (Optional[Catalog_LastUpdateRequestV1]) -> None """Defines the structure for catalog status response. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status_type.py index 1f0ca4b..062a9a1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class CatalogStatusType(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, CatalogStatusType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py index 17e3bac..105bff0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input import CatalogInputV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input import CatalogInput as Catalog_CatalogInputV1 class DefinitionData(object): @@ -49,7 +49,7 @@ class DefinitionData(object): supports_multiple_types = False def __init__(self, catalog=None, vendor_id=None): - # type: (Optional[CatalogInputV1], Optional[str]) -> None + # type: (Optional[Catalog_CatalogInputV1], Optional[str]) -> None """Catalog request definitions. :param catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py index 82d6d83..ff7b269 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status_type import CatalogStatusTypeV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status_type import CatalogStatusType as Catalog_CatalogStatusTypeV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 class LastUpdateRequest(object): @@ -54,7 +54,7 @@ class LastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, version=None, errors=None): - # type: (Optional[CatalogStatusTypeV1], Optional[str], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[Catalog_CatalogStatusTypeV1], Optional[str], Optional[List[Skill_StandardizedErrorV1]]) -> None """Contains attributes related to last modification request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py index 61f5684..cef7a75 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_item import CatalogItemV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_item import CatalogItem as Catalog_CatalogItemV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class ListCatalogResponse(object): @@ -62,7 +62,7 @@ class ListCatalogResponse(object): supports_multiple_types = False def __init__(self, links=None, catalogs=None, is_truncated=None, next_token=None, total_count=None): - # type: (Optional[LinksV1], Optional[List[CatalogItemV1]], Optional[bool], Optional[str], Optional[int]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Catalog_CatalogItemV1]], Optional[bool], Optional[str], Optional[int]) -> None """List of catalog versions of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/update_request.py index db2fd0a..9749203 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/update_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py index 03f3ff2..3e814d1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.value_catalog import ValueCatalogV1 + from ask_smapi_model.v1.skill.interaction_model.value_catalog import ValueCatalog as InteractionModel_ValueCatalogV1 class CatalogValueSupplier(ValueSupplier): @@ -48,7 +48,7 @@ class CatalogValueSupplier(ValueSupplier): supports_multiple_types = False def __init__(self, value_catalog=None): - # type: (Optional[ValueCatalogV1]) -> None + # type: (Optional[InteractionModel_ValueCatalogV1]) -> None """Supply slot values from catalog(s). :param value_catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py index b6d3d2b..1d9d55e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ConflictDetectionJobStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ConflictDetectionJobStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py index 46ec505..27d3c76 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot import ConflictIntentSlotV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot import ConflictIntentSlot as ConflictDetection_ConflictIntentSlotV1 class ConflictIntent(object): @@ -47,7 +47,7 @@ class ConflictIntent(object): supports_multiple_types = False def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, ConflictIntentSlotV1]]) -> None + # type: (Optional[str], Optional[Dict[str, ConflictDetection_ConflictIntentSlotV1]]) -> None """ :param name: Conflict intent name diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py index f296c20..76e5350 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py index c94f159..60197dc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent import ConflictIntentV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent import ConflictIntent as ConflictDetection_ConflictIntentV1 class ConflictResult(object): @@ -47,7 +47,7 @@ class ConflictResult(object): supports_multiple_types = False def __init__(self, sample_utterance=None, intent=None): - # type: (Optional[str], Optional[ConflictIntentV1]) -> None + # type: (Optional[str], Optional[ConflictDetection_ConflictIntentV1]) -> None """ :param sample_utterance: Sample utterance provided by 3P developers for intents. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py index a67498f..e913758 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status import ConflictDetectionJobStatusV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status import ConflictDetectionJobStatus as ConflictDetection_ConflictDetectionJobStatusV1 class GetConflictDetectionJobStatusResponse(object): @@ -47,7 +47,7 @@ class GetConflictDetectionJobStatusResponse(object): supports_multiple_types = False def __init__(self, status=None, total_conflicts=None): - # type: (Optional[ConflictDetectionJobStatusV1], Optional[float]) -> None + # type: (Optional[ConflictDetection_ConflictDetectionJobStatusV1], Optional[float]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py index 1b71e4d..ea8852d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResultV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as ConflictDetection_PaginationContextV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResult as ConflictDetection_GetConflictsResponseResultV1 class GetConflictsResponse(PagedResponse): @@ -54,7 +54,7 @@ class GetConflictsResponse(PagedResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, results=None): - # type: (Optional[PaginationContextV1], Optional[LinksV1], Optional[List[GetConflictsResponseResultV1]]) -> None + # type: (Optional[ConflictDetection_PaginationContextV1], Optional[V1_LinksV1], Optional[List[ConflictDetection_GetConflictsResponseResultV1]]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py index 0d7cc98..156fa3c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result import ConflictResultV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result import ConflictResult as ConflictDetection_ConflictResultV1 class GetConflictsResponseResult(object): @@ -47,7 +47,7 @@ class GetConflictsResponseResult(object): supports_multiple_types = False def __init__(self, conflicting_utterance=None, conflicts=None): - # type: (Optional[str], Optional[List[ConflictResultV1]]) -> None + # type: (Optional[str], Optional[List[ConflictDetection_ConflictResultV1]]) -> None """ :param conflicting_utterance: Utterance resolved from sample utterance that causes conflicts among different intents. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py index e107c0d..6fd1b99 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as ConflictDetection_PaginationContextV1 class PagedResponse(object): @@ -48,7 +48,7 @@ class PagedResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[PaginationContextV1], Optional[LinksV1]) -> None + # type: (Optional[ConflictDetection_PaginationContextV1], Optional[V1_LinksV1]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py index c3b5b52..f973858 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/delegation_strategy_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/delegation_strategy_type.py index 82e6cd9..5868843 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/delegation_strategy_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/delegation_strategy_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class DelegationStrategyType(Enum): SKILL_RESPONSE = "SKILL_RESPONSE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DelegationStrategyType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py index a654ed0..047e930 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog_intents import DialogIntentsV1 - from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyTypeV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_intents import DialogIntents as InteractionModel_DialogIntentsV1 + from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as InteractionModel_DelegationStrategyTypeV1 class Dialog(object): @@ -50,7 +50,7 @@ class Dialog(object): supports_multiple_types = False def __init__(self, delegation_strategy=None, intents=None): - # type: (Optional[DelegationStrategyTypeV1], Optional[List[DialogIntentsV1]]) -> None + # type: (Optional[InteractionModel_DelegationStrategyTypeV1], Optional[List[InteractionModel_DialogIntentsV1]]) -> None """Defines dialog rules e.g. slot elicitation and validation, intent chaining etc. :param delegation_strategy: Defines a delegation strategy for the dialogs in this dialog model. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py index 6d9effe..142adf5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog_intents_prompts import DialogIntentsPromptsV1 - from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyTypeV1 - from ask_smapi_model.v1.skill.interaction_model.dialog_slot_items import DialogSlotItemsV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_slot_items import DialogSlotItems as InteractionModel_DialogSlotItemsV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_intents_prompts import DialogIntentsPrompts as InteractionModel_DialogIntentsPromptsV1 + from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as InteractionModel_DelegationStrategyTypeV1 class DialogIntents(object): @@ -61,7 +61,7 @@ class DialogIntents(object): supports_multiple_types = False def __init__(self, name=None, delegation_strategy=None, slots=None, confirmation_required=None, prompts=None): - # type: (Optional[str], Optional[DelegationStrategyTypeV1], Optional[List[DialogSlotItemsV1]], Optional[bool], Optional[DialogIntentsPromptsV1]) -> None + # type: (Optional[str], Optional[InteractionModel_DelegationStrategyTypeV1], Optional[List[InteractionModel_DialogSlotItemsV1]], Optional[bool], Optional[InteractionModel_DialogIntentsPromptsV1]) -> None """ :param name: Name of the intent that has a dialog specification. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents_prompts.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents_prompts.py index c055d42..1478ab7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents_prompts.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents_prompts.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_prompts.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_prompts.py index b6b5cc1..c8da5f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_prompts.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_prompts.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py index 18bc155..a2b37d6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.slot_validation import SlotValidationV1 - from ask_smapi_model.v1.skill.interaction_model.dialog_prompts import DialogPromptsV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_prompts import DialogPrompts as InteractionModel_DialogPromptsV1 + from ask_smapi_model.v1.skill.interaction_model.slot_validation import SlotValidation as InteractionModel_SlotValidationV1 class DialogSlotItems(object): @@ -64,7 +64,7 @@ class DialogSlotItems(object): supports_multiple_types = False def __init__(self, name=None, object_type=None, elicitation_required=None, confirmation_required=None, prompts=None, validations=None): - # type: (Optional[str], Optional[str], Optional[bool], Optional[bool], Optional[DialogPromptsV1], Optional[List[SlotValidationV1]]) -> None + # type: (Optional[str], Optional[str], Optional[bool], Optional[bool], Optional[InteractionModel_DialogPromptsV1], Optional[List[InteractionModel_SlotValidationV1]]) -> None """ :param name: The name of the slot that has dialog rules associated with it. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py index 9247cab..4cb4717 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity_level import FallbackIntentSensitivityLevelV1 + from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel as InteractionModel_FallbackIntentSensitivityLevelV1 class FallbackIntentSensitivity(object): @@ -45,7 +45,7 @@ class FallbackIntentSensitivity(object): supports_multiple_types = False def __init__(self, level=None): - # type: (Optional[FallbackIntentSensitivityLevelV1]) -> None + # type: (Optional[InteractionModel_FallbackIntentSensitivityLevelV1]) -> None """Denotes skill's sensitivity for out-of-domain utterances. :param level: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity_level.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity_level.py index 0e3dc9a..cffc519 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity_level.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity_level.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class FallbackIntentSensitivityLevel(Enum): LOW = "LOW" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FallbackIntentSensitivityLevel): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/has_entity_resolution_match.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/has_entity_resolution_match.py index 37741a3..f052bc5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/has_entity_resolution_match.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/has_entity_resolution_match.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py index dea5e9e..b7dfcd9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValueV1 + from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as InteractionModel_TypeValueV1 class InlineValueSupplier(ValueSupplier): @@ -48,7 +48,7 @@ class InlineValueSupplier(ValueSupplier): supports_multiple_types = False def __init__(self, values=None): - # type: (Optional[List[TypeValueV1]]) -> None + # type: (Optional[List[InteractionModel_TypeValueV1]]) -> None """Supplies inline slot type values. :param values: The list of slot type values. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py index 12948f7..8c3efbb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.slot_definition import SlotDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.slot_definition import SlotDefinition as InteractionModel_SlotDefinitionV1 class Intent(object): @@ -53,7 +53,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, slots=None, samples=None): - # type: (Optional[str], Optional[List[SlotDefinitionV1]], Optional[List[object]]) -> None + # type: (Optional[str], Optional[List[InteractionModel_SlotDefinitionV1]], Optional[List[object]]) -> None """The set of intents your service can accept and process. :param name: Name to identify the intent. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py index f4ad364..6801d9b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.interaction_model_schema import InteractionModelSchemaV1 + from ask_smapi_model.v1.skill.interaction_model.interaction_model_schema import InteractionModelSchema as InteractionModel_InteractionModelSchemaV1 class InteractionModelData(object): @@ -51,7 +51,7 @@ class InteractionModelData(object): supports_multiple_types = False def __init__(self, version=None, description=None, interaction_model=None): - # type: (Optional[str], Optional[str], Optional[InteractionModelSchemaV1]) -> None + # type: (Optional[str], Optional[str], Optional[InteractionModel_InteractionModelSchemaV1]) -> None """ :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py index a409a0b..820ea59 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog import DialogV1 - from ask_smapi_model.v1.skill.interaction_model.language_model import LanguageModelV1 - from ask_smapi_model.v1.skill.interaction_model.prompt import PromptV1 + from ask_smapi_model.v1.skill.interaction_model.dialog import Dialog as InteractionModel_DialogV1 + from ask_smapi_model.v1.skill.interaction_model.prompt import Prompt as InteractionModel_PromptV1 + from ask_smapi_model.v1.skill.interaction_model.language_model import LanguageModel as InteractionModel_LanguageModelV1 class InteractionModelSchema(object): @@ -53,7 +53,7 @@ class InteractionModelSchema(object): supports_multiple_types = False def __init__(self, language_model=None, dialog=None, prompts=None): - # type: (Optional[LanguageModelV1], Optional[DialogV1], Optional[List[PromptV1]]) -> None + # type: (Optional[InteractionModel_LanguageModelV1], Optional[InteractionModel_DialogV1], Optional[List[InteractionModel_PromptV1]]) -> None """ :param language_model: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than.py index cc5e469..c87c15d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than_or_equal_to.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than_or_equal_to.py index 1833874..3fda417 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than_or_equal_to.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_greater_than_or_equal_to.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_duration.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_duration.py index 4df83b7..276bb4b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_duration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_duration.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_set.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_set.py index cc449cc..efaf16b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_set.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_in_set.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than.py index 2486309..e0b702e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than_or_equal_to.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than_or_equal_to.py index 63adb51..05064b8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than_or_equal_to.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_less_than_or_equal_to.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_duration.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_duration.py index 26405c6..883981d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_duration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_duration.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_set.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_set.py index 43ab3fa..e2c136b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_set.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/is_not_in_set.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py index f165bc1..99a534c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py index 1c09abf..b984b0a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py @@ -22,10 +22,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.scheduled import ScheduledV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.catalog import CatalogV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.scheduled import Scheduled as Jobs_ScheduledV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.catalog import Catalog as Jobs_CatalogV1 class CatalogAutoRefresh(JobDefinition): @@ -57,7 +57,7 @@ class CatalogAutoRefresh(JobDefinition): supports_multiple_types = False def __init__(self, trigger=None, status=None, resource=None): - # type: (Optional[ScheduledV1], Optional[str], Optional[CatalogV1]) -> None + # type: (Optional[Jobs_ScheduledV1], Optional[str], Optional[Jobs_CatalogV1]) -> None """Definition for CatalogAutoRefresh job. :param trigger: CatalogAutoRefresh can only have CatalogAutoRefresh trigger. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py index bc40546..8b43dc2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as Jobs_JobDefinitionV1 class CreateJobDefinitionRequest(object): @@ -49,7 +49,7 @@ class CreateJobDefinitionRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, job_definition=None): - # type: (Optional[str], Optional[JobDefinitionV1]) -> None + # type: (Optional[str], Optional[Jobs_JobDefinitionV1]) -> None """Request to create job definitions. :param vendor_id: ID of the vendor owning the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py index 4e2e4d2..6d0f2b1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py index e749aa8..288363b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/dynamic_update_error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py index f4c99f4..6f0ff24 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details import JobErrorDetailsV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details import JobErrorDetails as Jobs_JobErrorDetailsV1 class Execution(object): @@ -61,7 +61,7 @@ class Execution(object): supports_multiple_types = False def __init__(self, execution_id=None, timestamp=None, error_code=None, status=None, error_details=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[JobErrorDetailsV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[Jobs_JobErrorDetailsV1]) -> None """Execution data. :param execution_id: Identifier of the execution. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py index e6c3d81..6b6d1a0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution_metadata.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py index d301ec0..3e6a0d1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContextV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.execution import ExecutionV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as Jobs_JobAPIPaginationContextV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.execution import Execution as Jobs_ExecutionV1 class GetExecutionsResponse(object): @@ -55,7 +55,7 @@ class GetExecutionsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, executions=None): - # type: (Optional[JobAPIPaginationContextV1], Optional[LinksV1], Optional[List[ExecutionV1]]) -> None + # type: (Optional[Jobs_JobAPIPaginationContextV1], Optional[V1_LinksV1], Optional[List[Jobs_ExecutionV1]]) -> None """The response of get execution history. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py index 3086986..1b5cbfa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/interaction_model.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py index 6a1f2b6..a442985 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_api_pagination_context.py @@ -21,29 +21,37 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime class JobAPIPaginationContext(object): """ + :param next_token: + :type next_token: (optional) str """ deserialized_types = { + 'next_token': 'str' } # type: Dict attribute_map = { + 'next_token': 'nextToken' } # type: Dict supports_multiple_types = False - def __init__(self): - # type: () -> None + def __init__(self, next_token=None): + # type: (Optional[str]) -> None """ + :param next_token: + :type next_token: (optional) str """ self.__discriminator_value = None # type: str + self.next_token = next_token + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py index f2a20dc..b4ab3e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import TriggerV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import Trigger as Jobs_TriggerV1 class JobDefinition(object): @@ -73,7 +73,7 @@ class JobDefinition(object): @abstractmethod def __init__(self, object_type=None, trigger=None, status=None): - # type: (Optional[str], Optional[TriggerV1], Optional[str]) -> None + # type: (Optional[str], Optional[Jobs_TriggerV1], Optional[str]) -> None """Definition for dynamic job. :param object_type: Polymorphic type of the job diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py index 025f05d..0f3bc55 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatusV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as Jobs_JobDefinitionStatusV1 class JobDefinitionMetadata(object): @@ -53,7 +53,7 @@ class JobDefinitionMetadata(object): supports_multiple_types = False def __init__(self, id=None, object_type=None, status=None): - # type: (Optional[str], Optional[str], Optional[JobDefinitionStatusV1]) -> None + # type: (Optional[str], Optional[str], Optional[Jobs_JobDefinitionStatusV1]) -> None """Metadata of the job definition. :param id: Job identifier. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py index c7e5cb8..1a8f8a1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class JobDefinitionStatus(Enum): ENALBED = "ENALBED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, JobDefinitionStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py index 1f574fb..3ddb89f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata import ExecutionMetadataV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata import ExecutionMetadata as Jobs_ExecutionMetadataV1 class JobErrorDetails(object): @@ -45,7 +45,7 @@ class JobErrorDetails(object): supports_multiple_types = False def __init__(self, execution_metadata=None): - # type: (Optional[List[ExecutionMetadataV1]]) -> None + # type: (Optional[List[Jobs_ExecutionMetadataV1]]) -> None """Optional details if the execution is depending on other executions. :param execution_metadata: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py index c5b5466..e9e6243 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata import JobDefinitionMetadataV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContextV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata import JobDefinitionMetadata as Jobs_JobDefinitionMetadataV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as Jobs_JobAPIPaginationContextV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class ListJobDefinitionsResponse(object): @@ -55,7 +55,7 @@ class ListJobDefinitionsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, jobs=None): - # type: (Optional[JobAPIPaginationContextV1], Optional[LinksV1], Optional[List[JobDefinitionMetadataV1]]) -> None + # type: (Optional[Jobs_JobAPIPaginationContextV1], Optional[V1_LinksV1], Optional[List[Jobs_JobDefinitionMetadataV1]]) -> None """The response of list job definitions. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py index 46cd9ae..6eaa433 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py @@ -22,10 +22,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObjectV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete import ReferencedResourceJobsCompleteV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject as Jobs_ResourceObjectV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete import ReferencedResourceJobsComplete as Jobs_ReferencedResourceJobsCompleteV1 class ReferenceVersionUpdate(JobDefinition): @@ -65,7 +65,7 @@ class ReferenceVersionUpdate(JobDefinition): supports_multiple_types = False def __init__(self, trigger=None, status=None, resource=None, references=None, publish_to_live=None): - # type: (Optional[ReferencedResourceJobsCompleteV1], Optional[str], Optional[ResourceObjectV1], Optional[List[ResourceObjectV1]], Optional[bool]) -> None + # type: (Optional[Jobs_ReferencedResourceJobsCompleteV1], Optional[str], Optional[Jobs_ResourceObjectV1], Optional[List[Jobs_ResourceObjectV1]], Optional[bool]) -> None """Definition for ReferenceVersionUpdate job. :param trigger: Can only have ReferencedResourceJobsComplete trigger. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py index 3871426..b16491a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/referenced_resource_jobs_complete.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py index e6c0659..bb8d7e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/resource_object.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py index b30b781..d546fbf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/scheduled.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py index 8d5fb89..519e1bb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/slot_type_reference.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py index 5e639b9..d16d3b8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/trigger.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py index 50e81ca..9bfab0d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatusV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as Jobs_JobDefinitionStatusV1 class UpdateJobStatusRequest(object): @@ -45,7 +45,7 @@ class UpdateJobStatusRequest(object): supports_multiple_types = False def __init__(self, status=None): - # type: (Optional[JobDefinitionStatusV1]) -> None + # type: (Optional[Jobs_JobDefinitionStatusV1]) -> None """Update job status. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py index e64ad80..9e9ed63 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error import DynamicUpdateErrorV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error import DynamicUpdateError as Jobs_DynamicUpdateErrorV1 class ValidationErrors(object): @@ -45,7 +45,7 @@ class ValidationErrors(object): supports_multiple_types = False def __init__(self, errors=None): - # type: (Optional[List[DynamicUpdateErrorV1]]) -> None + # type: (Optional[List[Jobs_DynamicUpdateErrorV1]]) -> None """The list of errors. :param errors: The list of errors. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py index fba4674..e476483 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_configuration import ModelConfigurationV1 - from ask_smapi_model.v1.skill.interaction_model.slot_type import SlotTypeV1 - from ask_smapi_model.v1.skill.interaction_model.intent import IntentV1 + from ask_smapi_model.v1.skill.interaction_model.model_configuration import ModelConfiguration as InteractionModel_ModelConfigurationV1 + from ask_smapi_model.v1.skill.interaction_model.intent import Intent as InteractionModel_IntentV1 + from ask_smapi_model.v1.skill.interaction_model.slot_type import SlotType as InteractionModel_SlotTypeV1 class LanguageModel(object): @@ -59,7 +59,7 @@ class LanguageModel(object): supports_multiple_types = False def __init__(self, invocation_name=None, types=None, intents=None, model_configuration=None): - # type: (Optional[str], Optional[List[SlotTypeV1]], Optional[List[IntentV1]], Optional[ModelConfigurationV1]) -> None + # type: (Optional[str], Optional[List[InteractionModel_SlotTypeV1]], Optional[List[InteractionModel_IntentV1]], Optional[InteractionModel_ModelConfigurationV1]) -> None """Define the language model. :param invocation_name: Invocation name of the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py index 8bfde1d..137bbc2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity import FallbackIntentSensitivityV1 + from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity import FallbackIntentSensitivity as InteractionModel_FallbackIntentSensitivityV1 class ModelConfiguration(object): @@ -45,7 +45,7 @@ class ModelConfiguration(object): supports_multiple_types = False def __init__(self, fallback_intent_sensitivity=None): - # type: (Optional[FallbackIntentSensitivityV1]) -> None + # type: (Optional[InteractionModel_FallbackIntentSensitivityV1]) -> None """Global configurations applicable to a skill's model. :param fallback_intent_sensitivity: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py index 702e16c..0121d3f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInputV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as ModelType_SlotTypeInputV1 class DefinitionData(object): @@ -49,7 +49,7 @@ class DefinitionData(object): supports_multiple_types = False def __init__(self, slot_type=None, vendor_id=None): - # type: (Optional[SlotTypeInputV1], Optional[str]) -> None + # type: (Optional[ModelType_SlotTypeInputV1], Optional[str]) -> None """Slot type request definitions. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/error.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/error.py index bb77324..c25fc89 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/error.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py index 5eb65bb..f3c81b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.error import ErrorV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.warning import WarningV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status_type import SlotTypeStatusTypeV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.warning import Warning as ModelType_WarningV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status_type import SlotTypeStatusType as ModelType_SlotTypeStatusTypeV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.error import Error as ModelType_ErrorV1 class LastUpdateRequest(object): @@ -59,7 +59,7 @@ class LastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, version=None, errors=None, warnings=None): - # type: (Optional[SlotTypeStatusTypeV1], Optional[str], Optional[List[ErrorV1]], Optional[List[WarningV1]]) -> None + # type: (Optional[ModelType_SlotTypeStatusTypeV1], Optional[str], Optional[List[ModelType_ErrorV1]], Optional[List[ModelType_WarningV1]]) -> None """Contains attributes related to last modification request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py index 85577db..705f8c1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_item import SlotTypeItemV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_item import SlotTypeItem as ModelType_SlotTypeItemV1 class ListSlotTypeResponse(object): @@ -54,7 +54,7 @@ class ListSlotTypeResponse(object): supports_multiple_types = False def __init__(self, links=None, slot_types=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[SlotTypeItemV1]], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[ModelType_SlotTypeItemV1]], Optional[str]) -> None """List of slot types of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py index 5a60b84..533fb74 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInputV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as ModelType_SlotTypeInputV1 class SlotTypeDefinitionOutput(object): @@ -49,7 +49,7 @@ class SlotTypeDefinitionOutput(object): supports_multiple_types = False def __init__(self, slot_type=None, total_versions=None): - # type: (Optional[SlotTypeInputV1], Optional[str]) -> None + # type: (Optional[ModelType_SlotTypeInputV1], Optional[str]) -> None """Slot Type request definitions. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_input.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_input.py index 400598b..ce92e99 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_input.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_input.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py index 6da0585..9254d6b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class SlotTypeItem(object): @@ -57,7 +57,7 @@ class SlotTypeItem(object): supports_multiple_types = False def __init__(self, name=None, description=None, id=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[V1_LinksV1]) -> None """Definition for slot type entity. :param name: Name of the slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py index ff57ac3..3f7e389 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response_entity import SlotTypeResponseEntityV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response_entity import SlotTypeResponseEntity as ModelType_SlotTypeResponseEntityV1 class SlotTypeResponse(object): @@ -45,7 +45,7 @@ class SlotTypeResponse(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[SlotTypeResponseEntityV1]) -> None + # type: (Optional[ModelType_SlotTypeResponseEntityV1]) -> None """Slot Type information. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response_entity.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response_entity.py index d9bd8b5..39e444d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response_entity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response_entity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py index db1650a..21ac69c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.last_update_request import LastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.last_update_request import LastUpdateRequest as ModelType_LastUpdateRequestV1 class SlotTypeStatus(object): @@ -45,7 +45,7 @@ class SlotTypeStatus(object): supports_multiple_types = False def __init__(self, update_request=None): - # type: (Optional[LastUpdateRequestV1]) -> None + # type: (Optional[ModelType_LastUpdateRequestV1]) -> None """Defines the structure for slot type status response. :param update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status_type.py index 52213c0..90a91de 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SlotTypeStatusType(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SlotTypeStatusType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_update_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_update_definition.py index 842a773..0efa5c9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_update_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_update_definition.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py index 1bbe36c..ea96156 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_update_definition import SlotTypeUpdateDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_update_definition import SlotTypeUpdateDefinition as ModelType_SlotTypeUpdateDefinitionV1 class UpdateRequest(object): @@ -45,7 +45,7 @@ class UpdateRequest(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[SlotTypeUpdateDefinitionV1]) -> None + # type: (Optional[ModelType_SlotTypeUpdateDefinitionV1]) -> None """Slot type update request object. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/warning.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/warning.py index c3d19ce..ea32b3e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/warning.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/warning.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/multiple_values_config.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/multiple_values_config.py index cee503c..d56aa72 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/multiple_values_config.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/multiple_values_config.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py index 3a95146..d3ee9a0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.prompt_items import PromptItemsV1 + from ask_smapi_model.v1.skill.interaction_model.prompt_items import PromptItems as InteractionModel_PromptItemsV1 class Prompt(object): @@ -47,7 +47,7 @@ class Prompt(object): supports_multiple_types = False def __init__(self, id=None, variations=None): - # type: (Optional[str], Optional[List[PromptItemsV1]]) -> None + # type: (Optional[str], Optional[List[InteractionModel_PromptItemsV1]]) -> None """ :param id: The prompt id, this id can be used from dialog definitions. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py index 5aee080..7af65e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.prompt_items_type import PromptItemsTypeV1 + from ask_smapi_model.v1.skill.interaction_model.prompt_items_type import PromptItemsType as InteractionModel_PromptItemsTypeV1 class PromptItems(object): @@ -47,7 +47,7 @@ class PromptItems(object): supports_multiple_types = False def __init__(self, object_type=None, value=None): - # type: (Optional[PromptItemsTypeV1], Optional[str]) -> None + # type: (Optional[InteractionModel_PromptItemsTypeV1], Optional[str]) -> None """ :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items_type.py index 96ef714..c9008e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PromptItemsType(Enum): PlainText = "PlainText" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PromptItemsType): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py index a57277d..06c52f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.multiple_values_config import MultipleValuesConfigV1 + from ask_smapi_model.v1.skill.interaction_model.multiple_values_config import MultipleValuesConfig as InteractionModel_MultipleValuesConfigV1 class SlotDefinition(object): @@ -57,7 +57,7 @@ class SlotDefinition(object): supports_multiple_types = False def __init__(self, name=None, object_type=None, multiple_values=None, samples=None): - # type: (Optional[str], Optional[str], Optional[MultipleValuesConfigV1], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[InteractionModel_MultipleValuesConfigV1], Optional[List[object]]) -> None """Slot definition. :param name: The name of the slot. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py index a19086f..8d581bb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValueV1 - from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplierV1 + from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as InteractionModel_ValueSupplierV1 + from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as InteractionModel_TypeValueV1 class SlotType(object): @@ -54,7 +54,7 @@ class SlotType(object): supports_multiple_types = False def __init__(self, name=None, values=None, value_supplier=None): - # type: (Optional[str], Optional[List[TypeValueV1]], Optional[ValueSupplierV1]) -> None + # type: (Optional[str], Optional[List[InteractionModel_TypeValueV1]], Optional[InteractionModel_ValueSupplierV1]) -> None """Custom slot type to define a list of possible values for a slot. Used for items that are not covered by Amazon's built-in slot types. :param name: The name of the custom slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_validation.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_validation.py index 3bb3fc6..356b2c3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_validation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_validation.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py index 0eb2733..80b7c9f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_value_object import TypeValueObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_value_object import TypeValueObject as InteractionModel_TypeValueObjectV1 class TypeValue(object): @@ -49,7 +49,7 @@ class TypeValue(object): supports_multiple_types = False def __init__(self, id=None, name=None): - # type: (Optional[str], Optional[TypeValueObjectV1]) -> None + # type: (Optional[str], Optional[InteractionModel_TypeValueObjectV1]) -> None """The value schema in type object of interaction model. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value_object.py index 701d570..470e5a9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py index 7ef7dac..1cbcd8f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_item import SlotTypeVersionItemV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_item import SlotTypeVersionItem as TypeVersion_SlotTypeVersionItemV1 class ListSlotTypeVersionResponse(object): @@ -54,7 +54,7 @@ class ListSlotTypeVersionResponse(object): supports_multiple_types = False def __init__(self, links=None, slot_type_versions=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[SlotTypeVersionItemV1]], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[TypeVersion_SlotTypeVersionItemV1]], Optional[str]) -> None """List of slot type versions of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py index d5040ca..30203a3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update_object import SlotTypeUpdateObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update_object import SlotTypeUpdateObject as TypeVersion_SlotTypeUpdateObjectV1 class SlotTypeUpdate(object): @@ -45,7 +45,7 @@ class SlotTypeUpdate(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[SlotTypeUpdateObjectV1]) -> None + # type: (Optional[TypeVersion_SlotTypeUpdateObjectV1]) -> None """Slot Type update description wrapper. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update_object.py index 11ea5bc..4473f0f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update_object.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py index c8999fb..2473e64 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data_object import SlotTypeVersionDataObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data_object import SlotTypeVersionDataObject as TypeVersion_SlotTypeVersionDataObjectV1 class SlotTypeVersionData(object): @@ -45,7 +45,7 @@ class SlotTypeVersionData(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[SlotTypeVersionDataObjectV1]) -> None + # type: (Optional[TypeVersion_SlotTypeVersionDataObjectV1]) -> None """Slot Type version data with metadata. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py index 04144d4..09ea1e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as TypeVersion_ValueSupplierObjectV1 class SlotTypeVersionDataObject(object): @@ -57,7 +57,7 @@ class SlotTypeVersionDataObject(object): supports_multiple_types = False def __init__(self, id=None, definition=None, description=None, version=None): - # type: (Optional[str], Optional[ValueSupplierObjectV1], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[TypeVersion_ValueSupplierObjectV1], Optional[str], Optional[str]) -> None """Slot Type version fields with metadata. :param id: Slot type id associated with the slot type version. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py index 3538ec9..9a60e14 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 class SlotTypeVersionItem(object): @@ -53,7 +53,7 @@ class SlotTypeVersionItem(object): supports_multiple_types = False def __init__(self, version=None, description=None, links=None): - # type: (Optional[str], Optional[str], Optional[LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[V1_LinksV1]) -> None """Definition for slot type entity. :param version: Version number of slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py index eb94a5d..2a5e07a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplierV1 + from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as InteractionModel_ValueSupplierV1 class ValueSupplierObject(object): @@ -45,7 +45,7 @@ class ValueSupplierObject(object): supports_multiple_types = False def __init__(self, value_supplier=None): - # type: (Optional[ValueSupplierV1]) -> None + # type: (Optional[InteractionModel_ValueSupplierV1]) -> None """Value supplier object for slot definition. :param value_supplier: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py index f2c1fc4..1139cb7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.version_data_object import VersionDataObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.version_data_object import VersionDataObject as TypeVersion_VersionDataObjectV1 class VersionData(object): @@ -45,7 +45,7 @@ class VersionData(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[VersionDataObjectV1]) -> None + # type: (Optional[TypeVersion_VersionDataObjectV1]) -> None """Slot Type version specific data. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py index 8e062db..bd458d3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as TypeVersion_ValueSupplierObjectV1 class VersionDataObject(object): @@ -49,7 +49,7 @@ class VersionDataObject(object): supports_multiple_types = False def __init__(self, definition=None, description=None): - # type: (Optional[ValueSupplierObjectV1], Optional[str]) -> None + # type: (Optional[TypeVersion_ValueSupplierObjectV1], Optional[str]) -> None """Slot Type version fields with specific data. :param definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_catalog.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_catalog.py index fd96597..f1b7dfa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_catalog.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_catalog.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_supplier.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_supplier.py index cfb15e7..0b6f6f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_supplier.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/value_supplier.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py index a60b489..43454ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.links import LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 class CatalogEntityVersion(object): @@ -57,7 +57,7 @@ class CatalogEntityVersion(object): supports_multiple_types = False def __init__(self, version=None, creation_time=None, description=None, links=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[LinksV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Version_LinksV1]) -> None """Version metadata about the catalog entity version. :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_update.py index 4b093f1..0ed8168 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_update.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py index b5b82f5..8766eef 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.interaction_model.version.value_schema import ValueSchemaV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.value_schema import ValueSchema as Version_ValueSchemaV1 class CatalogValues(object): @@ -62,7 +62,7 @@ class CatalogValues(object): supports_multiple_types = False def __init__(self, is_truncated=None, next_token=None, total_count=None, links=None, values=None): - # type: (Optional[bool], Optional[str], Optional[int], Optional[LinksV1], Optional[List[ValueSchemaV1]]) -> None + # type: (Optional[bool], Optional[str], Optional[int], Optional[V1_LinksV1], Optional[List[Version_ValueSchemaV1]]) -> None """List of catalog values. :param is_truncated: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py index acc5521..63f9bb8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSourceV1 + from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as Version_InputSourceV1 class CatalogVersionData(object): @@ -53,7 +53,7 @@ class CatalogVersionData(object): supports_multiple_types = False def __init__(self, source=None, description=None, version=None): - # type: (Optional[InputSourceV1], Optional[str], Optional[str]) -> None + # type: (Optional[Version_InputSourceV1], Optional[str], Optional[str]) -> None """Catalog version data with metadata. :param source: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/input_source.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/input_source.py index 811a98d..31a0e6a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/input_source.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/input_source.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py index 458977c..bb9323e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import LinkV1 + from ask_smapi_model.v1.link import Link as V1_LinkV1 class Links(object): @@ -43,7 +43,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None): - # type: (Optional[LinkV1]) -> None + # type: (Optional[V1_LinkV1]) -> None """ :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py index d8bcb95..dbd0ee9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.links import LinksV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_entity_version import CatalogEntityVersionV1 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_entity_version import CatalogEntityVersion as Version_CatalogEntityVersionV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 class ListCatalogEntityVersionsResponse(object): @@ -62,7 +62,7 @@ class ListCatalogEntityVersionsResponse(object): supports_multiple_types = False def __init__(self, links=None, catalog_versions=None, is_truncated=None, next_token=None, total_count=None): - # type: (Optional[LinksV1], Optional[List[CatalogEntityVersionV1]], Optional[bool], Optional[str], Optional[int]) -> None + # type: (Optional[Version_LinksV1], Optional[List[Version_CatalogEntityVersionV1]], Optional[bool], Optional[str], Optional[int]) -> None """List of catalog versions of a catalog for the vendor in sortDirection order, descending as default. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py index 0ba6a34..877cd5a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.version_items import VersionItemsV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.version_items import VersionItems as Version_VersionItemsV1 class ListResponse(object): @@ -58,7 +58,7 @@ class ListResponse(object): supports_multiple_types = False def __init__(self, links=None, skill_model_versions=None, is_truncated=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[VersionItemsV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Version_VersionItemsV1]], Optional[bool], Optional[str]) -> None """List of interactionModel versions of a skill for the vendor :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py index e571f02..6f61abb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.value_schema_name import ValueSchemaNameV1 + from ask_smapi_model.v1.skill.interaction_model.version.value_schema_name import ValueSchemaName as Version_ValueSchemaNameV1 class ValueSchema(object): @@ -49,7 +49,7 @@ class ValueSchema(object): supports_multiple_types = False def __init__(self, id=None, name=None): - # type: (Optional[str], Optional[ValueSchemaNameV1]) -> None + # type: (Optional[str], Optional[Version_ValueSchemaNameV1]) -> None """The value schema in type object of interaction model. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema_name.py index dfdabe0..73a5bbb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py index 5768144..d92bd77 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSourceV1 + from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as Version_InputSourceV1 class VersionData(object): @@ -49,7 +49,7 @@ class VersionData(object): supports_multiple_types = False def __init__(self, source=None, description=None): - # type: (Optional[InputSourceV1], Optional[str]) -> None + # type: (Optional[Version_InputSourceV1], Optional[str]) -> None """Catalog version specific data. :param source: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py index 8cdbeaf..8553e0f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.links import LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 class VersionItems(object): @@ -57,7 +57,7 @@ class VersionItems(object): supports_multiple_types = False def __init__(self, version=None, creation_time=None, description=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Version_LinksV1]) -> None """Version metadata about the entity. :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py index 44f1fb3..37c3efd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.build_details import BuildDetailsV1 - from ask_smapi_model.v1.skill.status import StatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 + from ask_smapi_model.v1.skill.build_details import BuildDetails as Skill_BuildDetailsV1 class InteractionModelLastUpdateRequest(object): @@ -59,7 +59,7 @@ class InteractionModelLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, build_details=None): - # type: (Optional[StatusV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]], Optional[BuildDetailsV1]) -> None + # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_BuildDetailsV1]) -> None """Contains attributes related to last modification (create/update) request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/end_point_regions.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/end_point_regions.py index 06727ba..7ce8c93 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/end_point_regions.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/end_point_regions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class EndPointRegions(Enum): FE = "FE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EndPointRegions): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py index a84d9a3..76c1bb2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.skill_execution_info import SkillExecutionInfoV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.invocations.skill_execution_info import SkillExecutionInfo as Invocations_SkillExecutionInfoV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 class InvocationResponseResult(object): @@ -48,7 +48,7 @@ class InvocationResponseResult(object): supports_multiple_types = False def __init__(self, skill_execution_info=None, error=None): - # type: (Optional[SkillExecutionInfoV1], Optional[StandardizedErrorV1]) -> None + # type: (Optional[Invocations_SkillExecutionInfoV1], Optional[Skill_StandardizedErrorV1]) -> None """ :param skill_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_status.py index 46cdc3d..2267aae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class InvocationResponseStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, InvocationResponseStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py index 5b6b348..b40caae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.skill_request import SkillRequestV1 - from ask_smapi_model.v1.skill.invocations.end_point_regions import EndPointRegionsV1 + from ask_smapi_model.v1.skill.invocations.skill_request import SkillRequest as Invocations_SkillRequestV1 + from ask_smapi_model.v1.skill.invocations.end_point_regions import EndPointRegions as Invocations_EndPointRegionsV1 class InvokeSkillRequest(object): @@ -48,7 +48,7 @@ class InvokeSkillRequest(object): supports_multiple_types = False def __init__(self, endpoint_region=None, skill_request=None): - # type: (Optional[EndPointRegionsV1], Optional[SkillRequestV1]) -> None + # type: (Optional[Invocations_EndPointRegionsV1], Optional[Invocations_SkillRequestV1]) -> None """ :param endpoint_region: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py index 88851b3..473f53a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.invocation_response_result import InvocationResponseResultV1 - from ask_smapi_model.v1.skill.invocations.invocation_response_status import InvocationResponseStatusV1 + from ask_smapi_model.v1.skill.invocations.invocation_response_status import InvocationResponseStatus as Invocations_InvocationResponseStatusV1 + from ask_smapi_model.v1.skill.invocations.invocation_response_result import InvocationResponseResult as Invocations_InvocationResponseResultV1 class InvokeSkillResponse(object): @@ -48,7 +48,7 @@ class InvokeSkillResponse(object): supports_multiple_types = False def __init__(self, status=None, result=None): - # type: (Optional[InvocationResponseStatusV1], Optional[InvocationResponseResultV1]) -> None + # type: (Optional[Invocations_InvocationResponseStatusV1], Optional[Invocations_InvocationResponseResultV1]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/metrics.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/metrics.py index b474c62..1dd6834 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/metrics.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/metrics.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py index b68a06b..ca019d7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/response.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/response.py index 6db7aad..a1b0d43 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py index a699875..5fbec8a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.metrics import MetricsV1 - from ask_smapi_model.v1.skill.invocations.request import RequestV1 - from ask_smapi_model.v1.skill.invocations.response import ResponseV1 + from ask_smapi_model.v1.skill.invocations.response import Response as Invocations_ResponseV1 + from ask_smapi_model.v1.skill.invocations.metrics import Metrics as Invocations_MetricsV1 + from ask_smapi_model.v1.skill.invocations.request import Request as Invocations_RequestV1 class SkillExecutionInfo(object): @@ -53,7 +53,7 @@ class SkillExecutionInfo(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[Dict[str, RequestV1]], Optional[Dict[str, ResponseV1]], Optional[Dict[str, MetricsV1]]) -> None + # type: (Optional[Dict[str, Invocations_RequestV1]], Optional[Dict[str, Invocations_ResponseV1]], Optional[Dict[str, Invocations_MetricsV1]]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py index ce65870..df84dec 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py index f2c506a..104c4bf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.skill_summary import SkillSummaryV1 - from ask_smapi_model.v1.links import LinksV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.skill_summary import SkillSummary as Skill_SkillSummaryV1 class ListSkillResponse(object): @@ -58,7 +58,7 @@ class ListSkillResponse(object): supports_multiple_types = False def __init__(self, links=None, skills=None, is_truncated=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[SkillSummaryV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Skill_SkillSummaryV1]], Optional[bool], Optional[str]) -> None """List of skills for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py index 82dc6a3..c781376 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.skill_version import SkillVersionV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.skill_version import SkillVersion as Skill_SkillVersionV1 class ListSkillVersionsResponse(object): @@ -58,7 +58,7 @@ class ListSkillVersionsResponse(object): supports_multiple_types = False def __init__(self, links=None, skill_versions=None, is_truncated=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[SkillVersionV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Skill_SkillVersionV1]], Optional[bool], Optional[str]) -> None """List of all skill versions :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py index 40e1f3c..1362743 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpointV1 - from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface import AlexaForBusinessInterfaceV1 - from ask_smapi_model.v1.skill.manifest.region import RegionV1 + from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface import AlexaForBusinessInterface as Manifest_AlexaForBusinessInterfaceV1 + from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 class AlexaForBusinessApis(object): @@ -55,7 +55,7 @@ class AlexaForBusinessApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, interfaces=None): - # type: (Optional[Dict[str, RegionV1]], Optional[SkillManifestEndpointV1], Optional[List[AlexaForBusinessInterfaceV1]]) -> None + # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[List[Manifest_AlexaForBusinessInterfaceV1]]) -> None """Defines the structure of alexaForBusiness api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py index 04873cc..d5bfada 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.version import VersionV1 - from ask_smapi_model.v1.skill.manifest.request import RequestV1 + from ask_smapi_model.v1.skill.manifest.version import Version as Manifest_VersionV1 + from ask_smapi_model.v1.skill.manifest.request import Request as Manifest_RequestV1 class AlexaForBusinessInterface(object): @@ -52,7 +52,7 @@ class AlexaForBusinessInterface(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None): - # type: (Optional[str], Optional[VersionV1], Optional[List[RequestV1]]) -> None + # type: (Optional[str], Optional[Manifest_VersionV1], Optional[List[Manifest_RequestV1]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py index be0a345..178f90d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.viewport_specification import ViewportSpecificationV1 + from ask_smapi_model.v1.skill.manifest.viewport_specification import ViewportSpecification as Manifest_ViewportSpecificationV1 class AlexaPresentationAplInterface(Interface): @@ -48,7 +48,7 @@ class AlexaPresentationAplInterface(Interface): supports_multiple_types = False def __init__(self, supported_viewports=None): - # type: (Optional[List[ViewportSpecificationV1]]) -> None + # type: (Optional[List[Manifest_ViewportSpecificationV1]]) -> None """Used to declare that the skill uses the Alexa.Presentation.APL interface. :param supported_viewports: List of supported viewports. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_html_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_html_interface.py index e988e30..7eacd94 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_html_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_html_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/audio_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/audio_interface.py index a929f9c..9e35162 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/audio_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/audio_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py index 2642169..fe255f9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.connections_payload import ConnectionsPayloadV1 + from ask_smapi_model.v1.skill.manifest.connections_payload import ConnectionsPayload as Manifest_ConnectionsPayloadV1 class Connections(object): @@ -49,7 +49,7 @@ class Connections(object): supports_multiple_types = False def __init__(self, name=None, payload=None): - # type: (Optional[str], Optional[ConnectionsPayloadV1]) -> None + # type: (Optional[str], Optional[Manifest_ConnectionsPayloadV1]) -> None """Skill connection object. :param name: Name of the connection. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections_payload.py index 27a7fbf..9baf9f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections_payload.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py index 7b146c5..ac7d3b1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py @@ -21,13 +21,13 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.interface import InterfaceV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpointV1 - from ask_smapi_model.v1.skill.manifest.custom_connections import CustomConnectionsV1 - from ask_smapi_model.v1.skill.manifest.region import RegionV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task import SkillManifestCustomTaskV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task import SkillManifestCustomTask as Manifest_SkillManifestCustomTaskV1 + from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 + from ask_smapi_model.v1.skill.manifest.interface import Interface as Manifest_InterfaceV1 + from ask_smapi_model.v1.skill.manifest.custom_connections import CustomConnections as Manifest_CustomConnectionsV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 class CustomApis(object): @@ -65,7 +65,7 @@ class CustomApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, interfaces=None, tasks=None, connections=None): - # type: (Optional[Dict[str, RegionV1]], Optional[SkillManifestEndpointV1], Optional[List[InterfaceV1]], Optional[List[SkillManifestCustomTaskV1]], Optional[CustomConnectionsV1]) -> None + # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[List[Manifest_InterfaceV1]], Optional[List[Manifest_SkillManifestCustomTaskV1]], Optional[Manifest_CustomConnectionsV1]) -> None """Defines the structure for custom api of the skill. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py index a0693f5..8dae6f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.connections import ConnectionsV1 + from ask_smapi_model.v1.skill.manifest.connections import Connections as Manifest_ConnectionsV1 class CustomConnections(object): @@ -49,7 +49,7 @@ class CustomConnections(object): supports_multiple_types = False def __init__(self, requires=None, provides=None): - # type: (Optional[List[ConnectionsV1]], Optional[List[ConnectionsV1]]) -> None + # type: (Optional[List[Manifest_ConnectionsV1]], Optional[List[Manifest_ConnectionsV1]]) -> None """Supported connections. :param requires: List of required connections. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py index a7b544b..91e756a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py index 0bf4aa6..a5d6aab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py @@ -22,10 +22,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.display_interface_apml_version import DisplayInterfaceApmlVersionV1 - from ask_smapi_model.v1.skill.manifest.display_interface_template_version import DisplayInterfaceTemplateVersionV1 + from ask_smapi_model.v1.skill.manifest.display_interface_apml_version import DisplayInterfaceApmlVersion as Manifest_DisplayInterfaceApmlVersionV1 + from ask_smapi_model.v1.skill.manifest.display_interface_template_version import DisplayInterfaceTemplateVersion as Manifest_DisplayInterfaceTemplateVersionV1 class DisplayInterface(Interface): @@ -53,7 +53,7 @@ class DisplayInterface(Interface): supports_multiple_types = False def __init__(self, minimum_template_version=None, minimum_apml_version=None): - # type: (Optional[DisplayInterfaceTemplateVersionV1], Optional[DisplayInterfaceApmlVersionV1]) -> None + # type: (Optional[Manifest_DisplayInterfaceTemplateVersionV1], Optional[Manifest_DisplayInterfaceApmlVersionV1]) -> None """Used to declare that the skill uses the Display interface. When a skill declares that it uses the Display interface the Display interface will be passed in the supportedInterfaces section of devices which meet any of the required minimum version attributes specified in the manifest. If the device does not meet any of the minimum versions specified in the manifest the Display interface will not be present in the supportedInterfaces section. If neither the minimumTemplateVersion nor the minimumApmlVersion attributes are specified in the manifes then the minimumTemplateVersion is defaulted to 1.0 and apmlVersion is omitted. :param minimum_template_version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_apml_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_apml_version.py index f9cf20e..b896338 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_apml_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_apml_version.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class DisplayInterfaceApmlVersion(Enum): _0_2 = "0.2" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DisplayInterfaceApmlVersion): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_template_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_template_version.py index 956f795..73cff1e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_template_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface_template_version.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class DisplayInterfaceTemplateVersion(Enum): _1 = "1" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DisplayInterfaceTemplateVersion): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_countries.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_countries.py index c05eb7f..e6fe087 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_countries.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_countries.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -274,7 +274,7 @@ class DistributionCountries(Enum): ZW = "ZW" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -290,7 +290,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DistributionCountries): return False @@ -298,6 +298,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py index 816120b..be27740 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class DistributionMode(Enum): INTERNAL = "INTERNAL" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, DistributionMode): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py index 9f634de..52e8268 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.event_name_type import EventNameTypeV1 + from ask_smapi_model.v1.skill.manifest.event_name_type import EventNameType as Manifest_EventNameTypeV1 class EventName(object): @@ -43,7 +43,7 @@ class EventName(object): supports_multiple_types = False def __init__(self, event_name=None): - # type: (Optional[EventNameTypeV1]) -> None + # type: (Optional[Manifest_EventNameTypeV1]) -> None """ :param event_name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py index e38159d..f1deee4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -31,7 +31,7 @@ class EventNameType(Enum): - Allowed enum values: [SKILL_ENABLED, SKILL_DISABLED, SKILL_PERMISSION_ACCEPTED, SKILL_PERMISSION_CHANGED, SKILL_ACCOUNT_LINKED, ITEMS_CREATED, ITEMS_UPDATED, ITEMS_DELETED, LIST_CREATED, LIST_UPDATED, LIST_DELETED, ALL_LISTS_CHANGED, REMINDER_STARTED, REMINDER_CREATED, REMINDER_UPDATED, REMINDER_DELETED, REMINDER_STATUS_CHANGED, AUDIO_ITEM_PLAYBACK_STARTED, AUDIO_ITEM_PLAYBACK_FINISHED, AUDIO_ITEM_PLAYBACK_STOPPED, AUDIO_ITEM_PLAYBACK_FAILED, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Legacy_ActivityManager_ActivityContextRemovedEvent, Legacy_ActivityManager_ActivityInterrupted, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_DismissCommand, Legacy_AlertsController_SnoozeCommand, Legacy_AudioPlayer_AudioStutter, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_AudioPlayer_PlaybackError, Legacy_AudioPlayer_PlaybackFinished, Legacy_AudioPlayer_PlaybackIdle, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_AudioPlayer_PlaybackPaused, Legacy_AudioPlayer_PlaybackResumed, Legacy_AudioPlayer_PlaybackStarted, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_AudioPlayer_PlaybackStutterStarted, Legacy_AudioPlayerGui_ButtonClickedEvent, Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_AuxController_DirectionChanged, Legacy_AuxController_EnabledStateChanged, Legacy_AuxController_InputActivityStateChanged, Legacy_AuxController_PluggedStateChanged, Legacy_BluetoothNetwork_CancelPairingMode, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_BluetoothNetwork_DeviceConnectedSuccess, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, Legacy_BluetoothNetwork_DevicePairFailure, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_BluetoothNetwork_DeviceUnpairFailure, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_DeviceNotification_DeleteNotificationFailed, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_DeviceNotification_NotificationEnteredBackground, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_NotificationStarted, Legacy_DeviceNotification_NotificationStopped, Legacy_DeviceNotification_NotificationSync, Legacy_DeviceNotification_SetNotificationFailed, Legacy_DeviceNotification_SetNotificationSucceeded, Legacy_EqualizerController_EqualizerChanged, Legacy_ExternalMediaPlayer_AuthorizationComplete, Legacy_ExternalMediaPlayer_Error, Legacy_ExternalMediaPlayer_Event, Legacy_ExternalMediaPlayer_Login, Legacy_ExternalMediaPlayer_Logout, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, Legacy_ExternalMediaPlayer_RequestToken, Legacy_FavoritesController_Error, Legacy_FavoritesController_Response, Legacy_GameEngine_GameInputEvent, Legacy_HomeAutoWifiController_DeviceReconnected, Legacy_HomeAutoWifiController_HttpNotified, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Legacy_HomeAutoWifiController_SsdpServiceTerminated, Legacy_ListModel_AddItemRequest, Legacy_ListModel_DeleteItemRequest, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_ListModel_GetPageByTokenRequest, Legacy_ListModel_ListStateUpdateRequest, Legacy_ListModel_UpdateItemRequest, Legacy_ListRenderer_GetListPageByOrdinal, Legacy_ListRenderer_GetListPageByToken, Legacy_ListRenderer_ListItemEvent, Legacy_MediaGrouping_GroupChangeNotificationEvent, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_MediaGrouping_GroupSyncEvent, Legacy_MediaPlayer_PlaybackError, Legacy_MediaPlayer_PlaybackFinished, Legacy_MediaPlayer_PlaybackIdle, Legacy_MediaPlayer_PlaybackNearlyFinished, Legacy_MediaPlayer_PlaybackPaused, Legacy_MediaPlayer_PlaybackResumed, Legacy_MediaPlayer_PlaybackStarted, Legacy_MediaPlayer_PlaybackStopped, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_MediaPlayer_SequenceModified, Legacy_MeetingClientController_Event, Legacy_Microphone_AudioRecording, Legacy_PhoneCallController_Event, Legacy_PlaybackController_ButtonCommand, Legacy_PlaybackController_LyricsViewedEvent, Legacy_PlaybackController_NextCommand, Legacy_PlaybackController_PauseCommand, Legacy_PlaybackController_PlayCommand, Legacy_PlaybackController_PreviousCommand, Legacy_PlaybackController_ToggleCommand, Legacy_PlaylistController_ErrorResponse, Legacy_PlaylistController_Response, Legacy_Presentation_PresentationDismissedEvent, Legacy_Presentation_PresentationUserEvent, Legacy_SconeRemoteControl_Next, Legacy_SconeRemoteControl_PlayPause, Legacy_SconeRemoteControl_Previous, Legacy_SconeRemoteControl_VolumeDown, Legacy_SconeRemoteControl_VolumeUp, Legacy_SipClient_Event, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, Legacy_Speaker_MuteChanged, Legacy_Speaker_VolumeChanged, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_SpeechSynthesizer_SpeechInterrupted, Legacy_SpeechSynthesizer_SpeechStarted, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Legacy_Spotify_Event, Legacy_System_UserInactivity, Legacy_UDPController_BroadcastResponse, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, LocalApplication_AlexaPlatformTestSpeechlet_Event, LocalApplication_AlexaVision_Event, LocalApplication_AlexaVoiceLayer_Event, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_Calendar_Event, LocalApplication_Closet_Event, LocalApplication_Communications_Event, LocalApplication_DeviceMessaging_Event, LocalApplication_DigitalDash_Event, LocalApplication_FireflyShopping_Event, LocalApplication_Gallery_Event, LocalApplication_HHOPhotos_Event, LocalApplication_HomeAutomationMedia_Event, LocalApplication_KnightContacts_Event, LocalApplication_KnightHome_Event, LocalApplication_KnightHomeThingsToTry_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_LocalVoiceUI_Event, LocalApplication_MShop_Event, LocalApplication_MShopPurchasing_Event, LocalApplication_NotificationsApp_Event, LocalApplication_Photos_Event, LocalApplication_Sentry_Event, LocalApplication_SipClient_Event, LocalApplication_SipUserAgent_Event, LocalApplication_todoRenderer_Event, LocalApplication_VideoExperienceService_Event, LocalApplication_WebVideoPlayer_Event, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Alexa_Camera_PhotoCaptureController_CaptureFailed, Alexa_Camera_PhotoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, Alexa_Camera_VideoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CaptureStarted, Alexa_FileManager_UploadController_CancelUploadFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Alexa_FileManager_UploadController_UploadFailed, Alexa_FileManager_UploadController_UploadFinished, Alexa_FileManager_UploadController_UploadStarted, Alexa_Presentation_APL_UserEvent, Alexa_Presentation_HTML_Event, Alexa_Presentation_HTML_LifecycleStateChanged, Alexa_Presentation_PresentationDismissed, AudioPlayer_PlaybackFailed, AudioPlayer_PlaybackFinished, AudioPlayer_PlaybackNearlyFinished, AudioPlayer_PlaybackStarted, AudioPlayer_PlaybackStopped, CardRenderer_DisplayContentFinished, CardRenderer_DisplayContentStarted, CardRenderer_ReadContentFinished, CardRenderer_ReadContentStarted, CustomInterfaceController_EventsReceived, CustomInterfaceController_Expired, DeviceSetup_SetupCompleted, Display_ElementSelected, Display_UserEvent, FitnessSessionController_FitnessSessionEnded, FitnessSessionController_FitnessSessionError, FitnessSessionController_FitnessSessionPaused, FitnessSessionController_FitnessSessionResumed, FitnessSessionController_FitnessSessionStarted, GameEngine_InputHandlerEvent, Messaging_MessageReceived, MessagingController_UpdateConversationsStatus, MessagingController_UpdateMessagesStatusRequest, MessagingController_UpdateSendMessageStatusRequest, MessagingController_UploadConversations, PlaybackController_NextCommandIssued, PlaybackController_PauseCommandIssued, PlaybackController_PlayCommandIssued, PlaybackController_PreviousCommandIssued, EffectsController_RequestEffectChangeRequest, EffectsController_RequestGuiChangeRequest, EffectsController_StateReceiptChangeRequest, Alexa_Video_Xray_ShowDetailsSuccessful, Alexa_Video_Xray_ShowDetailsFailed] + Allowed enum values: [SKILL_ENABLED, SKILL_DISABLED, SKILL_PERMISSION_ACCEPTED, SKILL_PERMISSION_CHANGED, SKILL_ACCOUNT_LINKED, ITEMS_CREATED, ITEMS_UPDATED, ITEMS_DELETED, LIST_CREATED, LIST_UPDATED, LIST_DELETED, ALL_LISTS_CHANGED, REMINDER_STARTED, REMINDER_CREATED, REMINDER_UPDATED, REMINDER_DELETED, REMINDER_STATUS_CHANGED, AUDIO_ITEM_PLAYBACK_STARTED, AUDIO_ITEM_PLAYBACK_FINISHED, AUDIO_ITEM_PLAYBACK_STOPPED, AUDIO_ITEM_PLAYBACK_FAILED, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Legacy_ActivityManager_ActivityContextRemovedEvent, Legacy_ActivityManager_ActivityInterrupted, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_DismissCommand, Legacy_AlertsController_SnoozeCommand, Legacy_AudioPlayer_AudioStutter, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_AudioPlayer_PlaybackError, Legacy_AudioPlayer_PlaybackFinished, Legacy_AudioPlayer_PlaybackIdle, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_AudioPlayer_PlaybackPaused, Legacy_AudioPlayer_PlaybackResumed, Legacy_AudioPlayer_PlaybackStarted, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_AudioPlayer_PlaybackStutterStarted, Legacy_AudioPlayerGui_ButtonClickedEvent, Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_AuxController_DirectionChanged, Legacy_AuxController_EnabledStateChanged, Legacy_AuxController_InputActivityStateChanged, Legacy_AuxController_PluggedStateChanged, Legacy_BluetoothNetwork_CancelPairingMode, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_BluetoothNetwork_DeviceConnectedSuccess, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, Legacy_BluetoothNetwork_DevicePairFailure, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_BluetoothNetwork_DeviceUnpairFailure, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_DeviceNotification_DeleteNotificationFailed, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_DeviceNotification_NotificationEnteredBackground, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_NotificationStarted, Legacy_DeviceNotification_NotificationStopped, Legacy_DeviceNotification_NotificationSync, Legacy_DeviceNotification_SetNotificationFailed, Legacy_DeviceNotification_SetNotificationSucceeded, Legacy_EqualizerController_EqualizerChanged, Legacy_ExternalMediaPlayer_AuthorizationComplete, Legacy_ExternalMediaPlayer_Error, Legacy_ExternalMediaPlayer_Event, Legacy_ExternalMediaPlayer_Login, Legacy_ExternalMediaPlayer_Logout, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, Legacy_ExternalMediaPlayer_RequestToken, Legacy_FavoritesController_Error, Legacy_FavoritesController_Response, Legacy_GameEngine_GameInputEvent, Legacy_HomeAutoWifiController_DeviceReconnected, Legacy_HomeAutoWifiController_HttpNotified, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Legacy_HomeAutoWifiController_SsdpServiceTerminated, Legacy_ListModel_AddItemRequest, Legacy_ListModel_DeleteItemRequest, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_ListModel_GetPageByTokenRequest, Legacy_ListModel_ListStateUpdateRequest, Legacy_ListModel_UpdateItemRequest, Legacy_ListRenderer_GetListPageByOrdinal, Legacy_ListRenderer_GetListPageByToken, Legacy_ListRenderer_ListItemEvent, Legacy_MediaGrouping_GroupChangeNotificationEvent, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_MediaGrouping_GroupSyncEvent, Legacy_MediaPlayer_PlaybackError, Legacy_MediaPlayer_PlaybackFinished, Legacy_MediaPlayer_PlaybackIdle, Legacy_MediaPlayer_PlaybackNearlyFinished, Legacy_MediaPlayer_PlaybackPaused, Legacy_MediaPlayer_PlaybackResumed, Legacy_MediaPlayer_PlaybackStarted, Legacy_MediaPlayer_PlaybackStopped, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_MediaPlayer_SequenceModified, Legacy_MeetingClientController_Event, Legacy_Microphone_AudioRecording, Legacy_PhoneCallController_Event, Legacy_PlaybackController_ButtonCommand, Legacy_PlaybackController_LyricsViewedEvent, Legacy_PlaybackController_NextCommand, Legacy_PlaybackController_PauseCommand, Legacy_PlaybackController_PlayCommand, Legacy_PlaybackController_PreviousCommand, Legacy_PlaybackController_ToggleCommand, Legacy_PlaylistController_ErrorResponse, Legacy_PlaylistController_Response, Legacy_Presentation_PresentationDismissedEvent, Legacy_Presentation_PresentationUserEvent, Legacy_SconeRemoteControl_Next, Legacy_SconeRemoteControl_PlayPause, Legacy_SconeRemoteControl_Previous, Legacy_SconeRemoteControl_VolumeDown, Legacy_SconeRemoteControl_VolumeUp, Legacy_SipClient_Event, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, Legacy_Speaker_MuteChanged, Legacy_Speaker_VolumeChanged, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_SpeechSynthesizer_SpeechInterrupted, Legacy_SpeechSynthesizer_SpeechStarted, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Legacy_Spotify_Event, Legacy_System_UserInactivity, Legacy_UDPController_BroadcastResponse, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, LocalApplication_AlexaPlatformTestSpeechlet_Event, LocalApplication_AlexaVision_Event, LocalApplication_AlexaVoiceLayer_Event, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_Calendar_Event, LocalApplication_Closet_Event, LocalApplication_Communications_Event, LocalApplication_DeviceMessaging_Event, LocalApplication_DigitalDash_Event, LocalApplication_FireflyShopping_Event, LocalApplication_Gallery_Event, LocalApplication_HHOPhotos_Event, LocalApplication_HomeAutomationMedia_Event, LocalApplication_KnightContacts_Event, LocalApplication_KnightHome_Event, LocalApplication_KnightHomeThingsToTry_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_LocalVoiceUI_Event, LocalApplication_MShop_Event, LocalApplication_MShopPurchasing_Event, LocalApplication_NotificationsApp_Event, LocalApplication_Photos_Event, LocalApplication_Sentry_Event, LocalApplication_SipClient_Event, LocalApplication_SipUserAgent_Event, LocalApplication_todoRenderer_Event, LocalApplication_VideoExperienceService_Event, LocalApplication_WebVideoPlayer_Event, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Alexa_Camera_PhotoCaptureController_CaptureFailed, Alexa_Camera_PhotoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, Alexa_Camera_VideoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CaptureStarted, Alexa_FileManager_UploadController_CancelUploadFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Alexa_FileManager_UploadController_UploadFailed, Alexa_FileManager_UploadController_UploadFinished, Alexa_FileManager_UploadController_UploadStarted, Alexa_Presentation_APL_LoadIndexListData, Alexa_Presentation_APL_RuntimeError, Alexa_Presentation_APL_UserEvent, Alexa_Presentation_HTML_Event, Alexa_Presentation_HTML_LifecycleStateChanged, Alexa_Presentation_PresentationDismissed, AudioPlayer_PlaybackFailed, AudioPlayer_PlaybackFinished, AudioPlayer_PlaybackNearlyFinished, AudioPlayer_PlaybackStarted, AudioPlayer_PlaybackStopped, CardRenderer_DisplayContentFinished, CardRenderer_DisplayContentStarted, CardRenderer_ReadContentFinished, CardRenderer_ReadContentStarted, CustomInterfaceController_EventsReceived, CustomInterfaceController_Expired, DeviceSetup_SetupCompleted, Display_ElementSelected, Display_UserEvent, FitnessSessionController_FitnessSessionEnded, FitnessSessionController_FitnessSessionError, FitnessSessionController_FitnessSessionPaused, FitnessSessionController_FitnessSessionResumed, FitnessSessionController_FitnessSessionStarted, GameEngine_InputHandlerEvent, Messaging_MessageReceived, MessagingController_UpdateConversationsStatus, MessagingController_UpdateMessagesStatusRequest, MessagingController_UpdateSendMessageStatusRequest, MessagingController_UploadConversations, PlaybackController_NextCommandIssued, PlaybackController_PauseCommandIssued, PlaybackController_PlayCommandIssued, PlaybackController_PreviousCommandIssued, EffectsController_RequestEffectChangeRequest, EffectsController_RequestGuiChangeRequest, EffectsController_StateReceiptChangeRequest, Alexa_Video_Xray_ShowDetailsSuccessful, Alexa_Video_Xray_ShowDetailsFailed] """ SKILL_ENABLED = "SKILL_ENABLED" SKILL_DISABLED = "SKILL_DISABLED" @@ -223,6 +223,8 @@ class EventNameType(Enum): Alexa_FileManager_UploadController_UploadFailed = "Alexa.FileManager.UploadController.UploadFailed" Alexa_FileManager_UploadController_UploadFinished = "Alexa.FileManager.UploadController.UploadFinished" Alexa_FileManager_UploadController_UploadStarted = "Alexa.FileManager.UploadController.UploadStarted" + Alexa_Presentation_APL_LoadIndexListData = "Alexa.Presentation.APL.LoadIndexListData" + Alexa_Presentation_APL_RuntimeError = "Alexa.Presentation.APL.RuntimeError" Alexa_Presentation_APL_UserEvent = "Alexa.Presentation.APL.UserEvent" Alexa_Presentation_HTML_Event = "Alexa.Presentation.HTML.Event" Alexa_Presentation_HTML_LifecycleStateChanged = "Alexa.Presentation.HTML.LifecycleStateChanged" @@ -263,7 +265,7 @@ class EventNameType(Enum): Alexa_Video_Xray_ShowDetailsFailed = "Alexa.Video.Xray.ShowDetailsFailed" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -279,7 +281,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EventNameType): return False @@ -287,6 +289,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_publications.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_publications.py index 327e856..c759fa0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_publications.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_publications.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py index dd6496c..3d02c66 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info import LocalizedFlashBriefingInfoV1 + from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info import LocalizedFlashBriefingInfo as Manifest_LocalizedFlashBriefingInfoV1 class FlashBriefingApis(object): @@ -45,7 +45,7 @@ class FlashBriefingApis(object): supports_multiple_types = False def __init__(self, locales=None): - # type: (Optional[Dict[str, LocalizedFlashBriefingInfoV1]]) -> None + # type: (Optional[Dict[str, Manifest_LocalizedFlashBriefingInfoV1]]) -> None """Defines the structure for flash briefing api of the skill. :param locales: Defines the structure for locale specific flash briefing api information. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py index 12fc497..0f67a69 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class FlashBriefingContentType(Enum): AUDIO_AND_VIDEO = "AUDIO_AND_VIDEO" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FlashBriefingContentType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_genre.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_genre.py index c26f408..abbdcc1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_genre.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_genre.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -48,7 +48,7 @@ class FlashBriefingGenre(Enum): OTHER = "OTHER" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -64,7 +64,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FlashBriefingGenre): return False @@ -72,6 +72,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py index 3e5a037..f7cbe00 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class FlashBriefingUpdateFrequency(Enum): UNKNOWN = "UNKNOWN" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, FlashBriefingUpdateFrequency): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_controller_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_controller_interface.py index dd93eb1..7382457 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_controller_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_controller_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py index bac0208..4bdea7b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class GadgetSupport(Enum): OPTIONAL = "OPTIONAL" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, GadgetSupport): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/game_engine_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/game_engine_interface.py index c5295fa..1548e3d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/game_engine_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/game_engine_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py index fbf6db6..2496a3d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py index 739ab69..f1292ee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpointV1 - from ask_smapi_model.v1.skill.manifest.region import RegionV1 - from ask_smapi_model.v1.skill.manifest.health_protocol_version import HealthProtocolVersionV1 - from ask_smapi_model.v1.skill.manifest.health_interface import HealthInterfaceV1 + from ask_smapi_model.v1.skill.manifest.health_interface import HealthInterface as Manifest_HealthInterfaceV1 + from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 + from ask_smapi_model.v1.skill.manifest.health_protocol_version import HealthProtocolVersion as Manifest_HealthProtocolVersionV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 class HealthApis(object): @@ -60,7 +60,7 @@ class HealthApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, protocol_version=None, interfaces=None): - # type: (Optional[Dict[str, RegionV1]], Optional[SkillManifestEndpointV1], Optional[HealthProtocolVersionV1], Optional[HealthInterfaceV1]) -> None + # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[Manifest_HealthProtocolVersionV1], Optional[Manifest_HealthInterfaceV1]) -> None """Defines the structure of health api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py index 8428ea5..256ef8a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_request import HealthRequestV1 - from ask_smapi_model.v1.skill.manifest.version import VersionV1 - from ask_smapi_model.v1.skill.manifest.localized_health_info import LocalizedHealthInfoV1 + from ask_smapi_model.v1.skill.manifest.version import Version as Manifest_VersionV1 + from ask_smapi_model.v1.skill.manifest.localized_health_info import LocalizedHealthInfo as Manifest_LocalizedHealthInfoV1 + from ask_smapi_model.v1.skill.manifest.health_request import HealthRequest as Manifest_HealthRequestV1 class HealthInterface(object): @@ -57,7 +57,7 @@ class HealthInterface(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None, locales=None): - # type: (Optional[str], Optional[VersionV1], Optional[List[HealthRequestV1]], Optional[Dict[str, LocalizedHealthInfoV1]]) -> None + # type: (Optional[str], Optional[Manifest_VersionV1], Optional[List[Manifest_HealthRequestV1]], Optional[Dict[str, Manifest_LocalizedHealthInfoV1]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py index 9c7817b..1451048 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class HealthProtocolVersion(Enum): _2 = "2" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, HealthProtocolVersion): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py index 578fda8..4439202 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/house_hold_list.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/house_hold_list.py index 222fdda..2ffddf6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/house_hold_list.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/house_hold_list.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py index 5d127ce..2025e18 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py index f623935..ea0c185 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py index aeff35d..68639a5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 class LambdaRegion(object): @@ -45,7 +45,7 @@ class LambdaRegion(object): supports_multiple_types = False def __init__(self, endpoint=None): - # type: (Optional[LambdaEndpointV1]) -> None + # type: (Optional[Manifest_LambdaEndpointV1]) -> None """Defines the structure of a regional information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py index c40c21f..dfdaca1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItemsV1 + from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems as Manifest_LocalizedFlashBriefingInfoItemsV1 class LocalizedFlashBriefingInfo(object): @@ -49,7 +49,7 @@ class LocalizedFlashBriefingInfo(object): supports_multiple_types = False def __init__(self, feeds=None, custom_error_message=None): - # type: (Optional[List[LocalizedFlashBriefingInfoItemsV1]], Optional[str]) -> None + # type: (Optional[List[Manifest_LocalizedFlashBriefingInfoItemsV1]], Optional[str]) -> None """Defines the localized flash briefing api information. :param feeds: Defines the structure for a feed information in the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py index 7c0cefb..fe523b3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.flash_briefing_genre import FlashBriefingGenreV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_content_type import FlashBriefingContentTypeV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_update_frequency import FlashBriefingUpdateFrequencyV1 + from ask_smapi_model.v1.skill.manifest.flash_briefing_content_type import FlashBriefingContentType as Manifest_FlashBriefingContentTypeV1 + from ask_smapi_model.v1.skill.manifest.flash_briefing_update_frequency import FlashBriefingUpdateFrequency as Manifest_FlashBriefingUpdateFrequencyV1 + from ask_smapi_model.v1.skill.manifest.flash_briefing_genre import FlashBriefingGenre as Manifest_FlashBriefingGenreV1 class LocalizedFlashBriefingInfoItems(object): @@ -77,7 +77,7 @@ class LocalizedFlashBriefingInfoItems(object): supports_multiple_types = False def __init__(self, logical_name=None, name=None, url=None, image_uri=None, content_type=None, genre=None, update_frequency=None, vui_preamble=None, is_default=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[FlashBriefingContentTypeV1], Optional[FlashBriefingGenreV1], Optional[FlashBriefingUpdateFrequencyV1], Optional[str], Optional[bool]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[Manifest_FlashBriefingContentTypeV1], Optional[Manifest_FlashBriefingGenreV1], Optional[Manifest_FlashBriefingUpdateFrequencyV1], Optional[str], Optional[bool]) -> None """ :param logical_name: Logical name of the feed. This is used to signify relation among feeds across different locales. Example If you have \"weather\" feed in multiple locale then consider naming it \"weather_update\" and we will make sure to play the right feed if customer changes the language on device. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py index 63562a3..dc034a7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_alias import HealthAliasV1 + from ask_smapi_model.v1.skill.manifest.health_alias import HealthAlias as Manifest_HealthAliasV1 class LocalizedHealthInfo(object): @@ -49,7 +49,7 @@ class LocalizedHealthInfo(object): supports_multiple_types = False def __init__(self, prompt_name=None, aliases=None): - # type: (Optional[str], Optional[List[HealthAliasV1]]) -> None + # type: (Optional[str], Optional[List[Manifest_HealthAliasV1]]) -> None """Defines the structure for health skill locale specific publishing information in the skill manifest. :param prompt_name: SSML supported name to use when Alexa renders the health skill name in a prompt to the user. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py index 95f4ec9..d3da072 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_alias import MusicAliasV1 - from ask_smapi_model.v1.skill.manifest.music_wordmark import MusicWordmarkV1 - from ask_smapi_model.v1.skill.manifest.music_feature import MusicFeatureV1 + from ask_smapi_model.v1.skill.manifest.music_alias import MusicAlias as Manifest_MusicAliasV1 + from ask_smapi_model.v1.skill.manifest.music_feature import MusicFeature as Manifest_MusicFeatureV1 + from ask_smapi_model.v1.skill.manifest.music_wordmark import MusicWordmark as Manifest_MusicWordmarkV1 class LocalizedMusicInfo(object): @@ -59,7 +59,7 @@ class LocalizedMusicInfo(object): supports_multiple_types = False def __init__(self, prompt_name=None, aliases=None, features=None, wordmark_logos=None): - # type: (Optional[str], Optional[List[MusicAliasV1]], Optional[List[MusicFeatureV1]], Optional[List[MusicWordmarkV1]]) -> None + # type: (Optional[str], Optional[List[Manifest_MusicAliasV1]], Optional[List[Manifest_MusicFeatureV1]], Optional[List[Manifest_MusicWordmarkV1]]) -> None """Defines the structure of localized music information in the skill manifest. :param prompt_name: Name to be used when Alexa renders the music skill name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py index 8204d02..7a1cdd5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.gadget_support import GadgetSupportV1 + from ask_smapi_model.v1.skill.manifest.gadget_support import GadgetSupport as Manifest_GadgetSupportV1 class ManifestGadgetSupport(object): @@ -61,7 +61,7 @@ class ManifestGadgetSupport(object): supports_multiple_types = False def __init__(self, requirement=None, min_gadget_buttons=None, max_gadget_buttons=None, num_players_max=None, num_players_min=None): - # type: (Optional[GadgetSupportV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None + # type: (Optional[Manifest_GadgetSupportV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None """Defines the structure for gadget buttons support in the skill manifest. :param requirement: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_alias.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_alias.py index 5697c42..32b42e4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_alias.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_alias.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py index c6f250c..b65e8c0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py @@ -21,14 +21,14 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegionV1 - from ask_smapi_model.v1.skill.manifest.music_interfaces import MusicInterfacesV1 - from ask_smapi_model.v1.skill.manifest.localized_music_info import LocalizedMusicInfoV1 - from ask_smapi_model.v1.skill.manifest.music_content_type import MusicContentTypeV1 - from ask_smapi_model.v1.skill.manifest.music_capability import MusicCapabilityV1 - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.music_capability import MusicCapability as Manifest_MusicCapabilityV1 + from ask_smapi_model.v1.skill.manifest.music_content_type import MusicContentType as Manifest_MusicContentTypeV1 + from ask_smapi_model.v1.skill.manifest.localized_music_info import LocalizedMusicInfo as Manifest_LocalizedMusicInfoV1 + from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as Manifest_LambdaRegionV1 + from ask_smapi_model.v1.skill.manifest.music_interfaces import MusicInterfaces as Manifest_MusicInterfacesV1 class MusicApis(object): @@ -70,7 +70,7 @@ class MusicApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, capabilities=None, interfaces=None, locales=None, content_types=None): - # type: (Optional[Dict[str, LambdaRegionV1]], Optional[LambdaEndpointV1], Optional[List[MusicCapabilityV1]], Optional[List[MusicInterfacesV1]], Optional[Dict[str, LocalizedMusicInfoV1]], Optional[List[MusicContentTypeV1]]) -> None + # type: (Optional[Dict[str, Manifest_LambdaRegionV1]], Optional[Manifest_LambdaEndpointV1], Optional[List[Manifest_MusicCapabilityV1]], Optional[List[Manifest_MusicInterfacesV1]], Optional[Dict[str, Manifest_LocalizedMusicInfoV1]], Optional[List[Manifest_MusicContentTypeV1]]) -> None """Defines the structure of music api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_capability.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_capability.py index 41cb7ea..7d934ba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_capability.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_capability.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_name.py index 8fc4ee0..c7d930a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class MusicContentName(Enum): PODCAST = "PODCAST" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, MusicContentName): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py index e9ee7fe..e5596df 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_content_name import MusicContentNameV1 + from ask_smapi_model.v1.skill.manifest.music_content_name import MusicContentName as Manifest_MusicContentNameV1 class MusicContentType(object): @@ -45,7 +45,7 @@ class MusicContentType(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[MusicContentNameV1]) -> None + # type: (Optional[Manifest_MusicContentNameV1]) -> None """Defines the structure for content that can be provided by a music skill. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_feature.py index 15aceec..6d18603 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_feature.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_feature.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py index 994ec95..ae5e43a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_request import MusicRequestV1 + from ask_smapi_model.v1.skill.manifest.music_request import MusicRequest as Manifest_MusicRequestV1 class MusicInterfaces(object): @@ -51,7 +51,7 @@ class MusicInterfaces(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None): - # type: (Optional[str], Optional[str], Optional[List[MusicRequestV1]]) -> None + # type: (Optional[str], Optional[str], Optional[List[Manifest_MusicRequestV1]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_request.py index ce396cc..1332c21 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_wordmark.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_wordmark.py index dd91880..b5f2bed 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_wordmark.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_wordmark.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py index efe456d..956e6ea 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.permission_name import PermissionNameV1 + from ask_smapi_model.v1.skill.manifest.permission_name import PermissionName as Manifest_PermissionNameV1 class PermissionItems(object): @@ -43,7 +43,7 @@ class PermissionItems(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[PermissionNameV1]) -> None + # type: (Optional[Manifest_PermissionNameV1]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index b0f56e9..e5f1877 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -67,7 +67,7 @@ class PermissionName(Enum): alexa_device_type_read = "alexa::device_type:read" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -83,7 +83,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PermissionName): return False @@ -91,6 +91,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py index aed8bee..5d15105 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 class Region(object): @@ -45,7 +45,7 @@ class Region(object): supports_multiple_types = False def __init__(self, endpoint=None): - # type: (Optional[SkillManifestEndpointV1]) -> None + # type: (Optional[Manifest_SkillManifestEndpointV1]) -> None """Defines the structure for regional information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py index c6a3bfe..d9667ba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.request_name import RequestNameV1 + from ask_smapi_model.v1.skill.manifest.request_name import RequestName as Manifest_RequestNameV1 class Request(object): @@ -43,7 +43,7 @@ class Request(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[RequestNameV1]) -> None + # type: (Optional[Manifest_RequestNameV1]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py index 6227a3a..8e01120 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class RequestName(Enum): Update = "Update" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RequestName): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py index 9bdfe0b..47bb9d1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py @@ -21,13 +21,13 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_apis import SkillManifestApisV1 - from ask_smapi_model.v1.skill.manifest.permission_items import PermissionItemsV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information import SkillManifestPublishingInformationV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_events import SkillManifestEventsV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndComplianceV1 + from ask_smapi_model.v1.skill.manifest.permission_items import PermissionItems as Manifest_PermissionItemsV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance as Manifest_SkillManifestPrivacyAndComplianceV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_apis import SkillManifestApis as Manifest_SkillManifestApisV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_events import SkillManifestEvents as Manifest_SkillManifestEventsV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information import SkillManifestPublishingInformation as Manifest_SkillManifestPublishingInformationV1 class SkillManifest(object): @@ -69,7 +69,7 @@ class SkillManifest(object): supports_multiple_types = False def __init__(self, manifest_version=None, publishing_information=None, privacy_and_compliance=None, events=None, permissions=None, apis=None): - # type: (Optional[str], Optional[SkillManifestPublishingInformationV1], Optional[SkillManifestPrivacyAndComplianceV1], Optional[SkillManifestEventsV1], Optional[List[PermissionItemsV1]], Optional[SkillManifestApisV1]) -> None + # type: (Optional[str], Optional[Manifest_SkillManifestPublishingInformationV1], Optional[Manifest_SkillManifestPrivacyAndComplianceV1], Optional[Manifest_SkillManifestEventsV1], Optional[List[Manifest_PermissionItemsV1]], Optional[Manifest_SkillManifestApisV1]) -> None """Defines the structure for a skill's metadata. :param manifest_version: Version of the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py index 0c2da4e..32cfe07 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py @@ -21,16 +21,16 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.smart_home_apis import SmartHomeApisV1 - from ask_smapi_model.v1.skill.manifest.health_apis import HealthApisV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_apis import FlashBriefingApisV1 - from ask_smapi_model.v1.skill.manifest.alexa_for_business_apis import AlexaForBusinessApisV1 - from ask_smapi_model.v1.skill.manifest.music_apis import MusicApisV1 - from ask_smapi_model.v1.skill.manifest.video_apis import VideoApisV1 - from ask_smapi_model.v1.skill.manifest.custom_apis import CustomApisV1 - from ask_smapi_model.v1.skill.manifest.house_hold_list import HouseHoldListV1 + from ask_smapi_model.v1.skill.manifest.smart_home_apis import SmartHomeApis as Manifest_SmartHomeApisV1 + from ask_smapi_model.v1.skill.manifest.health_apis import HealthApis as Manifest_HealthApisV1 + from ask_smapi_model.v1.skill.manifest.video_apis import VideoApis as Manifest_VideoApisV1 + from ask_smapi_model.v1.skill.manifest.alexa_for_business_apis import AlexaForBusinessApis as Manifest_AlexaForBusinessApisV1 + from ask_smapi_model.v1.skill.manifest.house_hold_list import HouseHoldList as Manifest_HouseHoldListV1 + from ask_smapi_model.v1.skill.manifest.flash_briefing_apis import FlashBriefingApis as Manifest_FlashBriefingApisV1 + from ask_smapi_model.v1.skill.manifest.custom_apis import CustomApis as Manifest_CustomApisV1 + from ask_smapi_model.v1.skill.manifest.music_apis import MusicApis as Manifest_MusicApisV1 class SkillManifestApis(object): @@ -80,7 +80,7 @@ class SkillManifestApis(object): supports_multiple_types = False def __init__(self, flash_briefing=None, custom=None, smart_home=None, video=None, alexa_for_business=None, health=None, household_list=None, music=None): - # type: (Optional[FlashBriefingApisV1], Optional[CustomApisV1], Optional[SmartHomeApisV1], Optional[VideoApisV1], Optional[AlexaForBusinessApisV1], Optional[HealthApisV1], Optional[HouseHoldListV1], Optional[MusicApisV1]) -> None + # type: (Optional[Manifest_FlashBriefingApisV1], Optional[Manifest_CustomApisV1], Optional[Manifest_SmartHomeApisV1], Optional[Manifest_VideoApisV1], Optional[Manifest_AlexaForBusinessApisV1], Optional[Manifest_HealthApisV1], Optional[Manifest_HouseHoldListV1], Optional[Manifest_MusicApisV1]) -> None """Defines the structure for implemented apis information in the skill manifest. :param flash_briefing: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py index 98e13e2..2022de7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py index bc15209..c7ca064 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.ssl_certificate_type import SSLCertificateTypeV1 + from ask_smapi_model.v1.skill.manifest.ssl_certificate_type import SSLCertificateType as Manifest_SSLCertificateTypeV1 class SkillManifestEndpoint(object): @@ -49,7 +49,7 @@ class SkillManifestEndpoint(object): supports_multiple_types = False def __init__(self, uri=None, ssl_certificate_type=None): - # type: (Optional[str], Optional[SSLCertificateTypeV1]) -> None + # type: (Optional[str], Optional[Manifest_SSLCertificateTypeV1]) -> None """Defines the structure for endpoint information in the skill manifest. :param uri: Amazon Resource Name (ARN) of the skill's Lambda function or HTTPS URL. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py index 47cb372..6fa4d9b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifestV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as Manifest_SkillManifestV1 class SkillManifestEnvelope(object): @@ -43,7 +43,7 @@ class SkillManifestEnvelope(object): supports_multiple_types = False def __init__(self, manifest=None): - # type: (Optional[SkillManifestV1]) -> None + # type: (Optional[Manifest_SkillManifestV1]) -> None """ :param manifest: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py index e1a3079..b46599b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpointV1 - from ask_smapi_model.v1.skill.manifest.event_name import EventNameV1 - from ask_smapi_model.v1.skill.manifest.event_publications import EventPublicationsV1 - from ask_smapi_model.v1.skill.manifest.region import RegionV1 + from ask_smapi_model.v1.skill.manifest.event_publications import EventPublications as Manifest_EventPublicationsV1 + from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 + from ask_smapi_model.v1.skill.manifest.event_name import EventName as Manifest_EventNameV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 class SkillManifestEvents(object): @@ -60,7 +60,7 @@ class SkillManifestEvents(object): supports_multiple_types = False def __init__(self, subscriptions=None, publications=None, regions=None, endpoint=None): - # type: (Optional[List[EventNameV1]], Optional[List[EventPublicationsV1]], Optional[Dict[str, RegionV1]], Optional[SkillManifestEndpointV1]) -> None + # type: (Optional[List[Manifest_EventNameV1]], Optional[List[Manifest_EventPublicationsV1]], Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1]) -> None """Defines the structure for subscribed events information in the skill manifest. :param subscriptions: Contains an array of eventName object each of which contains the name of a skill event. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_privacy_and_compliance.py index d22d27a..fa3c030 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_privacy_and_compliance.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py index c36f9ed..eb8234f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py index e9a8148..4f73dad 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndComplianceV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance as Manifest_SkillManifestLocalizedPrivacyAndComplianceV1 class SkillManifestPrivacyAndCompliance(object): @@ -69,7 +69,7 @@ class SkillManifestPrivacyAndCompliance(object): supports_multiple_types = False def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, is_child_directed=None, is_export_compliant=None, contains_ads=None, uses_health_info=None): - # type: (Optional[Dict[str, SkillManifestLocalizedPrivacyAndComplianceV1]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None + # type: (Optional[Dict[str, Manifest_SkillManifestLocalizedPrivacyAndComplianceV1]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None """Defines the structure for privacy & compliance information in the skill manifest. :param locales: Defines the structure for locale specific privacy & compliance information in the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py index b259580..30d3e04 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountriesV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformationV1 - from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionModeV1 - from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupportV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation as Manifest_SkillManifestLocalizedPublishingInformationV1 + from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as Manifest_DistributionModeV1 + from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupport as Manifest_ManifestGadgetSupportV1 + from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountries as Manifest_DistributionCountriesV1 class SkillManifestPublishingInformation(object): @@ -80,7 +80,7 @@ class SkillManifestPublishingInformation(object): supports_multiple_types = False def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None): - # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformationV1]], Optional[bool], Optional[DistributionModeV1], Optional[ManifestGadgetSupportV1], Optional[str], Optional[str], Optional[List[DistributionCountriesV1]]) -> None + # type: (Optional[str], Optional[str], Optional[Dict[str, Manifest_SkillManifestLocalizedPublishingInformationV1]], Optional[bool], Optional[Manifest_DistributionModeV1], Optional[Manifest_ManifestGadgetSupportV1], Optional[str], Optional[str], Optional[List[Manifest_DistributionCountriesV1]]) -> None """Defines the structure for publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py index 5393d3a..f06d52f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegionV1 - from ask_smapi_model.v1.skill.manifest.smart_home_protocol import SmartHomeProtocolV1 - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as Manifest_LambdaRegionV1 + from ask_smapi_model.v1.skill.manifest.smart_home_protocol import SmartHomeProtocol as Manifest_SmartHomeProtocolV1 class SmartHomeApis(object): @@ -55,7 +55,7 @@ class SmartHomeApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, protocol_version=None): - # type: (Optional[Dict[str, LambdaRegionV1]], Optional[LambdaEndpointV1], Optional[SmartHomeProtocolV1]) -> None + # type: (Optional[Dict[str, Manifest_LambdaRegionV1]], Optional[Manifest_LambdaEndpointV1], Optional[Manifest_SmartHomeProtocolV1]) -> None """Defines the structure for smart home api of the skill. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py index 3237073..0185ce6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class SmartHomeProtocol(Enum): _3 = "3" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SmartHomeProtocol): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ssl_certificate_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ssl_certificate_type.py index a6def34..ad962e8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ssl_certificate_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ssl_certificate_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SSLCertificateType(Enum): Trusted = "Trusted" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SSLCertificateType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/up_channel_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/up_channel_items.py index fc8ff46..f295dbd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/up_channel_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/up_channel_items.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py index 508589a..15ab88a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class Version(Enum): _1 = "1" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Version): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py index db9c3db..bb7c5e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_region import VideoRegionV1 - from ask_smapi_model.v1.skill.manifest.video_apis_locale import VideoApisLocaleV1 - from ask_smapi_model.v1.skill.manifest.video_country_info import VideoCountryInfoV1 - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.video_apis_locale import VideoApisLocale as Manifest_VideoApisLocaleV1 + from ask_smapi_model.v1.skill.manifest.video_country_info import VideoCountryInfo as Manifest_VideoCountryInfoV1 + from ask_smapi_model.v1.skill.manifest.video_region import VideoRegion as Manifest_VideoRegionV1 class VideoApis(object): @@ -60,7 +60,7 @@ class VideoApis(object): supports_multiple_types = False def __init__(self, regions=None, locales=None, endpoint=None, countries=None): - # type: (Optional[Dict[str, VideoRegionV1]], Optional[Dict[str, VideoApisLocaleV1]], Optional[LambdaEndpointV1], Optional[Dict[str, VideoCountryInfoV1]]) -> None + # type: (Optional[Dict[str, Manifest_VideoRegionV1]], Optional[Dict[str, Manifest_VideoApisLocaleV1]], Optional[Manifest_LambdaEndpointV1], Optional[Dict[str, Manifest_VideoCountryInfoV1]]) -> None """Defines the structure for video api of the skill. :param regions: Defines the structure for region information. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py index c8c9845..4a0c661 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfoV1 + from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as Manifest_VideoCatalogInfoV1 class VideoApisLocale(object): @@ -53,7 +53,7 @@ class VideoApisLocale(object): supports_multiple_types = False def __init__(self, video_provider_targeting_names=None, video_provider_logo_uri=None, catalog_information=None): - # type: (Optional[List[object]], Optional[str], Optional[List[VideoCatalogInfoV1]]) -> None + # type: (Optional[List[object]], Optional[str], Optional[List[Manifest_VideoCatalogInfoV1]]) -> None """Defines the structure for localized video api information. :param video_provider_targeting_names: Defines the video provider's targeting name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_app_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_app_interface.py index db90f72..81d3595 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_app_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_app_interface.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_catalog_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_catalog_info.py index 97dc2a9..d1dc6e9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_catalog_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_catalog_info.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py index 52a37e2..f630c48 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfoV1 + from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as Manifest_VideoCatalogInfoV1 class VideoCountryInfo(object): @@ -45,7 +45,7 @@ class VideoCountryInfo(object): supports_multiple_types = False def __init__(self, catalog_information=None): - # type: (Optional[List[VideoCatalogInfoV1]]) -> None + # type: (Optional[List[Manifest_VideoCatalogInfoV1]]) -> None """Defines the structure of per-country video info in the skill manifest. :param catalog_information: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py index 06e8d23..0c80917 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpointV1 - from ask_smapi_model.v1.skill.manifest.up_channel_items import UpChannelItemsV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.up_channel_items import UpChannelItems as Manifest_UpChannelItemsV1 class VideoRegion(object): @@ -50,7 +50,7 @@ class VideoRegion(object): supports_multiple_types = False def __init__(self, endpoint=None, upchannel=None): - # type: (Optional[LambdaEndpointV1], Optional[List[UpChannelItemsV1]]) -> None + # type: (Optional[Manifest_LambdaEndpointV1], Optional[List[Manifest_UpChannelItemsV1]]) -> None """Defines the structure for endpoint information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py index ced0ef2..bc5e881 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ViewportMode(Enum): TV = "TV" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ViewportMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_shape.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_shape.py index 9c7c64c..303799f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_shape.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_shape.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ViewportShape(Enum): ROUND = "ROUND" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ViewportShape): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py index 947afa4..e8c81f4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.viewport_shape import ViewportShapeV1 - from ask_smapi_model.v1.skill.manifest.viewport_mode import ViewportModeV1 + from ask_smapi_model.v1.skill.manifest.viewport_mode import ViewportMode as Manifest_ViewportModeV1 + from ask_smapi_model.v1.skill.manifest.viewport_shape import ViewportShape as Manifest_ViewportShapeV1 class ViewportSpecification(object): @@ -66,7 +66,7 @@ class ViewportSpecification(object): supports_multiple_types = False def __init__(self, mode=None, shape=None, min_width=None, max_width=None, min_height=None, max_height=None): - # type: (Optional[ViewportModeV1], Optional[ViewportShapeV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None + # type: (Optional[Manifest_ViewportModeV1], Optional[Manifest_ViewportShapeV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None """Defines a viewport specification. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py index b30f037..732364a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.status import StatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 class ManifestLastUpdateRequest(object): @@ -58,7 +58,7 @@ class ManifestLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, version=None): - # type: (Optional[StatusV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]], Optional[str]) -> None + # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[str]) -> None """Contains attributes related to last modification (create/update) request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py index 7559da4..ff2ad2d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest_last_update_request import ManifestLastUpdateRequestV1 + from ask_smapi_model.v1.skill.manifest_last_update_request import ManifestLastUpdateRequest as Skill_ManifestLastUpdateRequestV1 class ManifestStatus(object): @@ -49,7 +49,7 @@ class ManifestStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None, e_tag=None): - # type: (Optional[ManifestLastUpdateRequestV1], Optional[str]) -> None + # type: (Optional[Skill_ManifestLastUpdateRequestV1], Optional[str]) -> None """Defines the structure for a resource status. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/get_metric_data_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/get_metric_data_response.py index 631c384..72f2ee7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/get_metric_data_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/get_metric_data_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/metric.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/metric.py index 8c4cbf5..4fdc0f8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/metric.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/metric.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -45,7 +45,7 @@ class Metric(Enum): skillEndedSessions = "skillEndedSessions" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -61,7 +61,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Metric): return False @@ -69,6 +69,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/period.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/period.py index b314ae3..8ba5cb9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/period.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/period.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class Period(Enum): P1D = "P1D" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Period): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/skill_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/skill_type.py index c7a3cba..57e616f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/skill_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/skill_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SkillType(Enum): flashBriefing = "flashBriefing" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SkillType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/stage_for_metric.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/stage_for_metric.py index 85b56ce..214331c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/stage_for_metric.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/stage_for_metric.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class StageForMetric(Enum): development = "development" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, StageForMetric): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set.py index 4a034dc..afbcdee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set_entity.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set_entity.py index 6a37d33..4a5f723 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set_entity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/annotation_set_entity.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_request.py index f454799..00a395b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_response.py index 20765f3..27e9bf5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/create_nlu_annotation_set_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/get_nlu_annotation_set_properties_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/get_nlu_annotation_set_properties_response.py index e3d220a..f8e9a6d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/get_nlu_annotation_set_properties_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/get_nlu_annotation_set_properties_response.py @@ -22,7 +22,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py index 906416c..e59d67f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import LinkV1 + from ask_smapi_model.v1.link import Link as V1_LinkV1 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[LinkV1], Optional[LinkV1]) -> None + # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py index 65454de..be7f77e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.annotation_sets.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.links import LinksV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.annotation_set import AnnotationSetV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.links import Links as AnnotationSets_LinksV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.annotation_set import AnnotationSet as AnnotationSets_AnnotationSetV1 class ListNLUAnnotationSetsResponse(object): @@ -53,7 +53,7 @@ class ListNLUAnnotationSetsResponse(object): supports_multiple_types = False def __init__(self, annotation_sets=None, pagination_context=None, links=None): - # type: (Optional[List[AnnotationSetV1]], Optional[PaginationContextV1], Optional[LinksV1]) -> None + # type: (Optional[List[AnnotationSets_AnnotationSetV1]], Optional[AnnotationSets_PaginationContextV1], Optional[AnnotationSets_LinksV1]) -> None """ :param annotation_sets: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/pagination_context.py index fdb41f1..1a0cddc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_annotations_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_annotations_request.py index c182042..dd62bc6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_annotations_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_annotations_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_properties_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_properties_request.py index e171e7c..749da94 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_properties_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/update_nlu_annotation_set_properties_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py index e3bf9b0..ea55c26 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.intent import IntentV1 + from ask_smapi_model.v1.skill.nlu.evaluations.intent import Intent as Evaluations_IntentV1 class Actual(object): @@ -47,7 +47,7 @@ class Actual(object): supports_multiple_types = False def __init__(self, domain=None, intent=None): - # type: (Optional[str], Optional[IntentV1]) -> None + # type: (Optional[str], Optional[Evaluations_IntentV1]) -> None """ :param domain: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/confirmation_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/confirmation_status.py index 59b7760..1ffd064 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/confirmation_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/confirmation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ConfirmationStatus(Enum): DENIED = "DENIED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ConfirmationStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py index d923e74..3b5bde7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py @@ -21,16 +21,16 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.source import SourceV1 + from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Evaluations_SourceV1 class EvaluateNLURequest(object): """ :param stage: - :type stage: str + :type stage: (optional) object :param locale: :type locale: (optional) str :param source: @@ -38,7 +38,7 @@ class EvaluateNLURequest(object): """ deserialized_types = { - 'stage': 'str', + 'stage': 'object', 'locale': 'str', 'source': 'ask_smapi_model.v1.skill.nlu.evaluations.source.Source' } # type: Dict @@ -50,12 +50,12 @@ class EvaluateNLURequest(object): } # type: Dict supports_multiple_types = False - def __init__(self, stage='development', locale=None, source=None): - # type: (Optional[str], Optional[str], Optional[SourceV1]) -> None + def __init__(self, stage=None, locale=None, source=None): + # type: (Optional[object], Optional[str], Optional[Evaluations_SourceV1]) -> None """ :param stage: - :type stage: str + :type stage: (optional) object :param locale: :type locale: (optional) str :param source: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_response.py index ea26902..8c122b3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py index 9d8df9a..5e5b2e9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py @@ -22,10 +22,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.status import StatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 class Evaluation(EvaluationEntity): @@ -65,7 +65,7 @@ class Evaluation(EvaluationEntity): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None, id=None): - # type: (Optional[datetime], Optional[datetime], Optional[StatusV1], Optional[str], Optional[EvaluationInputsV1], Optional[str]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1], Optional[str]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py index 33e4840..c4eaab0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.status import StatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 class EvaluationEntity(object): @@ -60,7 +60,7 @@ class EvaluationEntity(object): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None): - # type: (Optional[datetime], Optional[datetime], Optional[StatusV1], Optional[str], Optional[EvaluationInputsV1]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py index 540d15a..b4a2b03 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.source import SourceV1 + from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Evaluations_SourceV1 class EvaluationInputs(object): @@ -32,14 +32,14 @@ class EvaluationInputs(object): :param locale: :type locale: (optional) str :param stage: - :type stage: (optional) str + :type stage: (optional) object :param source: :type source: (optional) ask_smapi_model.v1.skill.nlu.evaluations.source.Source """ deserialized_types = { 'locale': 'str', - 'stage': 'str', + 'stage': 'object', 'source': 'ask_smapi_model.v1.skill.nlu.evaluations.source.Source' } # type: Dict @@ -51,13 +51,13 @@ class EvaluationInputs(object): supports_multiple_types = False def __init__(self, locale=None, stage=None, source=None): - # type: (Optional[str], Optional[str], Optional[SourceV1]) -> None + # type: (Optional[str], Optional[object], Optional[Evaluations_SourceV1]) -> None """ :param locale: :type locale: (optional) str :param stage: - :type stage: (optional) str + :type stage: (optional) object :param source: :type source: (optional) ask_smapi_model.v1.skill.nlu.evaluations.source.Source """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py index 7857252..4adde11 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent import ExpectedIntentV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent import ExpectedIntent as Evaluations_ExpectedIntentV1 class Expected(object): @@ -47,7 +47,7 @@ class Expected(object): supports_multiple_types = False def __init__(self, domain=None, intent=None): - # type: (Optional[str], Optional[ExpectedIntentV1]) -> None + # type: (Optional[str], Optional[Evaluations_ExpectedIntentV1]) -> None """ :param domain: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py index b650541..15565b5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent_slots_props import ExpectedIntentSlotsPropsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent_slots_props import ExpectedIntentSlotsProps as Evaluations_ExpectedIntentSlotsPropsV1 class ExpectedIntent(object): @@ -47,7 +47,7 @@ class ExpectedIntent(object): supports_multiple_types = False def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, ExpectedIntentSlotsPropsV1]]) -> None + # type: (Optional[str], Optional[Dict[str, Evaluations_ExpectedIntentSlotsPropsV1]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent_slots_props.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent_slots_props.py index c289e07..24ac070 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent_slots_props.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent_slots_props.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py index 8eb6793..87fdc1b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.status import StatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks as Evaluations_GetNLUEvaluationResponseLinksV1 class GetNLUEvaluationResponse(EvaluationEntity): @@ -66,7 +66,7 @@ class GetNLUEvaluationResponse(EvaluationEntity): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None, links=None): - # type: (Optional[datetime], Optional[datetime], Optional[StatusV1], Optional[str], Optional[EvaluationInputsV1], Optional[GetNLUEvaluationResponseLinksV1]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1], Optional[Evaluations_GetNLUEvaluationResponseLinksV1]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py index 735a6c4..65b8e92 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.results import ResultsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.results import Results as Evaluations_ResultsV1 class GetNLUEvaluationResponseLinks(object): @@ -43,7 +43,7 @@ class GetNLUEvaluationResponseLinks(object): supports_multiple_types = False def __init__(self, results=None): - # type: (Optional[ResultsV1]) -> None + # type: (Optional[Evaluations_ResultsV1]) -> None """ :param results: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py index 4a9f881..6808a36 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.test_case import TestCaseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as Evaluations_PagedResultsResponsePaginationContextV1 + from ask_smapi_model.v1.skill.nlu.evaluations.test_case import TestCase as Evaluations_TestCaseV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 class GetNLUEvaluationResultsResponse(PagedResultsResponse): @@ -58,7 +58,7 @@ class GetNLUEvaluationResultsResponse(PagedResultsResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, total_failed=None, test_cases=None): - # type: (Optional[PagedResultsResponsePaginationContextV1], Optional[LinksV1], Optional[float], Optional[List[TestCaseV1]]) -> None + # type: (Optional[Evaluations_PagedResultsResponsePaginationContextV1], Optional[Evaluations_LinksV1], Optional[float], Optional[List[Evaluations_TestCaseV1]]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/inputs.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/inputs.py index 7263308..a6ae1ba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/inputs.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/inputs.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py index d2dc3f4..c287ce7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.slots_props import SlotsPropsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as Evaluations_ConfirmationStatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.slots_props import SlotsProps as Evaluations_SlotsPropsV1 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[ConfirmationStatusV1], Optional[Dict[str, SlotsPropsV1]]) -> None + # type: (Optional[str], Optional[Evaluations_ConfirmationStatusV1], Optional[Dict[str, Evaluations_SlotsPropsV1]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py index 906416c..e59d67f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import LinkV1 + from ask_smapi_model.v1.link import Link as V1_LinkV1 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[LinkV1], Optional[LinkV1]) -> None + # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py index 9857839..bf15dea 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py @@ -22,11 +22,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation import EvaluationV1 - from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation import Evaluation as Evaluations_EvaluationV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 class ListNLUEvaluationsResponse(PagedResponse): @@ -56,7 +56,7 @@ class ListNLUEvaluationsResponse(PagedResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, evaluations=None): - # type: (Optional[PaginationContextV1], Optional[LinksV1], Optional[List[EvaluationV1]]) -> None + # type: (Optional[Evaluations_PaginationContextV1], Optional[Evaluations_LinksV1], Optional[List[Evaluations_EvaluationV1]]) -> None """response body for a list evaluation API :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py index 39ef1b0..320255a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 class PagedResponse(object): @@ -48,7 +48,7 @@ class PagedResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[PaginationContextV1], Optional[LinksV1]) -> None + # type: (Optional[Evaluations_PaginationContextV1], Optional[Evaluations_LinksV1]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py index 7fa3227..a67ef84 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as Evaluations_PagedResultsResponsePaginationContextV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 class PagedResultsResponse(object): @@ -48,7 +48,7 @@ class PagedResultsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[PagedResultsResponsePaginationContextV1], Optional[LinksV1]) -> None + # type: (Optional[Evaluations_PagedResultsResponsePaginationContextV1], Optional[Evaluations_LinksV1]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response_pagination_context.py index da80439..4a384dd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response_pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response_pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/pagination_context.py index 7f1623b..a7d0881 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/pagination_context.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions.py index 0538714..66eaaf9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py index 7f7fd03..b0d932a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_value import ResolutionsPerAuthorityValueV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Evaluations_ResolutionsPerAuthorityStatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_value import ResolutionsPerAuthorityValue as Evaluations_ResolutionsPerAuthorityValueV1 class ResolutionsPerAuthority(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthority(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[ResolutionsPerAuthorityStatusV1], Optional[List[ResolutionsPerAuthorityValueV1]]) -> None + # type: (Optional[str], Optional[Evaluations_ResolutionsPerAuthorityStatusV1], Optional[List[Evaluations_ResolutionsPerAuthorityValueV1]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py index 6ee84b8..4d246d8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCodeV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Evaluations_ResolutionsPerAuthorityStatusCodeV1 class ResolutionsPerAuthorityStatus(object): @@ -43,7 +43,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[ResolutionsPerAuthorityStatusCodeV1]) -> None + # type: (Optional[Evaluations_ResolutionsPerAuthorityStatusCodeV1]) -> None """ :param code: A code indicating the results of attempting to resolve the user utterance against the defined slot types. This can be one of the following: ER_SUCCESS_MATCH: The spoken value matched a value or synonym explicitly defined in your custom slot type. ER_SUCCESS_NO_MATCH: The spoken value did not match any values or synonyms explicitly defined in your custom slot type. ER_ERROR_TIMEOUT: An error occurred due to a timeout. ER_ERROR_EXCEPTION: An error occurred due to an exception during processing. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status_code.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status_code.py index 4eb4398..08e06d2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status_code.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status_code.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class ResolutionsPerAuthorityStatusCode(Enum): ER_ERROR_EXCEPTION = "ER_ERROR_EXCEPTION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResolutionsPerAuthorityStatusCode): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_value.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_value.py index 86d6d3b..eef1c05 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_value.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_value.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results.py index d20059b..8bca713 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results_status.py index 6e372ad..ee3c16a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/results_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class ResultsStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResultsStatus): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py index 12a8f54..6adb728 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions import ResolutionsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as Evaluations_ConfirmationStatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions import Resolutions as Evaluations_ResolutionsV1 class SlotsProps(object): @@ -56,7 +56,7 @@ class SlotsProps(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[ConfirmationStatusV1], Optional[ResolutionsV1]) -> None + # type: (Optional[str], Optional[str], Optional[Evaluations_ConfirmationStatusV1], Optional[Evaluations_ResolutionsV1]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/source.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/source.py index d6e4524..a4c2a96 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/source.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/source.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/status.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/status.py index 8fafcc8..3cbf26d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class Status(Enum): ERROR = "ERROR" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py index c8cef12..4f06d0a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.inputs import InputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.results_status import ResultsStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.expected import ExpectedV1 - from ask_smapi_model.v1.skill.nlu.evaluations.actual import ActualV1 + from ask_smapi_model.v1.skill.nlu.evaluations.inputs import Inputs as Evaluations_InputsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.actual import Actual as Evaluations_ActualV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected import Expected as Evaluations_ExpectedV1 + from ask_smapi_model.v1.skill.nlu.evaluations.results_status import ResultsStatus as Evaluations_ResultsStatusV1 class TestCase(object): @@ -58,7 +58,7 @@ class TestCase(object): supports_multiple_types = False def __init__(self, status=None, inputs=None, actual=None, expected=None): - # type: (Optional[ResultsStatusV1], Optional[InputsV1], Optional[ActualV1], Optional[List[ExpectedV1]]) -> None + # type: (Optional[Evaluations_ResultsStatusV1], Optional[Evaluations_InputsV1], Optional[Evaluations_ActualV1], Optional[List[Evaluations_ExpectedV1]]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/overwrite_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/overwrite_mode.py index 1a7eff2..f35604a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/overwrite_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/overwrite_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class OverwriteMode(Enum): OVERWRITE = "OVERWRITE" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, OverwriteMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py index 3348117..fbd4203 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class AcceptStatus(Enum): PENDING = "PENDING" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, AcceptStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py index 0bf5844..a162f1a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.private.private_distribution_account import PrivateDistributionAccountV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.private.private_distribution_account import PrivateDistributionAccount as Private_PrivateDistributionAccountV1 class ListPrivateDistributionAccountsResponse(object): @@ -54,7 +54,7 @@ class ListPrivateDistributionAccountsResponse(object): supports_multiple_types = False def __init__(self, links=None, private_distribution_accounts=None, next_token=None): - # type: (Optional[LinksV1], Optional[List[PrivateDistributionAccountV1]], Optional[str]) -> None + # type: (Optional[V1_LinksV1], Optional[List[Private_PrivateDistributionAccountV1]], Optional[str]) -> None """Response of ListPrivateDistributionAccounts. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py index d5abf5b..bb0bc87 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.private.accept_status import AcceptStatusV1 + from ask_smapi_model.v1.skill.private.accept_status import AcceptStatus as Private_AcceptStatusV1 class PrivateDistributionAccount(object): @@ -49,7 +49,7 @@ class PrivateDistributionAccount(object): supports_multiple_types = False def __init__(self, principal=None, accept_status=None): - # type: (Optional[str], Optional[AcceptStatusV1]) -> None + # type: (Optional[str], Optional[Private_AcceptStatusV1]) -> None """Contains information of the private distribution account with given id. :param principal: 12-digit numerical account ID for AWS account holders. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/publish_skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/publish_skill_request.py index 7af47e1..ba78797 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/publish_skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/publish_skill_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py index 706fc73..85c9e4d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.publication.skill_publication_status import SkillPublicationStatusV1 + from ask_smapi_model.v1.skill.publication.skill_publication_status import SkillPublicationStatus as Publication_SkillPublicationStatusV1 class SkillPublicationResponse(object): @@ -47,7 +47,7 @@ class SkillPublicationResponse(object): supports_multiple_types = False def __init__(self, publishes_at_date=None, status=None): - # type: (Optional[datetime], Optional[SkillPublicationStatusV1]) -> None + # type: (Optional[datetime], Optional[Publication_SkillPublicationStatusV1]) -> None """ :param publishes_at_date: Used to determine when the skill Publishing should start. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_status.py index b47e710..52bfe53 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -40,7 +40,7 @@ class SkillPublicationStatus(Enum): SCHEDULED = "SCHEDULED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -56,7 +56,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SkillPublicationStatus): return False @@ -64,6 +64,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication_method.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication_method.py index bc99a22..4976568 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication_method.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication_method.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class PublicationMethod(Enum): AUTO_PUBLISHING = "AUTO_PUBLISHING" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PublicationMethod): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication_status.py index 86da1ff..b1df4c1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class PublicationStatus(Enum): REMOVED = "REMOVED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, PublicationStatus): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/reason.py b/ask-smapi-model/ask_smapi_model/v1/skill/reason.py index f9149b4..c2b4340 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/reason.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/reason.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class Reason(Enum): OTHER = "OTHER" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Reason): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/regional_ssl_certificate.py b/ask-smapi-model/ask_smapi_model/v1/skill/regional_ssl_certificate.py index d0c2573..2285bd2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/regional_ssl_certificate.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/regional_ssl_certificate.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py index c0ead5f..2684fd3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.response_status import ResponseStatusV1 - from ask_smapi_model.v1.skill.action import ActionV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 + from ask_smapi_model.v1.skill.action import Action as Skill_ActionV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 class ResourceImportStatus(object): @@ -63,7 +63,7 @@ class ResourceImportStatus(object): supports_multiple_types = False def __init__(self, name=None, status=None, action=None, errors=None, warnings=None): - # type: (Optional[str], Optional[ResponseStatusV1], Optional[ActionV1], Optional[List[StandardizedErrorV1]], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[str], Optional[Skill_ResponseStatusV1], Optional[Skill_ActionV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]]) -> None """Defines the structure for a resource deployment status. :param name: Resource name. eg. manifest, interactionModels.en_US and so on. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/response_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/response_status.py index 770cbe7..99e7de6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/response_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class ResponseStatus(Enum): SKIPPED = "SKIPPED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResponseStatus): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py index 770b9dc..85e9393 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.standardized_error import StandardizedErrorV1 - from ask_smapi_model.v1.skill.rollback_request_status_types import RollbackRequestStatusTypesV1 + from ask_smapi_model.v1.skill.rollback_request_status_types import RollbackRequestStatusTypes as Skill_RollbackRequestStatusTypesV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 class RollbackRequestStatus(object): @@ -62,7 +62,7 @@ class RollbackRequestStatus(object): supports_multiple_types = False def __init__(self, id=None, target_version=None, submission_time=None, status=None, errors=None): - # type: (Optional[str], Optional[str], Optional[datetime], Optional[RollbackRequestStatusTypesV1], Optional[List[StandardizedErrorV1]]) -> None + # type: (Optional[str], Optional[str], Optional[datetime], Optional[Skill_RollbackRequestStatusTypesV1], Optional[List[Skill_StandardizedErrorV1]]) -> None """Rollback request for a skill :param id: rollback request id diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status_types.py b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status_types.py index 48928bc..0a330f9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status_types.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status_types.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class RollbackRequestStatusTypes(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, RollbackRequestStatusTypes): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py index b1d2626..6d30e68 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_response import AlexaResponseV1 + from ask_smapi_model.v1.skill.simulations.alexa_response import AlexaResponse as Simulations_AlexaResponseV1 class AlexaExecutionInfo(object): @@ -43,7 +43,7 @@ class AlexaExecutionInfo(object): supports_multiple_types = False def __init__(self, alexa_responses=None): - # type: (Optional[List[AlexaResponseV1]]) -> None + # type: (Optional[List[Simulations_AlexaResponseV1]]) -> None """ :param alexa_responses: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py index 7855767..e3c8183 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_response_content import AlexaResponseContentV1 + from ask_smapi_model.v1.skill.simulations.alexa_response_content import AlexaResponseContent as Simulations_AlexaResponseContentV1 class AlexaResponse(object): @@ -47,7 +47,7 @@ class AlexaResponse(object): supports_multiple_types = False def __init__(self, object_type=None, content=None): - # type: (Optional[str], Optional[AlexaResponseContentV1]) -> None + # type: (Optional[str], Optional[Simulations_AlexaResponseContentV1]) -> None """ :param object_type: The type of Alexa response diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response_content.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response_content.py index 9634a8c..370ff90 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response_content.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response_content.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/device.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/device.py index 100e8fc..1f500a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/device.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/device.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/input.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/input.py index b0c0753..fd3d4c5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/input.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/input.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py index 6f7ebc9..778eacd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.metrics import MetricsV1 - from ask_smapi_model.v1.skill.simulations.invocation_request import InvocationRequestV1 - from ask_smapi_model.v1.skill.simulations.invocation_response import InvocationResponseV1 + from ask_smapi_model.v1.skill.simulations.invocation_request import InvocationRequest as Simulations_InvocationRequestV1 + from ask_smapi_model.v1.skill.simulations.metrics import Metrics as Simulations_MetricsV1 + from ask_smapi_model.v1.skill.simulations.invocation_response import InvocationResponse as Simulations_InvocationResponseV1 class Invocation(object): @@ -53,7 +53,7 @@ class Invocation(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[InvocationRequestV1], Optional[InvocationResponseV1], Optional[MetricsV1]) -> None + # type: (Optional[Simulations_InvocationRequestV1], Optional[Simulations_InvocationResponseV1], Optional[Simulations_MetricsV1]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_request.py index 28dbdce..183964e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_response.py index b84ba5f..8345e81 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/metrics.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/metrics.py index b474c62..1dd6834 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/metrics.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/metrics.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py index ecc3a33..68ec763 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.session_mode import SessionModeV1 + from ask_smapi_model.v1.skill.simulations.session_mode import SessionMode as Simulations_SessionModeV1 class Session(object): @@ -45,7 +45,7 @@ class Session(object): supports_multiple_types = False def __init__(self, mode=None): - # type: (Optional[SessionModeV1]) -> None + # type: (Optional[Simulations_SessionModeV1]) -> None """Session settings for running current simulation. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session_mode.py index 9c8d133..1e13124 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SessionMode(Enum): FORCE_NEW_SESSION = "FORCE_NEW_SESSION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SessionMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py index 6be7bd4..63e78f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_execution_info import AlexaExecutionInfoV1 - from ask_smapi_model.v1.skill.simulations.invocation import InvocationV1 - from ask_smapi_model.v1.error import ErrorV1 + from ask_smapi_model.v1.skill.simulations.alexa_execution_info import AlexaExecutionInfo as Simulations_AlexaExecutionInfoV1 + from ask_smapi_model.v1.error import Error as V1_ErrorV1 + from ask_smapi_model.v1.skill.simulations.invocation import Invocation as Simulations_InvocationV1 class SimulationResult(object): @@ -53,7 +53,7 @@ class SimulationResult(object): supports_multiple_types = False def __init__(self, alexa_execution_info=None, skill_execution_info=None, error=None): - # type: (Optional[AlexaExecutionInfoV1], Optional[InvocationV1], Optional[ErrorV1]) -> None + # type: (Optional[Simulations_AlexaExecutionInfoV1], Optional[Simulations_InvocationV1], Optional[V1_ErrorV1]) -> None """ :param alexa_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py index 8f6fd91..c190516 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.session import SessionV1 - from ask_smapi_model.v1.skill.simulations.input import InputV1 - from ask_smapi_model.v1.skill.simulations.device import DeviceV1 + from ask_smapi_model.v1.skill.simulations.input import Input as Simulations_InputV1 + from ask_smapi_model.v1.skill.simulations.session import Session as Simulations_SessionV1 + from ask_smapi_model.v1.skill.simulations.device import Device as Simulations_DeviceV1 class SimulationsApiRequest(object): @@ -53,7 +53,7 @@ class SimulationsApiRequest(object): supports_multiple_types = False def __init__(self, input=None, device=None, session=None): - # type: (Optional[InputV1], Optional[DeviceV1], Optional[SessionV1]) -> None + # type: (Optional[Simulations_InputV1], Optional[Simulations_DeviceV1], Optional[Simulations_SessionV1]) -> None """ :param input: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py index 1e7f139..89c218f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatusV1 - from ask_smapi_model.v1.skill.simulations.simulation_result import SimulationResultV1 + from ask_smapi_model.v1.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as Simulations_SimulationsApiResponseStatusV1 + from ask_smapi_model.v1.skill.simulations.simulation_result import SimulationResult as Simulations_SimulationResultV1 class SimulationsApiResponse(object): @@ -52,7 +52,7 @@ class SimulationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[SimulationsApiResponseStatusV1], Optional[SimulationResultV1]) -> None + # type: (Optional[str], Optional[Simulations_SimulationsApiResponseStatusV1], Optional[Simulations_SimulationResultV1]) -> None """ :param id: Id of the simulation resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response_status.py index fadaf84..2ab1c69 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SimulationsApiResponseStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SimulationsApiResponseStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py index 73da56b..cce3c7a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.skill_messaging_credentials import SkillMessagingCredentialsV1 + from ask_smapi_model.v1.skill.skill_messaging_credentials import SkillMessagingCredentials as Skill_SkillMessagingCredentialsV1 class SkillCredentials(object): @@ -45,7 +45,7 @@ class SkillCredentials(object): supports_multiple_types = False def __init__(self, skill_messaging_credentials=None): - # type: (Optional[SkillMessagingCredentialsV1]) -> None + # type: (Optional[Skill_SkillMessagingCredentialsV1]) -> None """Structure for skill credentials response. :param skill_messaging_credentials: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py index 70515e7..0d73412 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model_last_update_request import InteractionModelLastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model_last_update_request import InteractionModelLastUpdateRequest as Skill_InteractionModelLastUpdateRequestV1 class SkillInteractionModelStatus(object): @@ -53,7 +53,7 @@ class SkillInteractionModelStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None, e_tag=None, version=None): - # type: (Optional[InteractionModelLastUpdateRequestV1], Optional[str], Optional[str]) -> None + # type: (Optional[Skill_InteractionModelLastUpdateRequestV1], Optional[str], Optional[str]) -> None """Defines the structure for interaction model build status. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_messaging_credentials.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_messaging_credentials.py index 3c9d1f3..c37c180 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_messaging_credentials.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_messaging_credentials.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_resources_enum.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_resources_enum.py index 3e1c2a0..377f8a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_resources_enum.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_resources_enum.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SkillResourcesEnum(Enum): hostedSkillProvisioning = "hostedSkillProvisioning" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SkillResourcesEnum): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py index 45bf332..4652de4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py @@ -21,12 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest_status import ManifestStatusV1 - from ask_smapi_model.v1.skill.hosted_skill_deployment_status import HostedSkillDeploymentStatusV1 - from ask_smapi_model.v1.skill.skill_interaction_model_status import SkillInteractionModelStatusV1 - from ask_smapi_model.v1.skill.hosted_skill_provisioning_status import HostedSkillProvisioningStatusV1 + from ask_smapi_model.v1.skill.hosted_skill_deployment_status import HostedSkillDeploymentStatus as Skill_HostedSkillDeploymentStatusV1 + from ask_smapi_model.v1.skill.manifest_status import ManifestStatus as Skill_ManifestStatusV1 + from ask_smapi_model.v1.skill.hosted_skill_provisioning_status import HostedSkillProvisioningStatus as Skill_HostedSkillProvisioningStatusV1 + from ask_smapi_model.v1.skill.skill_interaction_model_status import SkillInteractionModelStatus as Skill_SkillInteractionModelStatusV1 class SkillStatus(object): @@ -60,7 +60,7 @@ class SkillStatus(object): supports_multiple_types = False def __init__(self, manifest=None, interaction_model=None, hosted_skill_deployment=None, hosted_skill_provisioning=None): - # type: (Optional[ManifestStatusV1], Optional[Dict[str, SkillInteractionModelStatusV1]], Optional[HostedSkillDeploymentStatusV1], Optional[HostedSkillProvisioningStatusV1]) -> None + # type: (Optional[Skill_ManifestStatusV1], Optional[Dict[str, Skill_SkillInteractionModelStatusV1]], Optional[Skill_HostedSkillDeploymentStatusV1], Optional[Skill_HostedSkillProvisioningStatusV1]) -> None """Defines the structure for skill status response. :param manifest: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py index 542a825..8039afd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py @@ -21,11 +21,12 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import LinksV1 - from ask_smapi_model.v1.skill.publication_status import PublicationStatusV1 - from ask_smapi_model.v1.skill.skill_summary_apis import SkillSummaryApisV1 + from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.stage_v2_type import StageV2Type as V1_StageV2TypeV1 + from ask_smapi_model.v1.skill.skill_summary_apis import SkillSummaryApis as Skill_SkillSummaryApisV1 + from ask_smapi_model.v1.skill.publication_status import PublicationStatus as Skill_PublicationStatusV1 class SkillSummary(object): @@ -35,6 +36,8 @@ class SkillSummary(object): :param skill_id: :type skill_id: (optional) str + :param stage: + :type stage: (optional) ask_smapi_model.v1.stage_v2_type.StageV2Type :param apis: List of APIs currently implemented by the skill. :type apis: (optional) list[ask_smapi_model.v1.skill.skill_summary_apis.SkillSummaryApis] :param publication_status: @@ -51,6 +54,7 @@ class SkillSummary(object): """ deserialized_types = { 'skill_id': 'str', + 'stage': 'ask_smapi_model.v1.stage_v2_type.StageV2Type', 'apis': 'list[ask_smapi_model.v1.skill.skill_summary_apis.SkillSummaryApis]', 'publication_status': 'ask_smapi_model.v1.skill.publication_status.PublicationStatus', 'last_updated': 'datetime', @@ -61,6 +65,7 @@ class SkillSummary(object): attribute_map = { 'skill_id': 'skillId', + 'stage': 'stage', 'apis': 'apis', 'publication_status': 'publicationStatus', 'last_updated': 'lastUpdated', @@ -70,12 +75,14 @@ class SkillSummary(object): } # type: Dict supports_multiple_types = False - def __init__(self, skill_id=None, apis=None, publication_status=None, last_updated=None, name_by_locale=None, asin=None, links=None): - # type: (Optional[str], Optional[List[SkillSummaryApisV1]], Optional[PublicationStatusV1], Optional[datetime], Optional[Dict[str, object]], Optional[str], Optional[LinksV1]) -> None + def __init__(self, skill_id=None, stage=None, apis=None, publication_status=None, last_updated=None, name_by_locale=None, asin=None, links=None): + # type: (Optional[str], Optional[V1_StageV2TypeV1], Optional[List[Skill_SkillSummaryApisV1]], Optional[Skill_PublicationStatusV1], Optional[datetime], Optional[Dict[str, object]], Optional[str], Optional[V1_LinksV1]) -> None """Information about the skills. :param skill_id: :type skill_id: (optional) str + :param stage: + :type stage: (optional) ask_smapi_model.v1.stage_v2_type.StageV2Type :param apis: List of APIs currently implemented by the skill. :type apis: (optional) list[ask_smapi_model.v1.skill.skill_summary_apis.SkillSummaryApis] :param publication_status: @@ -92,6 +99,7 @@ def __init__(self, skill_id=None, apis=None, publication_status=None, last_updat self.__discriminator_value = None # type: str self.skill_id = skill_id + self.stage = stage self.apis = apis self.publication_status = publication_status self.last_updated = last_updated diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py index 8334f79..91ece40 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -41,7 +41,7 @@ class SkillSummaryApis(Enum): alexaForBusiness = "alexaForBusiness" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -57,7 +57,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SkillSummaryApis): return False @@ -65,6 +65,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py index 124f89b..f9d7f97 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.version_submission import VersionSubmissionV1 + from ask_smapi_model.v1.skill.version_submission import VersionSubmission as Skill_VersionSubmissionV1 class SkillVersion(object): @@ -57,7 +57,7 @@ class SkillVersion(object): supports_multiple_types = False def __init__(self, version=None, message=None, creation_time=None, submissions=None): - # type: (Optional[str], Optional[str], Optional[datetime], Optional[List[VersionSubmissionV1]]) -> None + # type: (Optional[str], Optional[str], Optional[datetime], Optional[List[Skill_VersionSubmissionV1]]) -> None """Information about the skill version :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py index 38650a5..490bdc6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.regional_ssl_certificate import RegionalSSLCertificateV1 + from ask_smapi_model.v1.skill.regional_ssl_certificate import RegionalSSLCertificate as Skill_RegionalSSLCertificateV1 class SSLCertificatePayload(object): @@ -47,7 +47,7 @@ class SSLCertificatePayload(object): supports_multiple_types = False def __init__(self, ssl_certificate=None, regions=None): - # type: (Optional[str], Optional[Dict[str, RegionalSSLCertificateV1]]) -> None + # type: (Optional[str], Optional[Dict[str, Skill_RegionalSSLCertificateV1]]) -> None """ :param ssl_certificate: The default ssl certificate for the skill. If a request is made for a region without an explicit ssl certificate, this certificate will be used. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py b/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py index d37268d..8d08d12 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py @@ -22,9 +22,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_details import ValidationDetailsV1 + from ask_smapi_model.v1.skill.validation_details import ValidationDetails as Skill_ValidationDetailsV1 class StandardizedError(Error): @@ -54,7 +54,7 @@ class StandardizedError(Error): supports_multiple_types = False def __init__(self, validation_details=None, code=None, message=None): - # type: (Optional[ValidationDetailsV1], Optional[str], Optional[str]) -> None + # type: (Optional[Skill_ValidationDetailsV1], Optional[str], Optional[str]) -> None """Standardized structure which wraps machine parsable and human readable information about an error. :param validation_details: Standardized, machine readable structure that wraps all the information about a specific occurrence of an error of the type specified by the code. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/status.py b/ask-smapi-model/ask_smapi_model/v1/skill/status.py index 676d6ea..7910a6c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class Status(Enum): SUCCEEDED = "SUCCEEDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, Status): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py index 8daa38e..082806a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.publication_method import PublicationMethodV1 + from ask_smapi_model.v1.skill.publication_method import PublicationMethod as Skill_PublicationMethodV1 class SubmitSkillForCertificationRequest(object): @@ -47,7 +47,7 @@ class SubmitSkillForCertificationRequest(object): supports_multiple_types = False def __init__(self, publication_method=None, version_message=None): - # type: (Optional[PublicationMethodV1], Optional[str]) -> None + # type: (Optional[Skill_PublicationMethodV1], Optional[str]) -> None """ :param publication_method: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/update_skill_with_package_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/update_skill_with_package_request.py index eab94b7..2a8ed61 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/update_skill_with_package_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/update_skill_with_package_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py index ff73658..a4be66e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_data_types.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_data_types.py index adbbc8b..2167d56 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_data_types.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_data_types.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class ValidationDataTypes(Enum): null = "null" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ValidationDataTypes): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py index 92b42f3..dcd0e06 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py @@ -21,16 +21,16 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.image_attributes import ImageAttributesV1 - from ask_smapi_model.v1.skill.agreement_type import AgreementTypeV1 - from ask_smapi_model.v1.skill.instance import InstanceV1 - from ask_smapi_model.v1.skill.format import FormatV1 - from ask_smapi_model.v1.skill.validation_feature import ValidationFeatureV1 - from ask_smapi_model.v1.skill.validation_failure_reason import ValidationFailureReasonV1 - from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypesV1 - from ask_smapi_model.v1.skill.validation_endpoint import ValidationEndpointV1 + from ask_smapi_model.v1.skill.instance import Instance as Skill_InstanceV1 + from ask_smapi_model.v1.skill.validation_failure_reason import ValidationFailureReason as Skill_ValidationFailureReasonV1 + from ask_smapi_model.v1.skill.image_attributes import ImageAttributes as Skill_ImageAttributesV1 + from ask_smapi_model.v1.skill.validation_endpoint import ValidationEndpoint as Skill_ValidationEndpointV1 + from ask_smapi_model.v1.skill.format import Format as Skill_FormatV1 + from ask_smapi_model.v1.skill.agreement_type import AgreementType as Skill_AgreementTypeV1 + from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as Skill_ValidationDataTypesV1 + from ask_smapi_model.v1.skill.validation_feature import ValidationFeature as Skill_ValidationFeatureV1 class ValidationDetails(object): @@ -144,7 +144,7 @@ class ValidationDetails(object): supports_multiple_types = False def __init__(self, actual_image_attributes=None, actual_number_of_items=None, actual_string_length=None, allowed_content_types=None, allowed_data_types=None, allowed_image_attributes=None, conflicting_instance=None, expected_format=None, expected_instance=None, expected_regex_pattern=None, agreement_type=None, feature=None, inconsistent_endpoint=None, minimum_integer_value=None, minimum_number_of_items=None, minimum_string_length=None, maximum_integer_value=None, maximum_number_of_items=None, maximum_string_length=None, original_endpoint=None, original_instance=None, reason=None, required_property=None, unexpected_property=None): - # type: (Optional[ImageAttributesV1], Optional[int], Optional[int], Optional[List[object]], Optional[List[ValidationDataTypesV1]], Optional[List[ImageAttributesV1]], Optional[InstanceV1], Optional[FormatV1], Optional[InstanceV1], Optional[str], Optional[AgreementTypeV1], Optional[ValidationFeatureV1], Optional[ValidationEndpointV1], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[ValidationEndpointV1], Optional[InstanceV1], Optional[ValidationFailureReasonV1], Optional[str], Optional[str]) -> None + # type: (Optional[Skill_ImageAttributesV1], Optional[int], Optional[int], Optional[List[object]], Optional[List[Skill_ValidationDataTypesV1]], Optional[List[Skill_ImageAttributesV1]], Optional[Skill_InstanceV1], Optional[Skill_FormatV1], Optional[Skill_InstanceV1], Optional[str], Optional[Skill_AgreementTypeV1], Optional[Skill_ValidationFeatureV1], Optional[Skill_ValidationEndpointV1], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[Skill_ValidationEndpointV1], Optional[Skill_InstanceV1], Optional[Skill_ValidationFailureReasonV1], Optional[str], Optional[str]) -> None """Standardized, machine readable structure that wraps all the information about a specific occurrence of an error of the type specified by the code. :param actual_image_attributes: Set of properties of the image provided by the customer. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_endpoint.py index 0f96a76..97cff8c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_endpoint.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py index 1e5f9a6..849fa6c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_failure_type import ValidationFailureTypeV1 + from ask_smapi_model.v1.skill.validation_failure_type import ValidationFailureType as Skill_ValidationFailureTypeV1 class ValidationFailureReason(object): @@ -45,7 +45,7 @@ class ValidationFailureReason(object): supports_multiple_types = False def __init__(self, object_type=None): - # type: (Optional[ValidationFailureTypeV1]) -> None + # type: (Optional[Skill_ValidationFailureTypeV1]) -> None """Object representing what is wrong in the request. :param object_type: Enum for type of validation failure in the request. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_type.py index 6359cba..c1256d5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -47,7 +47,7 @@ class ValidationFailureType(Enum): MISSING_RESOURCE_PROPERTY = "MISSING_RESOURCE_PROPERTY" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -63,7 +63,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ValidationFailureType): return False @@ -71,6 +71,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py index 34ccb5c..79641a0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_feature.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py index 7282e0d..f0c7afb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validations.response_validation_status import ResponseValidationStatusV1 - from ask_smapi_model.v1.skill.validations.response_validation_importance import ResponseValidationImportanceV1 + from ask_smapi_model.v1.skill.validations.response_validation_importance import ResponseValidationImportance as Validations_ResponseValidationImportanceV1 + from ask_smapi_model.v1.skill.validations.response_validation_status import ResponseValidationStatus as Validations_ResponseValidationStatusV1 class ResponseValidation(object): @@ -64,7 +64,7 @@ class ResponseValidation(object): supports_multiple_types = False def __init__(self, title=None, description=None, category=None, locale=None, importance=None, status=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[ResponseValidationImportanceV1], Optional[ResponseValidationStatusV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[Validations_ResponseValidationImportanceV1], Optional[Validations_ResponseValidationStatusV1]) -> None """ :param title: Short, human readable title of the validation performed. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_importance.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_importance.py index 41c2c6f..f3ab12e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_importance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_importance.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ResponseValidationImportance(Enum): RECOMMENDED = "RECOMMENDED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResponseValidationImportance): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_status.py index a7130eb..871dea3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class ResponseValidationStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResponseValidationStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_request.py index 630129f..765530a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py index 0a1b53b..4fc584a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validations.validations_api_response_result import ValidationsApiResponseResultV1 - from ask_smapi_model.v1.skill.validations.validations_api_response_status import ValidationsApiResponseStatusV1 + from ask_smapi_model.v1.skill.validations.validations_api_response_status import ValidationsApiResponseStatus as Validations_ValidationsApiResponseStatusV1 + from ask_smapi_model.v1.skill.validations.validations_api_response_result import ValidationsApiResponseResult as Validations_ValidationsApiResponseResultV1 class ValidationsApiResponse(object): @@ -52,7 +52,7 @@ class ValidationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[ValidationsApiResponseStatusV1], Optional[ValidationsApiResponseResultV1]) -> None + # type: (Optional[str], Optional[Validations_ValidationsApiResponseStatusV1], Optional[Validations_ValidationsApiResponseResultV1]) -> None """ :param id: Id of the validation resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py index 964e7e4..6f04454 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validations.response_validation import ResponseValidationV1 - from ask_smapi_model.v1.error import ErrorV1 + from ask_smapi_model.v1.error import Error as V1_ErrorV1 + from ask_smapi_model.v1.skill.validations.response_validation import ResponseValidation as Validations_ResponseValidationV1 class ValidationsApiResponseResult(object): @@ -48,7 +48,7 @@ class ValidationsApiResponseResult(object): supports_multiple_types = False def __init__(self, validations=None, error=None): - # type: (Optional[List[ResponseValidationV1]], Optional[ErrorV1]) -> None + # type: (Optional[List[Validations_ResponseValidationV1]], Optional[V1_ErrorV1]) -> None """ :param validations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_status.py index a6b1a79..1e4c76e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ValidationsApiResponseStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ValidationsApiResponseStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py index aea3a0d..4687dce 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.version_submission_status import VersionSubmissionStatusV1 + from ask_smapi_model.v1.skill.version_submission_status import VersionSubmissionStatus as Skill_VersionSubmissionStatusV1 class VersionSubmission(object): @@ -49,7 +49,7 @@ class VersionSubmission(object): supports_multiple_types = False def __init__(self, status=None, submission_time=None): - # type: (Optional[VersionSubmissionStatusV1], Optional[datetime]) -> None + # type: (Optional[Skill_VersionSubmissionStatusV1], Optional[datetime]) -> None """Submission for a skill version :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission_status.py index 1467d70..ca659a7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -42,7 +42,7 @@ class VersionSubmissionStatus(Enum): WITHDRAWN_FROM_CERTIFICATION = "WITHDRAWN_FROM_CERTIFICATION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -58,7 +58,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, VersionSubmissionStatus): return False @@ -66,6 +66,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py index d7b2467..734103f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.reason import ReasonV1 + from ask_smapi_model.v1.skill.reason import Reason as Skill_ReasonV1 class WithdrawRequest(object): @@ -49,7 +49,7 @@ class WithdrawRequest(object): supports_multiple_types = False def __init__(self, reason=None, message=None): - # type: (Optional[ReasonV1], Optional[str]) -> None + # type: (Optional[Skill_ReasonV1], Optional[str]) -> None """The payload for the withdraw operation. :param reason: diff --git a/ask-smapi-model/ask_smapi_model/v1/stage_type.py b/ask-smapi-model/ask_smapi_model/v1/stage_type.py index 95d13e6..c5093a4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/stage_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/stage_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -35,7 +35,7 @@ class StageType(Enum): live = "live" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -51,7 +51,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, StageType): return False @@ -59,6 +59,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/stage_v2_type.py b/ask-smapi-model/ask_smapi_model/v1/stage_v2_type.py index e7853d7..dc17f61 100644 --- a/ask-smapi-model/ask_smapi_model/v1/stage_v2_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/stage_v2_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -36,7 +36,7 @@ class StageV2Type(Enum): development = "development" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -52,7 +52,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, StageV2Type): return False @@ -60,6 +60,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendor.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendor.py index c0ed244..4a9c494 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendor.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendor.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py index 0c6f00e..276153b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.vendor_management.vendor import VendorV1 + from ask_smapi_model.v1.vendor_management.vendor import Vendor as VendorManagement_VendorV1 class Vendors(object): @@ -45,7 +45,7 @@ class Vendors(object): supports_multiple_types = False def __init__(self, vendors=None): - # type: (Optional[List[VendorV1]]) -> None + # type: (Optional[List[VendorManagement_VendorV1]]) -> None """List of Vendors. :param vendors: diff --git a/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py index 5085b54..e6cf329 100644 --- a/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.error import ErrorV2 + from ask_smapi_model.v2.error import Error as V2_ErrorV2 class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[ErrorV2]]) -> None + # type: (Optional[str], Optional[List[V2_ErrorV2]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v2/error.py b/ask-smapi-model/ask_smapi_model/v2/error.py index 7de1f24..e31fd1c 100644 --- a/ask-smapi-model/ask_smapi_model/v2/error.py +++ b/ask-smapi-model/ask_smapi_model/v2/error.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py index 1d9ef95..b4cde1b 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation_response import InvocationResponseV2 - from ask_smapi_model.v2.skill.invocation_request import InvocationRequestV2 - from ask_smapi_model.v2.skill.metrics import MetricsV2 + from ask_smapi_model.v2.skill.invocation_response import InvocationResponse as Skill_InvocationResponseV2 + from ask_smapi_model.v2.skill.invocation_request import InvocationRequest as Skill_InvocationRequestV2 + from ask_smapi_model.v2.skill.metrics import Metrics as Skill_MetricsV2 class Invocation(object): @@ -53,7 +53,7 @@ class Invocation(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[InvocationRequestV2], Optional[InvocationResponseV2], Optional[MetricsV2]) -> None + # type: (Optional[Skill_InvocationRequestV2], Optional[Skill_InvocationResponseV2], Optional[Skill_MetricsV2]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocation_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocation_request.py index 28dbdce..183964e 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocation_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocation_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocation_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocation_response.py index b84ba5f..8345e81 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocation_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocation_response.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/end_point_regions.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/end_point_regions.py index 3b3dc33..5eb54e2 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/end_point_regions.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/end_point_regions.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class EndPointRegions(Enum): default = "default" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, EndPointRegions): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py index a18838f..a0f85fa 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation import InvocationV2 - from ask_smapi_model.v2.error import ErrorV2 + from ask_smapi_model.v2.skill.invocation import Invocation as Skill_InvocationV2 + from ask_smapi_model.v2.error import Error as V2_ErrorV2 class InvocationResponseResult(object): @@ -48,7 +48,7 @@ class InvocationResponseResult(object): supports_multiple_types = False def __init__(self, skill_execution_info=None, error=None): - # type: (Optional[InvocationV2], Optional[ErrorV2]) -> None + # type: (Optional[Skill_InvocationV2], Optional[V2_ErrorV2]) -> None """ :param skill_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py index 46cdc3d..2267aae 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class InvocationResponseStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, InvocationResponseStatus): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py index d799a97..8f14fa2 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocations.end_point_regions import EndPointRegionsV2 - from ask_smapi_model.v2.skill.invocations.skill_request import SkillRequestV2 + from ask_smapi_model.v2.skill.invocations.end_point_regions import EndPointRegions as Invocations_EndPointRegionsV2 + from ask_smapi_model.v2.skill.invocations.skill_request import SkillRequest as Invocations_SkillRequestV2 class InvocationsApiRequest(object): @@ -48,7 +48,7 @@ class InvocationsApiRequest(object): supports_multiple_types = False def __init__(self, endpoint_region=None, skill_request=None): - # type: (Optional[EndPointRegionsV2], Optional[SkillRequestV2]) -> None + # type: (Optional[Invocations_EndPointRegionsV2], Optional[Invocations_SkillRequestV2]) -> None """ :param endpoint_region: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py index 6da833d..f6a91bc 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocations.invocation_response_result import InvocationResponseResultV2 - from ask_smapi_model.v2.skill.invocations.invocation_response_status import InvocationResponseStatusV2 + from ask_smapi_model.v2.skill.invocations.invocation_response_result import InvocationResponseResult as Invocations_InvocationResponseResultV2 + from ask_smapi_model.v2.skill.invocations.invocation_response_status import InvocationResponseStatus as Invocations_InvocationResponseStatusV2 class InvocationsApiResponse(object): @@ -48,7 +48,7 @@ class InvocationsApiResponse(object): supports_multiple_types = False def __init__(self, status=None, result=None): - # type: (Optional[InvocationResponseStatusV2], Optional[InvocationResponseResultV2]) -> None + # type: (Optional[Invocations_InvocationResponseStatusV2], Optional[Invocations_InvocationResponseResultV2]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py index ce65870..df84dec 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/metrics.py b/ask-smapi-model/ask_smapi_model/v2/skill/metrics.py index b474c62..1dd6834 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/metrics.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/metrics.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py index 9f58f61..e624ea5 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.intent import IntentV2 - from ask_smapi_model.v2.skill.simulations.alexa_response import AlexaResponseV2 + from ask_smapi_model.v2.skill.simulations.alexa_response import AlexaResponse as Simulations_AlexaResponseV2 + from ask_smapi_model.v2.skill.simulations.intent import Intent as Simulations_IntentV2 class AlexaExecutionInfo(object): @@ -48,7 +48,7 @@ class AlexaExecutionInfo(object): supports_multiple_types = False def __init__(self, alexa_responses=None, considered_intents=None): - # type: (Optional[List[AlexaResponseV2]], Optional[List[IntentV2]]) -> None + # type: (Optional[List[Simulations_AlexaResponseV2]], Optional[List[Simulations_IntentV2]]) -> None """ :param alexa_responses: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py index 573494a..9fb283d 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.alexa_response_content import AlexaResponseContentV2 + from ask_smapi_model.v2.skill.simulations.alexa_response_content import AlexaResponseContent as Simulations_AlexaResponseContentV2 class AlexaResponse(object): @@ -47,7 +47,7 @@ class AlexaResponse(object): supports_multiple_types = False def __init__(self, object_type=None, content=None): - # type: (Optional[str], Optional[AlexaResponseContentV2]) -> None + # type: (Optional[str], Optional[Simulations_AlexaResponseContentV2]) -> None """ :param object_type: The type of Alexa response diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response_content.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response_content.py index ffae86e..5f4f79f 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response_content.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response_content.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/confirmation_status_type.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/confirmation_status_type.py index 034ee51..a6752a6 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/confirmation_status_type.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/confirmation_status_type.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class ConfirmationStatusType(Enum): DENIED = "DENIED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ConfirmationStatusType): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/device.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/device.py index 100e8fc..1f500a8 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/device.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/device.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/input.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/input.py index b0c0753..fd3d4c5 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/input.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/input.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py index 5b642df..b09172d 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.slot import SlotV2 - from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusTypeV2 + from ask_smapi_model.v2.skill.simulations.slot import Slot as Simulations_SlotV2 + from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as Simulations_ConfirmationStatusTypeV2 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[ConfirmationStatusTypeV2], Optional[Dict[str, SlotV2]]) -> None + # type: (Optional[str], Optional[Simulations_ConfirmationStatusTypeV2], Optional[Dict[str, Simulations_SlotV2]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py index 668f37f..b54f79a 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItemsV2 - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status import ResolutionsPerAuthorityStatusV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as Simulations_ResolutionsPerAuthorityValueItemsV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Simulations_ResolutionsPerAuthorityStatusV2 class ResolutionsPerAuthorityItems(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthorityItems(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[ResolutionsPerAuthorityStatusV2], Optional[List[ResolutionsPerAuthorityValueItemsV2]]) -> None + # type: (Optional[str], Optional[Simulations_ResolutionsPerAuthorityStatusV2], Optional[List[Simulations_ResolutionsPerAuthorityValueItemsV2]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py index 74fdf4a..c915d56 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCodeV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Simulations_ResolutionsPerAuthorityStatusCodeV2 class ResolutionsPerAuthorityStatus(object): @@ -45,7 +45,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[ResolutionsPerAuthorityStatusCodeV2]) -> None + # type: (Optional[Simulations_ResolutionsPerAuthorityStatusCodeV2]) -> None """An object representing the status of entity resolution for the slot. :param code: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status_code.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status_code.py index 4eb4398..08e06d2 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status_code.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status_code.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -39,7 +39,7 @@ class ResolutionsPerAuthorityStatusCode(Enum): ER_ERROR_EXCEPTION = "ER_ERROR_EXCEPTION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -55,7 +55,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, ResolutionsPerAuthorityStatusCode): return False @@ -63,6 +63,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_value_items.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_value_items.py index 4f37232..a5aa939 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_value_items.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_value_items.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py index 1f4e67e..e42934c 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.session_mode import SessionModeV2 + from ask_smapi_model.v2.skill.simulations.session_mode import SessionMode as Simulations_SessionModeV2 class Session(object): @@ -45,7 +45,7 @@ class Session(object): supports_multiple_types = False def __init__(self, mode=None): - # type: (Optional[SessionModeV2]) -> None + # type: (Optional[Simulations_SessionModeV2]) -> None """Session settings for running current simulation. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session_mode.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session_mode.py index 9c8d133..1e13124 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session_mode.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session_mode.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -37,7 +37,7 @@ class SessionMode(Enum): FORCE_NEW_SESSION = "FORCE_NEW_SESSION" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -53,7 +53,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SessionMode): return False @@ -61,6 +61,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py index cbca7a7..6ecf80e 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.error import ErrorV2 - from ask_smapi_model.v2.skill.simulations.skill_execution_info import SkillExecutionInfoV2 - from ask_smapi_model.v2.skill.simulations.alexa_execution_info import AlexaExecutionInfoV2 + from ask_smapi_model.v2.error import Error as V2_ErrorV2 + from ask_smapi_model.v2.skill.simulations.alexa_execution_info import AlexaExecutionInfo as Simulations_AlexaExecutionInfoV2 + from ask_smapi_model.v2.skill.simulations.skill_execution_info import SkillExecutionInfo as Simulations_SkillExecutionInfoV2 class SimulationResult(object): @@ -53,7 +53,7 @@ class SimulationResult(object): supports_multiple_types = False def __init__(self, alexa_execution_info=None, skill_execution_info=None, error=None): - # type: (Optional[AlexaExecutionInfoV2], Optional[SkillExecutionInfoV2], Optional[ErrorV2]) -> None + # type: (Optional[Simulations_AlexaExecutionInfoV2], Optional[Simulations_SkillExecutionInfoV2], Optional[V2_ErrorV2]) -> None """ :param alexa_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py index e19a3de..a040dd1 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py @@ -21,11 +21,11 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.device import DeviceV2 - from ask_smapi_model.v2.skill.simulations.input import InputV2 - from ask_smapi_model.v2.skill.simulations.session import SessionV2 + from ask_smapi_model.v2.skill.simulations.input import Input as Simulations_InputV2 + from ask_smapi_model.v2.skill.simulations.session import Session as Simulations_SessionV2 + from ask_smapi_model.v2.skill.simulations.device import Device as Simulations_DeviceV2 class SimulationsApiRequest(object): @@ -53,7 +53,7 @@ class SimulationsApiRequest(object): supports_multiple_types = False def __init__(self, input=None, device=None, session=None): - # type: (Optional[InputV2], Optional[DeviceV2], Optional[SessionV2]) -> None + # type: (Optional[Simulations_InputV2], Optional[Simulations_DeviceV2], Optional[Simulations_SessionV2]) -> None """ :param input: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py index e765cd2..a7cf61a 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatusV2 - from ask_smapi_model.v2.skill.simulations.simulation_result import SimulationResultV2 + from ask_smapi_model.v2.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as Simulations_SimulationsApiResponseStatusV2 + from ask_smapi_model.v2.skill.simulations.simulation_result import SimulationResult as Simulations_SimulationResultV2 class SimulationsApiResponse(object): @@ -52,7 +52,7 @@ class SimulationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[SimulationsApiResponseStatusV2], Optional[SimulationResultV2]) -> None + # type: (Optional[str], Optional[Simulations_SimulationsApiResponseStatusV2], Optional[Simulations_SimulationResultV2]) -> None """ :param id: Id of the simulation resource. diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response_status.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response_status.py index fadaf84..2ab1c69 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response_status.py @@ -21,7 +21,7 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime @@ -38,7 +38,7 @@ class SimulationsApiResponseStatus(Enum): FAILED = "FAILED" def to_dict(self): - # type: () -> Dict[str, object] + # type: () -> Dict[str, Any] """Returns the model properties as a dict""" result = {self.name: self.value} return result @@ -54,7 +54,7 @@ def __repr__(self): return self.to_str() def __eq__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are equal""" if not isinstance(other, SimulationsApiResponseStatus): return False @@ -62,6 +62,6 @@ def __eq__(self, other): return self.__dict__ == other.__dict__ def __ne__(self, other): - # type: (object) -> bool + # type: (Any) -> bool """Returns true if both objects are not equal""" return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py index 25a7f57..de9fe29 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation import InvocationV2 + from ask_smapi_model.v2.skill.invocation import Invocation as Skill_InvocationV2 class SkillExecutionInfo(object): @@ -43,7 +43,7 @@ class SkillExecutionInfo(object): supports_multiple_types = False def __init__(self, invocations=None): - # type: (Optional[List[InvocationV2]]) -> None + # type: (Optional[List[Skill_InvocationV2]]) -> None """ :param invocations: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py index a42092e..3130ea5 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py @@ -21,10 +21,10 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusTypeV2 - from ask_smapi_model.v2.skill.simulations.slot_resolutions import SlotResolutionsV2 + from ask_smapi_model.v2.skill.simulations.slot_resolutions import SlotResolutions as Simulations_SlotResolutionsV2 + from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as Simulations_ConfirmationStatusTypeV2 class Slot(object): @@ -56,7 +56,7 @@ class Slot(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[ConfirmationStatusTypeV2], Optional[SlotResolutionsV2]) -> None + # type: (Optional[str], Optional[str], Optional[Simulations_ConfirmationStatusTypeV2], Optional[Simulations_SlotResolutionsV2]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py index 6383716..06e70c5 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py @@ -21,9 +21,9 @@ if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union + from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_items import ResolutionsPerAuthorityItemsV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as Simulations_ResolutionsPerAuthorityItemsV2 class SlotResolutions(object): @@ -45,7 +45,7 @@ class SlotResolutions(object): supports_multiple_types = False def __init__(self, resolutions_per_authority=None): - # type: (Optional[List[ResolutionsPerAuthorityItemsV2]]) -> None + # type: (Optional[List[Simulations_ResolutionsPerAuthorityItemsV2]]) -> None """A resolutions object representing the results of resolving the words captured from the user's utterance. :param resolutions_per_authority: An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined. diff --git a/ask-smapi-model/setup.py b/ask-smapi-model/setup.py index f2d8a90..6066eae 100644 --- a/ask-smapi-model/setup.py +++ b/ask-smapi-model/setup.py @@ -19,7 +19,7 @@ here = os.path.abspath(os.path.dirname(__file__)) -about = {} +about = {} # type: ignore with open(os.path.join(here, 'ask_smapi_model', '__version__.py'), 'r', 'utf-8') as f: exec(f.read(), about) From 406f8a8329c777c0b0d97839b684ac37759403a2 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 30 Oct 2020 20:21:27 +0000 Subject: [PATCH 008/111] Release 1.29.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 7 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../authorization/authorization_grant_body.py | 4 +- .../authorization_grant_request.py | 4 +- .../ask_sdk_model/authorization/grant.py | 4 +- .../canfulfill/can_fulfill_intent.py | 6 +- .../canfulfill/can_fulfill_intent_request.py | 6 +- .../canfulfill/can_fulfill_slot.py | 6 +- .../ask_sdk_model/connection_completed.py | 4 +- ask-sdk-model/ask_sdk_model/context.py | 20 +-- ask-sdk-model/ask_sdk_model/device.py | 4 +- .../dialog/confirm_intent_directive.py | 4 +- .../dialog/confirm_slot_directive.py | 4 +- .../dialog/delegate_directive.py | 4 +- .../dialog/delegate_request_directive.py | 6 +- .../ask_sdk_model/dialog/delegation_period.py | 4 +- .../dialog/dynamic_entities_directive.py | 6 +- .../dialog/elicit_slot_directive.py | 4 +- ask-sdk-model/ask_sdk_model/dialog/input.py | 4 +- .../ask_sdk_model/dialog/input_request.py | 4 +- .../dialog/updated_input_request.py | 4 +- .../dialog/updated_intent_request.py | 4 +- .../ask_sdk_model/er/dynamic/entity.py | 4 +- .../er/dynamic/entity_list_item.py | 4 +- .../skillevents/account_linked_request.py | 4 +- .../permission_accepted_request.py | 4 +- .../events/skillevents/permission_body.py | 4 +- .../skillevents/permission_changed_request.py | 4 +- .../proactive_subscription_changed_body.py | 4 +- .../proactive_subscription_changed_request.py | 4 +- ask-sdk-model/ask_sdk_model/intent.py | 6 +- ask-sdk-model/ask_sdk_model/intent_request.py | 6 +- .../alexa/extension/extensions_state.py | 4 +- .../apl/alexa_presentation_apl_interface.py | 4 +- .../presentation/apl/animate_item_command.py | 6 +- .../apl/animated_transform_property.py | 4 +- .../apl/component_visible_on_screen.py | 8 +- .../component_visible_on_screen_media_tag.py | 6 +- ...ponent_visible_on_screen_scrollable_tag.py | 4 +- .../apl/component_visible_on_screen_tags.py | 14 +- .../presentation/apl/control_media_command.py | 4 +- .../apl/execute_commands_directive.py | 4 +- .../presentation/apl/list_runtime_error.py | 4 +- .../presentation/apl/open_url_command.py | 4 +- .../presentation/apl/parallel_command.py | 4 +- .../presentation/apl/play_media_command.py | 6 +- .../apl/rendered_document_state.py | 4 +- .../presentation/apl/runtime_error_event.py | 4 +- .../apl/scroll_to_index_command.py | 4 +- .../presentation/apl/sequential_command.py | 4 +- .../presentation/apl/set_page_command.py | 4 +- .../presentation/apl/set_state_command.py | 4 +- .../presentation/apl/speak_item_command.py | 6 +- .../presentation/apl/speak_list_command.py | 4 +- .../apl/update_index_list_data_directive.py | 4 +- .../alexa/presentation/apla/__init__.py | 10 ++ .../apla/audio_source_error_reason.py | 71 +++++++++ .../apla/audio_source_runtime_error.py | 120 ++++++++++++++ .../apla/document_error_reason.py | 66 ++++++++ .../apla/document_runtime_error.py | 120 ++++++++++++++ .../presentation/apla/link_error_reason.py | 67 ++++++++ .../presentation/apla/link_runtime_error.py | 120 ++++++++++++++ .../presentation/apla/render_error_reason.py | 66 ++++++++ .../presentation/apla/render_runtime_error.py | 120 ++++++++++++++ .../alexa/presentation/apla/runtime_error.py | 148 ++++++++++++++++++ .../presentation/apla/runtime_error_event.py | 139 ++++++++++++++++ .../aplt/alexa_presentation_aplt_interface.py | 4 +- .../aplt/execute_commands_directive.py | 4 +- .../presentation/aplt/parallel_command.py | 4 +- .../aplt/render_document_directive.py | 4 +- .../presentation/aplt/sequential_command.py | 4 +- .../presentation/aplt/set_page_command.py | 4 +- .../html/alexa_presentation_html_interface.py | 4 +- .../html/handle_message_directive.py | 4 +- .../alexa/presentation/html/runtime_error.py | 4 +- .../html/runtime_error_request.py | 4 +- .../presentation/html/start_directive.py | 8 +- .../alexa/presentation/html/start_request.py | 4 +- .../alexa/presentation/html/transformer.py | 4 +- .../model/request/authorize_attributes.py | 4 +- .../request/billing_agreement_attributes.py | 8 +- .../model/request/provider_attributes.py | 4 +- .../model/request/provider_credit.py | 4 +- .../model/response/authorization_details.py | 8 +- .../model/response/authorization_status.py | 4 +- .../response/billing_agreement_details.py | 10 +- .../model/v1/authorization_details.py | 6 +- .../model/v1/authorization_status.py | 4 +- .../model/v1/authorize_attributes.py | 4 +- .../model/v1/billing_agreement_attributes.py | 8 +- .../model/v1/billing_agreement_details.py | 8 +- .../amazonpay/model/v1/provider_attributes.py | 4 +- .../amazonpay/model/v1/provider_credit.py | 4 +- .../request/charge_amazon_pay_request.py | 10 +- .../request/setup_amazon_pay_request.py | 4 +- .../response/charge_amazon_pay_result.py | 4 +- .../response/setup_amazon_pay_result.py | 4 +- .../amazonpay/v1/charge_amazon_pay.py | 10 +- .../amazonpay/v1/charge_amazon_pay_result.py | 4 +- .../amazonpay/v1/setup_amazon_pay.py | 4 +- .../amazonpay/v1/setup_amazon_pay_result.py | 4 +- .../interfaces/audioplayer/audio_item.py | 6 +- .../audioplayer/audio_item_metadata.py | 4 +- .../audioplayer/audio_player_state.py | 4 +- .../interfaces/audioplayer/caption_data.py | 4 +- .../audioplayer/clear_queue_directive.py | 4 +- .../audioplayer/current_playback_state.py | 4 +- .../interfaces/audioplayer/error.py | 4 +- .../interfaces/audioplayer/play_directive.py | 6 +- .../audioplayer/playback_failed_request.py | 6 +- .../interfaces/audioplayer/stream.py | 4 +- .../connections/connections_response.py | 4 +- .../connections/entities/restaurant.py | 4 +- ..._food_establishment_reservation_request.py | 4 +- .../schedule_taxi_reservation_request.py | 4 +- .../connections/send_response_directive.py | 4 +- .../v1/start_connection_directive.py | 4 +- .../conversations/api_invocation_request.py | 4 +- .../interfaces/conversations/api_request.py | 4 +- .../custom_interface_controller/event.py | 6 +- .../event_filter.py | 4 +- .../events_received_request.py | 4 +- .../send_directive_directive.py | 6 +- .../start_event_handler_directive.py | 6 +- .../interfaces/display/body_template1.py | 8 +- .../interfaces/display/body_template2.py | 8 +- .../interfaces/display/body_template3.py | 8 +- .../interfaces/display/body_template6.py | 8 +- .../interfaces/display/body_template7.py | 6 +- .../interfaces/display/hint_directive.py | 4 +- .../ask_sdk_model/interfaces/display/image.py | 4 +- .../interfaces/display/image_instance.py | 4 +- .../interfaces/display/list_item.py | 6 +- .../interfaces/display/list_template1.py | 8 +- .../interfaces/display/list_template2.py | 8 +- .../display/render_template_directive.py | 4 +- .../interfaces/display/template.py | 4 +- .../interfaces/display/text_content.py | 4 +- .../gadget_controller/set_light_directive.py | 4 +- .../input_handler_event_request.py | 4 +- .../start_input_handler_directive.py | 6 +- .../geolocation/geolocation_state.py | 12 +- .../geolocation/location_services.py | 6 +- .../ask_sdk_model/interfaces/system/error.py | 4 +- .../system/exception_encountered_request.py | 6 +- .../interfaces/system/system_state.py | 12 +- .../tasks/complete_task_directive.py | 4 +- .../interfaces/videoapp/launch_directive.py | 4 +- .../interfaces/videoapp/video_item.py | 4 +- .../viewport/apl/current_configuration.py | 10 +- .../viewport/apl/viewport_configuration.py | 4 +- .../interfaces/viewport/apl_viewport_state.py | 8 +- .../viewport/aplt_viewport_state.py | 8 +- .../interfaces/viewport/viewport_state.py | 14 +- .../viewport/viewport_state_video.py | 4 +- .../interfaces/viewport/viewport_video.py | 4 +- ask-sdk-model/ask_sdk_model/launch_request.py | 4 +- .../ask_sdk_model/list_slot_value.py | 4 +- ask-sdk-model/ask_sdk_model/permissions.py | 4 +- ask-sdk-model/ask_sdk_model/request.py | 7 +- .../ask_sdk_model/request_envelope.py | 8 +- ask-sdk-model/ask_sdk_model/response.py | 12 +- .../ask_sdk_model/response_envelope.py | 4 +- ask-sdk-model/ask_sdk_model/scope.py | 4 +- .../device_address_service_client.py | 14 +- .../directive/directive_service_client.py | 8 +- .../directive/send_directive_request.py | 6 +- .../endpoint_enumeration_response.py | 4 +- .../endpoint_enumeration_service_client.py | 8 +- .../endpoint_enumeration/endpoint_info.py | 4 +- .../gadget_controller/light_animation.py | 4 +- .../gadget_controller/set_light_parameters.py | 6 +- .../services/game_engine/event.py | 4 +- .../services/game_engine/input_event.py | 4 +- .../game_engine/input_handler_event.py | 4 +- .../services/game_engine/pattern.py | 4 +- .../game_engine/pattern_recognizer.py | 6 +- .../services/list_management/alexa_list.py | 8 +- .../list_management/alexa_list_item.py | 4 +- .../list_management/alexa_list_metadata.py | 6 +- .../list_management/alexa_lists_metadata.py | 4 +- .../create_list_item_request.py | 4 +- .../list_management/create_list_request.py | 4 +- .../list_created_event_request.py | 4 +- .../list_deleted_event_request.py | 4 +- .../list_items_created_event_request.py | 4 +- .../list_items_deleted_event_request.py | 4 +- .../list_items_updated_event_request.py | 4 +- .../list_management_service_client.py | 56 +++---- .../list_updated_event_request.py | 4 +- .../services/list_management/status.py | 4 +- .../update_list_item_request.py | 4 +- .../list_management/update_list_request.py | 4 +- .../services/monetization/in_skill_product.py | 12 +- .../in_skill_product_transactions_response.py | 6 +- .../in_skill_products_response.py | 4 +- .../services/monetization/metadata.py | 4 +- .../monetization_service_client.py | 24 +-- .../services/monetization/transactions.py | 4 +- .../create_proactive_event_request.py | 6 +- .../proactive_events_service_client.py | 8 +- .../proactive_events/relevant_audience.py | 4 +- .../reminder_management/alert_info.py | 4 +- .../alert_info_spoken_info.py | 4 +- .../services/reminder_management/event.py | 4 +- .../get_reminder_response.py | 10 +- .../get_reminders_response.py | 4 +- .../reminder_management/push_notification.py | 4 +- .../reminder_management/recurrence.py | 6 +- .../services/reminder_management/reminder.py | 10 +- .../reminder_created_event_request.py | 4 +- .../reminder_deleted_event_request.py | 4 +- .../reminder_management_service_client.py | 30 ++-- .../reminder_management/reminder_request.py | 8 +- .../reminder_management/reminder_response.py | 4 +- .../reminder_started_event_request.py | 4 +- .../reminder_status_changed_event_request.py | 4 +- .../reminder_updated_event_request.py | 4 +- .../services/reminder_management/trigger.py | 6 +- .../skill_messaging_service_client.py | 8 +- .../timer_management/announce_operation.py | 4 +- .../timer_management/creation_behavior.py | 4 +- .../timer_management/display_experience.py | 4 +- .../timer_management/launch_task_operation.py | 6 +- .../timer_management_service_client.py | 36 ++--- .../timer_management/timer_request.py | 6 +- .../timer_management/timer_response.py | 4 +- .../timer_management/timers_response.py | 4 +- .../timer_management/triggering_behavior.py | 6 +- .../ask_sdk_model/services/ups/error.py | 4 +- .../services/ups/ups_service_client.py | 48 +++--- ask-sdk-model/ask_sdk_model/session.py | 6 +- .../ask_sdk_model/session_ended_error.py | 4 +- .../ask_sdk_model/session_ended_request.py | 6 +- .../ask_sdk_model/session_resumed_request.py | 4 +- .../ask_sdk_model/simple_slot_value.py | 4 +- ask-sdk-model/ask_sdk_model/slot.py | 8 +- .../slu/entityresolution/resolution.py | 6 +- .../slu/entityresolution/resolutions.py | 4 +- .../slu/entityresolution/status.py | 4 +- .../slu/entityresolution/value_wrapper.py | 4 +- .../ask_sdk_model/supported_interfaces.py | 18 +-- .../ask_sdk_model/ui/output_speech.py | 4 +- .../ui/plain_text_output_speech.py | 4 +- ask-sdk-model/ask_sdk_model/ui/reprompt.py | 4 +- .../ask_sdk_model/ui/ssml_output_speech.py | 4 +- .../ask_sdk_model/ui/standard_card.py | 4 +- ask-sdk-model/ask_sdk_model/user.py | 4 +- 248 files changed, 1760 insertions(+), 703 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_error_reason.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_runtime_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_error_reason.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_runtime_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_error_reason.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_runtime_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_error_reason.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_runtime_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error_event.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index bec486c..53576e5 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -364,3 +364,10 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions + + +1.29.0 +~~~~~~ + +This release contains the following changes : +- APL for Audio now sends RuntimeError requests that notify developer of any errors that happened during APLA processing. diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3eb3eef..d2cde3e 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.28.1' +__version__ = '1.29.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py index 5738abb..97d795d 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_body.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.authorization.grant import Grant + from ask_sdk_model.authorization.grant import Grant as Grant_b5a32265 class AuthorizationGrantBody(object): @@ -45,7 +45,7 @@ class AuthorizationGrantBody(object): supports_multiple_types = False def __init__(self, grant=None): - # type: (Optional[Grant]) -> None + # type: (Optional[Grant_b5a32265]) -> None """Authorization grant body. :param grant: diff --git a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py index 45be1b9..903d7ca 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py +++ b/ask-sdk-model/ask_sdk_model/authorization/authorization_grant_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.authorization.authorization_grant_body import AuthorizationGrantBody + from ask_sdk_model.authorization.authorization_grant_body import AuthorizationGrantBody as AuthorizationGrantBody_afdf2aa3 class AuthorizationGrantRequest(Request): @@ -60,7 +60,7 @@ class AuthorizationGrantRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[AuthorizationGrantBody]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[AuthorizationGrantBody_afdf2aa3]) -> None """Represents an authorization code delivered to a skill that has out-of-session permissions without requiring account linking. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/authorization/grant.py b/ask-sdk-model/ask_sdk_model/authorization/grant.py index 26198fa..d3a0429 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/grant.py +++ b/ask-sdk-model/ask_sdk_model/authorization/grant.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.authorization.grant_type import GrantType + from ask_sdk_model.authorization.grant_type import GrantType as GrantType_1a5423ca class Grant(object): @@ -49,7 +49,7 @@ class Grant(object): supports_multiple_types = False def __init__(self, object_type=None, code=None): - # type: (Optional[GrantType], Optional[str]) -> None + # type: (Optional[GrantType_1a5423ca], Optional[str]) -> None """Information that identifies a user in Amazon Alexa systems. :param object_type: Type of the grant. diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py index 57c76a8..63c8132 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.canfulfill.can_fulfill_intent_values import CanFulfillIntentValues - from ask_sdk_model.canfulfill.can_fulfill_slot import CanFulfillSlot + from ask_sdk_model.canfulfill.can_fulfill_intent_values import CanFulfillIntentValues as CanFulfillIntentValues_912ef433 + from ask_sdk_model.canfulfill.can_fulfill_slot import CanFulfillSlot as CanFulfillSlot_d32230a2 class CanFulfillIntent(object): @@ -50,7 +50,7 @@ class CanFulfillIntent(object): supports_multiple_types = False def __init__(self, can_fulfill=None, slots=None): - # type: (Optional[CanFulfillIntentValues], Optional[Dict[str, CanFulfillSlot]]) -> None + # type: (Optional[CanFulfillIntentValues_912ef433], Optional[Dict[str, CanFulfillSlot_d32230a2]]) -> None """CanFulfillIntent represents the response to canFulfillIntentRequest includes the details about whether the skill can understand and fulfill the intent request with detected slots. :param can_fulfill: diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py index 7d14625..20f25c6 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_intent_request.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog_state import DialogState - from ask_sdk_model.intent import Intent + from ask_sdk_model.dialog_state import DialogState as DialogState_2ba20645 + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class CanFulfillIntentRequest(Request): @@ -65,7 +65,7 @@ class CanFulfillIntentRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, dialog_state=None, intent=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[DialogState], Optional[Intent]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[DialogState_2ba20645], Optional[Intent_fd0ef0fe]) -> None """An object that represents a request made to skill to query whether the skill can understand and fulfill the intent request with detected slots, before actually asking the skill to take action. Skill should be aware this is not to actually take action, skill should handle this request without causing side-effect, skill should not modify some state outside its scope or has an observable interaction with its calling functions or the outside world besides returning a value, such as playing sound,turning on/off lights, committing a transaction or a charge. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py index 7033839..99fb451 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/can_fulfill_slot.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.canfulfill.can_fulfill_slot_values import CanFulfillSlotValues - from ask_sdk_model.canfulfill.can_understand_slot_values import CanUnderstandSlotValues + from ask_sdk_model.canfulfill.can_fulfill_slot_values import CanFulfillSlotValues as CanFulfillSlotValues_5e21cab7 + from ask_sdk_model.canfulfill.can_understand_slot_values import CanUnderstandSlotValues as CanUnderstandSlotValues_83ff9bff class CanFulfillSlot(object): @@ -50,7 +50,7 @@ class CanFulfillSlot(object): supports_multiple_types = False def __init__(self, can_understand=None, can_fulfill=None): - # type: (Optional[CanUnderstandSlotValues], Optional[CanFulfillSlotValues]) -> None + # type: (Optional[CanUnderstandSlotValues_83ff9bff], Optional[CanFulfillSlotValues_5e21cab7]) -> None """This represents skill's capability to understand and fulfill each detected slot. :param can_understand: diff --git a/ask-sdk-model/ask_sdk_model/connection_completed.py b/ask-sdk-model/ask_sdk_model/connection_completed.py index f5cde4d..7b81664 100644 --- a/ask-sdk-model/ask_sdk_model/connection_completed.py +++ b/ask-sdk-model/ask_sdk_model/connection_completed.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.status import Status + from ask_sdk_model.status import Status as Status_7705e43e class ConnectionCompleted(Cause): @@ -56,7 +56,7 @@ class ConnectionCompleted(Cause): supports_multiple_types = False def __init__(self, token=None, status=None, result=None): - # type: (Optional[str], Optional[Status], Optional[object]) -> None + # type: (Optional[str], Optional[Status_7705e43e], Optional[object]) -> None """Represents the status and result needed to resume a skill's suspended session. :param token: This is an echo back string that skills send when during Connections.StartConnection directive. They will receive it when they get the SessionResumedRequest. It is never sent to the skill handling the request. diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index d027eaf..b6ee8a8 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -23,15 +23,15 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state import RenderedDocumentState - from ask_sdk_model.interfaces.system.system_state import SystemState - from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState - from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState - from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState - from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState - from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState - from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState - from ask_sdk_model.interfaces.display.display_state import DisplayState + from ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state import RenderedDocumentState as RenderedDocumentState_4fad8b14 + from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState as ViewportState_a05eceb9 + from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState as TypedViewportState_c366f13e + from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451 + from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState as AutomotiveState_2b614eea + from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState as ExtensionsState_f02207d3 + from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d + from ask_sdk_model.interfaces.system.system_state import SystemState as SystemState_22fcb230 + from ask_sdk_model.interfaces.display.display_state import DisplayState as DisplayState_726e4959 class Context(object): @@ -83,7 +83,7 @@ class Context(object): supports_multiple_types = False def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None): - # type: (Optional[SystemState], Optional[RenderedDocumentState], Optional[AudioPlayerState], Optional[AutomotiveState], Optional[DisplayState], Optional[GeolocationState], Optional[ViewportState], Optional[List[TypedViewportState]], Optional[ExtensionsState]) -> None + # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. diff --git a/ask-sdk-model/ask_sdk_model/device.py b/ask-sdk-model/ask_sdk_model/device.py index 588a1e1..94e7bc9 100644 --- a/ask-sdk-model/ask_sdk_model/device.py +++ b/ask-sdk-model/ask_sdk_model/device.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.supported_interfaces import SupportedInterfaces + from ask_sdk_model.supported_interfaces import SupportedInterfaces as SupportedInterfaces_8ec830f5 class Device(object): @@ -49,7 +49,7 @@ class Device(object): supports_multiple_types = False def __init__(self, device_id=None, supported_interfaces=None): - # type: (Optional[str], Optional[SupportedInterfaces]) -> None + # type: (Optional[str], Optional[SupportedInterfaces_8ec830f5]) -> None """An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. :param device_id: The deviceId property uniquely identifies the device. diff --git a/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py b/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py index 25402c5..f22b132 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/confirm_intent_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent import Intent + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class ConfirmIntentDirective(Directive): @@ -46,7 +46,7 @@ class ConfirmIntentDirective(Directive): supports_multiple_types = False def __init__(self, updated_intent=None): - # type: (Optional[Intent]) -> None + # type: (Optional[Intent_fd0ef0fe]) -> None """ :param updated_intent: diff --git a/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py b/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py index 0437c48..eedf656 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/confirm_slot_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent import Intent + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class ConfirmSlotDirective(Directive): @@ -50,7 +50,7 @@ class ConfirmSlotDirective(Directive): supports_multiple_types = False def __init__(self, updated_intent=None, slot_to_confirm=None): - # type: (Optional[Intent], Optional[str]) -> None + # type: (Optional[Intent_fd0ef0fe], Optional[str]) -> None """ :param updated_intent: diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py b/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py index 00a3dcb..7b68f4c 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent import Intent + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class DelegateDirective(Directive): @@ -46,7 +46,7 @@ class DelegateDirective(Directive): supports_multiple_types = False def __init__(self, updated_intent=None): - # type: (Optional[Intent]) -> None + # type: (Optional[Intent_fd0ef0fe]) -> None """ :param updated_intent: diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py b/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py index fdf8266..d26c77d 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegate_request_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog.delegation_period import DelegationPeriod - from ask_sdk_model.dialog.updated_request import UpdatedRequest + from ask_sdk_model.dialog.delegation_period import DelegationPeriod as DelegationPeriod_79d528b5 + from ask_sdk_model.dialog.updated_request import UpdatedRequest as UpdatedRequest_cb727acd class DelegateRequestDirective(Directive): @@ -55,7 +55,7 @@ class DelegateRequestDirective(Directive): supports_multiple_types = False def __init__(self, target=None, period=None, updated_request=None): - # type: (Optional[str], Optional[DelegationPeriod], Optional[UpdatedRequest]) -> None + # type: (Optional[str], Optional[DelegationPeriod_79d528b5], Optional[UpdatedRequest_cb727acd]) -> None """ :param target: The delegation target. diff --git a/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py b/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py index 3e87f9f..c042956 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegation_period.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog.delegation_period_until import DelegationPeriodUntil + from ask_sdk_model.dialog.delegation_period_until import DelegationPeriodUntil as DelegationPeriodUntil_20703f48 class DelegationPeriod(object): @@ -45,7 +45,7 @@ class DelegationPeriod(object): supports_multiple_types = False def __init__(self, until=None): - # type: (Optional[DelegationPeriodUntil]) -> None + # type: (Optional[DelegationPeriodUntil_20703f48]) -> None """The delegation period. :param until: diff --git a/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py b/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py index 56fd605..32032d7 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/dynamic_entities_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.er.dynamic.update_behavior import UpdateBehavior - from ask_sdk_model.er.dynamic.entity_list_item import EntityListItem + from ask_sdk_model.er.dynamic.update_behavior import UpdateBehavior as UpdateBehavior_3fa306a1 + from ask_sdk_model.er.dynamic.entity_list_item import EntityListItem as EntityListItem_51f574a class DynamicEntitiesDirective(Directive): @@ -51,7 +51,7 @@ class DynamicEntitiesDirective(Directive): supports_multiple_types = False def __init__(self, update_behavior=None, types=None): - # type: (Optional[UpdateBehavior], Optional[List[EntityListItem]]) -> None + # type: (Optional[UpdateBehavior_3fa306a1], Optional[List[EntityListItem_51f574a]]) -> None """ :param update_behavior: diff --git a/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py b/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py index 072b060..a6cf5ab 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/elicit_slot_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent import Intent + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class ElicitSlotDirective(Directive): @@ -50,7 +50,7 @@ class ElicitSlotDirective(Directive): supports_multiple_types = False def __init__(self, updated_intent=None, slot_to_elicit=None): - # type: (Optional[Intent], Optional[str]) -> None + # type: (Optional[Intent_fd0ef0fe], Optional[str]) -> None """ :param updated_intent: diff --git a/ask-sdk-model/ask_sdk_model/dialog/input.py b/ask-sdk-model/ask_sdk_model/dialog/input.py index 7e1ece2..c24dec5 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/input.py +++ b/ask-sdk-model/ask_sdk_model/dialog/input.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slot import Slot + from ask_sdk_model.slot import Slot as Slot_9e3ddabe class Input(object): @@ -49,7 +49,7 @@ class Input(object): supports_multiple_types = False def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, Slot]]) -> None + # type: (Optional[str], Optional[Dict[str, Slot_9e3ddabe]]) -> None """Structured input data to send to a dialog manager. Currently, this is an Alexa Conversations input instance. :param name: The Alexa Conversations input name as dictated in the Conversations model. diff --git a/ask-sdk-model/ask_sdk_model/dialog/input_request.py b/ask-sdk-model/ask_sdk_model/dialog/input_request.py index d165dde..ce25b7e 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/input_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/input_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog.input import Input + from ask_sdk_model.dialog.input import Input as Input_de301c30 class InputRequest(Request): @@ -60,7 +60,7 @@ class InputRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, input=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Input]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Input_de301c30]) -> None """A request representing structured data used to provide dialog input to a dialog manager. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py b/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py index 1f3b211..d5cdb76 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/updated_input_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog.input import Input + from ask_sdk_model.dialog.input import Input as Input_de301c30 class UpdatedInputRequest(UpdatedRequest): @@ -46,7 +46,7 @@ class UpdatedInputRequest(UpdatedRequest): supports_multiple_types = False def __init__(self, input=None): - # type: (Optional[Input]) -> None + # type: (Optional[Input_de301c30]) -> None """ :param input: diff --git a/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py b/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py index ff7fbf7..5b04345 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py +++ b/ask-sdk-model/ask_sdk_model/dialog/updated_intent_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent import Intent + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class UpdatedIntentRequest(UpdatedRequest): @@ -46,7 +46,7 @@ class UpdatedIntentRequest(UpdatedRequest): supports_multiple_types = False def __init__(self, intent=None): - # type: (Optional[Intent]) -> None + # type: (Optional[Intent_fd0ef0fe]) -> None """ :param intent: diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py b/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py index 544e43a..7ee6abb 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/entity.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.er.dynamic.entity_value_and_synonyms import EntityValueAndSynonyms + from ask_sdk_model.er.dynamic.entity_value_and_synonyms import EntityValueAndSynonyms as EntityValueAndSynonyms_3f32dca5 class Entity(object): @@ -49,7 +49,7 @@ class Entity(object): supports_multiple_types = False def __init__(self, id=None, name=None): - # type: (Optional[str], Optional[EntityValueAndSynonyms]) -> None + # type: (Optional[str], Optional[EntityValueAndSynonyms_3f32dca5]) -> None """Represents an entity that the skill wants to store. An entity has an optional Id and the value and the synonyms for the entity :param id: An unique id associated with the entity diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py index e42dcf2..36e9b6f 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/entity_list_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.er.dynamic.entity import Entity + from ask_sdk_model.er.dynamic.entity import Entity as Entity_9ab80dce class EntityListItem(object): @@ -49,7 +49,7 @@ class EntityListItem(object): supports_multiple_types = False def __init__(self, name=None, values=None): - # type: (Optional[str], Optional[List[Entity]]) -> None + # type: (Optional[str], Optional[List[Entity_9ab80dce]]) -> None """Represents an array of entities of a particular type. :param name: The entity type. Must match the slot type as defined in the interaction model. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py index 5c9cd44..26bb4d5 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.account_linked_body import AccountLinkedBody + from ask_sdk_model.events.skillevents.account_linked_body import AccountLinkedBody as AccountLinkedBody_34990fc7 class AccountLinkedRequest(Request): @@ -68,7 +68,7 @@ class AccountLinkedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[AccountLinkedBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[AccountLinkedBody_34990fc7], Optional[datetime], Optional[datetime]) -> None """This event indicates that a customer has linked an account in a third-party application with the Alexa app. This event is useful for an application that support out-of-session (non-voice) user interactions so that this application can be notified when the internal customer can be associated with the Alexa customer. This event is required for many applications that synchronize customer Alexa lists with application lists. During the account linking process, the Alexa app directs the user to the skill website where the customer logs in. When the customer logs in, the skill then provides an access token and a consent token to Alexa. The event includes the same access token and consent token. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py index d62ee4a..e5f6b9c 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.permission_body import PermissionBody + from ask_sdk_model.events.skillevents.permission_body import PermissionBody as PermissionBody_5f8355f6 class PermissionAcceptedRequest(Request): @@ -66,7 +66,7 @@ class PermissionAcceptedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody_5f8355f6], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py index 52fe679..ed71fa9 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_body.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.permission import Permission + from ask_sdk_model.events.skillevents.permission import Permission as Permission_38016ee5 class PermissionBody(object): @@ -47,7 +47,7 @@ class PermissionBody(object): supports_multiple_types = False def __init__(self, accepted_permissions=None, accepted_person_permissions=None): - # type: (Optional[List[Permission]], Optional[List[Permission]]) -> None + # type: (Optional[List[Permission_38016ee5]], Optional[List[Permission_38016ee5]]) -> None """ :param accepted_permissions: The current list of permissions consented to on the account level. It can be an empty list if there are no account level permissions consented to. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py index 8efe885..d428cd7 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.permission_body import PermissionBody + from ask_sdk_model.events.skillevents.permission_body import PermissionBody as PermissionBody_5f8355f6 class PermissionChangedRequest(Request): @@ -66,7 +66,7 @@ class PermissionChangedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody_5f8355f6], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py index f04d5f8..a2ae522 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.proactive_subscription_event import ProactiveSubscriptionEvent + from ask_sdk_model.events.skillevents.proactive_subscription_event import ProactiveSubscriptionEvent as ProactiveSubscriptionEvent_a4c7910b class ProactiveSubscriptionChangedBody(object): @@ -43,7 +43,7 @@ class ProactiveSubscriptionChangedBody(object): supports_multiple_types = False def __init__(self, subscriptions=None): - # type: (Optional[List[ProactiveSubscriptionEvent]]) -> None + # type: (Optional[List[ProactiveSubscriptionEvent_a4c7910b]]) -> None """ :param subscriptions: The list of events that this customer is currently subscribed to. If a customer unsubscribes from an event, this list will contain remaining event types to which the customer is still subscribed to receive from your skill. If the list of subscriptions is empty, this customer has unsubscribed from all event types from your skill. diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py index 7c9b9c3..a9d1ee2 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.events.skillevents.proactive_subscription_changed_body import ProactiveSubscriptionChangedBody + from ask_sdk_model.events.skillevents.proactive_subscription_changed_body import ProactiveSubscriptionChangedBody as ProactiveSubscriptionChangedBody_5642f11a class ProactiveSubscriptionChangedRequest(Request): @@ -60,7 +60,7 @@ class ProactiveSubscriptionChangedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ProactiveSubscriptionChangedBody]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ProactiveSubscriptionChangedBody_5642f11a]) -> None """This event indicates a customer subscription to receive events from your skill and contains information for that user and person, if recognized. You need this information to know the userId and personId in order to send events to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest subscription state for a customer. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/intent.py b/ask-sdk-model/ask_sdk_model/intent.py index 2b25549..299e64f 100644 --- a/ask-sdk-model/ask_sdk_model/intent.py +++ b/ask-sdk-model/ask_sdk_model/intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.intent_confirmation_status import IntentConfirmationStatus - from ask_sdk_model.slot import Slot + from ask_sdk_model.intent_confirmation_status import IntentConfirmationStatus as IntentConfirmationStatus_89f2a248 + from ask_sdk_model.slot import Slot as Slot_9e3ddabe class Intent(object): @@ -54,7 +54,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, slots=None, confirmation_status=None): - # type: (Optional[str], Optional[Dict[str, Slot]], Optional[IntentConfirmationStatus]) -> None + # type: (Optional[str], Optional[Dict[str, Slot_9e3ddabe]], Optional[IntentConfirmationStatus_89f2a248]) -> None """An object that represents what the user wants. :param name: A string representing the name of the intent. diff --git a/ask-sdk-model/ask_sdk_model/intent_request.py b/ask-sdk-model/ask_sdk_model/intent_request.py index d5ec572..1c9a9d8 100644 --- a/ask-sdk-model/ask_sdk_model/intent_request.py +++ b/ask-sdk-model/ask_sdk_model/intent_request.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.dialog_state import DialogState - from ask_sdk_model.intent import Intent + from ask_sdk_model.dialog_state import DialogState as DialogState_2ba20645 + from ask_sdk_model.intent import Intent as Intent_fd0ef0fe class IntentRequest(Request): @@ -65,7 +65,7 @@ class IntentRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, dialog_state=None, intent=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[DialogState], Optional[Intent]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[DialogState_2ba20645], Optional[Intent_fd0ef0fe]) -> None """An IntentRequest is an object that represents a request made to a skill based on what the user wants to do. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py index 0ce2f6b..7c1e64a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/extensions_state.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.extension.available_extension import AvailableExtension + from ask_sdk_model.interfaces.alexa.extension.available_extension import AvailableExtension as AvailableExtension_67e7ad39 class ExtensionsState(object): @@ -43,7 +43,7 @@ class ExtensionsState(object): supports_multiple_types = False def __init__(self, available=None): - # type: (Optional[Dict[str, AvailableExtension]]) -> None + # type: (Optional[Dict[str, AvailableExtension_67e7ad39]]) -> None """ :param available: A map from extension URI to extension object where the object space is reserved for providing authorization information or other such data in the future. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py index cd0177f..6b2ad40 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/alexa_presentation_apl_interface.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.runtime import Runtime + from ask_sdk_model.interfaces.alexa.presentation.apl.runtime import Runtime as Runtime_dab8fc4c class AlexaPresentationAplInterface(object): @@ -43,7 +43,7 @@ class AlexaPresentationAplInterface(object): supports_multiple_types = False def __init__(self, runtime=None): - # type: (Optional[Runtime]) -> None + # type: (Optional[Runtime_dab8fc4c]) -> None """ :param runtime: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py index d4bab8d..df9d4d6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.animated_property import AnimatedProperty - from ask_sdk_model.interfaces.alexa.presentation.apl.animate_item_repeat_mode import AnimateItemRepeatMode + from ask_sdk_model.interfaces.alexa.presentation.apl.animated_property import AnimatedProperty as AnimatedProperty_b438632b + from ask_sdk_model.interfaces.alexa.presentation.apl.animate_item_repeat_mode import AnimateItemRepeatMode as AnimateItemRepeatMode_22d93893 class AnimateItemCommand(Command): @@ -81,7 +81,7 @@ class AnimateItemCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, component_id=None, duration=None, easing='linear', repeat_count=None, repeat_mode=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Optional[str], Union[int, str, None], Optional[AnimateItemRepeatMode], Optional[List[AnimatedProperty]]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Optional[str], Union[int, str, None], Optional[AnimateItemRepeatMode_22d93893], Optional[List[AnimatedProperty_b438632b]]) -> None """Runs a fixed-duration animation sequence on one or more properties of a single component. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py index 8d46c09..74fb609 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animated_transform_property.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.transform_property import TransformProperty + from ask_sdk_model.interfaces.alexa.presentation.apl.transform_property import TransformProperty as TransformProperty_5119bfb1 class AnimatedTransformProperty(AnimatedProperty): @@ -50,7 +50,7 @@ class AnimatedTransformProperty(AnimatedProperty): supports_multiple_types = False def __init__(self, object_from=None, to=None): - # type: (Optional[List[TransformProperty]], Optional[List[TransformProperty]]) -> None + # type: (Optional[List[TransformProperty_5119bfb1]], Optional[List[TransformProperty_5119bfb1]]) -> None """ :param object_from: The starting value of the property. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py index 9519066..3c1a0c4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen - from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_tags import ComponentVisibleOnScreenTags + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen as ComponentVisibleOnScreen_c94bf507 + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_tags import ComponentVisibleOnScreenTags as ComponentVisibleOnScreenTags_2ad43cf6 + from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity as ComponentEntity_262ae12d class ComponentVisibleOnScreen(object): @@ -79,7 +79,7 @@ class ComponentVisibleOnScreen(object): supports_multiple_types = False def __init__(self, children=None, entities=None, id=None, position=None, tags=None, transform=None, object_type=None, uid=None, visibility=None): - # type: (Optional[List[ComponentVisibleOnScreen]], Optional[List[ComponentEntity]], Optional[str], Optional[str], Optional[ComponentVisibleOnScreenTags], Optional[List[object]], Optional[str], Optional[str], Optional[float]) -> None + # type: (Optional[List[ComponentVisibleOnScreen_c94bf507]], Optional[List[ComponentEntity_262ae12d]], Optional[str], Optional[str], Optional[ComponentVisibleOnScreenTags_2ad43cf6], Optional[List[object]], Optional[str], Optional[str], Optional[float]) -> None """Definition of a visible APL element shown on screen. :param children: All child elements of the displayed element. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py index 92b31ff..d2328db 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum as ComponentVisibleOnScreenMediaTagStateEnum_669eb6d5 + from ask_sdk_model.interfaces.alexa.presentation.apl.component_entity import ComponentEntity as ComponentEntity_262ae12d class ComponentVisibleOnScreenMediaTag(object): @@ -74,7 +74,7 @@ class ComponentVisibleOnScreenMediaTag(object): supports_multiple_types = False def __init__(self, position_in_milliseconds=None, state=None, allow_adjust_seek_position_forward=None, allow_adjust_seek_position_backwards=None, allow_next=None, allow_previous=None, entities=None, url=None): - # type: (Optional[int], Optional[ComponentVisibleOnScreenMediaTagStateEnum], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[List[ComponentEntity]], Optional[str]) -> None + # type: (Optional[int], Optional[ComponentVisibleOnScreenMediaTagStateEnum_669eb6d5], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[List[ComponentEntity_262ae12d]], Optional[str]) -> None """Media player :param position_in_milliseconds: Current position of the play head from the start of the track. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py index 0cdd2cc..ddb1573 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_scrollable_tag.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum as ComponentVisibleOnScreenScrollableTagDirectionEnum_7f54ff15 class ComponentVisibleOnScreenScrollableTag(object): @@ -53,7 +53,7 @@ class ComponentVisibleOnScreenScrollableTag(object): supports_multiple_types = False def __init__(self, direction=None, allow_forward=None, allow_backward=None): - # type: (Optional[ComponentVisibleOnScreenScrollableTagDirectionEnum], Optional[bool], Optional[bool]) -> None + # type: (Optional[ComponentVisibleOnScreenScrollableTagDirectionEnum_7f54ff15], Optional[bool], Optional[bool]) -> None """A scrollable region. :param direction: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py index 008f064..ef220ec 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_tags.py @@ -23,12 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag as ComponentVisibleOnScreenViewportTag_fe01bdff + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag as ComponentVisibleOnScreenMediaTag_21044cbd + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag as ComponentVisibleOnScreenPagerTag_c57e1bff + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag as ComponentVisibleOnScreenListItemTag_9ab82632 + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag as ComponentVisibleOnScreenScrollableTag_29ddcc5f + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag as ComponentVisibleOnScreenListTag_7f7ef87f class ComponentVisibleOnScreenTags(object): @@ -94,7 +94,7 @@ class ComponentVisibleOnScreenTags(object): supports_multiple_types = False def __init__(self, checked=None, clickable=None, disabled=None, focused=None, list=None, list_item=None, media=None, ordinal=None, pager=None, scrollable=None, spoken=None, viewport=None): - # type: (Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[ComponentVisibleOnScreenListTag], Optional[ComponentVisibleOnScreenListItemTag], Optional[ComponentVisibleOnScreenMediaTag], Optional[int], Optional[ComponentVisibleOnScreenPagerTag], Optional[ComponentVisibleOnScreenScrollableTag], Optional[bool], Optional[ComponentVisibleOnScreenViewportTag]) -> None + # type: (Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[ComponentVisibleOnScreenListTag_7f7ef87f], Optional[ComponentVisibleOnScreenListItemTag_9ab82632], Optional[ComponentVisibleOnScreenMediaTag_21044cbd], Optional[int], Optional[ComponentVisibleOnScreenPagerTag_c57e1bff], Optional[ComponentVisibleOnScreenScrollableTag_29ddcc5f], Optional[bool], Optional[ComponentVisibleOnScreenViewportTag_fe01bdff]) -> None """The tags which were attached to an element. :param checked: The checked state of a component that has two states. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py index 731b33d..7cd29e9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.media_command_type import MediaCommandType + from ask_sdk_model.interfaces.alexa.presentation.apl.media_command_type import MediaCommandType as MediaCommandType_47512d90 class ControlMediaCommand(Command): @@ -68,7 +68,7 @@ class ControlMediaCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, command=None, component_id=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[MediaCommandType], Optional[str], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[MediaCommandType_47512d90], Optional[str], Union[int, str, None]) -> None """Control a media player to play, pause, change tracks, or perform some other common action. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py index 7ef3694..a14f1be 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/execute_commands_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command as Command_bc5ff832 class ExecuteCommandsDirective(Directive): @@ -52,7 +52,7 @@ class ExecuteCommandsDirective(Directive): supports_multiple_types = False def __init__(self, commands=None, token=None): - # type: (Optional[List[Command]], Optional[str]) -> None + # type: (Optional[List[Command_bc5ff832]], Optional[str]) -> None """Alexa.Presentation.APL.ExecuteCommands directive used to send APL commands to a device. :param commands: List of Command instances diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py index 464d22a..5b591ab 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason import ListRuntimeErrorReason + from ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason import ListRuntimeErrorReason as ListRuntimeErrorReason_ae1e3d53 class ListRuntimeError(RuntimeError): @@ -64,7 +64,7 @@ class ListRuntimeError(RuntimeError): supports_multiple_types = False def __init__(self, message=None, reason=None, list_id=None, list_version=None, operation_index=None): - # type: (Optional[str], Optional[ListRuntimeErrorReason], Optional[str], Optional[int], Optional[int]) -> None + # type: (Optional[str], Optional[ListRuntimeErrorReason_ae1e3d53], Optional[str], Optional[int], Optional[int]) -> None """Reports an error with list functionality. :param message: A human-readable description of the error. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py index 8aac40f..72fa861 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command as Command_bc5ff832 class OpenUrlCommand(Command): @@ -64,7 +64,7 @@ class OpenUrlCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, source=None, on_fail=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[List[Command]]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[List[Command_bc5ff832]]) -> None """Opens a url with web browser or other application on the device. The APL author is responsible for providing a suitable URL that works on the current device. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py index da4da65..f701a42 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command as Command_bc5ff832 class ParallelCommand(Command): @@ -60,7 +60,7 @@ class ParallelCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, commands=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command]]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]]) -> None """Execute a series of commands in parallel. The parallel command starts executing all child command simultaneously. The parallel command is considered finished when all of its child commands have finished. When the parallel command is terminated early, all currently executing commands are terminated. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py index cf2749c..07d0e2d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.video_source import VideoSource - from ask_sdk_model.interfaces.alexa.presentation.apl.audio_track import AudioTrack + from ask_sdk_model.interfaces.alexa.presentation.apl.audio_track import AudioTrack as AudioTrack_485ca517 + from ask_sdk_model.interfaces.alexa.presentation.apl.video_source import VideoSource as VideoSource_96b69bdd class PlayMediaCommand(Command): @@ -69,7 +69,7 @@ class PlayMediaCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, audio_track=None, component_id=None, source=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[AudioTrack], Optional[str], Optional[List[VideoSource]]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[AudioTrack_485ca517], Optional[str], Optional[List[VideoSource_96b69bdd]]) -> None """Plays media on a media player (currently only a Video player; audio may be added in the future). The media may be on the background audio track or may be sequenced with speak directives). :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py index 7fc7aa0..dde7d21 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen + from ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen import ComponentVisibleOnScreen as ComponentVisibleOnScreen_c94bf507 class RenderedDocumentState(object): @@ -53,7 +53,7 @@ class RenderedDocumentState(object): supports_multiple_types = False def __init__(self, token=None, version=None, components_visible_on_screen=None): - # type: (Optional[str], Optional[str], Optional[List[ComponentVisibleOnScreen]]) -> None + # type: (Optional[str], Optional[str], Optional[List[ComponentVisibleOnScreen_c94bf507]]) -> None """Provides context for any APL content shown on screen. :param token: The token specified in the RenderDocument directive which rendered the content shown on screen. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py index f3a7073..8f1fec7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error_event.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error import RuntimeError + from ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error import RuntimeError as RuntimeError_6272b033 class RuntimeErrorEvent(Request): @@ -64,7 +64,7 @@ class RuntimeErrorEvent(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, token=None, errors=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[RuntimeError]]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[RuntimeError_6272b033]]) -> None """Notifies the skill of any errors in APL functionality. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py index 779c469..076d3fe 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align + from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align as Align_70ae0466 class ScrollToIndexCommand(Command): @@ -68,7 +68,7 @@ class ScrollToIndexCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, index=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align], Optional[str], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None]) -> None """Scroll forward or backward through a ScrollView or Sequence to ensure that a particular child component is in view. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py index 31c2228..6bcf5b5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command as Command_bc5ff832 class SequentialCommand(Command): @@ -72,7 +72,7 @@ class SequentialCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, catch=None, commands=None, object_finally=None, repeat_count=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command]], Optional[List[Command]], Optional[List[Command]], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Union[int, str, None]) -> None """A sequential command executes a series of commands in order. The sequential command executes the command list in order, waiting for the previous command to finish before executing the next. The sequential command is finished when all of its child commands have finished. When the Sequential command is terminated early, the currently executing command is terminated and no further commands are executed. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py index 2c05597..a8d5e2b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.position import Position + from ask_sdk_model.interfaces.alexa.presentation.apl.position import Position as Position_8c9d1e98 class SetPageCommand(Command): @@ -68,7 +68,7 @@ class SetPageCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, component_id=None, position=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[Position], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[Position_8c9d1e98], Union[int, str, None]) -> None """Change the page displayed in a Pager component. The SetPage command finishes when the item is fully in view. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py index 4bd8232..f8ae3a4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.component_state import ComponentState + from ask_sdk_model.interfaces.alexa.presentation.apl.component_state import ComponentState as ComponentState_c92e50c9 class SetStateCommand(Command): @@ -68,7 +68,7 @@ class SetStateCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, component_id=None, state=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[ComponentState], Union[bool, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[ComponentState_c92e50c9], Union[bool, str, None]) -> None """The SetState command changes one of the component’s state settings. The SetState command can be used to change the checked, disabled, and focused states. The karaoke and pressed states may not be directly set; use the Select command or SpeakItem commands to change those states. Also, note that the focused state may only be set - it can’t be cleared. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py index e8478a3..137a4a6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.highlight_mode import HighlightMode - from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align + from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align as Align_70ae0466 + from ask_sdk_model.interfaces.alexa.presentation.apl.highlight_mode import HighlightMode as HighlightMode_9965984d class SpeakItemCommand(Command): @@ -73,7 +73,7 @@ class SpeakItemCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, highlight_mode=None, minimum_dwell_time=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align], Optional[str], Optional[HighlightMode], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Optional[HighlightMode_9965984d], Union[int, str, None]) -> None """Reads the contents of a single item on the screen. By default the item will be scrolled into view if it is not currently visible. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py index 27f2cdf..56a8a9f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align + from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align as Align_70ae0466 class SpeakListCommand(Command): @@ -76,7 +76,7 @@ class SpeakListCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, count=None, minimum_dwell_time=None, start=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align], Optional[str], Union[int, str, None], Union[int, str, None], Union[int, str, None]) -> None + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None], Union[int, str, None], Union[int, str, None]) -> None """Read the contents of a range of items inside a common container. Each item will scroll into view before speech. Each item should have a speech property, but it is not required. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py index d4654a3..f6188bc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/update_index_list_data_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.apl.listoperations.operation import Operation + from ask_sdk_model.interfaces.alexa.presentation.apl.listoperations.operation import Operation as Operation_37040fb2 class UpdateIndexListDataDirective(Directive): @@ -60,7 +60,7 @@ class UpdateIndexListDataDirective(Directive): supports_multiple_types = False def __init__(self, token=None, list_id=None, list_version=None, operations=None): - # type: (Optional[str], Optional[str], Optional[int], Optional[List[Operation]]) -> None + # type: (Optional[str], Optional[str], Optional[int], Optional[List[Operation_37040fb2]]) -> None """Updates the content of an dynamicIndexList datasource which has been previously communicated to an Alexa device. :param token: The unique identifier for the presentation containing the dynamicIndexList. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index 31fa0d6..f293d7b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,4 +14,14 @@ # from __future__ import absolute_import +from .render_error_reason import RenderErrorReason from .render_document_directive import RenderDocumentDirective +from .runtime_error import RuntimeError +from .audio_source_error_reason import AudioSourceErrorReason +from .document_runtime_error import DocumentRuntimeError +from .document_error_reason import DocumentErrorReason +from .runtime_error_event import RuntimeErrorEvent +from .render_runtime_error import RenderRuntimeError +from .link_error_reason import LinkErrorReason +from .link_runtime_error import LinkRuntimeError +from .audio_source_runtime_error import AudioSourceRuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_error_reason.py new file mode 100644 index 0000000..1de3730 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_error_reason.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AudioSourceErrorReason(Enum): + """ + The reason for the failure. + + + + Allowed enum values: [UNKNOWN_ERROR, INTERNAL_SERVER_ERROR, NOT_FOUND_ERROR, SSL_HANDSHAKE_ERROR, TIMEOUT_ERROR, INVALID_URI_ERROR, HTTPS_ERROR] + """ + UNKNOWN_ERROR = "UNKNOWN_ERROR" + INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" + NOT_FOUND_ERROR = "NOT_FOUND_ERROR" + SSL_HANDSHAKE_ERROR = "SSL_HANDSHAKE_ERROR" + TIMEOUT_ERROR = "TIMEOUT_ERROR" + INVALID_URI_ERROR = "INVALID_URI_ERROR" + HTTPS_ERROR = "HTTPS_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AudioSourceErrorReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_runtime_error.py new file mode 100644 index 0000000..f9bc8d1 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/audio_source_runtime_error.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error import RuntimeError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_error_reason import AudioSourceErrorReason as AudioSourceErrorReason_41107d98 + + +class AudioSourceRuntimeError(RuntimeError): + """ + This error type occurs when the cloud fails to retrieve an audio file from a remote source, such as one specified from within an Audio component. + + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_error_reason.AudioSourceErrorReason + + """ + deserialized_types = { + 'object_type': 'str', + 'message': 'str', + 'reason': 'ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_error_reason.AudioSourceErrorReason' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message', + 'reason': 'reason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, message=None, reason=None): + # type: (Optional[str], Optional[AudioSourceErrorReason_41107d98]) -> None + """This error type occurs when the cloud fails to retrieve an audio file from a remote source, such as one specified from within an Audio component. + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_error_reason.AudioSourceErrorReason + """ + self.__discriminator_value = "AUDIO_SOURCE_ERROR" # type: str + + self.object_type = self.__discriminator_value + super(AudioSourceRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message) + self.reason = reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AudioSourceRuntimeError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_error_reason.py new file mode 100644 index 0000000..43e4925 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_error_reason.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DocumentErrorReason(Enum): + """ + The reason for the failure. + + + + Allowed enum values: [UNKNOWN_ERROR, INTERNAL_SERVER_ERROR] + """ + UNKNOWN_ERROR = "UNKNOWN_ERROR" + INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DocumentErrorReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_runtime_error.py new file mode 100644 index 0000000..1cd22c9 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/document_runtime_error.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error import RuntimeError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apla.document_error_reason import DocumentErrorReason as DocumentErrorReason_9817fdd + + +class DocumentRuntimeError(RuntimeError): + """ + This error type occurs when the cloud fails to render due to an incorrect or malformed document or data sources. + + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.document_error_reason.DocumentErrorReason + + """ + deserialized_types = { + 'object_type': 'str', + 'message': 'str', + 'reason': 'ask_sdk_model.interfaces.alexa.presentation.apla.document_error_reason.DocumentErrorReason' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message', + 'reason': 'reason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, message=None, reason=None): + # type: (Optional[str], Optional[DocumentErrorReason_9817fdd]) -> None + """This error type occurs when the cloud fails to render due to an incorrect or malformed document or data sources. + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.document_error_reason.DocumentErrorReason + """ + self.__discriminator_value = "DOCUMENT_ERROR" # type: str + + self.object_type = self.__discriminator_value + super(DocumentRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message) + self.reason = reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DocumentRuntimeError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_error_reason.py new file mode 100644 index 0000000..fab9d37 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_error_reason.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class LinkErrorReason(Enum): + """ + The reason for the failure. + + + + Allowed enum values: [UNKNOWN_ERROR, INTERNAL_SERVER_ERROR, NOT_FOUND_ERROR] + """ + UNKNOWN_ERROR = "UNKNOWN_ERROR" + INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" + NOT_FOUND_ERROR = "NOT_FOUND_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LinkErrorReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_runtime_error.py new file mode 100644 index 0000000..e292bb6 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/link_runtime_error.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error import RuntimeError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apla.link_error_reason import LinkErrorReason as LinkErrorReason_574c7c9f + + +class LinkRuntimeError(RuntimeError): + """ + This error type occurs when the cloud fails to execute a Link typed document. + + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.link_error_reason.LinkErrorReason + + """ + deserialized_types = { + 'object_type': 'str', + 'message': 'str', + 'reason': 'ask_sdk_model.interfaces.alexa.presentation.apla.link_error_reason.LinkErrorReason' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message', + 'reason': 'reason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, message=None, reason=None): + # type: (Optional[str], Optional[LinkErrorReason_574c7c9f]) -> None + """This error type occurs when the cloud fails to execute a Link typed document. + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.link_error_reason.LinkErrorReason + """ + self.__discriminator_value = "LINK_ERROR" # type: str + + self.object_type = self.__discriminator_value + super(LinkRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message) + self.reason = reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LinkRuntimeError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_error_reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_error_reason.py new file mode 100644 index 0000000..6d04e06 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_error_reason.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class RenderErrorReason(Enum): + """ + The reason for the failure. + + + + Allowed enum values: [UNKNOWN_ERROR, INTERNAL_SERVER_ERROR] + """ + UNKNOWN_ERROR = "UNKNOWN_ERROR" + INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RenderErrorReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_runtime_error.py new file mode 100644 index 0000000..e736dcf --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/render_runtime_error.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error import RuntimeError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apla.render_error_reason import RenderErrorReason as RenderErrorReason_5e83f267 + + +class RenderRuntimeError(RuntimeError): + """ + This error type occurs when the the cloud based audio mixing service fails to render the audio due to service or user failure. + + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.render_error_reason.RenderErrorReason + + """ + deserialized_types = { + 'object_type': 'str', + 'message': 'str', + 'reason': 'ask_sdk_model.interfaces.alexa.presentation.apla.render_error_reason.RenderErrorReason' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message', + 'reason': 'reason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, message=None, reason=None): + # type: (Optional[str], Optional[RenderErrorReason_5e83f267]) -> None + """This error type occurs when the the cloud based audio mixing service fails to render the audio due to service or user failure. + + :param message: A human-readable description of the error. + :type message: (optional) str + :param reason: + :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apla.render_error_reason.RenderErrorReason + """ + self.__discriminator_value = "RENDER_ERROR" # type: str + + self.object_type = self.__discriminator_value + super(RenderRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message) + self.reason = reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RenderRuntimeError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error.py new file mode 100644 index 0000000..b81dcf3 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class RuntimeError(object): + """ + A description of an error in APLA functionality. + + + :param object_type: Defines the error type and dictates which properties must/can be included. + :type object_type: (optional) str + :param message: A human-readable description of the error. + :type message: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | AUDIO_SOURCE_ERROR: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_runtime_error.AudioSourceRuntimeError`, + | + | RENDER_ERROR: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apla.render_runtime_error.RenderRuntimeError`, + | + | DOCUMENT_ERROR: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apla.document_runtime_error.DocumentRuntimeError`, + | + | LINK_ERROR: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apla.link_runtime_error.LinkRuntimeError` + + """ + deserialized_types = { + 'object_type': 'str', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'AUDIO_SOURCE_ERROR': 'ask_sdk_model.interfaces.alexa.presentation.apla.audio_source_runtime_error.AudioSourceRuntimeError', + 'RENDER_ERROR': 'ask_sdk_model.interfaces.alexa.presentation.apla.render_runtime_error.RenderRuntimeError', + 'DOCUMENT_ERROR': 'ask_sdk_model.interfaces.alexa.presentation.apla.document_runtime_error.DocumentRuntimeError', + 'LINK_ERROR': 'ask_sdk_model.interfaces.alexa.presentation.apla.link_runtime_error.LinkRuntimeError' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None, message=None): + # type: (Optional[str], Optional[str]) -> None + """A description of an error in APLA functionality. + + :param object_type: Defines the error type and dictates which properties must/can be included. + :type object_type: (optional) str + :param message: A human-readable description of the error. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RuntimeError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error_event.py new file mode 100644 index 0000000..12a3cd3 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/runtime_error_event.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error import RuntimeError as RuntimeError_68904362 + + +class RuntimeErrorEvent(Request): + """ + Notifies the skill of any errors in APLA functionality. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The unique identifier of the presentation in which the error occurred. + :type token: (optional) str + :param errors: An array of errors encountered while running the APLA presentation. + :type errors: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error.RuntimeError] + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'token': 'str', + 'errors': 'list[ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error.RuntimeError]' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'token': 'token', + 'errors': 'errors' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, token=None, errors=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[RuntimeError_68904362]]) -> None + """Notifies the skill of any errors in APLA functionality. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The unique identifier of the presentation in which the error occurred. + :type token: (optional) str + :param errors: An array of errors encountered while running the APLA presentation. + :type errors: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error.RuntimeError] + """ + self.__discriminator_value = "Alexa.Presentation.APLA.RuntimeError" # type: str + + self.object_type = self.__discriminator_value + super(RuntimeErrorEvent, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.token = token + self.errors = errors + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RuntimeErrorEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py index 9b25441..3ad6ec9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/alexa_presentation_aplt_interface.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.runtime import Runtime + from ask_sdk_model.interfaces.alexa.presentation.aplt.runtime import Runtime as Runtime_db130a90 class AlexaPresentationApltInterface(object): @@ -43,7 +43,7 @@ class AlexaPresentationApltInterface(object): supports_multiple_types = False def __init__(self, runtime=None): - # type: (Optional[Runtime]) -> None + # type: (Optional[Runtime_db130a90]) -> None """ :param runtime: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py index 219ec47..d874cf6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/execute_commands_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command + from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command as Command_bcba0676 class ExecuteCommandsDirective(Directive): @@ -52,7 +52,7 @@ class ExecuteCommandsDirective(Directive): supports_multiple_types = False def __init__(self, commands=None, token=None): - # type: (Optional[List[Command]], Optional[str]) -> None + # type: (Optional[List[Command_bcba0676]], Optional[str]) -> None """Alexa.Presentation.APLT.ExecuteCommands directive used to send APL-T commands to a device. :param commands: List of Command instances diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py index 2b7a397..e2846b2 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/parallel_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command + from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command as Command_bcba0676 class ParallelCommand(Command): @@ -64,7 +64,7 @@ class ParallelCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, screen_lock=None, when=None, commands=None): - # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[List[Command]]) -> None + # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[List[Command_bcba0676]]) -> None """Execute a series of commands in parallel. The parallel command starts executing all child command simultaneously. The parallel command is considered finished when all of its child commands have finished. When the parallel command is terminated early, all currently executing commands are terminated. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py index 8dc1df7..1d69163 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/render_document_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.target_profile import TargetProfile + from ask_sdk_model.interfaces.alexa.presentation.aplt.target_profile import TargetProfile as TargetProfile_1664aad7 class RenderDocumentDirective(Directive): @@ -58,7 +58,7 @@ class RenderDocumentDirective(Directive): supports_multiple_types = False def __init__(self, token=None, target_profile=None, document=None, datasources=None): - # type: (Optional[str], Optional[TargetProfile], Optional[Dict[str, object]], Optional[Dict[str, object]]) -> None + # type: (Optional[str], Optional[TargetProfile_1664aad7], Optional[Dict[str, object]], Optional[Dict[str, object]]) -> None """ :param token: A unique identifier for the presentation. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py index dd7195e..08ee196 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/sequential_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command + from ask_sdk_model.interfaces.alexa.presentation.aplt.command import Command as Command_bcba0676 class SequentialCommand(Command): @@ -76,7 +76,7 @@ class SequentialCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, screen_lock=None, when=None, catch=None, commands=None, object_finally=None, repeat_count=None): - # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[List[Command]], Optional[List[Command]], Optional[List[Command]], Union[int, str, None]) -> None + # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[List[Command_bcba0676]], Optional[List[Command_bcba0676]], Optional[List[Command_bcba0676]], Union[int, str, None]) -> None """A sequential command executes a series of commands in order. The sequential command executes the command list in order, waiting for the previous command to finish before executing the next. The sequential command is finished when all of its child commands have finished. When the Sequential command is terminated early, the currently executing command is terminated and no further commands are executed. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py index 7ba6327..cd571da 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_page_command.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.aplt.position import Position + from ask_sdk_model.interfaces.alexa.presentation.aplt.position import Position as Position_deacabdc class SetPageCommand(Command): @@ -72,7 +72,7 @@ class SetPageCommand(Command): supports_multiple_types = False def __init__(self, delay=None, description=None, screen_lock=None, when=None, component_id=None, position=None, value=None): - # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[str], Optional[Position], Union[int, str, None]) -> None + # type: (Optional[int], Optional[str], Optional[bool], Union[bool, str, None], Optional[str], Optional[Position_deacabdc], Union[int, str, None]) -> None """Change the page displayed in a Pager component. The SetPage command finishes when the item is fully in view. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py index e479c9f..be9292f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/alexa_presentation_html_interface.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.runtime import Runtime + from ask_sdk_model.interfaces.alexa.presentation.html.runtime import Runtime as Runtime_a66c6044 class AlexaPresentationHtmlInterface(object): @@ -43,7 +43,7 @@ class AlexaPresentationHtmlInterface(object): supports_multiple_types = False def __init__(self, runtime=None): - # type: (Optional[Runtime]) -> None + # type: (Optional[Runtime_a66c6044]) -> None """ :param runtime: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py index 0df9078..24dc927 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/handle_message_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.transformer import Transformer + from ask_sdk_model.interfaces.alexa.presentation.html.transformer import Transformer as Transformer_8371ca46 class HandleMessageDirective(Directive): @@ -52,7 +52,7 @@ class HandleMessageDirective(Directive): supports_multiple_types = False def __init__(self, message=None, transformers=None): - # type: (Optional[object], Optional[List[Transformer]]) -> None + # type: (Optional[object], Optional[List[Transformer_8371ca46]]) -> None """The HandleMessage directive sends a message to a skill's web application that runs on the device browser. :param message: A free-form object containing data to deliver to a skill's HTML application running the device. Maximum size 18 KB. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py index dc4a7a5..66563f3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_reason import RuntimeErrorReason + from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_reason import RuntimeErrorReason as RuntimeErrorReason_431c1642 class RuntimeError(object): @@ -51,7 +51,7 @@ class RuntimeError(object): supports_multiple_types = False def __init__(self, reason=None, message=None, code=None): - # type: (Optional[RuntimeErrorReason], Optional[str], Optional[str]) -> None + # type: (Optional[RuntimeErrorReason_431c1642], Optional[str], Optional[str]) -> None """ :param reason: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py index b981eae..d5ff192 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/runtime_error_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error import RuntimeError + from ask_sdk_model.interfaces.alexa.presentation.html.runtime_error import RuntimeError as RuntimeError_7feba13b class RuntimeErrorRequest(Request): @@ -60,7 +60,7 @@ class RuntimeErrorRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, error=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[RuntimeError]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[RuntimeError_7feba13b]) -> None """The RuntimeError request occurs when the device software encounters an error with loading a skill's web application. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py index 0254c4d..55e122c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_directive.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.configuration import Configuration - from ask_sdk_model.interfaces.alexa.presentation.html.start_request import StartRequest - from ask_sdk_model.interfaces.alexa.presentation.html.transformer import Transformer + from ask_sdk_model.interfaces.alexa.presentation.html.configuration import Configuration as Configuration_de3afb80 + from ask_sdk_model.interfaces.alexa.presentation.html.start_request import StartRequest as StartRequest_f0a55ec7 + from ask_sdk_model.interfaces.alexa.presentation.html.transformer import Transformer as Transformer_8371ca46 class StartDirective(Directive): @@ -62,7 +62,7 @@ class StartDirective(Directive): supports_multiple_types = False def __init__(self, data=None, transformers=None, request=None, configuration=None): - # type: (Optional[object], Optional[List[Transformer]], Optional[StartRequest], Optional[Configuration]) -> None + # type: (Optional[object], Optional[List[Transformer_8371ca46]], Optional[StartRequest_f0a55ec7], Optional[Configuration_de3afb80]) -> None """The Start directive provides the data necessary to load an HTML page on the target device. :param data: Optional startup data which will be made available to the runtime for skill startup. Maximum size: 18 KB diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py index dca2b88..43407ad 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/start_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.start_request_method import StartRequestMethod + from ask_sdk_model.interfaces.alexa.presentation.html.start_request_method import StartRequestMethod as StartRequestMethod_63e40db0 class StartRequest(object): @@ -51,7 +51,7 @@ class StartRequest(object): supports_multiple_types = False def __init__(self, method=None, uri=None, headers=None): - # type: (Optional[StartRequestMethod], Optional[str], Optional[object]) -> None + # type: (Optional[StartRequestMethod_63e40db0], Optional[str], Optional[object]) -> None """ :param method: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py index 0734bfd..bd3b543 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/transformer.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.presentation.html.transformer_type import TransformerType + from ask_sdk_model.interfaces.alexa.presentation.html.transformer_type import TransformerType as TransformerType_656f5c23 class Transformer(object): @@ -53,7 +53,7 @@ class Transformer(object): supports_multiple_types = False def __init__(self, transformer=None, input_path=None, output_name=None): - # type: (Optional[TransformerType], Optional[str], Optional[str]) -> None + # type: (Optional[TransformerType_656f5c23], Optional[str], Optional[str]) -> None """Properties for performing text to speech transformations. These are the same properties that [APL transformers](https://developer.amazon.com/docs/alexa-presentation-language/apl-data-source.html#transformer-properties-and-conversion-rules) use. :param transformer: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py index 5e2184d..712edb7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/authorize_attributes.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.price import Price + from ask_sdk_model.interfaces.amazonpay.model.request.price import Price as Price_28baad92 class AuthorizeAttributes(BaseAmazonPayEntity): @@ -68,7 +68,7 @@ class AuthorizeAttributes(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, authorization_reference_id=None, authorization_amount=None, transaction_timeout=None, seller_authorization_note=None, soft_descriptor=None, version=None): - # type: (Optional[str], Optional[Price], Optional[int], Optional[str], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[Price_28baad92], Optional[int], Optional[str], Optional[str], Optional[str]) -> None """This is an object to set the attributes specified in the AuthorizeAttributes table. See the “AuthorizationDetails” section of the Amazon Pay API reference guide for details about this object. :param authorization_reference_id: This is 3P seller's identifier for this authorization transaction. This identifier must be unique for all of your authorization transactions. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py index 7c809e2..bff29ec 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/billing_agreement_attributes.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.seller_billing_agreement_attributes import SellerBillingAgreementAttributes - from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_type import BillingAgreementType - from ask_sdk_model.interfaces.amazonpay.model.request.price import Price + from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_type import BillingAgreementType as BillingAgreementType_33b14792 + from ask_sdk_model.interfaces.amazonpay.model.request.seller_billing_agreement_attributes import SellerBillingAgreementAttributes as SellerBillingAgreementAttributes_4f93d175 + from ask_sdk_model.interfaces.amazonpay.model.request.price import Price as Price_28baad92 class BillingAgreementAttributes(BaseAmazonPayEntity): @@ -70,7 +70,7 @@ class BillingAgreementAttributes(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, platform_id=None, seller_note=None, seller_billing_agreement_attributes=None, billing_agreement_type=None, subscription_amount=None, version=None): - # type: (Optional[str], Optional[str], Optional[SellerBillingAgreementAttributes], Optional[BillingAgreementType], Optional[Price], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[SellerBillingAgreementAttributes_4f93d175], Optional[BillingAgreementType_33b14792], Optional[Price_28baad92], Optional[str]) -> None """The merchant can choose to set the attributes specified in the BillingAgreementAttributes. :param platform_id: Represents the SellerId of the Solution Provider that developed the eCommerce platform. This value is only used by Solution Providers, for whom it is required. It should not be provided by merchants creating their own custom integration. Do not specify the SellerId of the merchant for this request parameter. If you are a merchant, do not enter a PlatformId. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py index a10efab..647e40e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_attributes.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.provider_credit import ProviderCredit + from ask_sdk_model.interfaces.amazonpay.model.request.provider_credit import ProviderCredit as ProviderCredit_5051c023 class ProviderAttributes(BaseAmazonPayEntity): @@ -56,7 +56,7 @@ class ProviderAttributes(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, provider_id=None, provider_credit_list=None, version=None): - # type: (Optional[str], Optional[List[ProviderCredit]], Optional[str]) -> None + # type: (Optional[str], Optional[List[ProviderCredit_5051c023]], Optional[str]) -> None """This is required only for Ecommerce provider (Solution provider) use cases. :param provider_id: Solution provider ID. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py index daaa4cc..d02fcb0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/provider_credit.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.price import Price + from ask_sdk_model.interfaces.amazonpay.model.request.price import Price as Price_28baad92 class ProviderCredit(BaseAmazonPayEntity): @@ -54,7 +54,7 @@ class ProviderCredit(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, provider_id=None, credit=None, version=None): - # type: (Optional[str], Optional[Price], Optional[str]) -> None + # type: (Optional[str], Optional[Price_28baad92], Optional[str]) -> None """ :param provider_id: This is required only for Ecommerce provider (Solution provider) use cases. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py index 24d8183..dadb094 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_details.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.response.authorization_status import AuthorizationStatus - from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination - from ask_sdk_model.interfaces.amazonpay.model.response.price import Price + from ask_sdk_model.interfaces.amazonpay.model.response.price import Price as Price_8b8ddd8a + from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination as Destination_c290e254 + from ask_sdk_model.interfaces.amazonpay.model.response.authorization_status import AuthorizationStatus as AuthorizationStatus_d0b055af class AuthorizationDetails(AuthorizationDetails): @@ -100,7 +100,7 @@ class AuthorizationDetails(AuthorizationDetails): supports_multiple_types = False def __init__(self, amazon_authorization_id=None, authorization_reference_id=None, seller_authorization_note=None, authorization_amount=None, captured_amount=None, authorization_fee=None, id_list=None, creation_timestamp=None, expiration_timestamp=None, authorization_status=None, soft_decline=None, capture_now=None, soft_descriptor=None, authorization_billing_address=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[Price], Optional[Price], Optional[Price], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[AuthorizationStatus], Optional[bool], Optional[bool], Optional[str], Optional[Destination]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Price_8b8ddd8a], Optional[Price_8b8ddd8a], Optional[Price_8b8ddd8a], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[AuthorizationStatus_d0b055af], Optional[bool], Optional[bool], Optional[str], Optional[Destination_c290e254]) -> None """This object encapsulates details about an Authorization object including the status, amount captured and fee charged. :param amazon_authorization_id: This is AmazonPay generated identifier for this authorization transaction. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py index 60aadd4..76acc9c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/authorization_status.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.response.state import State + from ask_sdk_model.interfaces.amazonpay.model.response.state import State as State_76ca6e1a class AuthorizationStatus(AuthorizationStatus): @@ -58,7 +58,7 @@ class AuthorizationStatus(AuthorizationStatus): supports_multiple_types = False def __init__(self, state=None, reason_code=None, reason_description=None, last_update_timestamp=None): - # type: (Optional[State], Optional[str], Optional[str], Optional[datetime]) -> None + # type: (Optional[State_76ca6e1a], Optional[str], Optional[str], Optional[datetime]) -> None """Indicates the current status of an Authorization object, a Capture object, or a Refund object. :param state: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py index f4b47c8..bd424cd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/billing_agreement_details.py @@ -24,10 +24,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as V1_BillingAgreementStatusV1 - from ask_sdk_model.interfaces.amazonpay.model.response.release_environment import ReleaseEnvironment - from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as V1_DestinationV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as BillingAgreementStatus_92faa5c4 + from ask_sdk_model.interfaces.amazonpay.model.response.release_environment import ReleaseEnvironment as ReleaseEnvironment_a12fed99 + from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination as Destination_c290e254 + from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as Destination_1fa740ce class BillingAgreementDetails(BillingAgreementDetails): @@ -73,7 +73,7 @@ class BillingAgreementDetails(BillingAgreementDetails): supports_multiple_types = False def __init__(self, billing_agreement_id=None, creation_timestamp=None, destination=None, checkout_language=None, release_environment=None, billing_agreement_status=None, billing_address=None): - # type: (Optional[str], Optional[datetime], Optional[V1_DestinationV1], Optional[str], Optional[ReleaseEnvironment], Optional[V1_BillingAgreementStatusV1], Optional[Destination]) -> None + # type: (Optional[str], Optional[datetime], Optional[Destination_1fa740ce], Optional[str], Optional[ReleaseEnvironment_a12fed99], Optional[BillingAgreementStatus_92faa5c4], Optional[Destination_c290e254]) -> None """The result attributes from successful SetupAmazonPay call. :param billing_agreement_id: Billing agreement id which can be used for one time and recurring purchases diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py index 1354e21..88097ac 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_details.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_status import AuthorizationStatus as V1_AuthorizationStatusV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_status import AuthorizationStatus as AuthorizationStatus_c0e77a75 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as Price_4032a304 class AuthorizationDetails(object): @@ -94,7 +94,7 @@ class AuthorizationDetails(object): supports_multiple_types = False def __init__(self, amazon_authorization_id=None, authorization_reference_id=None, seller_authorization_note=None, authorization_amount=None, captured_amount=None, authorization_fee=None, id_list=None, creation_timestamp=None, expiration_timestamp=None, authorization_status=None, soft_decline=None, capture_now=None, soft_descriptor=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[V1_PriceV1], Optional[V1_PriceV1], Optional[V1_PriceV1], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[V1_AuthorizationStatusV1], Optional[bool], Optional[bool], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Price_4032a304], Optional[Price_4032a304], Optional[Price_4032a304], Optional[List[object]], Optional[datetime], Optional[datetime], Optional[AuthorizationStatus_c0e77a75], Optional[bool], Optional[bool], Optional[str]) -> None """This object encapsulates details about an Authorization object including the status, amount captured and fee charged. :param amazon_authorization_id: This is AmazonPay generated identifier for this authorization transaction. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py index de0cdcb..688879d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorization_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.state import State as V1_StateV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.state import State as State_2b6f3394 class AuthorizationStatus(object): @@ -57,7 +57,7 @@ class AuthorizationStatus(object): supports_multiple_types = False def __init__(self, state=None, reason_code=None, reason_description=None, last_update_timestamp=None): - # type: (Optional[V1_StateV1], Optional[str], Optional[str], Optional[datetime]) -> None + # type: (Optional[State_2b6f3394], Optional[str], Optional[str], Optional[datetime]) -> None """Indicates the current status of an Authorization object, a Capture object, or a Refund object. :param state: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py index 47176df..452ba80 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/authorize_attributes.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as Price_4032a304 class AuthorizeAttributes(object): @@ -61,7 +61,7 @@ class AuthorizeAttributes(object): supports_multiple_types = False def __init__(self, authorization_reference_id=None, authorization_amount=None, transaction_timeout=None, seller_authorization_note=None, soft_descriptor=None): - # type: (Optional[str], Optional[V1_PriceV1], Optional[int], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[Price_4032a304], Optional[int], Optional[str], Optional[str]) -> None """This is an object to set the attributes specified in the AuthorizeAttributes table. See the “AuthorizationDetails” section of the Amazon Pay API reference guide for details about this object. :param authorization_reference_id: This is 3P seller's identifier for this authorization transaction. This identifier must be unique for all of your authorization transactions. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py index 871fe91..9a97ea8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_attributes.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_type import BillingAgreementType as V1_BillingAgreementTypeV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.seller_billing_agreement_attributes import SellerBillingAgreementAttributes as V1_SellerBillingAgreementAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_type import BillingAgreementType as BillingAgreementType_3026f504 + from ask_sdk_model.interfaces.amazonpay.model.v1.seller_billing_agreement_attributes import SellerBillingAgreementAttributes as SellerBillingAgreementAttributes_80b1c843 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as Price_4032a304 class BillingAgreementAttributes(object): @@ -63,7 +63,7 @@ class BillingAgreementAttributes(object): supports_multiple_types = False def __init__(self, platform_id=None, seller_note=None, seller_billing_agreement_attributes=None, billing_agreement_type=None, subscription_amount=None): - # type: (Optional[str], Optional[str], Optional[V1_SellerBillingAgreementAttributesV1], Optional[V1_BillingAgreementTypeV1], Optional[V1_PriceV1]) -> None + # type: (Optional[str], Optional[str], Optional[SellerBillingAgreementAttributes_80b1c843], Optional[BillingAgreementType_3026f504], Optional[Price_4032a304]) -> None """The merchant can choose to set the attributes specified in the BillingAgreementAttributes. :param platform_id: Represents the SellerId of the Solution Provider that developed the eCommerce platform. This value is only used by Solution Providers, for whom it is required. It should not be provided by merchants creating their own custom integration. Do not specify the SellerId of the merchant for this request parameter. If you are a merchant, do not enter a PlatformId. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py index a3140b5..b99cd8e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/billing_agreement_details.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.release_environment import ReleaseEnvironment as V1_ReleaseEnvironmentV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as V1_BillingAgreementStatusV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as V1_DestinationV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status import BillingAgreementStatus as BillingAgreementStatus_92faa5c4 + from ask_sdk_model.interfaces.amazonpay.model.v1.destination import Destination as Destination_1fa740ce + from ask_sdk_model.interfaces.amazonpay.model.v1.release_environment import ReleaseEnvironment as ReleaseEnvironment_c4558bdf class BillingAgreementDetails(object): @@ -67,7 +67,7 @@ class BillingAgreementDetails(object): supports_multiple_types = False def __init__(self, billing_agreement_id=None, creation_timestamp=None, destination=None, checkout_language=None, release_environment=None, billing_agreement_status=None): - # type: (Optional[str], Optional[datetime], Optional[V1_DestinationV1], Optional[str], Optional[V1_ReleaseEnvironmentV1], Optional[V1_BillingAgreementStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[Destination_1fa740ce], Optional[str], Optional[ReleaseEnvironment_c4558bdf], Optional[BillingAgreementStatus_92faa5c4]) -> None """The result attributes from successful SetupAmazonPay call. :param billing_agreement_id: Billing agreement id which can be used for one time and recurring purchases diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py index 02e57e0..5cbd4a0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_attributes.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.provider_credit import ProviderCredit as V1_ProviderCreditV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.provider_credit import ProviderCredit as ProviderCredit_87b52171 class ProviderAttributes(object): @@ -49,7 +49,7 @@ class ProviderAttributes(object): supports_multiple_types = False def __init__(self, provider_id=None, provider_credit_list=None): - # type: (Optional[str], Optional[List[V1_ProviderCreditV1]]) -> None + # type: (Optional[str], Optional[List[ProviderCredit_87b52171]]) -> None """This is required only for Ecommerce provider (Solution provider) use cases. :param provider_id: Solution provider ID. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py index b26fb21..251d923 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as V1_PriceV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price as Price_4032a304 class ProviderCredit(object): @@ -47,7 +47,7 @@ class ProviderCredit(object): supports_multiple_types = False def __init__(self, provider_id=None, credit=None): - # type: (Optional[str], Optional[V1_PriceV1]) -> None + # type: (Optional[str], Optional[Price_4032a304]) -> None """ :param provider_id: This is required only for Ecommerce provider (Solution provider) use cases. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py index 936804a..4cd7ac6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/charge_amazon_pay_request.py @@ -24,10 +24,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.payment_action import PaymentAction - from ask_sdk_model.interfaces.amazonpay.model.request.seller_order_attributes import SellerOrderAttributes - from ask_sdk_model.interfaces.amazonpay.model.request.authorize_attributes import AuthorizeAttributes - from ask_sdk_model.interfaces.amazonpay.model.request.provider_attributes import ProviderAttributes + from ask_sdk_model.interfaces.amazonpay.model.request.provider_attributes import ProviderAttributes as ProviderAttributes_32296063 + from ask_sdk_model.interfaces.amazonpay.model.request.authorize_attributes import AuthorizeAttributes as AuthorizeAttributes_2defaf71 + from ask_sdk_model.interfaces.amazonpay.model.request.payment_action import PaymentAction as PaymentAction_974ab70f + from ask_sdk_model.interfaces.amazonpay.model.request.seller_order_attributes import SellerOrderAttributes as SellerOrderAttributes_48ed79ae class ChargeAmazonPayRequest(BaseAmazonPayEntity): @@ -75,7 +75,7 @@ class ChargeAmazonPayRequest(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, version=None, seller_id=None, billing_agreement_id=None, payment_action=None, authorize_attributes=None, seller_order_attributes=None, provider_attributes=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[PaymentAction], Optional[AuthorizeAttributes], Optional[SellerOrderAttributes], Optional[ProviderAttributes]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[PaymentAction_974ab70f], Optional[AuthorizeAttributes_2defaf71], Optional[SellerOrderAttributes_48ed79ae], Optional[ProviderAttributes_32296063]) -> None """Charge Amazon Pay Request Object. :param version: Version of the Amazon Pay Entity. Can be 1 or greater. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py index 01e69e9..d2a1b0b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/setup_amazon_pay_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_attributes import BillingAgreementAttributes + from ask_sdk_model.interfaces.amazonpay.model.request.billing_agreement_attributes import BillingAgreementAttributes as BillingAgreementAttributes_ec1c47b2 class SetupAmazonPayRequest(BaseAmazonPayEntity): @@ -80,7 +80,7 @@ class SetupAmazonPayRequest(BaseAmazonPayEntity): supports_multiple_types = False def __init__(self, version=None, seller_id=None, country_of_establishment=None, ledger_currency=None, checkout_language=None, billing_agreement_attributes=None, need_amazon_shipping_address=False, sandbox_mode=False, sandbox_customer_email_id=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[BillingAgreementAttributes], Optional[bool], Optional[bool], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[BillingAgreementAttributes_ec1c47b2], Optional[bool], Optional[bool], Optional[str]) -> None """Setup Amazon Pay Request Object. :param version: Version of the Amazon Pay Entity. Can be 1 or greater. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py index 00e46d4..0d9762e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/charge_amazon_pay_result.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.response.authorization_details import AuthorizationDetails + from ask_sdk_model.interfaces.amazonpay.model.response.authorization_details import AuthorizationDetails as AuthorizationDetails_d5ea3d5 class ChargeAmazonPayResult(ChargeAmazonPayResult): @@ -50,7 +50,7 @@ class ChargeAmazonPayResult(ChargeAmazonPayResult): supports_multiple_types = False def __init__(self, amazon_order_reference_id=None, authorization_details=None): - # type: (Optional[str], Optional[AuthorizationDetails]) -> None + # type: (Optional[str], Optional[AuthorizationDetails_d5ea3d5]) -> None """Charge Amazon Pay Result Object. It is sent as part of the response to ChargeAmazonPayRequest. :param amazon_order_reference_id: The order reference identifier. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py index dd2feee..a10d9d6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/setup_amazon_pay_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.response.billing_agreement_details import BillingAgreementDetails + from ask_sdk_model.interfaces.amazonpay.model.response.billing_agreement_details import BillingAgreementDetails as BillingAgreementDetails_623d3b74 class SetupAmazonPayResult(object): @@ -45,7 +45,7 @@ class SetupAmazonPayResult(object): supports_multiple_types = False def __init__(self, billing_agreement_details=None): - # type: (Optional[BillingAgreementDetails]) -> None + # type: (Optional[BillingAgreementDetails_623d3b74]) -> None """Setup Amazon Pay Result Object. It is sent as part of the response to SetupAmazonPayRequest. :param billing_agreement_details: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py index 9c8bfa1..2f31f81 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.authorize_attributes import AuthorizeAttributes as V1_AuthorizeAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.seller_order_attributes import SellerOrderAttributes as V1_SellerOrderAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.provider_attributes import ProviderAttributes as V1_ProviderAttributesV1 - from ask_sdk_model.interfaces.amazonpay.model.v1.payment_action import PaymentAction as V1_PaymentActionV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorize_attributes import AuthorizeAttributes as AuthorizeAttributes_cafc473f + from ask_sdk_model.interfaces.amazonpay.model.v1.payment_action import PaymentAction as PaymentAction_a31213dd + from ask_sdk_model.interfaces.amazonpay.model.v1.seller_order_attributes import SellerOrderAttributes as SellerOrderAttributes_fead92a0 + from ask_sdk_model.interfaces.amazonpay.model.v1.provider_attributes import ProviderAttributes as ProviderAttributes_717593b1 class ChargeAmazonPay(object): @@ -72,7 +72,7 @@ class ChargeAmazonPay(object): supports_multiple_types = False def __init__(self, consent_token=None, seller_id=None, billing_agreement_id=None, payment_action=None, authorize_attributes=None, seller_order_attributes=None, provider_attributes=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[V1_PaymentActionV1], Optional[V1_AuthorizeAttributesV1], Optional[V1_SellerOrderAttributesV1], Optional[V1_ProviderAttributesV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[PaymentAction_a31213dd], Optional[AuthorizeAttributes_cafc473f], Optional[SellerOrderAttributes_fead92a0], Optional[ProviderAttributes_717593b1]) -> None """Charge Amazon Pay Request Object :param consent_token: Authorization token that contains the permissions consented to by the user. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py index 2ce27c9..0d0ca1f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/charge_amazon_pay_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details import AuthorizationDetails as V1_AuthorizationDetailsV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details import AuthorizationDetails as AuthorizationDetails_cc5faf1b class ChargeAmazonPayResult(object): @@ -49,7 +49,7 @@ class ChargeAmazonPayResult(object): supports_multiple_types = False def __init__(self, amazon_order_reference_id=None, authorization_details=None): - # type: (Optional[str], Optional[V1_AuthorizationDetailsV1]) -> None + # type: (Optional[str], Optional[AuthorizationDetails_cc5faf1b]) -> None """Charge Amazon Pay Result Object. It is sent as part of the reponse to ChargeAmazonPay request. :param amazon_order_reference_id: The order reference identifier. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py index 86e41ed..ce7f994 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_attributes import BillingAgreementAttributes as V1_BillingAgreementAttributesV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_attributes import BillingAgreementAttributes as BillingAgreementAttributes_a2cf5a24 class SetupAmazonPay(object): @@ -77,7 +77,7 @@ class SetupAmazonPay(object): supports_multiple_types = False def __init__(self, consent_token=None, seller_id=None, country_of_establishment=None, ledger_currency=None, checkout_language=None, billing_agreement_attributes=None, need_amazon_shipping_address=False, sandbox_mode=False, sandbox_customer_email_id=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[V1_BillingAgreementAttributesV1], Optional[bool], Optional[bool], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[BillingAgreementAttributes_a2cf5a24], Optional[bool], Optional[bool], Optional[str]) -> None """Setup Amazon Pay Request Object :param consent_token: Authorization token that contains the permissions consented to by the user. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py index 460201c..da6881f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/setup_amazon_pay_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_details import BillingAgreementDetails as V1_BillingAgreementDetailsV1 + from ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_details import BillingAgreementDetails as BillingAgreementDetails_49c156e class SetupAmazonPayResult(object): @@ -45,7 +45,7 @@ class SetupAmazonPayResult(object): supports_multiple_types = False def __init__(self, billing_agreement_details=None): - # type: (Optional[V1_BillingAgreementDetailsV1]) -> None + # type: (Optional[BillingAgreementDetails_49c156e]) -> None """Setup Amazon Pay Result Object. It is sent as part of the reponse to SetupAmazonPay request. :param billing_agreement_details: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py index 44c2f03..7524dda 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.audio_item_metadata import AudioItemMetadata - from ask_sdk_model.interfaces.audioplayer.stream import Stream + from ask_sdk_model.interfaces.audioplayer.stream import Stream as Stream_ede56f13 + from ask_sdk_model.interfaces.audioplayer.audio_item_metadata import AudioItemMetadata as AudioItemMetadata_6f8cf3c1 class AudioItem(object): @@ -48,7 +48,7 @@ class AudioItem(object): supports_multiple_types = False def __init__(self, stream=None, metadata=None): - # type: (Optional[Stream], Optional[AudioItemMetadata]) -> None + # type: (Optional[Stream_ede56f13], Optional[AudioItemMetadata_6f8cf3c1]) -> None """ :param stream: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py index bf6e18f..7f05c07 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_item_metadata.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.image import Image + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 class AudioItemMetadata(object): @@ -57,7 +57,7 @@ class AudioItemMetadata(object): supports_multiple_types = False def __init__(self, title=None, subtitle=None, art=None, background_image=None): - # type: (Optional[str], Optional[str], Optional[Image], Optional[Image]) -> None + # type: (Optional[str], Optional[str], Optional[Image_1942d978], Optional[Image_1942d978]) -> None """Encapsulates the metadata about an AudioItem. :param title: An optional title of the audio item. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py index 6693281..41eb29c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/audio_player_state.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity + from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity as PlayerActivity_555ba3ec class AudioPlayerState(object): @@ -51,7 +51,7 @@ class AudioPlayerState(object): supports_multiple_types = False def __init__(self, offset_in_milliseconds=None, token=None, player_activity=None): - # type: (Optional[int], Optional[str], Optional[PlayerActivity]) -> None + # type: (Optional[int], Optional[str], Optional[PlayerActivity_555ba3ec]) -> None """ :param offset_in_milliseconds: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py index 6737326..f6eef76 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/caption_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.caption_type import CaptionType + from ask_sdk_model.interfaces.audioplayer.caption_type import CaptionType as CaptionType_99665840 class CaptionData(object): @@ -47,7 +47,7 @@ class CaptionData(object): supports_multiple_types = False def __init__(self, content=None, object_type=None): - # type: (Optional[str], Optional[CaptionType]) -> None + # type: (Optional[str], Optional[CaptionType_99665840]) -> None """ :param content: This contains the caption text. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py index 24dcad1..a600cb4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/clear_queue_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.clear_behavior import ClearBehavior + from ask_sdk_model.interfaces.audioplayer.clear_behavior import ClearBehavior as ClearBehavior_94e71750 class ClearQueueDirective(Directive): @@ -46,7 +46,7 @@ class ClearQueueDirective(Directive): supports_multiple_types = False def __init__(self, clear_behavior=None): - # type: (Optional[ClearBehavior]) -> None + # type: (Optional[ClearBehavior_94e71750]) -> None """ :param clear_behavior: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py index 8cd2ee1..ab04796 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/current_playback_state.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity + from ask_sdk_model.interfaces.audioplayer.player_activity import PlayerActivity as PlayerActivity_555ba3ec class CurrentPlaybackState(object): @@ -51,7 +51,7 @@ class CurrentPlaybackState(object): supports_multiple_types = False def __init__(self, offset_in_milliseconds=None, player_activity=None, token=None): - # type: (Optional[int], Optional[PlayerActivity], Optional[str]) -> None + # type: (Optional[int], Optional[PlayerActivity_555ba3ec], Optional[str]) -> None """ :param offset_in_milliseconds: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py index fe16b9a..5eb7b32 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.error_type import ErrorType + from ask_sdk_model.interfaces.audioplayer.error_type import ErrorType as ErrorType_1ffc9c0 class Error(object): @@ -47,7 +47,7 @@ class Error(object): supports_multiple_types = False def __init__(self, message=None, object_type=None): - # type: (Optional[str], Optional[ErrorType]) -> None + # type: (Optional[str], Optional[ErrorType_1ffc9c0]) -> None """ :param message: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py index cf0033f..05397dc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/play_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.audio_item import AudioItem - from ask_sdk_model.interfaces.audioplayer.play_behavior import PlayBehavior + from ask_sdk_model.interfaces.audioplayer.audio_item import AudioItem as AudioItem_70c73972 + from ask_sdk_model.interfaces.audioplayer.play_behavior import PlayBehavior as PlayBehavior_b04a7f2 class PlayDirective(Directive): @@ -51,7 +51,7 @@ class PlayDirective(Directive): supports_multiple_types = False def __init__(self, play_behavior=None, audio_item=None): - # type: (Optional[PlayBehavior], Optional[AudioItem]) -> None + # type: (Optional[PlayBehavior_b04a7f2], Optional[AudioItem_70c73972]) -> None """ :param play_behavior: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py index 62357b9..497407e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/playback_failed_request.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.error import Error - from ask_sdk_model.interfaces.audioplayer.current_playback_state import CurrentPlaybackState + from ask_sdk_model.interfaces.audioplayer.current_playback_state import CurrentPlaybackState as CurrentPlaybackState_723846fd + from ask_sdk_model.interfaces.audioplayer.error import Error as Error_4b0d507 class PlaybackFailedRequest(Request): @@ -67,7 +67,7 @@ class PlaybackFailedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, current_playback_state=None, error=None, token=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[CurrentPlaybackState], Optional[Error], Optional[str]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[CurrentPlaybackState_723846fd], Optional[Error_4b0d507], Optional[str]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py index 9479a2c..f713fee 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.caption_data import CaptionData + from ask_sdk_model.interfaces.audioplayer.caption_data import CaptionData as CaptionData_e119f120 class Stream(object): @@ -59,7 +59,7 @@ class Stream(object): supports_multiple_types = False def __init__(self, expected_previous_token=None, token=None, url=None, offset_in_milliseconds=None, caption_data=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[int], Optional[CaptionData]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[int], Optional[CaptionData_e119f120]) -> None """ :param expected_previous_token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py index ed49516..45ddc0a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/connections_response.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus + from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus as ConnectionsStatus_145c3ef2 class ConnectionsResponse(Request): @@ -72,7 +72,7 @@ class ConnectionsResponse(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, status=None, name=None, payload=None, token=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ConnectionsStatus], Optional[str], Optional[Dict[str, object]], Optional[str]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ConnectionsStatus_145c3ef2], Optional[str], Optional[Dict[str, object]], Optional[str]) -> None """This is the request object that a skill will receive as a result of Connections.SendResponse directive from referrer skill. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py index 213068a..3a17124 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/restaurant.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress + from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress as PostalAddress_4b374d8b class Restaurant(BaseEntity): @@ -56,7 +56,7 @@ class Restaurant(BaseEntity): supports_multiple_types = False def __init__(self, version=None, name=None, location=None): - # type: (Optional[str], Optional[str], Optional[PostalAddress]) -> None + # type: (Optional[str], Optional[str], Optional[PostalAddress_4b374d8b]) -> None """Restaurant entity :param version: version of the request diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py index 1ba7721..7dd06ee 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_food_establishment_reservation_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.entities.restaurant import Restaurant + from ask_sdk_model.interfaces.connections.entities.restaurant import Restaurant as Restaurant_dd179ebe class ScheduleFoodEstablishmentReservationRequest(BaseRequest): @@ -60,7 +60,7 @@ class ScheduleFoodEstablishmentReservationRequest(BaseRequest): supports_multiple_types = False def __init__(self, version=None, start_time=None, party_size=None, restaurant=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[Restaurant]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Restaurant_dd179ebe]) -> None """ScheduleFoodEstablishmentReservationRequest for booking restaurant reservation :param version: version of the request diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py index d96d293..c534810 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/schedule_taxi_reservation_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress + from ask_sdk_model.interfaces.connections.entities.postal_address import PostalAddress as PostalAddress_4b374d8b class ScheduleTaxiReservationRequest(BaseRequest): @@ -64,7 +64,7 @@ class ScheduleTaxiReservationRequest(BaseRequest): supports_multiple_types = False def __init__(self, version=None, pickup_time=None, party_size=None, pickup_location=None, drop_off_location=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[PostalAddress], Optional[PostalAddress]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[PostalAddress_4b374d8b], Optional[PostalAddress_4b374d8b]) -> None """ScheduleTaxiReservationRequest for booking taxi reservation :param version: version of the request diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py index 20a9bff..c73e8a3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/send_response_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus + from ask_sdk_model.interfaces.connections.connections_status import ConnectionsStatus as ConnectionsStatus_145c3ef2 class SendResponseDirective(Directive): @@ -52,7 +52,7 @@ class SendResponseDirective(Directive): supports_multiple_types = False def __init__(self, status=None, payload=None): - # type: (Optional[ConnectionsStatus], Optional[Dict[str, object]]) -> None + # type: (Optional[ConnectionsStatus_145c3ef2], Optional[Dict[str, object]]) -> None """This is the directive that a skill can send as part of their response to a session based request to return a response to ConnectionsRequest. :param status: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py index 9c09001..fa26119 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/v1/start_connection_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.connections.on_completion import OnCompletion + from ask_sdk_model.interfaces.connections.on_completion import OnCompletion as OnCompletion_8fc1f2aa class StartConnectionDirective(Directive): @@ -60,7 +60,7 @@ class StartConnectionDirective(Directive): supports_multiple_types = False def __init__(self, uri=None, on_completion=None, input=None, token=None): - # type: (Optional[str], Optional[OnCompletion], Optional[Dict[str, object]], Optional[str]) -> None + # type: (Optional[str], Optional[OnCompletion_8fc1f2aa], Optional[Dict[str, object]], Optional[str]) -> None """This is the directive that a skill can send as part of their response to a session based request to start a connection. A response will be returned to the skill when the connection is handled. :param uri: This defines the name and version of connection that the requester is trying to send. The format of the uri should follow this pattern: connection://connectionName/connectionVersion. Invalid uri will cause an error which will be sent back to the requester. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py index 90f75ae..f6b0a0e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_invocation_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.conversations.api_request import APIRequest + from ask_sdk_model.interfaces.conversations.api_request import APIRequest as APIRequest_cc358b5b class APIInvocationRequest(Request): @@ -58,7 +58,7 @@ class APIInvocationRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, api_request=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[APIRequest]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[APIRequest_cc358b5b]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py index a1ee00b..d9d8238 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/api_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slot_value import SlotValue + from ask_sdk_model.slot_value import SlotValue as SlotValue_4725c8c5 class APIRequest(object): @@ -53,7 +53,7 @@ class APIRequest(object): supports_multiple_types = False def __init__(self, name=None, arguments=None, slots=None): - # type: (Optional[str], Optional[Dict[str, object]], Optional[Dict[str, SlotValue]]) -> None + # type: (Optional[str], Optional[Dict[str, object]], Optional[Dict[str, SlotValue_4725c8c5]]) -> None """API request object :param name: API name diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py index 6776028..5aca9f0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint - from ask_sdk_model.interfaces.custom_interface_controller.header import Header + from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint as Endpoint_3be30cac + from ask_sdk_model.interfaces.custom_interface_controller.header import Header as Header_57ad56ec class Event(object): @@ -54,7 +54,7 @@ class Event(object): supports_multiple_types = False def __init__(self, header=None, payload=None, endpoint=None): - # type: (Optional[Header], Optional[object], Optional[Endpoint]) -> None + # type: (Optional[Header_57ad56ec], Optional[object], Optional[Endpoint_3be30cac]) -> None """An Event object defining a single event sent by an endpoint :param header: The object that contains the header of the event. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py index 7b7d35c..53c6b43 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/event_filter.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.custom_interface_controller.filter_match_action import FilterMatchAction + from ask_sdk_model.interfaces.custom_interface_controller.filter_match_action import FilterMatchAction as FilterMatchAction_1d20768a class EventFilter(object): @@ -49,7 +49,7 @@ class EventFilter(object): supports_multiple_types = False def __init__(self, filter_expression=None, filter_match_action=None): - # type: (Optional[object], Optional[FilterMatchAction]) -> None + # type: (Optional[object], Optional[FilterMatchAction_1d20768a]) -> None """Defines the Jsonlogic event filter expression and its corresponding match action. This filter is applied to all events during the event handler's duration. Events that are rejected by the filter expression are not sent to the skill. :param filter_expression: The JSON object that represents the Jsonlogic expression against which the events are evaluated. If this expression is satisfied, the corresponding match action is performed. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py index c0a8fbf..c0e362a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/events_received_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.custom_interface_controller.event import Event + from ask_sdk_model.interfaces.custom_interface_controller.event import Event as Event_df85ab64 class EventsReceivedRequest(Request): @@ -64,7 +64,7 @@ class EventsReceivedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, token=None, events=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[Event]]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[Event_df85ab64]]) -> None """Skill receives this type of event when an event meets the filter conditions provided in the StartEventHandlerDirective. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py index c0280eb..86be586 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/send_directive_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint - from ask_sdk_model.interfaces.custom_interface_controller.header import Header + from ask_sdk_model.interfaces.custom_interface_controller.endpoint import Endpoint as Endpoint_3be30cac + from ask_sdk_model.interfaces.custom_interface_controller.header import Header as Header_57ad56ec class SendDirectiveDirective(Directive): @@ -57,7 +57,7 @@ class SendDirectiveDirective(Directive): supports_multiple_types = False def __init__(self, header=None, payload=None, endpoint=None): - # type: (Optional[Header], Optional[object], Optional[Endpoint]) -> None + # type: (Optional[Header_57ad56ec], Optional[object], Optional[Endpoint_3be30cac]) -> None """The directive to be delivered to the gadgets. Each directive is targeted to one gadget (that is, one endpointId). To target the same directive to multiple gadgets, include one directive for each gadget in the response. :param header: The object that contains the header of the directive. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py index 75364bd..d9afe9b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/start_event_handler_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.custom_interface_controller.expiration import Expiration - from ask_sdk_model.interfaces.custom_interface_controller.event_filter import EventFilter + from ask_sdk_model.interfaces.custom_interface_controller.event_filter import EventFilter as EventFilter_321cde63 + from ask_sdk_model.interfaces.custom_interface_controller.expiration import Expiration as Expiration_edfb772c class StartEventHandlerDirective(Directive): @@ -57,7 +57,7 @@ class StartEventHandlerDirective(Directive): supports_multiple_types = False def __init__(self, token=None, event_filter=None, expiration=None): - # type: (Optional[str], Optional[EventFilter], Optional[Expiration]) -> None + # type: (Optional[str], Optional[EventFilter_321cde63], Optional[Expiration_edfb772c]) -> None """This directive configures and starts an event handler. This will enable the skill to receive Custom Events. A skill can only have one active Event Handler at a time. :param token: A unique string to identify the Event Handler. This identifier is associated with all events dispatched by the Event Handler while it is active. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py index b558691..4e2722a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template1.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.text_content import TextContent + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.text_content import TextContent as TextContent_1d3959d5 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class BodyTemplate1(Template): @@ -64,7 +64,7 @@ class BodyTemplate1(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, title=None, text_content=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[str], Optional[TextContent]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[str], Optional[TextContent_1d3959d5]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py index bef1ec3..fbc1739 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template2.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.text_content import TextContent + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.text_content import TextContent as TextContent_1d3959d5 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class BodyTemplate2(Template): @@ -68,7 +68,7 @@ class BodyTemplate2(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, image=None, title=None, text_content=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[Image], Optional[str], Optional[TextContent]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[Image_1942d978], Optional[str], Optional[TextContent_1d3959d5]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py index de8d3d7..bbc092c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template3.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.text_content import TextContent + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.text_content import TextContent as TextContent_1d3959d5 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class BodyTemplate3(Template): @@ -68,7 +68,7 @@ class BodyTemplate3(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, image=None, title=None, text_content=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[Image], Optional[str], Optional[TextContent]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[Image_1942d978], Optional[str], Optional[TextContent_1d3959d5]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py index 05810a8..59f417a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template6.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.text_content import TextContent + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.text_content import TextContent as TextContent_1d3959d5 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class BodyTemplate6(Template): @@ -64,7 +64,7 @@ class BodyTemplate6(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, text_content=None, image=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[TextContent], Optional[Image]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[TextContent_1d3959d5], Optional[Image_1942d978]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py index 42e488d..2620823 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/body_template7.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class BodyTemplate7(Template): @@ -63,7 +63,7 @@ class BodyTemplate7(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, title=None, image=None, background_image=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[str], Optional[Image], Optional[Image]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[str], Optional[Image_1942d978], Optional[Image_1942d978]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py index 3998652..53e4f0a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/hint_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.hint import Hint + from ask_sdk_model.interfaces.display.hint import Hint as Hint_5bfd483e class HintDirective(Directive): @@ -46,7 +46,7 @@ class HintDirective(Directive): supports_multiple_types = False def __init__(self, hint=None): - # type: (Optional[Hint]) -> None + # type: (Optional[Hint_5bfd483e]) -> None """ :param hint: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/image.py b/ask-sdk-model/ask_sdk_model/interfaces/display/image.py index f790e79..a33b48b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.image_instance import ImageInstance + from ask_sdk_model.interfaces.display.image_instance import ImageInstance as ImageInstance_6992042b class Image(object): @@ -47,7 +47,7 @@ class Image(object): supports_multiple_types = False def __init__(self, content_description=None, sources=None): - # type: (Optional[str], Optional[List[ImageInstance]]) -> None + # type: (Optional[str], Optional[List[ImageInstance_6992042b]]) -> None """ :param content_description: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py b/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py index 191ccab..4e47aee 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image_instance.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.image_size import ImageSize + from ask_sdk_model.interfaces.display.image_size import ImageSize as ImageSize_d9870903 class ImageInstance(object): @@ -55,7 +55,7 @@ class ImageInstance(object): supports_multiple_types = False def __init__(self, url=None, size=None, width_pixels=None, height_pixels=None): - # type: (Optional[str], Optional[ImageSize], Optional[int], Optional[int]) -> None + # type: (Optional[str], Optional[ImageSize_d9870903], Optional[int], Optional[int]) -> None """ :param url: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py index 946d7e7..ad574a6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_item.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.text_content import TextContent + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.text_content import TextContent as TextContent_1d3959d5 class ListItem(object): @@ -52,7 +52,7 @@ class ListItem(object): supports_multiple_types = False def __init__(self, token=None, image=None, text_content=None): - # type: (Optional[str], Optional[Image], Optional[TextContent]) -> None + # type: (Optional[str], Optional[Image_1942d978], Optional[TextContent_1d3959d5]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py index 478ddda..36aab2a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template1.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.list_item import ListItem + from ask_sdk_model.interfaces.display.list_item import ListItem as ListItem_79a19afb + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class ListTemplate1(Template): @@ -64,7 +64,7 @@ class ListTemplate1(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, title=None, list_items=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[str], Optional[List[ListItem]]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[str], Optional[List[ListItem_79a19afb]]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py index 5680e0c..7d23068 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/list_template2.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior - from ask_sdk_model.interfaces.display.image import Image - from ask_sdk_model.interfaces.display.list_item import ListItem + from ask_sdk_model.interfaces.display.list_item import ListItem as ListItem_79a19afb + from ask_sdk_model.interfaces.display.image import Image as Image_1942d978 + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class ListTemplate2(Template): @@ -64,7 +64,7 @@ class ListTemplate2(Template): supports_multiple_types = False def __init__(self, token=None, back_button=None, background_image=None, title=None, list_items=None): - # type: (Optional[str], Optional[BackButtonBehavior], Optional[Image], Optional[str], Optional[List[ListItem]]) -> None + # type: (Optional[str], Optional[BackButtonBehavior_46c3eb02], Optional[Image_1942d978], Optional[str], Optional[List[ListItem_79a19afb]]) -> None """ :param token: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py index 6004ff6..c17ce6c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/render_template_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.template import Template + from ask_sdk_model.interfaces.display.template import Template as Template_14d6ce1e class RenderTemplateDirective(Directive): @@ -46,7 +46,7 @@ class RenderTemplateDirective(Directive): supports_multiple_types = False def __init__(self, template=None): - # type: (Optional[Template]) -> None + # type: (Optional[Template_14d6ce1e]) -> None """ :param template: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/template.py b/ask-sdk-model/ask_sdk_model/interfaces/display/template.py index e634b37..f7f37f9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/template.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/template.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior + from ask_sdk_model.interfaces.display.back_button_behavior import BackButtonBehavior as BackButtonBehavior_46c3eb02 class Template(object): @@ -86,7 +86,7 @@ class Template(object): @abstractmethod def __init__(self, object_type=None, token=None, back_button=None): - # type: (Optional[str], Optional[str], Optional[BackButtonBehavior]) -> None + # type: (Optional[str], Optional[str], Optional[BackButtonBehavior_46c3eb02]) -> None """ :param object_type: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py b/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py index 70b60f9..5e8cb59 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/text_content.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.display.text_field import TextField + from ask_sdk_model.interfaces.display.text_field import TextField as TextField_b5418c17 class TextContent(object): @@ -51,7 +51,7 @@ class TextContent(object): supports_multiple_types = False def __init__(self, primary_text=None, secondary_text=None, tertiary_text=None): - # type: (Optional[TextField], Optional[TextField], Optional[TextField]) -> None + # type: (Optional[TextField_b5418c17], Optional[TextField_b5418c17], Optional[TextField_b5418c17]) -> None """ :param primary_text: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py index 20e7964..d0a056e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/gadget_controller/set_light_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.gadget_controller.set_light_parameters import SetLightParameters + from ask_sdk_model.services.gadget_controller.set_light_parameters import SetLightParameters as SetLightParameters_4fffcafd class SetLightDirective(Directive): @@ -56,7 +56,7 @@ class SetLightDirective(Directive): supports_multiple_types = False def __init__(self, version=None, target_gadgets=None, parameters=None): - # type: (Optional[int], Optional[List[object]], Optional[SetLightParameters]) -> None + # type: (Optional[int], Optional[List[object]], Optional[SetLightParameters_4fffcafd]) -> None """Sends Alexa a command to modify the behavior of connected Echo Buttons. :param version: The version of the directive. Must be set to 1. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py index 870ca1d..31fb729 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/input_handler_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.input_handler_event import InputHandlerEvent + from ask_sdk_model.services.game_engine.input_handler_event import InputHandlerEvent as InputHandlerEvent_206447bd class InputHandlerEventRequest(Request): @@ -64,7 +64,7 @@ class InputHandlerEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, originating_request_id=None, events=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[InputHandlerEvent]]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[List[InputHandlerEvent_206447bd]]) -> None """Sent when the conditions of an Echo Button event that your skill defined were met. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py index 58858d7..b01a732 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/start_input_handler_directive.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.recognizer import Recognizer - from ask_sdk_model.services.game_engine.event import Event + from ask_sdk_model.services.game_engine.event import Event as Event_28203a7 + from ask_sdk_model.services.game_engine.recognizer import Recognizer as Recognizer_f1651c8f class StartInputHandlerDirective(Directive): @@ -59,7 +59,7 @@ class StartInputHandlerDirective(Directive): supports_multiple_types = False def __init__(self, timeout=None, proxies=None, recognizers=None, events=None): - # type: (Optional[int], Optional[List[object]], Optional[Dict[str, Recognizer]], Optional[Dict[str, Event]]) -> None + # type: (Optional[int], Optional[List[object]], Optional[Dict[str, Recognizer_f1651c8f]], Optional[Dict[str, Event_28203a7]]) -> None """ :param timeout: The maximum run time for this Input Handler, in milliseconds. Although this parameter is required, you can specify events with conditions on which to end the Input Handler earlier. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py index 1600f47..a95259e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.geolocation.coordinate import Coordinate - from ask_sdk_model.interfaces.geolocation.altitude import Altitude - from ask_sdk_model.interfaces.geolocation.heading import Heading - from ask_sdk_model.interfaces.geolocation.speed import Speed - from ask_sdk_model.interfaces.geolocation.location_services import LocationServices + from ask_sdk_model.interfaces.geolocation.altitude import Altitude as Altitude_328a6962 + from ask_sdk_model.interfaces.geolocation.heading import Heading as Heading_bf10e3ca + from ask_sdk_model.interfaces.geolocation.speed import Speed as Speed_22d2d794 + from ask_sdk_model.interfaces.geolocation.coordinate import Coordinate as Coordinate_c6912a2 + from ask_sdk_model.interfaces.geolocation.location_services import LocationServices as LocationServices_c8dfc485 class GeolocationState(object): @@ -67,7 +67,7 @@ class GeolocationState(object): supports_multiple_types = False def __init__(self, timestamp=None, coordinate=None, altitude=None, heading=None, speed=None, location_services=None): - # type: (Optional[str], Optional[Coordinate], Optional[Altitude], Optional[Heading], Optional[Speed], Optional[LocationServices]) -> None + # type: (Optional[str], Optional[Coordinate_c6912a2], Optional[Altitude_328a6962], Optional[Heading_bf10e3ca], Optional[Speed_22d2d794], Optional[LocationServices_c8dfc485]) -> None """ :param timestamp: Specifies the time when the geolocation data was last collected on the device. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py index 8b4b1b9..d854497 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/location_services.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.geolocation.status import Status - from ask_sdk_model.interfaces.geolocation.access import Access + from ask_sdk_model.interfaces.geolocation.status import Status as Status_d747e462 + from ask_sdk_model.interfaces.geolocation.access import Access as Access_20924022 class LocationServices(object): @@ -50,7 +50,7 @@ class LocationServices(object): supports_multiple_types = False def __init__(self, status=None, access=None): - # type: (Optional[Status], Optional[Access]) -> None + # type: (Optional[Status_d747e462], Optional[Access_20924022]) -> None """An object containing status and access. :param status: A string representing the status of whether location services is currently running or not on the host OS of device. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/error.py b/ask-sdk-model/ask_sdk_model/interfaces/system/error.py index e815e1c..8e712d4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.system.error_type import ErrorType + from ask_sdk_model.interfaces.system.error_type import ErrorType as ErrorType_9b83cec0 class Error(object): @@ -47,7 +47,7 @@ class Error(object): supports_multiple_types = False def __init__(self, object_type=None, message=None): - # type: (Optional[ErrorType], Optional[str]) -> None + # type: (Optional[ErrorType_9b83cec0], Optional[str]) -> None """ :param object_type: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py b/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py index da91ff8..080ed69 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/exception_encountered_request.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.system.error import Error - from ask_sdk_model.interfaces.system.error_cause import ErrorCause + from ask_sdk_model.interfaces.system.error_cause import ErrorCause as ErrorCause_f5e108b8 + from ask_sdk_model.interfaces.system.error import Error as Error_96a33007 class ExceptionEncounteredRequest(Request): @@ -63,7 +63,7 @@ class ExceptionEncounteredRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, error=None, cause=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Error], Optional[ErrorCause]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Error_96a33007], Optional[ErrorCause_f5e108b8]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py index daff577..81e9d93 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/system_state.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.device import Device - from ask_sdk_model.interfaces.system_unit.unit import Unit - from ask_sdk_model.person import Person - from ask_sdk_model.application import Application - from ask_sdk_model.user import User + from ask_sdk_model.device import Device as Device_8c07abbe + from ask_sdk_model.interfaces.system_unit.unit import Unit as Unit_14958eb0 + from ask_sdk_model.application import Application as Application_fbe81c42 + from ask_sdk_model.user import User as User_8987f2de + from ask_sdk_model.person import Person as Person_a00fdede class SystemState(object): @@ -71,7 +71,7 @@ class SystemState(object): supports_multiple_types = False def __init__(self, application=None, user=None, device=None, person=None, unit=None, api_endpoint=None, api_access_token=None): - # type: (Optional[Application], Optional[User], Optional[Device], Optional[Person], Optional[Unit], Optional[str], Optional[str]) -> None + # type: (Optional[Application_fbe81c42], Optional[User_8987f2de], Optional[Device_8c07abbe], Optional[Person_a00fdede], Optional[Unit_14958eb0], Optional[str], Optional[str]) -> None """ :param application: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py index c12019c..0b533a1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/tasks/complete_task_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.status import Status + from ask_sdk_model.status import Status as Status_7705e43e class CompleteTaskDirective(Directive): @@ -52,7 +52,7 @@ class CompleteTaskDirective(Directive): supports_multiple_types = False def __init__(self, status=None, result=None): - # type: (Optional[Status], Optional[Dict[str, object]]) -> None + # type: (Optional[Status_7705e43e], Optional[Dict[str, object]]) -> None """This is the directive that a skill can send as part of their response to a session based request. The response will contain the result of the task that the skill is launched for. :param status: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py index dbb892b..5909b32 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/launch_directive.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.videoapp.video_item import VideoItem + from ask_sdk_model.interfaces.videoapp.video_item import VideoItem as VideoItem_7858bd1b class LaunchDirective(Directive): @@ -46,7 +46,7 @@ class LaunchDirective(Directive): supports_multiple_types = False def __init__(self, video_item=None): - # type: (Optional[VideoItem]) -> None + # type: (Optional[VideoItem_7858bd1b]) -> None """ :param video_item: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py index 5a8228e..b875bd6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/video_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.videoapp.metadata import Metadata + from ask_sdk_model.interfaces.videoapp.metadata import Metadata as Metadata_d0c69dca class VideoItem(object): @@ -47,7 +47,7 @@ class VideoItem(object): supports_multiple_types = False def __init__(self, source=None, metadata=None): - # type: (Optional[str], Optional[Metadata]) -> None + # type: (Optional[str], Optional[Metadata_d0c69dca]) -> None """ :param source: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py index eb4e9fa..ae1852e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/current_configuration.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.dialog import Dialog - from ask_sdk_model.interfaces.viewport.viewport_video import ViewportVideo - from ask_sdk_model.interfaces.viewport.mode import Mode - from ask_sdk_model.interfaces.viewport.size.viewport_size import ViewportSize + from ask_sdk_model.interfaces.viewport.dialog import Dialog as Dialog_9057824a + from ask_sdk_model.interfaces.viewport.viewport_video import ViewportVideo as ViewportVideo_d4424d0d + from ask_sdk_model.interfaces.viewport.mode import Mode as Mode_968d4aaa + from ask_sdk_model.interfaces.viewport.size.viewport_size import ViewportSize as ViewportSize_cc246be4 class CurrentConfiguration(object): @@ -60,7 +60,7 @@ class CurrentConfiguration(object): supports_multiple_types = False def __init__(self, mode=None, video=None, size=None, dialog=None): - # type: (Optional[Mode], Optional[ViewportVideo], Optional[ViewportSize], Optional[Dialog]) -> None + # type: (Optional[Mode_968d4aaa], Optional[ViewportVideo_d4424d0d], Optional[ViewportSize_cc246be4], Optional[Dialog_9057824a]) -> None """The viewport configuration at the time of the request. :param mode: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py index 1dd318b..886f0dd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/viewport_configuration.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.apl.current_configuration import CurrentConfiguration + from ask_sdk_model.interfaces.viewport.apl.current_configuration import CurrentConfiguration as CurrentConfiguration_e0d94110 class ViewportConfiguration(object): @@ -43,7 +43,7 @@ class ViewportConfiguration(object): supports_multiple_types = False def __init__(self, current=None): - # type: (Optional[CurrentConfiguration]) -> None + # type: (Optional[CurrentConfiguration_e0d94110]) -> None """ :param current: diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py index 66405c3..e6db2a9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl_viewport_state.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.shape import Shape - from ask_sdk_model.interfaces.viewport.presentation_type import PresentationType - from ask_sdk_model.interfaces.viewport.apl.viewport_configuration import ViewportConfiguration + from ask_sdk_model.interfaces.viewport.presentation_type import PresentationType as PresentationType_26a73e67 + from ask_sdk_model.interfaces.viewport.shape import Shape as Shape_d8a6bf70 + from ask_sdk_model.interfaces.viewport.apl.viewport_configuration import ViewportConfiguration as ViewportConfiguration_19084f4 class APLViewportState(TypedViewportState): @@ -70,7 +70,7 @@ class APLViewportState(TypedViewportState): supports_multiple_types = False def __init__(self, id=None, shape=None, dpi=None, presentation_type=None, can_rotate=None, configuration=None): - # type: (Optional[str], Optional[Shape], Optional[float], Optional[PresentationType], Optional[bool], Optional[ViewportConfiguration]) -> None + # type: (Optional[str], Optional[Shape_d8a6bf70], Optional[float], Optional[PresentationType_26a73e67], Optional[bool], Optional[ViewportConfiguration_19084f4]) -> None """This object contains the characteristics related to the APL device's viewport. :param id: unique identifier of a viewport object diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py index b5d9286..2a396ac 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt_viewport_state.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.aplt.viewport_profile import ViewportProfile - from ask_sdk_model.interfaces.viewport.aplt.inter_segment import InterSegment - from ask_sdk_model.interfaces.viewport.aplt.character_format import CharacterFormat + from ask_sdk_model.interfaces.viewport.aplt.viewport_profile import ViewportProfile as ViewportProfile_b56b71b8 + from ask_sdk_model.interfaces.viewport.aplt.character_format import CharacterFormat as CharacterFormat_3252d8d2 + from ask_sdk_model.interfaces.viewport.aplt.inter_segment import InterSegment as InterSegment_71b0a608 class APLTViewportState(TypedViewportState): @@ -70,7 +70,7 @@ class APLTViewportState(TypedViewportState): supports_multiple_types = False def __init__(self, id=None, supported_profiles=None, line_length=None, line_count=None, character_format=None, inter_segments=None): - # type: (Optional[str], Optional[List[ViewportProfile]], Optional[int], Optional[int], Optional[CharacterFormat], Optional[List[InterSegment]]) -> None + # type: (Optional[str], Optional[List[ViewportProfile_b56b71b8]], Optional[int], Optional[int], Optional[CharacterFormat_3252d8d2], Optional[List[InterSegment_71b0a608]]) -> None """This object contains the characteristics related to the text device's viewport. :param id: unique identifier of a viewport object diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py index 226f6d3..16ef9f1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state.py @@ -23,12 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.experience import Experience - from ask_sdk_model.interfaces.viewport.viewport_state_video import ViewportStateVideo - from ask_sdk_model.interfaces.viewport.touch import Touch - from ask_sdk_model.interfaces.viewport.keyboard import Keyboard - from ask_sdk_model.interfaces.viewport.shape import Shape - from ask_sdk_model.interfaces.viewport.mode import Mode + from ask_sdk_model.interfaces.viewport.keyboard import Keyboard as Keyboard_6e759daa + from ask_sdk_model.interfaces.viewport.experience import Experience as Experience_99e18a0a + from ask_sdk_model.interfaces.viewport.shape import Shape as Shape_d8a6bf70 + from ask_sdk_model.interfaces.viewport.viewport_state_video import ViewportStateVideo as ViewportStateVideo_a9fffd46 + from ask_sdk_model.interfaces.viewport.mode import Mode as Mode_968d4aaa + from ask_sdk_model.interfaces.viewport.touch import Touch as Touch_93b302c class ViewportState(object): @@ -90,7 +90,7 @@ class ViewportState(object): supports_multiple_types = False def __init__(self, experiences=None, mode=None, shape=None, pixel_width=None, pixel_height=None, dpi=None, current_pixel_width=None, current_pixel_height=None, touch=None, keyboard=None, video=None): - # type: (Optional[List[Experience]], Optional[Mode], Optional[Shape], Optional[float], Optional[float], Optional[float], Optional[float], Optional[float], Optional[List[Touch]], Optional[List[Keyboard]], Optional[ViewportStateVideo]) -> None + # type: (Optional[List[Experience_99e18a0a]], Optional[Mode_968d4aaa], Optional[Shape_d8a6bf70], Optional[float], Optional[float], Optional[float], Optional[float], Optional[float], Optional[List[Touch_93b302c]], Optional[List[Keyboard_6e759daa]], Optional[ViewportStateVideo_a9fffd46]) -> None """This object contains the characteristics related to the device's viewport. :param experiences: The experiences supported by the device, in descending order of arcMinuteWidth and arcMinuteHeight. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py index 4dc8d8b..e7d100a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_state_video.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.video.codecs import Codecs + from ask_sdk_model.interfaces.viewport.video.codecs import Codecs as Codecs_89738777 class ViewportStateVideo(object): @@ -45,7 +45,7 @@ class ViewportStateVideo(object): supports_multiple_types = False def __init__(self, codecs=None): - # type: (Optional[List[Codecs]]) -> None + # type: (Optional[List[Codecs_89738777]]) -> None """Details of the technologies which are available for playing video on the device. :param codecs: Codecs which are available for playing video on the device. diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py index 28a4f4f..e8bc712 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/viewport_video.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.viewport.video.codecs import Codecs + from ask_sdk_model.interfaces.viewport.video.codecs import Codecs as Codecs_89738777 class ViewportVideo(object): @@ -45,7 +45,7 @@ class ViewportVideo(object): supports_multiple_types = False def __init__(self, codecs=None): - # type: (Optional[List[Codecs]]) -> None + # type: (Optional[List[Codecs_89738777]]) -> None """Details of the technologies which are available for playing video on the device. :param codecs: Codecs which are available for playing video on the device. diff --git a/ask-sdk-model/ask_sdk_model/launch_request.py b/ask-sdk-model/ask_sdk_model/launch_request.py index 7019aa6..b8ff96a 100644 --- a/ask-sdk-model/ask_sdk_model/launch_request.py +++ b/ask-sdk-model/ask_sdk_model/launch_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.task import Task + from ask_sdk_model.task import Task as Task_8012f71e class LaunchRequest(Request): @@ -60,7 +60,7 @@ class LaunchRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, task=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Task]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Task_8012f71e]) -> None """Represents that a user made a request to an Alexa skill, but did not provide a specific intent. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/list_slot_value.py b/ask-sdk-model/ask_sdk_model/list_slot_value.py index 2dc7648..0e84377 100644 --- a/ask-sdk-model/ask_sdk_model/list_slot_value.py +++ b/ask-sdk-model/ask_sdk_model/list_slot_value.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slot_value import SlotValue + from ask_sdk_model.slot_value import SlotValue as SlotValue_4725c8c5 class ListSlotValue(SlotValue): @@ -48,7 +48,7 @@ class ListSlotValue(SlotValue): supports_multiple_types = False def __init__(self, values=None): - # type: (Optional[List[SlotValue]]) -> None + # type: (Optional[List[SlotValue_4725c8c5]]) -> None """Slot value containing a list of other slot value objects. :param values: An array containing the values captured for this slot. diff --git a/ask-sdk-model/ask_sdk_model/permissions.py b/ask-sdk-model/ask_sdk_model/permissions.py index 9cbc93c..bd82722 100644 --- a/ask-sdk-model/ask_sdk_model/permissions.py +++ b/ask-sdk-model/ask_sdk_model/permissions.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.scope import Scope + from ask_sdk_model.scope import Scope as Scope_ed061cca class Permissions(object): @@ -49,7 +49,7 @@ class Permissions(object): supports_multiple_types = False def __init__(self, consent_token=None, scopes=None): - # type: (Optional[str], Optional[Dict[str, Scope]]) -> None + # type: (Optional[str], Optional[Dict[str, Scope_ed061cca]]) -> None """Contains a consentToken allowing the skill access to information that the customer has consented to provide, such as address information. Note that the consentToken is deprecated. Use the apiAccessToken available in the context object to determine the user’s permissions. :param consent_token: A token listing all the permissions granted for this user. diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 5021d43..dbc196f 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -139,7 +139,9 @@ class Request(object): | | AlexaSkillEvent.SkillPermissionAccepted: :py:class:`ask_sdk_model.events.skillevents.permission_accepted_request.PermissionAcceptedRequest`, | - | PlaybackController.NextCommandIssued: :py:class:`ask_sdk_model.interfaces.playbackcontroller.next_command_issued_request.NextCommandIssuedRequest` + | PlaybackController.NextCommandIssued: :py:class:`ask_sdk_model.interfaces.playbackcontroller.next_command_issued_request.NextCommandIssuedRequest`, + | + | Alexa.Presentation.APLA.RuntimeError: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error_event.RuntimeErrorEvent` """ deserialized_types = { @@ -205,7 +207,8 @@ class Request(object): 'Connections.Request': 'ask_sdk_model.interfaces.connections.connections_request.ConnectionsRequest', 'System.ExceptionEncountered': 'ask_sdk_model.interfaces.system.exception_encountered_request.ExceptionEncounteredRequest', 'AlexaSkillEvent.SkillPermissionAccepted': 'ask_sdk_model.events.skillevents.permission_accepted_request.PermissionAcceptedRequest', - 'PlaybackController.NextCommandIssued': 'ask_sdk_model.interfaces.playbackcontroller.next_command_issued_request.NextCommandIssuedRequest' + 'PlaybackController.NextCommandIssued': 'ask_sdk_model.interfaces.playbackcontroller.next_command_issued_request.NextCommandIssuedRequest', + 'Alexa.Presentation.APLA.RuntimeError': 'ask_sdk_model.interfaces.alexa.presentation.apla.runtime_error_event.RuntimeErrorEvent' } json_discriminator_key = "type" diff --git a/ask-sdk-model/ask_sdk_model/request_envelope.py b/ask-sdk-model/ask_sdk_model/request_envelope.py index 9df703a..84a6de3 100644 --- a/ask-sdk-model/ask_sdk_model/request_envelope.py +++ b/ask-sdk-model/ask_sdk_model/request_envelope.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.session import Session - from ask_sdk_model.request import Request - from ask_sdk_model.context import Context + from ask_sdk_model.request import Request as Request_601a68c0 + from ask_sdk_model.context import Context as Context_d885cf00 + from ask_sdk_model.session import Session as Session_c56c91ce class RequestEnvelope(object): @@ -59,7 +59,7 @@ class RequestEnvelope(object): supports_multiple_types = False def __init__(self, version=None, session=None, context=None, request=None): - # type: (Optional[str], Optional[Session], Optional[Context], Optional[Request]) -> None + # type: (Optional[str], Optional[Session_c56c91ce], Optional[Context_d885cf00], Optional[Request_601a68c0]) -> None """Request wrapper for all requests sent to your Skill. :param version: The version specifier for the request. diff --git a/ask-sdk-model/ask_sdk_model/response.py b/ask-sdk-model/ask_sdk_model/response.py index b74f049..3717716 100644 --- a/ask-sdk-model/ask_sdk_model/response.py +++ b/ask-sdk-model/ask_sdk_model/response.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.canfulfill.can_fulfill_intent import CanFulfillIntent - from ask_sdk_model.ui.card import Card - from ask_sdk_model.ui.output_speech import OutputSpeech - from ask_sdk_model.directive import Directive - from ask_sdk_model.ui.reprompt import Reprompt + from ask_sdk_model.ui.reprompt import Reprompt as Reprompt_ffee6ea4 + from ask_sdk_model.directive import Directive as Directive_e3e6b000 + from ask_sdk_model.canfulfill.can_fulfill_intent import CanFulfillIntent as CanFulfillIntent_8d777e62 + from ask_sdk_model.ui.output_speech import OutputSpeech as OutputSpeech_a070f8fb + from ask_sdk_model.ui.card import Card as Card_3a03f3c4 class Response(object): @@ -71,7 +71,7 @@ class Response(object): supports_multiple_types = False def __init__(self, output_speech=None, card=None, reprompt=None, directives=None, api_response=None, should_end_session=None, can_fulfill_intent=None): - # type: (Optional[OutputSpeech], Optional[Card], Optional[Reprompt], Optional[List[Directive]], Optional[object], Optional[bool], Optional[CanFulfillIntent]) -> None + # type: (Optional[OutputSpeech_a070f8fb], Optional[Card_3a03f3c4], Optional[Reprompt_ffee6ea4], Optional[List[Directive_e3e6b000]], Optional[object], Optional[bool], Optional[CanFulfillIntent_8d777e62]) -> None """ :param output_speech: diff --git a/ask-sdk-model/ask_sdk_model/response_envelope.py b/ask-sdk-model/ask_sdk_model/response_envelope.py index fe40b3b..3c713ee 100644 --- a/ask-sdk-model/ask_sdk_model/response_envelope.py +++ b/ask-sdk-model/ask_sdk_model/response_envelope.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.response import Response + from ask_sdk_model.response import Response as Response_121c7e1e class ResponseEnvelope(object): @@ -55,7 +55,7 @@ class ResponseEnvelope(object): supports_multiple_types = False def __init__(self, version=None, session_attributes=None, user_agent=None, response=None): - # type: (Optional[str], Optional[Dict[str, object]], Optional[str], Optional[Response]) -> None + # type: (Optional[str], Optional[Dict[str, object]], Optional[str], Optional[Response_121c7e1e]) -> None """ :param version: diff --git a/ask-sdk-model/ask_sdk_model/scope.py b/ask-sdk-model/ask_sdk_model/scope.py index 4dc0d4f..e077f40 100644 --- a/ask-sdk-model/ask_sdk_model/scope.py +++ b/ask-sdk-model/ask_sdk_model/scope.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.permission_status import PermissionStatus + from ask_sdk_model.permission_status import PermissionStatus as PermissionStatus_ea4afa1d class Scope(object): @@ -45,7 +45,7 @@ class Scope(object): supports_multiple_types = False def __init__(self, status=None): - # type: (Optional[PermissionStatus]) -> None + # type: (Optional[PermissionStatus_ea4afa1d]) -> None """This is the value of LoginWithAmazon(LWA) consent scope. This object is used as in the key-value pairs that are provided in user.permissions.scopes object :param status: diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py b/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py index 541f01f..a9bfdde 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/device_address_service_client.py @@ -30,9 +30,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.device_address.short_address import ShortAddress - from ask_sdk_model.services.device_address.error import Error - from ask_sdk_model.services.device_address.address import Address + from ask_sdk_model.services.device_address.short_address import ShortAddress as ShortAddress_6be70e18 + from ask_sdk_model.services.device_address.address import Address as Address_b1cbe937 + from ask_sdk_model.services.device_address.error import Error as Error_5ed86e5f class DeviceAddressServiceClient(BaseServiceClient): @@ -53,7 +53,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_country_and_postal_code(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, ShortAddress, Error] + # type: (str, **Any) -> Union[ApiResponse, object, ShortAddress_6be70e18, Error_5ed86e5f] """ Gets the country and postal code of a device @@ -62,7 +62,7 @@ def get_country_and_postal_code(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, ShortAddress, Error] + :rtype: Union[ApiResponse, object, ShortAddress_6be70e18, Error_5ed86e5f] """ operation_name = "get_country_and_postal_code" params = locals() @@ -123,7 +123,7 @@ def get_country_and_postal_code(self, device_id, **kwargs): def get_full_address(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Address, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Address_b1cbe937, Error_5ed86e5f] """ Gets the address of a device @@ -132,7 +132,7 @@ def get_full_address(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Address, Error] + :rtype: Union[ApiResponse, object, Address_b1cbe937, Error_5ed86e5f] """ operation_name = "get_full_address" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py b/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py index e1c38fd..66c0ac2 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/directive_service_client.py @@ -30,8 +30,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.directive.error import Error - from ask_sdk_model.services.directive.send_directive_request import SendDirectiveRequest + from ask_sdk_model.services.directive.send_directive_request import SendDirectiveRequest as SendDirectiveRequest_e934a2f + from ask_sdk_model.services.directive.error import Error as Error_67b0923 class DirectiveServiceClient(BaseServiceClient): @@ -52,7 +52,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def enqueue(self, send_directive_request, **kwargs): - # type: (SendDirectiveRequest, **Any) -> Union[ApiResponse, object, Error] + # type: (SendDirectiveRequest_e934a2f, **Any) -> Union[ApiResponse, object, Error_67b0923] """ Send directives to Alexa. @@ -61,7 +61,7 @@ def enqueue(self, send_directive_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_67b0923] """ operation_name = "enqueue" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py b/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py index d2385df..8a74724 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/send_directive_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.directive.header import Header - from ask_sdk_model.services.directive.directive import Directive + from ask_sdk_model.services.directive.header import Header as Header_6046f38f + from ask_sdk_model.services.directive.directive import Directive as Directive_4b928af1 class SendDirectiveRequest(object): @@ -50,7 +50,7 @@ class SendDirectiveRequest(object): supports_multiple_types = False def __init__(self, header=None, directive=None): - # type: (Optional[Header], Optional[Directive]) -> None + # type: (Optional[Header_6046f38f], Optional[Directive_4b928af1]) -> None """Send Directive Request payload. :param header: contains the header attributes of the send directive request. diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py index 0d7c128..11157bd 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.endpoint_enumeration.endpoint_info import EndpointInfo + from ask_sdk_model.services.endpoint_enumeration.endpoint_info import EndpointInfo as EndpointInfo_f10a0cca class EndpointEnumerationResponse(object): @@ -45,7 +45,7 @@ class EndpointEnumerationResponse(object): supports_multiple_types = False def __init__(self, endpoints=None): - # type: (Optional[List[EndpointInfo]]) -> None + # type: (Optional[List[EndpointInfo_f10a0cca]]) -> None """Contains the list of endpoints. :param endpoints: The list of endpoints. diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py index 046179f..4df36a8 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_enumeration_service_client.py @@ -30,8 +30,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.endpoint_enumeration.endpoint_enumeration_response import EndpointEnumerationResponse - from ask_sdk_model.services.endpoint_enumeration.error import Error + from ask_sdk_model.services.endpoint_enumeration.endpoint_enumeration_response import EndpointEnumerationResponse as EndpointEnumerationResponse_5b0d1e17 + from ask_sdk_model.services.endpoint_enumeration.error import Error as Error_3a116f1 class EndpointEnumerationServiceClient(BaseServiceClient): @@ -52,14 +52,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_endpoints(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, EndpointEnumerationResponse, Error] + # type: (**Any) -> Union[ApiResponse, object, EndpointEnumerationResponse_5b0d1e17, Error_3a116f1] """ This API is invoked by the skill to retrieve endpoints connected to the Echo device. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, EndpointEnumerationResponse, Error] + :rtype: Union[ApiResponse, object, EndpointEnumerationResponse_5b0d1e17, Error_3a116f1] """ operation_name = "get_endpoints" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py index da8d402..e4c6a0a 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/endpoint_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.endpoint_enumeration.endpoint_capability import EndpointCapability + from ask_sdk_model.services.endpoint_enumeration.endpoint_capability import EndpointCapability as EndpointCapability_afc63a4a class EndpointInfo(object): @@ -53,7 +53,7 @@ class EndpointInfo(object): supports_multiple_types = False def __init__(self, endpoint_id=None, friendly_name=None, capabilities=None): - # type: (Optional[str], Optional[str], Optional[List[EndpointCapability]]) -> None + # type: (Optional[str], Optional[str], Optional[List[EndpointCapability_afc63a4a]]) -> None """Contains the list of connected endpoints and their declared capabilities. :param endpoint_id: A unique identifier for the endpoint. diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py index d0e6b80..393f9a1 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/light_animation.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.gadget_controller.animation_step import AnimationStep + from ask_sdk_model.services.gadget_controller.animation_step import AnimationStep as AnimationStep_8c5baba8 class LightAnimation(object): @@ -51,7 +51,7 @@ class LightAnimation(object): supports_multiple_types = False def __init__(self, repeat=None, target_lights=None, sequence=None): - # type: (Optional[int], Optional[List[object]], Optional[List[AnimationStep]]) -> None + # type: (Optional[int], Optional[List[object]], Optional[List[AnimationStep_8c5baba8]]) -> None """ :param repeat: The number of times to play this animation. diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py index 6454e10..2468ada 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/set_light_parameters.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.gadget_controller.light_animation import LightAnimation - from ask_sdk_model.services.gadget_controller.trigger_event_type import TriggerEventType + from ask_sdk_model.services.gadget_controller.light_animation import LightAnimation as LightAnimation_f3c63c80 + from ask_sdk_model.services.gadget_controller.trigger_event_type import TriggerEventType as TriggerEventType_3b491945 class SetLightParameters(object): @@ -54,7 +54,7 @@ class SetLightParameters(object): supports_multiple_types = False def __init__(self, trigger_event=None, trigger_event_time_ms=None, animations=None): - # type: (Optional[TriggerEventType], Optional[int], Optional[List[LightAnimation]]) -> None + # type: (Optional[TriggerEventType_3b491945], Optional[int], Optional[List[LightAnimation_f3c63c80]]) -> None """Arguments that pertain to animating the buttons. :param trigger_event: diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/event.py index 3485e2c..4eedcf0 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/event.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.event_reporting_type import EventReportingType + from ask_sdk_model.services.game_engine.event_reporting_type import EventReportingType as EventReportingType_9ff38fed class Event(object): @@ -65,7 +65,7 @@ class Event(object): supports_multiple_types = False def __init__(self, should_end_input_handler=None, meets=None, fails=None, reports=None, maximum_invocations=None, trigger_time_milliseconds=None): - # type: (Optional[bool], Optional[List[object]], Optional[List[object]], Optional[EventReportingType], Optional[int], Optional[int]) -> None + # type: (Optional[bool], Optional[List[object]], Optional[List[object]], Optional[EventReportingType_9ff38fed], Optional[int], Optional[int]) -> None """The events object is where you define the conditions that must be met for your skill to be notified of Echo Button input. You must define at least one event. :param should_end_input_handler: Whether the Input Handler should end after this event fires. If true, the Input Handler will stop and no further events will be sent to your skill unless you call StartInputHandler again. diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py index 77616b7..3a8bd89 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/input_event.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType + from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType as InputEventActionType_89d7c6e4 class InputEvent(object): @@ -59,7 +59,7 @@ class InputEvent(object): supports_multiple_types = False def __init__(self, gadget_id=None, timestamp=None, action=None, color=None, feature=None): - # type: (Optional[str], Optional[str], Optional[InputEventActionType], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[InputEventActionType_89d7c6e4], Optional[str], Optional[str]) -> None """ :param gadget_id: The identifier of the Echo Button in question. It matches the gadgetId that you will have discovered in roll call. diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py b/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py index a4bb3ed..27bdb81 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/input_handler_event.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.input_event import InputEvent + from ask_sdk_model.services.game_engine.input_event import InputEvent as InputEvent_46dfcc98 class InputHandlerEvent(object): @@ -47,7 +47,7 @@ class InputHandlerEvent(object): supports_multiple_types = False def __init__(self, name=None, input_events=None): - # type: (Optional[str], Optional[List[InputEvent]]) -> None + # type: (Optional[str], Optional[List[InputEvent_46dfcc98]]) -> None """ :param name: The name of the event as you defined it in your GameEngine.StartInputHandler directive. diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py index 38f24e4..eb35d1a 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType + from ask_sdk_model.services.game_engine.input_event_action_type import InputEventActionType as InputEventActionType_89d7c6e4 class Pattern(object): @@ -57,7 +57,7 @@ class Pattern(object): supports_multiple_types = False def __init__(self, gadget_ids=None, colors=None, action=None, repeat=None): - # type: (Optional[List[object]], Optional[List[object]], Optional[InputEventActionType], Optional[int]) -> None + # type: (Optional[List[object]], Optional[List[object]], Optional[InputEventActionType_89d7c6e4], Optional[int]) -> None """An object that provides all of the events that need to occur, in a specific order, for this recognizer to be true. Omitting any parameters in this object means \"match anything\". :param gadget_ids: A whitelist of gadgetIds that are eligible for this match. diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py index 615cacb..c3dd985 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/pattern_recognizer.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.game_engine.pattern import Pattern - from ask_sdk_model.services.game_engine.pattern_recognizer_anchor_type import PatternRecognizerAnchorType + from ask_sdk_model.services.game_engine.pattern_recognizer_anchor_type import PatternRecognizerAnchorType as PatternRecognizerAnchorType_61e1414c + from ask_sdk_model.services.game_engine.pattern import Pattern as Pattern_e6ee4413 class PatternRecognizer(Recognizer): @@ -65,7 +65,7 @@ class PatternRecognizer(Recognizer): supports_multiple_types = False def __init__(self, anchor=None, fuzzy=None, gadget_ids=None, actions=None, pattern=None): - # type: (Optional[PatternRecognizerAnchorType], Optional[bool], Optional[List[object]], Optional[List[object]], Optional[List[Pattern]]) -> None + # type: (Optional[PatternRecognizerAnchorType_61e1414c], Optional[bool], Optional[List[object]], Optional[List[object]], Optional[List[Pattern_e6ee4413]]) -> None """This recognizer is true when all of the specified events have occurred in the specified order. :param anchor: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py index 201d52d..53364e1 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.alexa_list_item import AlexaListItem - from ask_sdk_model.services.list_management.list_state import ListState - from ask_sdk_model.services.list_management.links import Links + from ask_sdk_model.services.list_management.links import Links as Links_2cc36a7a + from ask_sdk_model.services.list_management.alexa_list_item import AlexaListItem as AlexaListItem_6fd31314 + from ask_sdk_model.services.list_management.list_state import ListState as ListState_7568bb1f class AlexaList(object): @@ -65,7 +65,7 @@ class AlexaList(object): supports_multiple_types = False def __init__(self, list_id=None, name=None, state=None, version=None, items=None, links=None): - # type: (Optional[str], Optional[str], Optional[ListState], Optional[int], Optional[List[AlexaListItem]], Optional[Links]) -> None + # type: (Optional[str], Optional[str], Optional[ListState_7568bb1f], Optional[int], Optional[List[AlexaListItem_6fd31314]], Optional[Links_2cc36a7a]) -> None """ :param list_id: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py index 799f6c4..3829045 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_state import ListItemState + from ask_sdk_model.services.list_management.list_item_state import ListItemState as ListItemState_1ae3b0ae class AlexaListItem(object): @@ -67,7 +67,7 @@ class AlexaListItem(object): supports_multiple_types = False def __init__(self, id=None, version=None, value=None, status=None, created_time=None, updated_time=None, href=None): - # type: (Optional[str], Optional[int], Optional[str], Optional[ListItemState], Optional[str], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[int], Optional[str], Optional[ListItemState_1ae3b0ae], Optional[str], Optional[str], Optional[str]) -> None """ :param id: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py index fb1547e..5b3f596 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_list_metadata.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_state import ListState - from ask_sdk_model.services.list_management.status import Status + from ask_sdk_model.services.list_management.status import Status as Status_bac65d64 + from ask_sdk_model.services.list_management.list_state import ListState as ListState_7568bb1f class AlexaListMetadata(object): @@ -60,7 +60,7 @@ class AlexaListMetadata(object): supports_multiple_types = False def __init__(self, list_id=None, name=None, state=None, version=None, status_map=None): - # type: (Optional[str], Optional[str], Optional[ListState], Optional[int], Optional[List[Status]]) -> None + # type: (Optional[str], Optional[str], Optional[ListState_7568bb1f], Optional[int], Optional[List[Status_bac65d64]]) -> None """ :param list_id: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py index 67c28fe..6cd1e1e 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/alexa_lists_metadata.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.alexa_list_metadata import AlexaListMetadata + from ask_sdk_model.services.list_management.alexa_list_metadata import AlexaListMetadata as AlexaListMetadata_bfa5b64c class AlexaListsMetadata(object): @@ -43,7 +43,7 @@ class AlexaListsMetadata(object): supports_multiple_types = False def __init__(self, lists=None): - # type: (Optional[List[AlexaListMetadata]]) -> None + # type: (Optional[List[AlexaListMetadata_bfa5b64c]]) -> None """ :param lists: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py index a9bf919..c9f304d 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_item_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_state import ListItemState + from ask_sdk_model.services.list_management.list_item_state import ListItemState as ListItemState_1ae3b0ae class CreateListItemRequest(object): @@ -47,7 +47,7 @@ class CreateListItemRequest(object): supports_multiple_types = False def __init__(self, value=None, status=None): - # type: (Optional[str], Optional[ListItemState]) -> None + # type: (Optional[str], Optional[ListItemState_1ae3b0ae]) -> None """ :param value: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py index 94ee094..1b7425b 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/create_list_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_state import ListState + from ask_sdk_model.services.list_management.list_state import ListState as ListState_7568bb1f class CreateListRequest(object): @@ -47,7 +47,7 @@ class CreateListRequest(object): supports_multiple_types = False def __init__(self, name=None, state=None): - # type: (Optional[str], Optional[ListState]) -> None + # type: (Optional[str], Optional[ListState_7568bb1f]) -> None """ :param name: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py index 348b240..668c8cb 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_created_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_body import ListBody + from ask_sdk_model.services.list_management.list_body import ListBody as ListBody_9725fe55 class ListCreatedEventRequest(Request): @@ -66,7 +66,7 @@ class ListCreatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody_9725fe55], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py index c5e7b01..ebf4f43 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_deleted_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_body import ListBody + from ask_sdk_model.services.list_management.list_body import ListBody as ListBody_9725fe55 class ListDeletedEventRequest(Request): @@ -66,7 +66,7 @@ class ListDeletedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody_9725fe55], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py index 456faf4..bd6a13e 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_created_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_body import ListItemBody + from ask_sdk_model.services.list_management.list_item_body import ListItemBody as ListItemBody_c30b8eea class ListItemsCreatedEventRequest(Request): @@ -66,7 +66,7 @@ class ListItemsCreatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody_c30b8eea], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py index 50af93a..cbcf783 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_deleted_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_body import ListItemBody + from ask_sdk_model.services.list_management.list_item_body import ListItemBody as ListItemBody_c30b8eea class ListItemsDeletedEventRequest(Request): @@ -66,7 +66,7 @@ class ListItemsDeletedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody_c30b8eea], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py index 4b804a8..7c0605a 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_items_updated_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_body import ListItemBody + from ask_sdk_model.services.list_management.list_item_body import ListItemBody as ListItemBody_c30b8eea class ListItemsUpdatedEventRequest(Request): @@ -66,7 +66,7 @@ class ListItemsUpdatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListItemBody_c30b8eea], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py index 20f1a56..6cbe387 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_management_service_client.py @@ -30,16 +30,16 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.forbidden_error import ForbiddenError - from ask_sdk_model.services.list_management.alexa_lists_metadata import AlexaListsMetadata - from ask_sdk_model.services.list_management.alexa_list_item import AlexaListItem - from ask_sdk_model.services.list_management.update_list_request import UpdateListRequest - from ask_sdk_model.services.list_management.alexa_list_metadata import AlexaListMetadata - from ask_sdk_model.services.list_management.alexa_list import AlexaList - from ask_sdk_model.services.list_management.error import Error - from ask_sdk_model.services.list_management.create_list_item_request import CreateListItemRequest - from ask_sdk_model.services.list_management.update_list_item_request import UpdateListItemRequest - from ask_sdk_model.services.list_management.create_list_request import CreateListRequest + from ask_sdk_model.services.list_management.update_list_request import UpdateListRequest as UpdateListRequest_414a7d74 + from ask_sdk_model.services.list_management.alexa_list import AlexaList as AlexaList_3da10cf7 + from ask_sdk_model.services.list_management.alexa_lists_metadata import AlexaListsMetadata as AlexaListsMetadata_4de49d50 + from ask_sdk_model.services.list_management.update_list_item_request import UpdateListItemRequest as UpdateListItemRequest_72b7a2bf + from ask_sdk_model.services.list_management.create_list_request import CreateListRequest as CreateListRequest_9fe258ce + from ask_sdk_model.services.list_management.create_list_item_request import CreateListItemRequest as CreateListItemRequest_1aaa675f + from ask_sdk_model.services.list_management.error import Error as Error_6c6937d8 + from ask_sdk_model.services.list_management.alexa_list_item import AlexaListItem as AlexaListItem_6fd31314 + from ask_sdk_model.services.list_management.forbidden_error import ForbiddenError as ForbiddenError_56e425c5 + from ask_sdk_model.services.list_management.alexa_list_metadata import AlexaListMetadata as AlexaListMetadata_bfa5b64c class ListManagementServiceClient(BaseServiceClient): @@ -60,14 +60,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_lists_metadata(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, ForbiddenError, Error, AlexaListsMetadata] + # type: (**Any) -> Union[ApiResponse, object, ForbiddenError_56e425c5, Error_6c6937d8, AlexaListsMetadata_4de49d50] """ Retrieves the metadata for all customer lists, including the customer’s default lists. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, ForbiddenError, Error, AlexaListsMetadata] + :rtype: Union[ApiResponse, object, ForbiddenError_56e425c5, Error_6c6937d8, AlexaListsMetadata_4de49d50] """ operation_name = "get_lists_metadata" params = locals() @@ -119,7 +119,7 @@ def get_lists_metadata(self, **kwargs): def delete_list(self, list_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_6c6937d8] """ This API deletes a customer custom list. @@ -128,7 +128,7 @@ def delete_list(self, list_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8] """ operation_name = "delete_list" params = locals() @@ -188,7 +188,7 @@ def delete_list(self, list_id, **kwargs): return None def delete_list_item(self, list_id, item_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_6c6937d8] """ This API deletes an item in the specified list. @@ -199,7 +199,7 @@ def delete_list_item(self, list_id, item_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8] """ operation_name = "delete_list_item" params = locals() @@ -265,7 +265,7 @@ def delete_list_item(self, list_id, item_id, **kwargs): return None def get_list_item(self, list_id, item_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ This API can be used to retrieve single item with in any list by listId and itemId. This API can read list items from an archived list. Attempting to read list items from a deleted list return an ObjectNotFound 404 error. @@ -276,7 +276,7 @@ def get_list_item(self, list_id, item_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ operation_name = "get_list_item" params = locals() @@ -342,7 +342,7 @@ def get_list_item(self, list_id, item_id, **kwargs): def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs): - # type: (str, str, UpdateListItemRequest, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] + # type: (str, str, UpdateListItemRequest_72b7a2bf, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ API used to update an item value or item status. @@ -355,7 +355,7 @@ def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ operation_name = "update_list_item" params = locals() @@ -428,7 +428,7 @@ def update_list_item(self, list_id, item_id, update_list_item_request, **kwargs) def create_list_item(self, list_id, create_list_item_request, **kwargs): - # type: (str, CreateListItemRequest, **Any) -> Union[ApiResponse, object, AlexaListItem, Error] + # type: (str, CreateListItemRequest_1aaa675f, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ This API creates an item in an active list or in a default list. @@ -439,7 +439,7 @@ def create_list_item(self, list_id, create_list_item_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AlexaListItem, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaListItem_6fd31314] """ operation_name = "create_list_item" params = locals() @@ -506,7 +506,7 @@ def create_list_item(self, list_id, create_list_item_request, **kwargs): def update_list(self, list_id, update_list_request, **kwargs): - # type: (str, UpdateListRequest, **Any) -> Union[ApiResponse, object, Error, AlexaListMetadata] + # type: (str, UpdateListRequest_414a7d74, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaListMetadata_bfa5b64c] """ This API updates a custom list. Only the list name or state can be updated. An Alexa customer can turn an archived list into an active one. @@ -517,7 +517,7 @@ def update_list(self, list_id, update_list_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, AlexaListMetadata] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaListMetadata_bfa5b64c] """ operation_name = "update_list" params = locals() @@ -585,7 +585,7 @@ def update_list(self, list_id, update_list_request, **kwargs): def get_list(self, list_id, status, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, AlexaList, Error] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaList_3da10cf7] """ Retrieves the list metadata including the items in the list with requested status. @@ -596,7 +596,7 @@ def get_list(self, list_id, status, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AlexaList, Error] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaList_3da10cf7] """ operation_name = "get_list" params = locals() @@ -663,7 +663,7 @@ def get_list(self, list_id, status, **kwargs): def create_list(self, create_list_request, **kwargs): - # type: (CreateListRequest, **Any) -> Union[ApiResponse, object, Error, AlexaListMetadata] + # type: (CreateListRequest_9fe258ce, **Any) -> Union[ApiResponse, object, Error_6c6937d8, AlexaListMetadata_bfa5b64c] """ This API creates a custom list. The new list name must be different than any existing list name. @@ -672,7 +672,7 @@ def create_list(self, create_list_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, AlexaListMetadata] + :rtype: Union[ApiResponse, object, Error_6c6937d8, AlexaListMetadata_bfa5b64c] """ operation_name = "create_list" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py index 2222b3a..1bfe5c0 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/list_updated_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_body import ListBody + from ask_sdk_model.services.list_management.list_body import ListBody as ListBody_9725fe55 class ListUpdatedEventRequest(Request): @@ -66,7 +66,7 @@ class ListUpdatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None, event_creation_time=None, event_publishing_time=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ListBody_9725fe55], Optional[datetime], Optional[datetime]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/status.py b/ask-sdk-model/ask_sdk_model/services/list_management/status.py index b582e26..cdbb238 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/status.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_state import ListItemState + from ask_sdk_model.services.list_management.list_item_state import ListItemState as ListItemState_1ae3b0ae class Status(object): @@ -47,7 +47,7 @@ class Status(object): supports_multiple_types = False def __init__(self, url=None, status=None): - # type: (Optional[str], Optional[ListItemState]) -> None + # type: (Optional[str], Optional[ListItemState_1ae3b0ae]) -> None """ :param url: diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py index 9641cdf..93cd1b1 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_item_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_item_state import ListItemState + from ask_sdk_model.services.list_management.list_item_state import ListItemState as ListItemState_1ae3b0ae class UpdateListItemRequest(object): @@ -51,7 +51,7 @@ class UpdateListItemRequest(object): supports_multiple_types = False def __init__(self, value=None, status=None, version=None): - # type: (Optional[str], Optional[ListItemState], Optional[int]) -> None + # type: (Optional[str], Optional[ListItemState_1ae3b0ae], Optional[int]) -> None """ :param value: New item value diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py index 3045fcf..a392bc0 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/update_list_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.list_management.list_state import ListState + from ask_sdk_model.services.list_management.list_state import ListState as ListState_7568bb1f class UpdateListRequest(object): @@ -51,7 +51,7 @@ class UpdateListRequest(object): supports_multiple_types = False def __init__(self, name=None, state=None, version=None): - # type: (Optional[str], Optional[ListState], Optional[int]) -> None + # type: (Optional[str], Optional[ListState_7568bb1f], Optional[int]) -> None """ :param name: diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py index 7b34961..5bec110 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.purchasable_state import PurchasableState - from ask_sdk_model.services.monetization.purchase_mode import PurchaseMode - from ask_sdk_model.services.monetization.entitled_state import EntitledState - from ask_sdk_model.services.monetization.product_type import ProductType - from ask_sdk_model.services.monetization.entitlement_reason import EntitlementReason + from ask_sdk_model.services.monetization.product_type import ProductType as ProductType_8f71260a + from ask_sdk_model.services.monetization.entitled_state import EntitledState as EntitledState_c546a5da + from ask_sdk_model.services.monetization.entitlement_reason import EntitlementReason as EntitlementReason_43c3309e + from ask_sdk_model.services.monetization.purchasable_state import PurchasableState as PurchasableState_f8ea2076 + from ask_sdk_model.services.monetization.purchase_mode import PurchaseMode as PurchaseMode_156cd096 class InSkillProduct(object): @@ -83,7 +83,7 @@ class InSkillProduct(object): supports_multiple_types = False def __init__(self, product_id=None, reference_name=None, name=None, object_type=None, summary=None, purchasable=None, entitled=None, entitlement_reason=None, active_entitlement_count=None, purchase_mode=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[ProductType], Optional[str], Optional[PurchasableState], Optional[EntitledState], Optional[EntitlementReason], Optional[int], Optional[PurchaseMode]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[ProductType_8f71260a], Optional[str], Optional[PurchasableState_f8ea2076], Optional[EntitledState_c546a5da], Optional[EntitlementReason_43c3309e], Optional[int], Optional[PurchaseMode_156cd096]) -> None """ :param product_id: Product Id diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py index b0abe2b..eff5cb2 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_product_transactions_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.transactions import Transactions - from ask_sdk_model.services.monetization.metadata import Metadata + from ask_sdk_model.services.monetization.metadata import Metadata as Metadata_a873d209 + from ask_sdk_model.services.monetization.transactions import Transactions as Transactions_c92d5d49 class InSkillProductTransactionsResponse(object): @@ -48,7 +48,7 @@ class InSkillProductTransactionsResponse(object): supports_multiple_types = False def __init__(self, results=None, metadata=None): - # type: (Optional[List[Transactions]], Optional[Metadata]) -> None + # type: (Optional[List[Transactions_c92d5d49]], Optional[Metadata_a873d209]) -> None """ :param results: List of transactions of in skill products purchases diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py index 65bd98e..3a3be9d 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/in_skill_products_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.in_skill_product import InSkillProduct + from ask_sdk_model.services.monetization.in_skill_product import InSkillProduct as InSkillProduct_81648c45 class InSkillProductsResponse(object): @@ -51,7 +51,7 @@ class InSkillProductsResponse(object): supports_multiple_types = False def __init__(self, in_skill_products=None, is_truncated=None, next_token=None): - # type: (Optional[List[InSkillProduct]], Optional[bool], Optional[str]) -> None + # type: (Optional[List[InSkillProduct_81648c45]], Optional[bool], Optional[str]) -> None """ :param in_skill_products: List of In-Skill Products diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py b/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py index d79e5f0..470e1d6 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/metadata.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.result_set import ResultSet + from ask_sdk_model.services.monetization.result_set import ResultSet as ResultSet_6c062fc class Metadata(object): @@ -43,7 +43,7 @@ class Metadata(object): supports_multiple_types = False def __init__(self, result_set=None): - # type: (Optional[ResultSet]) -> None + # type: (Optional[ResultSet_6c062fc]) -> None """ :param result_set: diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py b/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py index 39c24f6..fbe6467 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/monetization_service_client.py @@ -30,11 +30,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.error import Error - from ask_sdk_model.services.monetization.in_skill_product import InSkillProduct - from ask_sdk_model.services.monetization.in_skill_products_response import InSkillProductsResponse - from ask_sdk_model.services.monetization.in_skill_product_transactions_response import InSkillProductTransactionsResponse + from ask_sdk_model.services.monetization.in_skill_products_response import InSkillProductsResponse as InSkillProductsResponse_3986bfbc + from ask_sdk_model.services.monetization.error import Error as Error_c27e519d + from ask_sdk_model.services.monetization.in_skill_product_transactions_response import InSkillProductTransactionsResponse as InSkillProductTransactionsResponse_a4649d2f import bool + from ask_sdk_model.services.monetization.in_skill_product import InSkillProduct as InSkillProduct_81648c45 class MonetizationServiceClient(BaseServiceClient): @@ -55,7 +55,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_in_skill_products(self, accept_language, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error, InSkillProductsResponse] + # type: (str, **Any) -> Union[ApiResponse, object, Error_c27e519d, InSkillProductsResponse_3986bfbc] """ Gets In-Skill Products based on user's context for the Skill. @@ -74,7 +74,7 @@ def get_in_skill_products(self, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, InSkillProductsResponse] + :rtype: Union[ApiResponse, object, Error_c27e519d, InSkillProductsResponse_3986bfbc] """ operation_name = "get_in_skill_products" params = locals() @@ -143,7 +143,7 @@ def get_in_skill_products(self, accept_language, **kwargs): def get_in_skill_product(self, accept_language, product_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error, InSkillProduct] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_c27e519d, InSkillProduct_81648c45] """ Get In-Skill Product information based on user context for the Skill. @@ -154,7 +154,7 @@ def get_in_skill_product(self, accept_language, product_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, InSkillProduct] + :rtype: Union[ApiResponse, object, Error_c27e519d, InSkillProduct_81648c45] """ operation_name = "get_in_skill_product" params = locals() @@ -220,7 +220,7 @@ def get_in_skill_product(self, accept_language, product_id, **kwargs): def get_in_skill_products_transactions(self, accept_language, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error, InSkillProductTransactionsResponse] + # type: (str, **Any) -> Union[ApiResponse, object, InSkillProductTransactionsResponse_a4649d2f, Error_c27e519d] """ Returns transactions of all in skill products purchases of the customer @@ -241,7 +241,7 @@ def get_in_skill_products_transactions(self, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, InSkillProductTransactionsResponse] + :rtype: Union[ApiResponse, object, InSkillProductTransactionsResponse_a4649d2f, Error_c27e519d] """ operation_name = "get_in_skill_products_transactions" params = locals() @@ -316,14 +316,14 @@ def get_in_skill_products_transactions(self, accept_language, **kwargs): def get_voice_purchase_setting(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, bool, Error] + # type: (**Any) -> Union[ApiResponse, object, bool, Error_c27e519d] """ Returns whether or not voice purchasing is enabled for the skill :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, bool, Error] + :rtype: Union[ApiResponse, object, bool, Error_c27e519d] """ operation_name = "get_voice_purchase_setting" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py b/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py index 4095cc6..e7d2fce 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/transactions.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.monetization.status import Status + from ask_sdk_model.services.monetization.status import Status as Status_dffc19e9 class Transactions(object): @@ -55,7 +55,7 @@ class Transactions(object): supports_multiple_types = False def __init__(self, status=None, product_id=None, created_time=None, last_modified_time=None): - # type: (Optional[Status], Optional[str], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[Status_dffc19e9], Optional[str], Optional[datetime], Optional[datetime]) -> None """ :param status: diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py index f28ff08..d276e88 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.proactive_events.relevant_audience import RelevantAudience - from ask_sdk_model.services.proactive_events.event import Event + from ask_sdk_model.services.proactive_events.event import Event as Event_6f1ea2dd + from ask_sdk_model.services.proactive_events.relevant_audience import RelevantAudience as RelevantAudience_fa9e50d2 class CreateProactiveEventRequest(object): @@ -64,7 +64,7 @@ class CreateProactiveEventRequest(object): supports_multiple_types = False def __init__(self, timestamp=None, reference_id=None, expiry_time=None, event=None, localized_attributes=None, relevant_audience=None): - # type: (Optional[datetime], Optional[str], Optional[datetime], Optional[Event], Optional[List[object]], Optional[RelevantAudience]) -> None + # type: (Optional[datetime], Optional[str], Optional[datetime], Optional[Event_6f1ea2dd], Optional[List[object]], Optional[RelevantAudience_fa9e50d2]) -> None """ :param timestamp: The date and time of the event associated with this request, in ISO 8601 format. diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py index 01c8f9b..34bf856 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py @@ -33,8 +33,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.proactive_events.error import Error - from ask_sdk_model.services.proactive_events.create_proactive_event_request import CreateProactiveEventRequest + from ask_sdk_model.services.proactive_events.error import Error as Error_23859739 + from ask_sdk_model.services.proactive_events.create_proactive_event_request import CreateProactiveEventRequest as CreateProactiveEventRequest_3eea71c2 class ProactiveEventsServiceClient(BaseServiceClient): @@ -71,7 +71,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def create_proactive_event(self, create_proactive_event_request, stage, **kwargs): - # type: (CreateProactiveEventRequest, SkillStage, **Any) -> Union[ApiResponse, object, Error] + # type: (CreateProactiveEventRequest_3eea71c2, SkillStage, **Any) -> Union[ApiResponse, object, Error_23859739] """ Create a new proactive event in live stage. @@ -80,7 +80,7 @@ def create_proactive_event(self, create_proactive_event_request, stage, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_23859739] """ operation_name = "create_proactive_event" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py index 4863382..922f957 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.proactive_events.relevant_audience_type import RelevantAudienceType + from ask_sdk_model.services.proactive_events.relevant_audience_type import RelevantAudienceType as RelevantAudienceType_a189080d class RelevantAudience(object): @@ -49,7 +49,7 @@ class RelevantAudience(object): supports_multiple_types = False def __init__(self, object_type=None, payload=None): - # type: (Optional[RelevantAudienceType], Optional[object]) -> None + # type: (Optional[RelevantAudienceType_a189080d], Optional[object]) -> None """The audience for this event. :param object_type: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py index ee90752..454b340 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.alert_info_spoken_info import AlertInfoSpokenInfo + from ask_sdk_model.services.reminder_management.alert_info_spoken_info import AlertInfoSpokenInfo as AlertInfoSpokenInfo_3eafce07 class AlertInfo(object): @@ -45,7 +45,7 @@ class AlertInfo(object): supports_multiple_types = False def __init__(self, spoken_info=None): - # type: (Optional[AlertInfoSpokenInfo]) -> None + # type: (Optional[AlertInfoSpokenInfo_3eafce07]) -> None """Alert info for VUI / GUI :param spoken_info: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py index b67f7b0..574289f 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.spoken_text import SpokenText + from ask_sdk_model.services.reminder_management.spoken_text import SpokenText as SpokenText_b927b411 class AlertInfoSpokenInfo(object): @@ -45,7 +45,7 @@ class AlertInfoSpokenInfo(object): supports_multiple_types = False def __init__(self, content=None): - # type: (Optional[List[SpokenText]]) -> None + # type: (Optional[List[SpokenText_b927b411]]) -> None """Parameters for VUI presentation of the reminder :param content: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py index 9726c4a..556ca20 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/event.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.status import Status + from ask_sdk_model.services.reminder_management.status import Status as Status_fbbd2410 class Event(object): @@ -47,7 +47,7 @@ class Event(object): supports_multiple_types = False def __init__(self, status=None, alert_token=None): - # type: (Optional[Status], Optional[str]) -> None + # type: (Optional[Status_fbbd2410], Optional[str]) -> None """ :param status: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py index a87ff4e..839d2b5 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminder_response.py @@ -24,10 +24,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.push_notification import PushNotification - from ask_sdk_model.services.reminder_management.status import Status - from ask_sdk_model.services.reminder_management.alert_info import AlertInfo - from ask_sdk_model.services.reminder_management.trigger import Trigger + from ask_sdk_model.services.reminder_management.trigger import Trigger as Trigger_4ec8964 + from ask_sdk_model.services.reminder_management.status import Status as Status_fbbd2410 + from ask_sdk_model.services.reminder_management.push_notification import PushNotification as PushNotification_dd7adc41 + from ask_sdk_model.services.reminder_management.alert_info import AlertInfo as AlertInfo_97082f4b class GetReminderResponse(Reminder): @@ -77,7 +77,7 @@ class GetReminderResponse(Reminder): supports_multiple_types = False def __init__(self, alert_token=None, created_time=None, updated_time=None, status=None, trigger=None, alert_info=None, push_notification=None, version=None): - # type: (Optional[str], Optional[datetime], Optional[datetime], Optional[Status], Optional[Trigger], Optional[AlertInfo], Optional[PushNotification], Optional[str]) -> None + # type: (Optional[str], Optional[datetime], Optional[datetime], Optional[Status_fbbd2410], Optional[Trigger_4ec8964], Optional[AlertInfo_97082f4b], Optional[PushNotification_dd7adc41], Optional[str]) -> None """Response object for get reminder request :param alert_token: Unique id of this reminder alert diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py index 679eba5..cab4f28 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/get_reminders_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.reminder import Reminder + from ask_sdk_model.services.reminder_management.reminder import Reminder as Reminder_9b9bac10 class GetRemindersResponse(object): @@ -53,7 +53,7 @@ class GetRemindersResponse(object): supports_multiple_types = False def __init__(self, total_count=None, alerts=None, links=None): - # type: (Optional[str], Optional[List[Reminder]], Optional[str]) -> None + # type: (Optional[str], Optional[List[Reminder_9b9bac10]], Optional[str]) -> None """Response object for get reminders request :param total_count: Total count of reminders returned diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py index 1169cb9..36c20cf 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/push_notification.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.push_notification_status import PushNotificationStatus + from ask_sdk_model.services.reminder_management.push_notification_status import PushNotificationStatus as PushNotificationStatus_149f8706 class PushNotification(object): @@ -45,7 +45,7 @@ class PushNotification(object): supports_multiple_types = False def __init__(self, status=None): - # type: (Optional[PushNotificationStatus]) -> None + # type: (Optional[PushNotificationStatus_149f8706]) -> None """Enable / disable reminders push notifications to Alexa mobile apps :param status: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py index dc16404..61555aa 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/recurrence.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.recurrence_freq import RecurrenceFreq - from ask_sdk_model.services.reminder_management.recurrence_day import RecurrenceDay + from ask_sdk_model.services.reminder_management.recurrence_day import RecurrenceDay as RecurrenceDay_64e1cd49 + from ask_sdk_model.services.reminder_management.recurrence_freq import RecurrenceFreq as RecurrenceFreq_e8445a4d class Recurrence(object): @@ -66,7 +66,7 @@ class Recurrence(object): supports_multiple_types = False def __init__(self, freq=None, by_day=None, interval=None, start_date_time=None, end_date_time=None, recurrence_rules=None): - # type: (Optional[RecurrenceFreq], Optional[List[RecurrenceDay]], Optional[int], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[RecurrenceFreq_e8445a4d], Optional[List[RecurrenceDay_64e1cd49]], Optional[int], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """Recurring date/time using the RFC 5545 standard in JSON object form :param freq: diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py index 000e3d5..35c2f03 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.push_notification import PushNotification - from ask_sdk_model.services.reminder_management.status import Status - from ask_sdk_model.services.reminder_management.alert_info import AlertInfo - from ask_sdk_model.services.reminder_management.trigger import Trigger + from ask_sdk_model.services.reminder_management.trigger import Trigger as Trigger_4ec8964 + from ask_sdk_model.services.reminder_management.status import Status as Status_fbbd2410 + from ask_sdk_model.services.reminder_management.push_notification import PushNotification as PushNotification_dd7adc41 + from ask_sdk_model.services.reminder_management.alert_info import AlertInfo as AlertInfo_97082f4b class Reminder(object): @@ -76,7 +76,7 @@ class Reminder(object): supports_multiple_types = False def __init__(self, alert_token=None, created_time=None, updated_time=None, status=None, trigger=None, alert_info=None, push_notification=None, version=None): - # type: (Optional[str], Optional[datetime], Optional[datetime], Optional[Status], Optional[Trigger], Optional[AlertInfo], Optional[PushNotification], Optional[str]) -> None + # type: (Optional[str], Optional[datetime], Optional[datetime], Optional[Status_fbbd2410], Optional[Trigger_4ec8964], Optional[AlertInfo_97082f4b], Optional[PushNotification_dd7adc41], Optional[str]) -> None """Reminder object :param alert_token: Unique id of this reminder alert diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py index 657d328..589b030 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_created_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.event import Event + from ask_sdk_model.services.reminder_management.event import Event as Event_7b12c528 class ReminderCreatedEventRequest(Request): @@ -58,7 +58,7 @@ class ReminderCreatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event_7b12c528]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py index 05cf736..0846592 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_deleted_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.reminder_deleted_event import ReminderDeletedEvent + from ask_sdk_model.services.reminder_management.reminder_deleted_event import ReminderDeletedEvent as ReminderDeletedEvent_c49d505c class ReminderDeletedEventRequest(Request): @@ -58,7 +58,7 @@ class ReminderDeletedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[ReminderDeletedEvent]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ReminderDeletedEvent_c49d505c]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py index c1b4e6e..da03289 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_management_service_client.py @@ -30,11 +30,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.get_reminders_response import GetRemindersResponse - from ask_sdk_model.services.reminder_management.get_reminder_response import GetReminderResponse - from ask_sdk_model.services.reminder_management.reminder_response import ReminderResponse - from ask_sdk_model.services.reminder_management.reminder_request import ReminderRequest - from ask_sdk_model.services.reminder_management.error import Error + from ask_sdk_model.services.reminder_management.get_reminders_response import GetRemindersResponse as GetRemindersResponse_6fac8e34 + from ask_sdk_model.services.reminder_management.get_reminder_response import GetReminderResponse as GetReminderResponse_bbe3cb02 + from ask_sdk_model.services.reminder_management.error import Error as Error_2f79b984 + from ask_sdk_model.services.reminder_management.reminder_request import ReminderRequest as ReminderRequest_85a375af + from ask_sdk_model.services.reminder_management.reminder_response import ReminderResponse as ReminderResponse_a3c43231 class ReminderManagementServiceClient(BaseServiceClient): @@ -55,7 +55,7 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def delete_reminder(self, alert_token, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_2f79b984] """ This API is invoked by the skill to delete a single reminder. @@ -64,7 +64,7 @@ def delete_reminder(self, alert_token, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_2f79b984] """ operation_name = "delete_reminder" params = locals() @@ -123,7 +123,7 @@ def delete_reminder(self, alert_token, **kwargs): return None def get_reminder(self, alert_token, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, GetReminderResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_2f79b984, GetReminderResponse_bbe3cb02] """ This API is invoked by the skill to get a single reminder. @@ -132,7 +132,7 @@ def get_reminder(self, alert_token, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, GetReminderResponse, Error] + :rtype: Union[ApiResponse, object, Error_2f79b984, GetReminderResponse_bbe3cb02] """ operation_name = "get_reminder" params = locals() @@ -191,7 +191,7 @@ def get_reminder(self, alert_token, **kwargs): def update_reminder(self, alert_token, reminder_request, **kwargs): - # type: (str, ReminderRequest, **Any) -> Union[ApiResponse, object, ReminderResponse, Error] + # type: (str, ReminderRequest_85a375af, **Any) -> Union[ApiResponse, object, Error_2f79b984, ReminderResponse_a3c43231] """ This API is invoked by the skill to update a reminder. @@ -202,7 +202,7 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, ReminderResponse, Error] + :rtype: Union[ApiResponse, object, Error_2f79b984, ReminderResponse_a3c43231] """ operation_name = "update_reminder" params = locals() @@ -269,14 +269,14 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): def get_reminders(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, GetRemindersResponse, Error] + # type: (**Any) -> Union[ApiResponse, object, Error_2f79b984, GetRemindersResponse_6fac8e34] """ This API is invoked by the skill to get a all reminders created by the caller. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, GetRemindersResponse, Error] + :rtype: Union[ApiResponse, object, Error_2f79b984, GetRemindersResponse_6fac8e34] """ operation_name = "get_reminders" params = locals() @@ -329,7 +329,7 @@ def get_reminders(self, **kwargs): def create_reminder(self, reminder_request, **kwargs): - # type: (ReminderRequest, **Any) -> Union[ApiResponse, object, ReminderResponse, Error] + # type: (ReminderRequest_85a375af, **Any) -> Union[ApiResponse, object, Error_2f79b984, ReminderResponse_a3c43231] """ This API is invoked by the skill to create a new reminder. @@ -338,7 +338,7 @@ def create_reminder(self, reminder_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, ReminderResponse, Error] + :rtype: Union[ApiResponse, object, Error_2f79b984, ReminderResponse_a3c43231] """ operation_name = "create_reminder" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py index 9c9a08a..e02ef64 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.push_notification import PushNotification - from ask_sdk_model.services.reminder_management.alert_info import AlertInfo - from ask_sdk_model.services.reminder_management.trigger import Trigger + from ask_sdk_model.services.reminder_management.trigger import Trigger as Trigger_4ec8964 + from ask_sdk_model.services.reminder_management.push_notification import PushNotification as PushNotification_dd7adc41 + from ask_sdk_model.services.reminder_management.alert_info import AlertInfo as AlertInfo_97082f4b class ReminderRequest(object): @@ -59,7 +59,7 @@ class ReminderRequest(object): supports_multiple_types = False def __init__(self, request_time=None, trigger=None, alert_info=None, push_notification=None): - # type: (Optional[datetime], Optional[Trigger], Optional[AlertInfo], Optional[PushNotification]) -> None + # type: (Optional[datetime], Optional[Trigger_4ec8964], Optional[AlertInfo_97082f4b], Optional[PushNotification_dd7adc41]) -> None """Input request for creating a reminder :param request_time: Valid ISO 8601 format - Creation time of this reminder alert diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py index 1a5abc5..33a1861 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.status import Status + from ask_sdk_model.services.reminder_management.status import Status as Status_fbbd2410 class ReminderResponse(object): @@ -65,7 +65,7 @@ class ReminderResponse(object): supports_multiple_types = False def __init__(self, alert_token=None, created_time=None, updated_time=None, status=None, version=None, href=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[Status], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Status_fbbd2410], Optional[str], Optional[str]) -> None """Response object for post/put/delete reminder request :param alert_token: Unique id of this reminder alert diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py index b09130b..da9175c 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_started_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.event import Event + from ask_sdk_model.services.reminder_management.event import Event as Event_7b12c528 class ReminderStartedEventRequest(Request): @@ -58,7 +58,7 @@ class ReminderStartedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event_7b12c528]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py index 86eda0f..b7f6446 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_status_changed_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.event import Event + from ask_sdk_model.services.reminder_management.event import Event as Event_7b12c528 class ReminderStatusChangedEventRequest(Request): @@ -58,7 +58,7 @@ class ReminderStatusChangedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event_7b12c528]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py index 79e6fef..66e583a 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/reminder_updated_event_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.event import Event + from ask_sdk_model.services.reminder_management.event import Event as Event_7b12c528 class ReminderUpdatedEventRequest(Request): @@ -58,7 +58,7 @@ class ReminderUpdatedEventRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, body=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Event_7b12c528]) -> None """ :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py index 12418a9..ef8a3bf 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.trigger_type import TriggerType - from ask_sdk_model.services.reminder_management.recurrence import Recurrence + from ask_sdk_model.services.reminder_management.trigger_type import TriggerType as TriggerType_e3ee0c23 + from ask_sdk_model.services.reminder_management.recurrence import Recurrence as Recurrence_12788150 class Trigger(object): @@ -62,7 +62,7 @@ class Trigger(object): supports_multiple_types = False def __init__(self, object_type=None, scheduled_time=None, offset_in_seconds=None, time_zone_id=None, recurrence=None): - # type: (Optional[TriggerType], Optional[datetime], Optional[int], Optional[str], Optional[Recurrence]) -> None + # type: (Optional[TriggerType_e3ee0c23], Optional[datetime], Optional[int], Optional[str], Optional[Recurrence_12788150]) -> None """Trigger information for Reminder :param object_type: diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py index d8d2f88..5d7b928 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/skill_messaging_service_client.py @@ -32,8 +32,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.skill_messaging.send_skill_messaging_request import SendSkillMessagingRequest - from ask_sdk_model.services.skill_messaging.error import Error + from ask_sdk_model.services.skill_messaging.error import Error as Error_3e9888ea + from ask_sdk_model.services.skill_messaging.send_skill_messaging_request import SendSkillMessagingRequest as SendSkillMessagingRequest_c84462d class SkillMessagingServiceClient(BaseServiceClient): @@ -70,7 +70,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def send_skill_message(self, user_id, send_skill_messaging_request, **kwargs): - # type: (str, SendSkillMessagingRequest, **Any) -> Union[ApiResponse, object, Error] + # type: (str, SendSkillMessagingRequest_c84462d, **Any) -> Union[ApiResponse, object, Error_3e9888ea] """ Send a message request to a skill for a specified user. @@ -81,7 +81,7 @@ def send_skill_message(self, user_id, send_skill_messaging_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_3e9888ea] """ operation_name = "send_skill_message" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py index 080855e..663aebb 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/announce_operation.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.text_to_announce import TextToAnnounce + from ask_sdk_model.services.timer_management.text_to_announce import TextToAnnounce as TextToAnnounce_94c703b3 class AnnounceOperation(Operation): @@ -48,7 +48,7 @@ class AnnounceOperation(Operation): supports_multiple_types = False def __init__(self, text_to_announce=None): - # type: (Optional[List[TextToAnnounce]]) -> None + # type: (Optional[List[TextToAnnounce_94c703b3]]) -> None """ANNOUNCE trigger behavior represents announcing a certain text that the developer wants to be read out at the expiration of the timer. :param text_to_announce: diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py b/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py index 3c2fb7f..2efcb39 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/creation_behavior.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.display_experience import DisplayExperience + from ask_sdk_model.services.timer_management.display_experience import DisplayExperience as DisplayExperience_450b6a16 class CreationBehavior(object): @@ -45,7 +45,7 @@ class CreationBehavior(object): supports_multiple_types = False def __init__(self, display_experience=None): - # type: (Optional[DisplayExperience]) -> None + # type: (Optional[DisplayExperience_450b6a16]) -> None """Whether the native Timer GUI is shown for 8-seconds upon Timer Creation. :param display_experience: diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py b/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py index f658eaa..2df82fd 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/display_experience.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.visibility import Visibility + from ask_sdk_model.services.timer_management.visibility import Visibility as Visibility_d5053c1d class DisplayExperience(object): @@ -45,7 +45,7 @@ class DisplayExperience(object): supports_multiple_types = False def __init__(self, visibility=None): - # type: (Optional[Visibility]) -> None + # type: (Optional[Visibility_d5053c1d]) -> None """Multi model presentation of the timer creation. :param visibility: diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py b/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py index e2c37db..f3a7b2a 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/launch_task_operation.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.text_to_confirm import TextToConfirm - from ask_sdk_model.services.timer_management.task import Task + from ask_sdk_model.services.timer_management.task import Task as Task_55b9f77d + from ask_sdk_model.services.timer_management.text_to_confirm import TextToConfirm as TextToConfirm_792b9be7 class LaunchTaskOperation(Operation): @@ -53,7 +53,7 @@ class LaunchTaskOperation(Operation): supports_multiple_types = False def __init__(self, text_to_confirm=None, task=None): - # type: (Optional[List[TextToConfirm]], Optional[Task]) -> None + # type: (Optional[List[TextToConfirm_792b9be7]], Optional[Task_55b9f77d]) -> None """LAUNCH_TASK trigger behavior representing launch a Skill Connection task exposed by the same skill. :param text_to_confirm: diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py index 9c72d2e..55d5dca 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_management_service_client.py @@ -30,10 +30,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.timer_request import TimerRequest - from ask_sdk_model.services.timer_management.timer_response import TimerResponse - from ask_sdk_model.services.timer_management.timers_response import TimersResponse - from ask_sdk_model.services.timer_management.error import Error + from ask_sdk_model.services.timer_management.timers_response import TimersResponse as TimersResponse_df2de7c + from ask_sdk_model.services.timer_management.timer_request import TimerRequest as TimerRequest_5f036a34 + from ask_sdk_model.services.timer_management.error import Error as Error_249911d1 + from ask_sdk_model.services.timer_management.timer_response import TimerResponse as TimerResponse_5be9ee64 class TimerManagementServiceClient(BaseServiceClient): @@ -54,14 +54,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def delete_timers(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, Error] + # type: (**Any) -> Union[ApiResponse, object, Error_249911d1] """ Delete all timers created by the skill. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_249911d1] """ operation_name = "delete_timers" params = locals() @@ -114,14 +114,14 @@ def delete_timers(self, **kwargs): return None def get_timers(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, Error, TimersResponse] + # type: (**Any) -> Union[ApiResponse, object, TimersResponse_df2de7c, Error_249911d1] """ Get all timers created by the skill. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, TimersResponse] + :rtype: Union[ApiResponse, object, TimersResponse_df2de7c, Error_249911d1] """ operation_name = "get_timers" params = locals() @@ -174,7 +174,7 @@ def get_timers(self, **kwargs): def delete_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_249911d1] """ Delete a timer by ID. @@ -183,7 +183,7 @@ def delete_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_249911d1] """ operation_name = "delete_timer" params = locals() @@ -243,7 +243,7 @@ def delete_timer(self, id, **kwargs): return None def get_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, TimerResponse, Error] + # type: (str, **Any) -> Union[ApiResponse, object, TimerResponse_5be9ee64, Error_249911d1] """ Get timer by ID. @@ -252,7 +252,7 @@ def get_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, TimerResponse, Error] + :rtype: Union[ApiResponse, object, TimerResponse_5be9ee64, Error_249911d1] """ operation_name = "get_timer" params = locals() @@ -312,7 +312,7 @@ def get_timer(self, id, **kwargs): def pause_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_249911d1] """ Pause a timer. @@ -321,7 +321,7 @@ def pause_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_249911d1] """ operation_name = "pause_timer" params = locals() @@ -382,7 +382,7 @@ def pause_timer(self, id, **kwargs): return None def resume_timer(self, id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error] + # type: (str, **Any) -> Union[ApiResponse, object, Error_249911d1] """ Resume a timer. @@ -391,7 +391,7 @@ def resume_timer(self, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error] + :rtype: Union[ApiResponse, object, Error_249911d1] """ operation_name = "resume_timer" params = locals() @@ -452,7 +452,7 @@ def resume_timer(self, id, **kwargs): return None def create_timer(self, timer_request, **kwargs): - # type: (TimerRequest, **Any) -> Union[ApiResponse, object, TimerResponse, Error] + # type: (TimerRequest_5f036a34, **Any) -> Union[ApiResponse, object, TimerResponse_5be9ee64, Error_249911d1] """ Create a new timer. @@ -461,7 +461,7 @@ def create_timer(self, timer_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, TimerResponse, Error] + :rtype: Union[ApiResponse, object, TimerResponse_5be9ee64, Error_249911d1] """ operation_name = "create_timer" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py index cba8acc..8168cc3 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.creation_behavior import CreationBehavior - from ask_sdk_model.services.timer_management.triggering_behavior import TriggeringBehavior + from ask_sdk_model.services.timer_management.creation_behavior import CreationBehavior as CreationBehavior_c34ad8fe + from ask_sdk_model.services.timer_management.triggering_behavior import TriggeringBehavior as TriggeringBehavior_71806894 class TimerRequest(object): @@ -58,7 +58,7 @@ class TimerRequest(object): supports_multiple_types = False def __init__(self, duration=None, timer_label=None, creation_behavior=None, triggering_behavior=None): - # type: (Optional[str], Optional[str], Optional[CreationBehavior], Optional[TriggeringBehavior]) -> None + # type: (Optional[str], Optional[str], Optional[CreationBehavior_c34ad8fe], Optional[TriggeringBehavior_71806894]) -> None """Input request for creating a timer. :param duration: An ISO-8601 representation of duration. E.g. for 2 minutes and 3 seconds - \"PT2M3S\". diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py index df5bbbf..551e582 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timer_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.status import Status + from ask_sdk_model.services.timer_management.status import Status as Status_26679d1d class TimerResponse(object): @@ -73,7 +73,7 @@ class TimerResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, duration=None, trigger_time=None, timer_label=None, created_time=None, updated_time=None, remaining_time_when_paused=None): - # type: (Optional[str], Optional[Status], Optional[str], Optional[datetime], Optional[str], Optional[datetime], Optional[datetime], Optional[str]) -> None + # type: (Optional[str], Optional[Status_26679d1d], Optional[str], Optional[datetime], Optional[str], Optional[datetime], Optional[datetime], Optional[str]) -> None """Timer object :param id: Unique id of this timer alert diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py b/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py index 2d48ace..987731c 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/timers_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.timer_response import TimerResponse + from ask_sdk_model.services.timer_management.timer_response import TimerResponse as TimerResponse_5be9ee64 class TimersResponse(object): @@ -53,7 +53,7 @@ class TimersResponse(object): supports_multiple_types = False def __init__(self, total_count=None, timers=None, next_token=None): - # type: (Optional[int], Optional[List[TimerResponse]], Optional[str]) -> None + # type: (Optional[int], Optional[List[TimerResponse_5be9ee64]], Optional[str]) -> None """Timers object with paginated list of multiple timers :param total_count: Total count of timers returned. diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py b/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py index e6be7da..edd0f64 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/triggering_behavior.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.timer_management.operation import Operation - from ask_sdk_model.services.timer_management.notification_config import NotificationConfig + from ask_sdk_model.services.timer_management.operation import Operation as Operation_d6b621cf + from ask_sdk_model.services.timer_management.notification_config import NotificationConfig as NotificationConfig_41d41b56 class TriggeringBehavior(object): @@ -50,7 +50,7 @@ class TriggeringBehavior(object): supports_multiple_types = False def __init__(self, operation=None, notification_config=None): - # type: (Optional[Operation], Optional[NotificationConfig]) -> None + # type: (Optional[Operation_d6b621cf], Optional[NotificationConfig_41d41b56]) -> None """The triggering behavior upon Timer Expired. :param operation: diff --git a/ask-sdk-model/ask_sdk_model/services/ups/error.py b/ask-sdk-model/ask_sdk_model/services/ups/error.py index 1bb88f8..920d1ab 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/error.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.ups.error_code import ErrorCode + from ask_sdk_model.services.ups.error_code import ErrorCode as ErrorCode_2d037d81 class Error(object): @@ -47,7 +47,7 @@ class Error(object): supports_multiple_types = False def __init__(self, code=None, message=None): - # type: (Optional[ErrorCode], Optional[str]) -> None + # type: (Optional[ErrorCode_2d037d81], Optional[str]) -> None """ :param code: diff --git a/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py b/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py index f1902e6..75995fd 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/ups_service_client.py @@ -30,11 +30,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_sdk_model.services.ups.phone_number import PhoneNumber - from ask_sdk_model.services.ups.distance_units import DistanceUnits + from ask_sdk_model.services.ups.distance_units import DistanceUnits as DistanceUnits_491ebc07 + from ask_sdk_model.services.ups.phone_number import PhoneNumber as PhoneNumber_1251efb9 import str - from ask_sdk_model.services.ups.error import Error - from ask_sdk_model.services.ups.temperature_unit import TemperatureUnit + from ask_sdk_model.services.ups.error import Error as Error_1aa1008c + from ask_sdk_model.services.ups.temperature_unit import TemperatureUnit as TemperatureUnit_3d472aaf class UpsServiceClient(BaseServiceClient): @@ -55,14 +55,14 @@ def __init__(self, api_configuration, custom_user_agent=None): self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) def get_profile_email(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the email address of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:email:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_profile_email" params = locals() @@ -117,14 +117,14 @@ def get_profile_email(self, **kwargs): def get_profile_given_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the given name (first name) of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:given_name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_profile_given_name" params = locals() @@ -179,14 +179,14 @@ def get_profile_given_name(self, **kwargs): def get_profile_mobile_number(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, PhoneNumber, Error] + # type: (**Any) -> Union[ApiResponse, object, Error_1aa1008c, PhoneNumber_1251efb9] """ Gets the mobile phone number of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:mobile_number:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, PhoneNumber, Error] + :rtype: Union[ApiResponse, object, Error_1aa1008c, PhoneNumber_1251efb9] """ operation_name = "get_profile_mobile_number" params = locals() @@ -241,14 +241,14 @@ def get_profile_mobile_number(self, **kwargs): def get_profile_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the full name of the customer associated with the current enablement. Requires customer consent for scopes: [alexa::profile:name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_profile_name" params = locals() @@ -303,7 +303,7 @@ def get_profile_name(self, **kwargs): def get_system_distance_units(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error, DistanceUnits] + # type: (str, **Any) -> Union[ApiResponse, object, DistanceUnits_491ebc07, Error_1aa1008c] """ Gets the distance measurement unit of the device. Does not require explict customer consent. @@ -312,7 +312,7 @@ def get_system_distance_units(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error, DistanceUnits] + :rtype: Union[ApiResponse, object, DistanceUnits_491ebc07, Error_1aa1008c] """ operation_name = "get_system_distance_units" params = locals() @@ -373,7 +373,7 @@ def get_system_distance_units(self, device_id, **kwargs): def get_system_temperature_unit(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, TemperatureUnit, Error] + # type: (str, **Any) -> Union[ApiResponse, object, TemperatureUnit_3d472aaf, Error_1aa1008c] """ Gets the temperature measurement units of the device. Does not require explict customer consent. @@ -382,7 +382,7 @@ def get_system_temperature_unit(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, TemperatureUnit, Error] + :rtype: Union[ApiResponse, object, TemperatureUnit_3d472aaf, Error_1aa1008c] """ operation_name = "get_system_temperature_unit" params = locals() @@ -443,7 +443,7 @@ def get_system_temperature_unit(self, device_id, **kwargs): def get_system_time_zone(self, device_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, str, Error] + # type: (str, **Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the time zone of the device. Does not require explict customer consent. @@ -452,7 +452,7 @@ def get_system_time_zone(self, device_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_system_time_zone" params = locals() @@ -513,14 +513,14 @@ def get_system_time_zone(self, device_id, **kwargs): def get_persons_profile_given_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the given name (first name) of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:given_name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_persons_profile_given_name" params = locals() @@ -575,14 +575,14 @@ def get_persons_profile_given_name(self, **kwargs): def get_persons_profile_mobile_number(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, PhoneNumber, Error] + # type: (**Any) -> Union[ApiResponse, object, Error_1aa1008c, PhoneNumber_1251efb9] """ Gets the mobile phone number of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:mobile_number:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, PhoneNumber, Error] + :rtype: Union[ApiResponse, object, Error_1aa1008c, PhoneNumber_1251efb9] """ operation_name = "get_persons_profile_mobile_number" params = locals() @@ -637,14 +637,14 @@ def get_persons_profile_mobile_number(self, **kwargs): def get_persons_profile_name(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, str, Error] + # type: (**Any) -> Union[ApiResponse, object, str, Error_1aa1008c] """ Gets the full name of the recognized speaker at person-level. Requires speaker consent at person-level for scopes: [alexa::profile:name:read] :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, str, Error] + :rtype: Union[ApiResponse, object, str, Error_1aa1008c] """ operation_name = "get_persons_profile_name" params = locals() diff --git a/ask-sdk-model/ask_sdk_model/session.py b/ask-sdk-model/ask_sdk_model/session.py index c264c16..f6b55c2 100644 --- a/ask-sdk-model/ask_sdk_model/session.py +++ b/ask-sdk-model/ask_sdk_model/session.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.application import Application - from ask_sdk_model.user import User + from ask_sdk_model.application import Application as Application_fbe81c42 + from ask_sdk_model.user import User as User_8987f2de class Session(object): @@ -62,7 +62,7 @@ class Session(object): supports_multiple_types = False def __init__(self, new=None, session_id=None, user=None, attributes=None, application=None): - # type: (Optional[bool], Optional[str], Optional[User], Optional[Dict[str, object]], Optional[Application]) -> None + # type: (Optional[bool], Optional[str], Optional[User_8987f2de], Optional[Dict[str, object]], Optional[Application_fbe81c42]) -> None """Represents a single execution of the alexa service :param new: A boolean value indicating whether this is a new session. Returns true for a new session or false for an existing session. diff --git a/ask-sdk-model/ask_sdk_model/session_ended_error.py b/ask-sdk-model/ask_sdk_model/session_ended_error.py index 48aca09..610cddb 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_error.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.session_ended_error_type import SessionEndedErrorType + from ask_sdk_model.session_ended_error_type import SessionEndedErrorType as SessionEndedErrorType_fbc052bf class SessionEndedError(object): @@ -49,7 +49,7 @@ class SessionEndedError(object): supports_multiple_types = False def __init__(self, object_type=None, message=None): - # type: (Optional[SessionEndedErrorType], Optional[str]) -> None + # type: (Optional[SessionEndedErrorType_fbc052bf], Optional[str]) -> None """An error object providing more information about the error that occurred. :param object_type: A string indicating the type of error that occurred. diff --git a/ask-sdk-model/ask_sdk_model/session_ended_request.py b/ask-sdk-model/ask_sdk_model/session_ended_request.py index a57f714..b3978c0 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_request.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_request.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.session_ended_error import SessionEndedError - from ask_sdk_model.session_ended_reason import SessionEndedReason + from ask_sdk_model.session_ended_reason import SessionEndedReason as SessionEndedReason_8be684f4 + from ask_sdk_model.session_ended_error import SessionEndedError as SessionEndedError_39281860 class SessionEndedRequest(Request): @@ -65,7 +65,7 @@ class SessionEndedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, reason=None, error=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[SessionEndedReason], Optional[SessionEndedError]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[SessionEndedReason_8be684f4], Optional[SessionEndedError_39281860]) -> None """A SessionEndedRequest is an object that represents a request made to an Alexa skill to notify that a session was ended. Your service receives a SessionEndedRequest when a currently open session is closed for one of the following reasons: <ol><li>The user says “exit”</li><li>the user does not respond or says something that does not match an intent defined in your voice interface while the device is listening for the user’s response</li><li>an error occurs</li></ol> :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/session_resumed_request.py b/ask-sdk-model/ask_sdk_model/session_resumed_request.py index d3553a6..e6396c4 100644 --- a/ask-sdk-model/ask_sdk_model/session_resumed_request.py +++ b/ask-sdk-model/ask_sdk_model/session_resumed_request.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.cause import Cause + from ask_sdk_model.cause import Cause as Cause_6683e534 class SessionResumedRequest(Request): @@ -60,7 +60,7 @@ class SessionResumedRequest(Request): supports_multiple_types = False def __init__(self, request_id=None, timestamp=None, locale=None, cause=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Cause]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Cause_6683e534]) -> None """The request to resume a skill's session and tells the skill why it is resumed. :param request_id: Represents the unique identifier for the specific request. diff --git a/ask-sdk-model/ask_sdk_model/simple_slot_value.py b/ask-sdk-model/ask_sdk_model/simple_slot_value.py index 0878bf6..9351bbd 100644 --- a/ask-sdk-model/ask_sdk_model/simple_slot_value.py +++ b/ask-sdk-model/ask_sdk_model/simple_slot_value.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slu.entityresolution.resolutions import Resolutions + from ask_sdk_model.slu.entityresolution.resolutions import Resolutions as Resolutions_e7d66a3 class SimpleSlotValue(SlotValue): @@ -52,7 +52,7 @@ class SimpleSlotValue(SlotValue): supports_multiple_types = False def __init__(self, value=None, resolutions=None): - # type: (Optional[str], Optional[Resolutions]) -> None + # type: (Optional[str], Optional[Resolutions_e7d66a3]) -> None """Slot value containing a single string value and resolutions. :param value: A string that represents the value the user spoke for the slot. This is the actual value the user spoke, not necessarily the canonical value or one of the synonyms defined for the entity. Note that AMAZON.LITERAL slot values sent to your service are always in all lower case. diff --git a/ask-sdk-model/ask_sdk_model/slot.py b/ask-sdk-model/ask_sdk_model/slot.py index 10d332e..0bb5417 100644 --- a/ask-sdk-model/ask_sdk_model/slot.py +++ b/ask-sdk-model/ask_sdk_model/slot.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slot_value import SlotValue - from ask_sdk_model.slu.entityresolution.resolutions import Resolutions - from ask_sdk_model.slot_confirmation_status import SlotConfirmationStatus + from ask_sdk_model.slu.entityresolution.resolutions import Resolutions as Resolutions_e7d66a3 + from ask_sdk_model.slot_confirmation_status import SlotConfirmationStatus as SlotConfirmationStatus_b8466dc8 + from ask_sdk_model.slot_value import SlotValue as SlotValue_4725c8c5 class Slot(object): @@ -61,7 +61,7 @@ class Slot(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None, slot_value=None): - # type: (Optional[str], Optional[str], Optional[SlotConfirmationStatus], Optional[Resolutions], Optional[SlotValue]) -> None + # type: (Optional[str], Optional[str], Optional[SlotConfirmationStatus_b8466dc8], Optional[Resolutions_e7d66a3], Optional[SlotValue_4725c8c5]) -> None """ :param name: A string that represents the name of the slot. diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py index 794445e..45176af 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slu.entityresolution.status import Status - from ask_sdk_model.slu.entityresolution.value_wrapper import ValueWrapper + from ask_sdk_model.slu.entityresolution.value_wrapper import ValueWrapper as ValueWrapper_eca23f08 + from ask_sdk_model.slu.entityresolution.status import Status as Status_862c3cf1 class Resolution(object): @@ -54,7 +54,7 @@ class Resolution(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[Status], Optional[List[ValueWrapper]]) -> None + # type: (Optional[str], Optional[Status_862c3cf1], Optional[List[ValueWrapper_eca23f08]]) -> None """Represents a possible authority for entity resolution :param authority: diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py index 7b6914d..7c8131d 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slu.entityresolution.resolution import Resolution + from ask_sdk_model.slu.entityresolution.resolution import Resolution as Resolution_fcf523b1 class Resolutions(object): @@ -45,7 +45,7 @@ class Resolutions(object): supports_multiple_types = False def __init__(self, resolutions_per_authority=None): - # type: (Optional[List[Resolution]]) -> None + # type: (Optional[List[Resolution_fcf523b1]]) -> None """Represents the results of resolving the words captured from the user's utterance. This is included for slots that use a custom slot type or a built-in slot type that you have extended with your own values. Note that resolutions is not included for built-in slot types that you have not extended. :param resolutions_per_authority: diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py index 38f118b..088cfdc 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slu.entityresolution.status_code import StatusCode + from ask_sdk_model.slu.entityresolution.status_code import StatusCode as StatusCode_118f7170 class Status(object): @@ -43,7 +43,7 @@ class Status(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[StatusCode]) -> None + # type: (Optional[StatusCode_118f7170]) -> None """ :param code: Indication of the results of attempting to resolve the user utterance against the defined slot types. diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py index 689a6b2..9771cd8 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value_wrapper.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.slu.entityresolution.value import Value + from ask_sdk_model.slu.entityresolution.value import Value as Value_c01e22b7 class ValueWrapper(object): @@ -45,7 +45,7 @@ class ValueWrapper(object): supports_multiple_types = False def __init__(self, value=None): - # type: (Optional[Value]) -> None + # type: (Optional[Value_c01e22b7]) -> None """A wrapper class for an entity resolution value used for JSON serialization. :param value: diff --git a/ask-sdk-model/ask_sdk_model/supported_interfaces.py b/ask-sdk-model/ask_sdk_model/supported_interfaces.py index 95b1828..e491370 100644 --- a/ask-sdk-model/ask_sdk_model/supported_interfaces.py +++ b/ask-sdk-model/ask_sdk_model/supported_interfaces.py @@ -23,14 +23,14 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.audioplayer.audio_player_interface import AudioPlayerInterface - from ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface import AlexaPresentationHtmlInterface - from ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface import AlexaPresentationAplInterface - from ask_sdk_model.interfaces.navigation.navigation_interface import NavigationInterface - from ask_sdk_model.interfaces.videoapp.video_app_interface import VideoAppInterface - from ask_sdk_model.interfaces.geolocation.geolocation_interface import GeolocationInterface - from ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface import AlexaPresentationApltInterface - from ask_sdk_model.interfaces.display.display_interface import DisplayInterface + from ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface import AlexaPresentationHtmlInterface as AlexaPresentationHtmlInterface_b20f808f + from ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface import AlexaPresentationAplInterface as AlexaPresentationAplInterface_58fc19ef + from ask_sdk_model.interfaces.navigation.navigation_interface import NavigationInterface as NavigationInterface_aa96009b + from ask_sdk_model.interfaces.audioplayer.audio_player_interface import AudioPlayerInterface as AudioPlayerInterface_24d2b051 + from ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface import AlexaPresentationApltInterface as AlexaPresentationApltInterface_95b3be2b + from ask_sdk_model.interfaces.display.display_interface import DisplayInterface as DisplayInterface_c1477bd9 + from ask_sdk_model.interfaces.videoapp.video_app_interface import VideoAppInterface as VideoAppInterface_f245c658 + from ask_sdk_model.interfaces.geolocation.geolocation_interface import GeolocationInterface as GeolocationInterface_d5c5128d class SupportedInterfaces(object): @@ -80,7 +80,7 @@ class SupportedInterfaces(object): supports_multiple_types = False def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, alexa_presentation_html=None, audio_player=None, display=None, video_app=None, geolocation=None, navigation=None): - # type: (Optional[AlexaPresentationAplInterface], Optional[AlexaPresentationApltInterface], Optional[AlexaPresentationHtmlInterface], Optional[AudioPlayerInterface], Optional[DisplayInterface], Optional[VideoAppInterface], Optional[GeolocationInterface], Optional[NavigationInterface]) -> None + # type: (Optional[AlexaPresentationAplInterface_58fc19ef], Optional[AlexaPresentationApltInterface_95b3be2b], Optional[AlexaPresentationHtmlInterface_b20f808f], Optional[AudioPlayerInterface_24d2b051], Optional[DisplayInterface_c1477bd9], Optional[VideoAppInterface_f245c658], Optional[GeolocationInterface_d5c5128d], Optional[NavigationInterface_aa96009b]) -> None """An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. :param alexa_presentation_apl: diff --git a/ask-sdk-model/ask_sdk_model/ui/output_speech.py b/ask-sdk-model/ask_sdk_model/ui/output_speech.py index 44fc95c..d34cc66 100644 --- a/ask-sdk-model/ask_sdk_model/ui/output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/output_speech.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.ui.play_behavior import PlayBehavior + from ask_sdk_model.ui.play_behavior import PlayBehavior as PlayBehavior_a7b45b61 class OutputSpeech(object): @@ -67,7 +67,7 @@ class OutputSpeech(object): @abstractmethod def __init__(self, object_type=None, play_behavior=None): - # type: (Optional[str], Optional[PlayBehavior]) -> None + # type: (Optional[str], Optional[PlayBehavior_a7b45b61]) -> None """ :param object_type: diff --git a/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py b/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py index 68c91e3..4bc810d 100644 --- a/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/plain_text_output_speech.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.ui.play_behavior import PlayBehavior + from ask_sdk_model.ui.play_behavior import PlayBehavior as PlayBehavior_a7b45b61 class PlainTextOutputSpeech(OutputSpeech): @@ -50,7 +50,7 @@ class PlainTextOutputSpeech(OutputSpeech): supports_multiple_types = False def __init__(self, play_behavior=None, text=None): - # type: (Optional[PlayBehavior], Optional[str]) -> None + # type: (Optional[PlayBehavior_a7b45b61], Optional[str]) -> None """ :param play_behavior: diff --git a/ask-sdk-model/ask_sdk_model/ui/reprompt.py b/ask-sdk-model/ask_sdk_model/ui/reprompt.py index 624f653..5889dec 100644 --- a/ask-sdk-model/ask_sdk_model/ui/reprompt.py +++ b/ask-sdk-model/ask_sdk_model/ui/reprompt.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.ui.output_speech import OutputSpeech + from ask_sdk_model.ui.output_speech import OutputSpeech as OutputSpeech_a070f8fb class Reprompt(object): @@ -43,7 +43,7 @@ class Reprompt(object): supports_multiple_types = False def __init__(self, output_speech=None): - # type: (Optional[OutputSpeech]) -> None + # type: (Optional[OutputSpeech_a070f8fb]) -> None """ :param output_speech: diff --git a/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py b/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py index f95e44d..091b5f3 100644 --- a/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/ssml_output_speech.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.ui.play_behavior import PlayBehavior + from ask_sdk_model.ui.play_behavior import PlayBehavior as PlayBehavior_a7b45b61 class SsmlOutputSpeech(OutputSpeech): @@ -50,7 +50,7 @@ class SsmlOutputSpeech(OutputSpeech): supports_multiple_types = False def __init__(self, play_behavior=None, ssml=None): - # type: (Optional[PlayBehavior], Optional[str]) -> None + # type: (Optional[PlayBehavior_a7b45b61], Optional[str]) -> None """ :param play_behavior: diff --git a/ask-sdk-model/ask_sdk_model/ui/standard_card.py b/ask-sdk-model/ask_sdk_model/ui/standard_card.py index 72188ff..618e4b0 100644 --- a/ask-sdk-model/ask_sdk_model/ui/standard_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/standard_card.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.ui.image import Image + from ask_sdk_model.ui.image import Image as Image_510835de class StandardCard(Card): @@ -54,7 +54,7 @@ class StandardCard(Card): supports_multiple_types = False def __init__(self, title=None, text=None, image=None): - # type: (Optional[str], Optional[str], Optional[Image]) -> None + # type: (Optional[str], Optional[str], Optional[Image_510835de]) -> None """ :param title: diff --git a/ask-sdk-model/ask_sdk_model/user.py b/ask-sdk-model/ask_sdk_model/user.py index 4a8bde5..ba6cf05 100644 --- a/ask-sdk-model/ask_sdk_model/user.py +++ b/ask-sdk-model/ask_sdk_model/user.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.permissions import Permissions + from ask_sdk_model.permissions import Permissions as Permissions_9a74ccaa class User(object): @@ -53,7 +53,7 @@ class User(object): supports_multiple_types = False def __init__(self, user_id=None, access_token=None, permissions=None): - # type: (Optional[str], Optional[str], Optional[Permissions]) -> None + # type: (Optional[str], Optional[str], Optional[Permissions_9a74ccaa]) -> None """An object that describes the Amazon account for which the skill is enabled. :param user_id: A string that represents a unique identifier for the user who made the request. The length of this identifier can vary, but is never more than 255 characters. The userId is automatically generated when a user enables the skill in the Alexa app. Note: Disabling and re-enabling a skill generates a new identifier. From fedc20f02b6798156c14fbe25e85bbda35c44caa Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 30 Oct 2020 20:30:47 +0000 Subject: [PATCH 009/111] Release 1.9.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 1436 +++++++++++------ .../ask_smapi_model/v0/bad_request_error.py | 4 +- .../v0/catalog/catalog_details.py | 6 +- .../v0/catalog/catalog_summary.py | 6 +- .../v0/catalog/create_catalog_request.py | 6 +- .../v0/catalog/list_catalogs_response.py | 6 +- .../catalog/upload/complete_upload_request.py | 4 +- .../upload/content_upload_file_summary.py | 4 +- .../catalog/upload/content_upload_summary.py | 4 +- .../upload/create_content_upload_response.py | 8 +- .../upload/get_content_upload_response.py | 8 +- .../catalog/upload/list_uploads_response.py | 6 +- .../catalog/upload/upload_ingestion_step.py | 8 +- .../subscriber/create_subscriber_request.py | 4 +- .../development_events/subscriber/endpoint.py | 4 +- .../subscriber/list_subscribers_response.py | 6 +- .../subscriber/subscriber_info.py | 4 +- .../subscriber/subscriber_summary.py | 6 +- .../subscriber/update_subscriber_request.py | 4 +- .../create_subscription_request.py | 4 +- .../list_subscriptions_response.py | 6 +- .../subscription/subscription_info.py | 4 +- .../subscription/subscription_summary.py | 4 +- .../update_subscription_request.py | 4 +- .../interaction_model_update.py | 4 +- .../manifest_update.py | 4 +- .../skill_certification.py | 4 +- .../alexa_development_event/skill_publish.py | 4 +- .../interaction_model_event_attributes.py | 10 +- .../v0/event_schema/skill_event_attributes.py | 10 +- ask-smapi-model/ask_smapi_model/v0/links.py | 4 +- .../v1/audit_logs/audit_log.py | 10 +- .../v1/audit_logs/audit_logs_request.py | 10 +- .../v1/audit_logs/audit_logs_response.py | 6 +- .../v1/audit_logs/request_filters.py | 10 +- .../v1/audit_logs/resource_filter.py | 4 +- .../ask_smapi_model/v1/bad_request_error.py | 4 +- .../create_content_upload_url_response.py | 4 +- .../upload/content_upload_file_summary.py | 4 +- .../upload/get_content_upload_response.py | 8 +- .../v1/catalog/upload/pre_signed_url.py | 4 +- .../catalog/upload/upload_ingestion_step.py | 8 +- .../ask_smapi_model/v1/isp/__init__.py | 1 + .../v1/isp/associated_skill_response.py | 4 +- .../v1/isp/create_in_skill_product_request.py | 4 +- .../v1/isp/in_skill_product_definition.py | 22 +- .../in_skill_product_definition_response.py | 4 +- .../v1/isp/in_skill_product_summary.py | 26 +- .../isp/in_skill_product_summary_response.py | 4 +- .../v1/isp/isp_summary_links.py | 4 +- .../v1/isp/list_in_skill_product.py | 6 +- .../v1/isp/list_in_skill_product_response.py | 4 +- .../isp/localized_publishing_information.py | 4 +- .../v1/isp/marketplace_pricing.py | 4 +- .../ask_smapi_model/v1/isp/price_listing.py | 4 +- .../v1/isp/privacy_and_compliance.py | 4 +- .../v1/isp/promotable_state.py | 66 + .../v1/isp/publishing_information.py | 10 +- .../v1/isp/subscription_information.py | 4 +- .../v1/isp/summary_marketplace_pricing.py | 4 +- .../v1/isp/summary_price_listing.py | 4 +- .../ask_smapi_model/v1/isp/tax_information.py | 4 +- .../v1/isp/update_in_skill_product_request.py | 4 +- ask-smapi-model/ask_smapi_model/v1/links.py | 4 +- ...ount_linking_platform_authorization_url.py | 4 +- .../account_linking_request.py | 4 +- .../account_linking_request_payload.py | 8 +- .../account_linking_response.py | 8 +- .../skill/alexa_hosted/alexa_hosted_config.py | 4 +- .../skill/alexa_hosted/hosted_skill_info.py | 6 +- .../alexa_hosted/hosted_skill_metadata.py | 4 +- .../alexa_hosted/hosted_skill_permission.py | 6 +- ...osted_skill_repository_credentials_list.py | 4 +- ...ed_skill_repository_credentials_request.py | 4 +- .../hosted_skill_repository_info.py | 4 +- .../alexa_hosted/hosting_configuration.py | 4 +- .../annotation_with_audio_asset.py | 4 +- ...asr_annotation_set_annotations_response.py | 6 +- .../list_asr_annotation_sets_response.py | 6 +- ...ate_asr_annotation_set_contents_payload.py | 4 +- .../annotation_with_audio_asset.py | 4 +- .../skill/asr/evaluations/evaluation_items.py | 10 +- .../asr/evaluations/evaluation_metadata.py | 10 +- .../evaluations/evaluation_metadata_result.py | 6 +- .../asr/evaluations/evaluation_result.py | 10 +- ...t_asr_evaluation_status_response_object.py | 10 +- .../get_asr_evaluations_results_response.py | 6 +- .../list_asr_evaluations_response.py | 6 +- .../post_asr_evaluations_request_object.py | 4 +- .../v1/skill/asr/evaluations/skill.py | 4 +- .../v1/skill/beta_test/beta_test.py | 4 +- .../testers/list_testers_response.py | 4 +- .../beta_test/testers/tester_with_details.py | 4 +- .../skill/beta_test/testers/testers_list.py | 4 +- .../ask_smapi_model/v1/skill/build_details.py | 4 +- .../ask_smapi_model/v1/skill/build_step.py | 8 +- .../certification/certification_response.py | 8 +- .../certification/certification_result.py | 4 +- .../certification/certification_summary.py | 6 +- .../skill/certification/distribution_info.py | 4 +- .../list_certifications_response.py | 6 +- .../certification/review_tracking_info.py | 4 +- .../v1/skill/clone_locale_request.py | 4 +- .../v1/skill/clone_locale_resource_status.py | 6 +- .../v1/skill/clone_locale_status_response.py | 8 +- .../v1/skill/create_skill_request.py | 6 +- .../v1/skill/evaluations/dialog_act.py | 4 +- .../v1/skill/evaluations/intent.py | 6 +- .../v1/skill/evaluations/multi_turn.py | 4 +- .../skill/evaluations/profile_nlu_response.py | 8 +- .../profile_nlu_selected_intent.py | 6 +- .../resolutions_per_authority_items.py | 6 +- .../resolutions_per_authority_status.py | 4 +- .../v1/skill/evaluations/slot.py | 6 +- .../v1/skill/evaluations/slot_resolutions.py | 4 +- .../v1/skill/export_response.py | 6 +- .../v1/skill/history/confidence.py | 4 +- .../v1/skill/history/dialog_act.py | 4 +- .../v1/skill/history/intent.py | 6 +- .../v1/skill/history/intent_request.py | 14 +- .../v1/skill/history/intent_requests.py | 6 +- .../skill/hosted_skill_deployment_status.py | 4 +- ...l_deployment_status_last_update_request.py | 8 +- ..._skill_provisioning_last_update_request.py | 6 +- .../skill/hosted_skill_provisioning_status.py | 4 +- .../v1/skill/image_attributes.py | 6 +- .../ask_smapi_model/v1/skill/image_size.py | 4 +- .../v1/skill/import_response.py | 8 +- .../v1/skill/import_response_skill.py | 4 +- .../ask_smapi_model/v1/skill/instance.py | 4 +- .../catalog/catalog_definition_output.py | 4 +- .../interaction_model/catalog/catalog_item.py | 4 +- .../catalog/catalog_status.py | 4 +- .../catalog/definition_data.py | 4 +- .../catalog/last_update_request.py | 6 +- .../catalog/list_catalog_response.py | 6 +- .../catalog_value_supplier.py | 4 +- .../conflict_detection/conflict_intent.py | 4 +- .../conflict_detection/conflict_result.py | 4 +- ..._conflict_detection_job_status_response.py | 4 +- .../get_conflicts_response.py | 8 +- .../get_conflicts_response_result.py | 4 +- .../conflict_detection/paged_response.py | 6 +- .../v1/skill/interaction_model/dialog.py | 6 +- .../skill/interaction_model/dialog_intents.py | 8 +- .../interaction_model/dialog_slot_items.py | 6 +- .../fallback_intent_sensitivity.py | 4 +- .../inline_value_supplier.py | 4 +- .../v1/skill/interaction_model/intent.py | 4 +- .../interaction_model_data.py | 4 +- .../interaction_model_schema.py | 8 +- .../jobs/catalog_auto_refresh.py | 6 +- .../jobs/create_job_definition_request.py | 4 +- .../skill/interaction_model/jobs/execution.py | 4 +- .../jobs/get_executions_response.py | 8 +- .../interaction_model/jobs/job_definition.py | 4 +- .../jobs/job_definition_metadata.py | 4 +- .../jobs/job_error_details.py | 4 +- .../jobs/list_job_definitions_response.py | 8 +- .../jobs/reference_version_update.py | 6 +- .../jobs/update_job_status_request.py | 4 +- .../jobs/validation_errors.py | 4 +- .../skill/interaction_model/language_model.py | 8 +- .../interaction_model/model_configuration.py | 4 +- .../model_type/definition_data.py | 4 +- .../model_type/last_update_request.py | 8 +- .../model_type/list_slot_type_response.py | 6 +- .../model_type/slot_type_definition_output.py | 4 +- .../model_type/slot_type_item.py | 4 +- .../model_type/slot_type_response.py | 4 +- .../model_type/slot_type_status.py | 4 +- .../model_type/update_request.py | 4 +- .../v1/skill/interaction_model/prompt.py | 4 +- .../skill/interaction_model/prompt_items.py | 4 +- .../interaction_model/slot_definition.py | 4 +- .../v1/skill/interaction_model/slot_type.py | 6 +- .../v1/skill/interaction_model/type_value.py | 4 +- .../list_slot_type_version_response.py | 6 +- .../type_version/slot_type_update.py | 4 +- .../type_version/slot_type_version_data.py | 4 +- .../slot_type_version_data_object.py | 4 +- .../type_version/slot_type_version_item.py | 4 +- .../type_version/value_supplier_object.py | 4 +- .../type_version/version_data.py | 4 +- .../type_version/version_data_object.py | 4 +- .../version/catalog_entity_version.py | 4 +- .../version/catalog_values.py | 6 +- .../version/catalog_version_data.py | 4 +- .../skill/interaction_model/version/links.py | 4 +- .../list_catalog_entity_versions_response.py | 6 +- .../version/list_response.py | 6 +- .../interaction_model/version/value_schema.py | 4 +- .../interaction_model/version/version_data.py | 4 +- .../version/version_items.py | 4 +- .../interaction_model_last_update_request.py | 8 +- .../invocations/invocation_response_result.py | 6 +- .../skill/invocations/invoke_skill_request.py | 6 +- .../invocations/invoke_skill_response.py | 6 +- .../skill/invocations/skill_execution_info.py | 8 +- .../v1/skill/list_skill_response.py | 6 +- .../v1/skill/list_skill_versions_response.py | 6 +- .../skill/manifest/alexa_for_business_apis.py | 8 +- .../manifest/alexa_for_business_interface.py | 6 +- .../alexa_presentation_apl_interface.py | 4 +- .../v1/skill/manifest/connections.py | 4 +- .../v1/skill/manifest/custom_apis.py | 12 +- .../v1/skill/manifest/custom_connections.py | 4 +- .../v1/skill/manifest/display_interface.py | 6 +- .../v1/skill/manifest/event_name.py | 4 +- .../v1/skill/manifest/flash_briefing_apis.py | 4 +- .../v1/skill/manifest/health_apis.py | 10 +- .../v1/skill/manifest/health_interface.py | 8 +- .../v1/skill/manifest/lambda_region.py | 4 +- .../manifest/localized_flash_briefing_info.py | 4 +- .../localized_flash_briefing_info_items.py | 8 +- .../skill/manifest/localized_health_info.py | 4 +- .../v1/skill/manifest/localized_music_info.py | 8 +- .../skill/manifest/manifest_gadget_support.py | 4 +- .../v1/skill/manifest/music_apis.py | 14 +- .../v1/skill/manifest/music_content_type.py | 4 +- .../v1/skill/manifest/music_interfaces.py | 4 +- .../v1/skill/manifest/permission_items.py | 4 +- .../v1/skill/manifest/region.py | 4 +- .../v1/skill/manifest/request.py | 4 +- .../v1/skill/manifest/skill_manifest.py | 12 +- .../v1/skill/manifest/skill_manifest_apis.py | 18 +- .../skill/manifest/skill_manifest_endpoint.py | 4 +- .../skill/manifest/skill_manifest_envelope.py | 4 +- .../skill/manifest/skill_manifest_events.py | 10 +- .../skill_manifest_privacy_and_compliance.py | 4 +- .../skill_manifest_publishing_information.py | 10 +- .../v1/skill/manifest/smart_home_apis.py | 8 +- .../v1/skill/manifest/video_apis.py | 10 +- .../v1/skill/manifest/video_apis_locale.py | 4 +- .../v1/skill/manifest/video_country_info.py | 4 +- .../v1/skill/manifest/video_region.py | 6 +- .../v1/skill/manifest/viewport_mode.py | 5 +- .../skill/manifest/viewport_specification.py | 6 +- .../v1/skill/manifest_last_update_request.py | 6 +- .../v1/skill/manifest_status.py | 4 +- .../v1/skill/nlu/annotation_sets/links.py | 4 +- .../list_nlu_annotation_sets_response.py | 8 +- .../v1/skill/nlu/evaluations/actual.py | 4 +- .../nlu/evaluations/evaluate_nlu_request.py | 4 +- .../v1/skill/nlu/evaluations/evaluation.py | 6 +- .../nlu/evaluations/evaluation_entity.py | 6 +- .../nlu/evaluations/evaluation_inputs.py | 4 +- .../v1/skill/nlu/evaluations/expected.py | 4 +- .../skill/nlu/evaluations/expected_intent.py | 4 +- .../get_nlu_evaluation_response.py | 8 +- .../get_nlu_evaluation_response_links.py | 4 +- .../get_nlu_evaluation_results_response.py | 8 +- .../v1/skill/nlu/evaluations/intent.py | 6 +- .../v1/skill/nlu/evaluations/links.py | 4 +- .../list_nlu_evaluations_response.py | 8 +- .../skill/nlu/evaluations/paged_response.py | 6 +- .../nlu/evaluations/paged_results_response.py | 6 +- .../evaluations/resolutions_per_authority.py | 6 +- .../resolutions_per_authority_status.py | 4 +- .../v1/skill/nlu/evaluations/slots_props.py | 6 +- .../v1/skill/nlu/evaluations/test_case.py | 10 +- ..._private_distribution_accounts_response.py | 6 +- .../private/private_distribution_account.py | 4 +- .../publication/skill_publication_response.py | 4 +- .../v1/skill/resource_import_status.py | 8 +- .../v1/skill/resource_schema/__init__.py | 17 + .../get_resource_schema_response.py | 113 ++ .../v1/skill/resource_schema/py.typed | 0 .../v1/skill/rollback_request_status.py | 6 +- .../skill/simulations/alexa_execution_info.py | 4 +- .../v1/skill/simulations/alexa_response.py | 4 +- .../v1/skill/simulations/invocation.py | 8 +- .../v1/skill/simulations/session.py | 4 +- .../v1/skill/simulations/simulation_result.py | 8 +- .../simulations/simulations_api_request.py | 8 +- .../simulations/simulations_api_response.py | 6 +- .../v1/skill/skill_credentials.py | 4 +- .../skill/skill_interaction_model_status.py | 4 +- .../ask_smapi_model/v1/skill/skill_status.py | 10 +- .../ask_smapi_model/v1/skill/skill_summary.py | 10 +- .../ask_smapi_model/v1/skill/skill_version.py | 4 +- .../v1/skill/ssl_certificate_payload.py | 4 +- .../v1/skill/standardized_error.py | 4 +- .../submit_skill_for_certification_request.py | 4 +- .../v1/skill/validation_details.py | 18 +- .../v1/skill/validation_failure_reason.py | 4 +- .../skill/validations/response_validation.py | 6 +- .../validations/validations_api_response.py | 6 +- .../validations_api_response_result.py | 6 +- .../v1/skill/version_submission.py | 4 +- .../v1/skill/withdraw_request.py | 4 +- .../v1/smart_home_evaluation/__init__.py | 39 + .../capability_test_plan.py | 106 ++ .../v1/smart_home_evaluation/endpoint.py | 106 ++ .../evaluate_sh_capability_request.py | 123 ++ .../evaluate_sh_capability_response.py | 129 ++ .../evaluation_entity_status.py | 66 + .../evaluation_object.py | 149 ++ .../get_sh_capability_evaluation_response.py | 145 ++ ..._capability_evaluation_results_response.py | 116 ++ ...list_sh_capability_evaluations_response.py | 115 ++ .../list_sh_capability_test_plans_response.py | 116 ++ .../list_sh_test_plan_item.py | 113 ++ .../smart_home_evaluation/paged_response.py | 107 ++ .../pagination_context.py | 113 ++ .../pagination_context_token.py | 106 ++ .../v1/smart_home_evaluation/py.typed | 0 .../sh_capability_directive.py | 98 ++ .../sh_capability_error.py | 114 ++ .../sh_capability_error_code.py | 70 + .../sh_capability_response.py | 98 ++ .../sh_capability_state.py | 98 ++ .../sh_evaluation_results_metric.py | 127 ++ .../v1/smart_home_evaluation/stage.py | 64 + .../smart_home_evaluation/test_case_result.py | 160 ++ .../test_case_result_status.py | 65 + .../v1/vendor_management/vendors.py | 4 +- .../ask_smapi_model/v2/bad_request_error.py | 4 +- .../ask_smapi_model/v2/skill/invocation.py | 8 +- .../invocations/invocation_response_result.py | 6 +- .../invocations/invocations_api_request.py | 6 +- .../invocations/invocations_api_response.py | 6 +- .../skill/simulations/alexa_execution_info.py | 6 +- .../v2/skill/simulations/alexa_response.py | 4 +- .../v2/skill/simulations/intent.py | 6 +- .../resolutions_per_authority_items.py | 6 +- .../resolutions_per_authority_status.py | 4 +- .../v2/skill/simulations/session.py | 4 +- .../v2/skill/simulations/simulation_result.py | 8 +- .../simulations/simulations_api_request.py | 8 +- .../simulations/simulations_api_response.py | 6 +- .../skill/simulations/skill_execution_info.py | 4 +- .../v2/skill/simulations/slot.py | 6 +- .../v2/skill/simulations/slot_resolutions.py | 4 +- 336 files changed, 4596 insertions(+), 1309 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/isp/promotable_state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/get_resource_schema_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/capability_test_plan.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/endpoint.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_entity_status.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_object.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_results_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_evaluations_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_test_plans_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_test_plan_item.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/paged_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context_token.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_directive.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error_code.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_evaluation_results_metric.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/stage.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result_status.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index cf7d6ba..464620b 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -155,3 +155,11 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions + + +1.9.0 +~~~~~ + +This release contains the following changes : +- Add `Smart Home Evaluation APIs `__. +- Add `get resource schema API `__. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index ab49f17..c841c1f 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.8.2' +__version__ = '1.9.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index ccf8f5c..11cdca3 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -32,154 +32,160 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.create_content_upload_response import CreateContentUploadResponse as Upload_CreateContentUploadResponseV0 - from ask_smapi_model.v0.catalog.upload.complete_upload_request import CompleteUploadRequest as Upload_CompleteUploadRequestV0 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest as AlexaHosted_HostedSkillRepositoryCredentialsRequestV1 - from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequest as Skill_CloneLocaleRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors import ValidationErrors as Jobs_ValidationErrorsV1 - from ask_smapi_model.v0.development_events.subscriber.update_subscriber_request import UpdateSubscriberRequest as Subscriber_UpdateSubscriberRequestV0 - from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request import CreateJobDefinitionRequest as Jobs_CreateJobDefinitionRequestV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as AlexaHosted_HostedSkillRepositoryCredentialsListV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject as AnnotationSets_CreateAsrAnnotationSetRequestObjectV1 - from ask_smapi_model.v2.skill.simulations.simulations_api_request import SimulationsApiRequest as Simulations_SimulationsApiRequestV2 - from ask_smapi_model.v1.skill.history.intent_confidence_bin import IntentConfidenceBin as History_IntentConfidenceBinV1 - from ask_smapi_model.v1.catalog.upload.get_content_upload_response import GetContentUploadResponse as Upload_GetContentUploadResponseV1 - from ask_smapi_model.v1.skill.interaction_model.version.list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse as Version_ListCatalogEntityVersionsResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse as AnnotationSets_CreateNLUAnnotationSetResponseV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_metadata import HostedSkillMetadata as AlexaHosted_HostedSkillMetadataV1 - from ask_smapi_model.v1.skill.update_skill_with_package_request import UpdateSkillWithPackageRequest as Skill_UpdateSkillWithPackageRequestV1 - from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequest as Skill_WithdrawRequestV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.update_request import UpdateRequest as Catalog_UpdateRequestV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response import CreateAsrAnnotationSetResponse as AnnotationSets_CreateAsrAnnotationSetResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest as AnnotationSets_CreateNLUAnnotationSetRequestV1 - from ask_smapi_model.v1.skill.publication.skill_publication_response import SkillPublicationResponse as Publication_SkillPublicationResponseV1 - from ask_smapi_model.v1.skill.certification.certification_response import CertificationResponse as Certification_CertificationResponseV1 - from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as History_PublicationStatusV1 - from ask_smapi_model.v0.development_events.subscription.list_subscriptions_response import ListSubscriptionsResponse as Subscription_ListSubscriptionsResponseV0 - from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequest as Isp_CreateInSkillProductRequestV1 - from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelData as InteractionModel_InteractionModelDataV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.definition_data import DefinitionData as ModelType_DefinitionDataV1 - from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTest as BetaTest_BetaTestV1 - from ask_smapi_model.v1.skill.submit_skill_for_certification_request import SubmitSkillForCertificationRequest as Skill_SubmitSkillForCertificationRequestV1 - from ask_smapi_model.v2.skill.invocations.invocations_api_request import InvocationsApiRequest as Invocations_InvocationsApiRequestV2 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update import SlotTypeUpdate as TypeVersion_SlotTypeUpdateV1 - from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponse as Evaluations_ListAsrEvaluationsResponseV1 - from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as History_LocaleInQueryV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject as AnnotationSets_UpdateAsrAnnotationSetPropertiesRequestObjectV1 - from ask_smapi_model.v1.skill.create_rollback_response import CreateRollbackResponse as Skill_CreateRollbackResponseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_response import EvaluateResponse as Evaluations_EvaluateResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest as AnnotationSets_UpdateNLUAnnotationSetPropertiesRequestV1 - from ask_smapi_model.v0.development_events.subscriber.subscriber_info import SubscriberInfo as Subscriber_SubscriberInfoV0 - from ask_smapi_model.v2.skill.simulations.simulations_api_response import SimulationsApiResponse as Simulations_SimulationsApiResponseV2 - from ask_smapi_model.v1.skill.account_linking.account_linking_response import AccountLinkingResponse as AccountLinking_AccountLinkingResponseV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest as AnnotationSets_UpdateNLUAnnotationSetAnnotationsRequestV1 - from ask_smapi_model.v1.skill.certification.list_certifications_response import ListCertificationsResponse as Certification_ListCertificationsResponseV1 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse as Evaluations_GetAsrEvaluationsResultsResponseV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.list_slot_type_version_response import ListSlotTypeVersionResponse as TypeVersion_ListSlotTypeVersionResponseV1 - from ask_smapi_model.v1.skill.validations.validations_api_request import ValidationsApiRequest as Validations_ValidationsApiRequestV1 - from ask_smapi_model.v1.skill.beta_test.testers.testers_list import TestersList as Testers_TestersListV1 - from ask_smapi_model.v0.development_events.subscription.update_subscription_request import UpdateSubscriptionRequest as Subscription_UpdateSubscriptionRequestV0 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse as Evaluations_GetNLUEvaluationResultsResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponse as AnnotationSets_ListASRAnnotationSetsResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse as AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1 - from ask_smapi_model.v1.skill.rollback_request_status import RollbackRequestStatus as Skill_RollbackRequestStatusV1 - from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as Skill_CloneLocaleStatusResponseV1 - from ask_smapi_model.v1.skill.upload_response import UploadResponse as Skill_UploadResponseV1 - from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfo as Subscription_SubscriptionInfoV0 - from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionData as TypeVersion_VersionDataV1 - from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponse as Isp_AssociatedSkillResponseV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.list_catalog_response import ListCatalogResponse as Catalog_ListCatalogResponseV1 - from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as ConflictDetection_GetConflictsResponseV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.list_slot_type_response import ListSlotTypeResponse as ModelType_ListSlotTypeResponseV1 - from ask_smapi_model.v1.error import Error as V1_ErrorV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_definition_output import SlotTypeDefinitionOutput as ModelType_SlotTypeDefinitionOutputV1 - from ask_smapi_model.v1.skill.beta_test.test_body import TestBody as BetaTest_TestBodyV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_nlu_request import EvaluateNLURequest as Evaluations_EvaluateNLURequestV1 - from ask_smapi_model.v0.catalog.upload.list_uploads_response import ListUploadsResponse as Upload_ListUploadsResponseV0 - from ask_smapi_model.v1.skill.interaction_model.version.version_data import VersionData as Version_VersionDataV1 - from ask_smapi_model.v1.catalog.create_content_upload_url_request import CreateContentUploadUrlRequest as Catalog_CreateContentUploadUrlRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response import CreateJobDefinitionResponse as Jobs_CreateJobDefinitionResponseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponse as Evaluations_ListNLUEvaluationsResponseV1 - from ask_smapi_model.v1.isp.in_skill_product_definition_response import InSkillProductDefinitionResponse as Isp_InSkillProductDefinitionResponseV1 - from ask_smapi_model.v0.catalog.upload.create_content_upload_request import CreateContentUploadRequest as Upload_CreateContentUploadRequestV0 - from ask_smapi_model.v1.skill.import_response import ImportResponse as Skill_ImportResponseV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatus as ModelType_SlotTypeStatusV1 - from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as History_InteractionTypeV1 - from ask_smapi_model.v0.catalog.upload.get_content_upload_response import GetContentUploadResponse as Upload_GetContentUploadResponseV0 - from ask_smapi_model.v0.catalog.catalog_details import CatalogDetails as Catalog_CatalogDetailsV0 - from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponse as Isp_InSkillProductSummaryResponseV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionData as Version_CatalogVersionDataV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequest as ModelType_UpdateRequestV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatus as Catalog_CatalogStatusV1 - from ask_smapi_model.v1.skill.publication.publish_skill_request import PublishSkillRequest as Publication_PublishSkillRequestV1 - from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequest as Skill_CreateRollbackRequestV1 - from ask_smapi_model.v1.skill.evaluations.profile_nlu_response import ProfileNluResponse as Evaluations_ProfileNluResponseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response import GetNLUEvaluationResponse as Evaluations_GetNLUEvaluationResponseV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as Jobs_GetExecutionsResponseV1 - from ask_smapi_model.v1.skill.metrics.get_metric_data_response import GetMetricDataResponse as Metrics_GetMetricDataResponseV1 - from ask_smapi_model.v2.skill.invocations.invocations_api_response import InvocationsApiResponse as Invocations_InvocationsApiResponseV2 - from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponse as Subscriber_ListSubscribersResponseV0 - from ask_smapi_model.v0.catalog.create_catalog_request import CreateCatalogRequest as Catalog_CreateCatalogRequestV0 - from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponse as Catalog_CreateContentUploadUrlResponseV1 + from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfo as SubscriptionInfo_917bdab3 + from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponse as ListSubscribersResponse_d1d01857 + from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response import CreateAsrAnnotationSetResponse as CreateAsrAnnotationSetResponse_f4ef9811 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as GetConflictsResponse_502eb394 + from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject as UpdateAsrAnnotationSetPropertiesRequestObject_946da673 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as HostedSkillRepositoryCredentialsList_d39d5fdf + from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as CloneLocaleStatusResponse_8b6e06ed + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatus as CatalogStatus_c70ba222 + from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequest as InvokeSkillRequest_8cf8aff9 + from ask_smapi_model.v1.skill.invocations.invoke_skill_response import InvokeSkillResponse as InvokeSkillResponse_6f32f451 + from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject as CreateAsrAnnotationSetRequestObject_c8c6238c + from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponse as ListSkillVersionsResponse_7522147d + from ask_smapi_model.v1.skill.validations.validations_api_response import ValidationsApiResponse as ValidationsApiResponse_aa0c51ca + from ask_smapi_model.v1.skill.publication.skill_publication_response import SkillPublicationResponse as SkillPublicationResponse_8da9d720 + from ask_smapi_model.v2.skill.invocations.invocations_api_response import InvocationsApiResponse as InvocationsApiResponse_3d7e3234 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_response import CreateJobDefinitionResponse as CreateJobDefinitionResponse_efaa9a6f + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_definition_output import SlotTypeDefinitionOutput as SlotTypeDefinitionOutput_20e87f7 + from ask_smapi_model.v1.skill.interaction_model.type_version.list_slot_type_version_response import ListSlotTypeVersionResponse as ListSlotTypeVersionResponse_7d552abf + from ask_smapi_model.v1.skill.interaction_model.version.list_response import ListResponse as ListResponse_cb936759 + from ask_smapi_model.v1.skill.interaction_model.jobs.create_job_definition_request import CreateJobDefinitionRequest as CreateJobDefinitionRequest_e3d4c41 + from ask_smapi_model.v1.skill.upload_response import UploadResponse as UploadResponse_5aa06857 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionData as CatalogVersionData_86156352 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_metadata import HostedSkillMetadata as HostedSkillMetadata_b8976dfb + from ask_smapi_model.v1.skill.beta_test.test_body import TestBody as TestBody_65065c26 + from ask_smapi_model.v1.skill.manifest.skill_manifest_envelope import SkillManifestEnvelope as SkillManifestEnvelope_fc0e823b + from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequest as CreateSubscriptionRequest_1931508e + from ask_smapi_model.v1.skill.skill_credentials import SkillCredentials as SkillCredentials_a0f29ab1 + from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponse as CreateContentUploadUrlResponse_4a18d03c + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_response import CatalogResponse as CatalogResponse_2f6fe800 + from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponse as ListASRAnnotationSetsResponse_a9a02e93 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject as PostAsrEvaluationsResponseObject_1e0137c3 + from ask_smapi_model.v1.skill.history.intent_confidence_bin import IntentConfidenceBin as IntentConfidenceBin_4f7a62c8 + from ask_smapi_model.v1.skill.publication.publish_skill_request import PublishSkillRequest as PublishSkillRequest_efbc45c8 + from ask_smapi_model.v0.catalog.list_catalogs_response import ListCatalogsResponse as ListCatalogsResponse_3dd2a983 + from ask_smapi_model.v0.catalog.upload.list_uploads_response import ListUploadsResponse as ListUploadsResponse_59fc7728 + from ask_smapi_model.v1.skill.interaction_model.model_type.definition_data import DefinitionData as DefinitionData_dad4effb + from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequest as CreateSkillWithPackageRequest_cd7f22be + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update import SlotTypeUpdate as SlotTypeUpdate_ae01835f + from ask_smapi_model.v2.skill.invocations.invocations_api_request import InvocationsApiRequest as InvocationsApiRequest_a422fa08 + from ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse as ListSHCapabilityEvaluationsResponse_e6fe49d5 + from ask_smapi_model.v2.error import Error as Error_ea6c1a5a + from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponse as InSkillProductSummaryResponse_32ba64d7 + from ask_smapi_model.v0.bad_request_error import BadRequestError as BadRequestError_a8ac8b44 + from ask_smapi_model.v0.catalog.upload.create_content_upload_response import CreateContentUploadResponse as CreateContentUploadResponse_75cd6715 + from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequest as SimulationsApiRequest_606eed02 + from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as DialogActName_df8326d6 + from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse as ListPrivateDistributionAccountsResponse_8783420d + from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as SSLCertificatePayload_97891902 + from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequest as WithdrawRequest_d09390b7 + from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponse as AssociatedSkillResponse_12067635 + from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject as GetAsrEvaluationStatusResponseObject_f8b7f006 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission import HostedSkillPermission as HostedSkillPermission_eb71ebfb + from ask_smapi_model.v1.skill.interaction_model.catalog.definition_data import DefinitionData as DefinitionData_ccdbb3c2 + from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequest as UpdateRequest_43de537 + from ask_smapi_model.v1.skill.certification.list_certifications_response import ListCertificationsResponse as ListCertificationsResponse_f2a417c6 + from ask_smapi_model.v1.skill.import_response import ImportResponse as ImportResponse_364fa39f + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse as GetConflictDetectionJobStatusResponse_9e0e2cf1 + from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponse as ListNLUEvaluationsResponse_7ef8d08f + from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequest as CreateInSkillProductRequest_816cf44b + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionData as SlotTypeVersionData_1f3ee474 + from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelData as InteractionModelData_487fc9ea + from ask_smapi_model.v1.skill.resource_schema.get_resource_schema_response import GetResourceSchemaResponse as GetResourceSchemaResponse_9df87651 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_update import CatalogUpdate as CatalogUpdate_ef887f31 + from ask_smapi_model.v1.vendor_management.vendors import Vendors as Vendors_f5f1b90b + from ask_smapi_model.v1.skill.beta_test.testers.list_testers_response import ListTestersResponse as ListTestersResponse_991ec8e9 + from ask_smapi_model.v1.skill.interaction_model.version.version_data import VersionData as VersionData_af79e8d3 + from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse as GetAsrEvaluationsResultsResponse_4f62e093 + from ask_smapi_model.v1.skill.beta_test.testers.testers_list import TestersList as TestersList_f8c0feda + from ask_smapi_model.v1.skill.evaluations.profile_nlu_response import ProfileNluResponse as ProfileNluResponse_d24b74c1 + from ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse as GetSHCapabilityEvaluationResponse_d484531f + from ask_smapi_model.v1.skill.create_rollback_response import CreateRollbackResponse as CreateRollbackResponse_5a2e8250 + from ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse as GetSHCapabilityEvaluationResultsResponse_9a1d4db0 + from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as PublicationStatus_af1ce535 + from ask_smapi_model.v2.bad_request_error import BadRequestError as BadRequestError_765e0ac6 + from ask_smapi_model.v0.development_events.subscription.list_subscriptions_response import ListSubscriptionsResponse as ListSubscriptionsResponse_c033036c + from ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse as ListSHCapabilityTestPlansResponse_cb289d6 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 + from ask_smapi_model.v1.skill.submit_skill_for_certification_request import SubmitSkillForCertificationRequest as SubmitSkillForCertificationRequest_1d77b7ee + from ask_smapi_model.v2.skill.simulations.simulations_api_request import SimulationsApiRequest as SimulationsApiRequest_ae2e6503 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_response import EvaluateResponse as EvaluateResponse_640ae5b5 + from ask_smapi_model.v0.development_events.subscription.update_subscription_request import UpdateSubscriptionRequest as UpdateSubscriptionRequest_71462c34 + from ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request import EvaluateSHCapabilityRequest as EvaluateSHCapabilityRequest_2d391178 + from ask_smapi_model.v1.skill.create_skill_response import CreateSkillResponse as CreateSkillResponse_2bad1094 + from ask_smapi_model.v1.audit_logs.audit_logs_request import AuditLogsRequest as AuditLogsRequest_13316e3e + from ask_smapi_model.v1.error import Error as Error_fbe913d9 + from ask_smapi_model.v1.skill.history.intent_requests import IntentRequests as IntentRequests_35db15c7 + from ask_smapi_model.v1.isp.update_in_skill_product_request import UpdateInSkillProductRequest as UpdateInSkillProductRequest_ee975cf1 + from ask_smapi_model.v1.skill.interaction_model.version.list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse as ListCatalogEntityVersionsResponse_aa31060e + from ask_smapi_model.v0.catalog.upload.get_content_upload_response import GetContentUploadResponse as GetContentUploadResponse_c8068011 + from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse as GetASRAnnotationSetsPropertiesResponse_1512206 + from ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_response import EvaluateSHCapabilityResponse as EvaluateSHCapabilityResponse_38ae7f22 + from ask_smapi_model.v1.catalog.upload.get_content_upload_response import GetContentUploadResponse as GetContentUploadResponse_b9580f92 + from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse as GetAsrAnnotationSetAnnotationsResponse_e3efbdea + from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponse as SimulationsApiResponse_328955bc + from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequest as CloneLocaleRequest_2e00cdf4 + from ask_smapi_model.v1.skill.metrics.get_metric_data_response import GetMetricDataResponse as GetMetricDataResponse_722e44c4 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatus as SlotTypeStatus_a293ebfc + from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionData as VersionData_faa770c8 + from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponse as ListAsrEvaluationsResponse_ef8cd586 + from ask_smapi_model.v1.isp.product_response import ProductResponse as ProductResponse_b388eec4 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest as HostedSkillRepositoryCredentialsRequest_79a1c791 + from ask_smapi_model.v1.skill.nlu.annotation_sets.get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse as GetNLUAnnotationSetPropertiesResponse_731f20d3 + from ask_smapi_model.v1.skill.nlu.annotation_sets.list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse as ListNLUAnnotationSetsResponse_5b1b0b6a + from ask_smapi_model.v1.skill.account_linking.account_linking_response import AccountLinkingResponse as AccountLinkingResponse_b1f92882 + from ask_smapi_model.v1.skill.interaction_model.model_type.list_slot_type_response import ListSlotTypeResponse as ListSlotTypeResponse_b426c805 + from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequest as ProfileNluRequest_501c0d87 + from ask_smapi_model.v1.skill.interaction_model.catalog.list_catalog_response import ListCatalogResponse as ListCatalogResponse_bc059ec9 + from ask_smapi_model.v1.skill.validations.validations_api_request import ValidationsApiRequest as ValidationsApiRequest_6f6e9aec import str - from ask_smapi_model.v1.skill.interaction_model.version.catalog_update import CatalogUpdate as Version_CatalogUpdateV1 - from ask_smapi_model.v1.skill.list_skill_response import ListSkillResponse as Skill_ListSkillResponseV1 - from ask_smapi_model.v0.bad_request_error import BadRequestError as V0_BadRequestErrorV0 - from ask_smapi_model.v1.skill.manifest.skill_manifest_envelope import SkillManifestEnvelope as Manifest_SkillManifestEnvelopeV1 - from ask_smapi_model.v1.isp.product_response import ProductResponse as Isp_ProductResponseV1 - from ask_smapi_model.v1.skill.interaction_model.version.catalog_values import CatalogValues as Version_CatalogValuesV1 - from ask_smapi_model.v1.audit_logs.audit_logs_response import AuditLogsResponse as AuditLogs_AuditLogsResponseV1 - from ask_smapi_model.v1.isp.update_in_skill_product_request import UpdateInSkillProductRequest as Isp_UpdateInSkillProductRequestV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse as AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1 - from ask_smapi_model.v1.catalog.upload.catalog_upload_base import CatalogUploadBase as Upload_CatalogUploadBaseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse as AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1 - from ask_smapi_model.v1.skill.skill_status import SkillStatus as Skill_SkillStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponse as ModelType_SlotTypeResponseV1 - from ask_smapi_model.v2.bad_request_error import BadRequestError as V2_BadRequestErrorV2 - from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponse as Simulations_SimulationsApiResponseV1 - from ask_smapi_model.v1.skill.skill_credentials import SkillCredentials as Skill_SkillCredentialsV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse as AnnotationSets_ListNLUAnnotationSetsResponseV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequest as AccountLinking_AccountLinkingRequestV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.definition_data import DefinitionData as Catalog_DefinitionDataV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionData as TypeVersion_SlotTypeVersionDataV1 - from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponse as Skill_ListSkillVersionsResponseV1 - from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequest as Subscription_CreateSubscriptionRequestV0 - from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequest as Skill_CreateSkillWithPackageRequestV1 - from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequest as Invocations_InvokeSkillRequestV1 - from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequest as Evaluations_ProfileNluRequestV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 - from ask_smapi_model.v1.skill.export_response import ExportResponse as Skill_ExportResponseV1 - from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse as Private_ListPrivateDistributionAccountsResponseV1 - from ask_smapi_model.v1.audit_logs.audit_logs_request import AuditLogsRequest as AuditLogs_AuditLogsRequestV1 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject as Evaluations_GetAsrEvaluationStatusResponseObjectV1 - from ask_smapi_model.v1.skill.create_skill_response import CreateSkillResponse as Skill_CreateSkillResponseV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject as Evaluations_PostAsrEvaluationsResponseObjectV1 - from ask_smapi_model.v1.skill.invocations.invoke_skill_response import InvokeSkillResponse as Invocations_InvokeSkillResponseV1 - from ask_smapi_model.v1.skill.validations.validations_api_response import ValidationsApiResponse as Validations_ValidationsApiResponseV1 - from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as Skill_SSLCertificatePayloadV1 - from ask_smapi_model.v1.isp.list_in_skill_product_response import ListInSkillProductResponse as Isp_ListInSkillProductResponseV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse as ConflictDetection_GetConflictDetectionJobStatusResponseV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload as AnnotationSets_UpdateAsrAnnotationSetContentsPayloadV1 - from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as History_DialogActNameV1 - from ask_smapi_model.v1.skill.create_skill_request import CreateSkillRequest as Skill_CreateSkillRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as Jobs_JobDefinitionV1 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_response import CatalogResponse as Catalog_CatalogResponseV1 - from ask_smapi_model.v1.skill.interaction_model.version.list_response import ListResponse as Version_ListResponseV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission import HostedSkillPermission as AlexaHosted_HostedSkillPermissionV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequest as Jobs_UpdateJobStatusRequestV1 - from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequest as Simulations_SimulationsApiRequestV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response import ListJobDefinitionsResponse as Jobs_ListJobDefinitionsResponseV1 - from ask_smapi_model.v0.error import Error as V0_ErrorV0 - from ask_smapi_model.v1.bad_request_error import BadRequestError as V1_BadRequestErrorV1 - from ask_smapi_model.v0.catalog.list_catalogs_response import ListCatalogsResponse as Catalog_ListCatalogsResponseV0 - from ask_smapi_model.v1.skill.beta_test.testers.list_testers_response import ListTestersResponse as Testers_ListTestersResponseV1 - from ask_smapi_model.v0.development_events.subscriber.create_subscriber_request import CreateSubscriberRequest as Subscriber_CreateSubscriberRequestV0 - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_definition_output import CatalogDefinitionOutput as Catalog_CatalogDefinitionOutputV1 - from ask_smapi_model.v1.skill.history.intent_requests import IntentRequests as History_IntentRequestsV1 - from ask_smapi_model.v2.error import Error as V2_ErrorV2 - from ask_smapi_model.v1.vendor_management.vendors import Vendors as VendorManagement_VendorsV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.validation_errors import ValidationErrors as ValidationErrors_d42055a1 + from ask_smapi_model.v1.skill.update_skill_with_package_request import UpdateSkillWithPackageRequest as UpdateSkillWithPackageRequest_d74ee124 + from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse as CreateNLUAnnotationSetResponse_b069cada + from ask_smapi_model.v1.skill.interaction_model.jobs.list_job_definitions_response import ListJobDefinitionsResponse as ListJobDefinitionsResponse_72319c0d + from ask_smapi_model.v1.isp.in_skill_product_definition_response import InSkillProductDefinitionResponse as InSkillProductDefinitionResponse_4aa468ff + from ask_smapi_model.v2.skill.simulations.simulations_api_response import SimulationsApiResponse as SimulationsApiResponse_e4ad17d + from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest as UpdateNLUAnnotationSetPropertiesRequest_b569f485 + from ask_smapi_model.v0.development_events.subscriber.subscriber_info import SubscriberInfo as SubscriberInfo_854c325e + from ask_smapi_model.v0.development_events.subscriber.update_subscriber_request import UpdateSubscriberRequest as UpdateSubscriberRequest_d5e3199f + from ask_smapi_model.v1.skill.interaction_model.version.catalog_values import CatalogValues as CatalogValues_ef5c3823 + from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as InteractionType_80494a05 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_nlu_request import EvaluateNLURequest as EvaluateNLURequest_7a358f6a + from ask_smapi_model.v1.isp.list_in_skill_product_response import ListInSkillProductResponse as ListInSkillProductResponse_505e7307 + from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequest as UpdateJobStatusRequest_f2d8379d + from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequest as AccountLinkingRequest_cac174e + from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload as UpdateAsrAnnotationSetContentsPayload_df3c6c8c + from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTest as BetaTest_e826b162 + from ask_smapi_model.v1.catalog.create_content_upload_url_request import CreateContentUploadUrlRequest as CreateContentUploadUrlRequest_4999fa1c + from ask_smapi_model.v1.skill.skill_status import SkillStatus as SkillStatus_4fdd647b + from ask_smapi_model.v0.development_events.subscriber.create_subscriber_request import CreateSubscriberRequest as CreateSubscriberRequest_a96d53b9 + from ask_smapi_model.v1.skill.rollback_request_status import RollbackRequestStatus as RollbackRequestStatus_71665366 + from ask_smapi_model.v0.catalog.create_catalog_request import CreateCatalogRequest as CreateCatalogRequest_f3cdf8bb + from ask_smapi_model.v1.skill.interaction_model.catalog.update_request import UpdateRequest as UpdateRequest_12e0eebe + from ask_smapi_model.v0.catalog.catalog_details import CatalogDetails as CatalogDetails_912693fa + from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest as CreateNLUAnnotationSetRequest_16b1430c + from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequest as CreateRollbackRequest_e7747a32 + from ask_smapi_model.v1.catalog.upload.catalog_upload_base import CatalogUploadBase as CatalogUploadBase_d7febd7 + from ask_smapi_model.v1.skill.certification.certification_response import CertificationResponse as CertificationResponse_97fdaad + from ask_smapi_model.v1.skill.export_response import ExportResponse as ExportResponse_b235e7bd + from ask_smapi_model.v0.catalog.upload.create_content_upload_request import CreateContentUploadRequest as CreateContentUploadRequest_bf7790d3 + from ask_smapi_model.v0.error import Error as Error_d660d58 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_definition_output import CatalogDefinitionOutput as CatalogDefinitionOutput_21703cd9 + from ask_smapi_model.v0.catalog.upload.complete_upload_request import CompleteUploadRequest as CompleteUploadRequest_7b413950 + from ask_smapi_model.v1.skill.list_skill_response import ListSkillResponse as ListSkillResponse_527462d0 + from ask_smapi_model.v1.skill.nlu.annotation_sets.update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest as UpdateNLUAnnotationSetAnnotationsRequest_b336fe43 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as JobDefinition_ee5db797 + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response import GetNLUEvaluationResponse as GetNLUEvaluationResponse_2fb5e6ed + from ask_smapi_model.v1.audit_logs.audit_logs_response import AuditLogsResponse as AuditLogsResponse_bbbe1918 + from ask_smapi_model.v1.skill.create_skill_request import CreateSkillRequest as CreateSkillRequest_92e74e84 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponse as SlotTypeResponse_1ca513dc + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse as GetNLUEvaluationResultsResponse_5ca1fa54 + from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as LocaleInQuery_6526a92e + from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as GetExecutionsResponse_1b1a1680 + from ask_smapi_model.v1.bad_request_error import BadRequestError as BadRequestError_f854b05 class SkillManagementServiceClient(BaseServiceClient): @@ -216,7 +222,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N self._lwa_service_client = lwa_client def get_catalog_v0(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, CatalogDetails_912693fa, Error_d660d58] """ Returns information about a particular catalog. @@ -225,7 +231,7 @@ def get_catalog_v0(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, CatalogDetails_912693fa, Error_d660d58] """ operation_name = "get_catalog_v0" params = locals() @@ -289,7 +295,7 @@ def get_catalog_v0(self, catalog_id, **kwargs): def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Upload_ListUploadsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, ListUploadsResponse_59fc7728, Error_d660d58] """ Lists all the uploads for a particular catalog. @@ -302,7 +308,7 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Upload_ListUploadsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, ListUploadsResponse_59fc7728, Error_d660d58] """ operation_name = "list_uploads_for_catalog_v0" params = locals() @@ -370,7 +376,7 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): def create_content_upload_v0(self, catalog_id, create_content_upload_request, **kwargs): - # type: (str, Upload_CreateContentUploadRequestV0, **Any) -> Union[ApiResponse, object, Upload_CreateContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, CreateContentUploadRequest_bf7790d3, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, CreateContentUploadResponse_75cd6715, Error_d660d58] """ Creates a new upload for a catalog and returns presigned upload parts for uploading the file. @@ -381,7 +387,7 @@ def create_content_upload_v0(self, catalog_id, create_content_upload_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Upload_CreateContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, CreateContentUploadResponse_75cd6715, Error_d660d58] """ operation_name = "create_content_upload_v0" params = locals() @@ -451,7 +457,7 @@ def create_content_upload_v0(self, catalog_id, create_content_upload_request, ** def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Upload_GetContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58, GetContentUploadResponse_c8068011] """ Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a presigned url for downloading the file. @@ -462,7 +468,7 @@ def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Upload_GetContentUploadResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58, GetContentUploadResponse_c8068011] """ operation_name = "get_content_upload_by_id_v0" params = locals() @@ -532,7 +538,7 @@ def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_request_payload, **kwargs): - # type: (str, str, Upload_CompleteUploadRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, str, CompleteUploadRequest_7b413950, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Completes an upload. To be called after the file is uploaded to the backend data store using presigned url(s). @@ -545,7 +551,7 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "complete_catalog_upload_v0" params = locals() @@ -621,7 +627,7 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ return None def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] """ Lists catalogs associated with a vendor. @@ -634,7 +640,7 @@ def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "list_catalogs_for_vendor_v0" params = locals() @@ -702,7 +708,7 @@ def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): def create_catalog_v0(self, create_catalog_request, **kwargs): - # type: (Catalog_CreateCatalogRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] + # type: (CreateCatalogRequest_f3cdf8bb, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, CatalogDetails_912693fa, Error_d660d58] """ Creates a new catalog based on information provided in the request. @@ -711,7 +717,7 @@ def create_catalog_v0(self, create_catalog_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0, Catalog_CatalogDetailsV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, CatalogDetails_912693fa, Error_d660d58] """ operation_name = "create_catalog_v0" params = locals() @@ -775,7 +781,7 @@ def create_catalog_v0(self, create_catalog_request, **kwargs): def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Subscriber_ListSubscribersResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, ListSubscribersResponse_d1d01857, BadRequestError_a8ac8b44, Error_d660d58] """ Lists the subscribers for a particular vendor. @@ -788,7 +794,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Subscriber_ListSubscribersResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, ListSubscribersResponse_d1d01857, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "list_subscribers_for_development_events_v0" params = locals() @@ -856,7 +862,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): def create_subscriber_for_development_events_v0(self, create_subscriber_request, **kwargs): - # type: (Subscriber_CreateSubscriberRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (CreateSubscriberRequest_a96d53b9, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Creates a new subscriber resource for a vendor. @@ -865,7 +871,7 @@ def create_subscriber_for_development_events_v0(self, create_subscriber_request, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "create_subscriber_for_development_events_v0" params = locals() @@ -927,7 +933,7 @@ def create_subscriber_for_development_events_v0(self, create_subscriber_request, return None def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Deletes a specified subscriber. @@ -936,7 +942,7 @@ def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "delete_subscriber_for_development_events_v0" params = locals() @@ -1000,7 +1006,7 @@ def delete_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): return None def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscriber_SubscriberInfoV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, SubscriberInfo_854c325e, BadRequestError_a8ac8b44, Error_d660d58] """ Returns information about specified subscriber. @@ -1009,7 +1015,7 @@ def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscriber_SubscriberInfoV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, SubscriberInfo_854c325e, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "get_subscriber_for_development_events_v0" params = locals() @@ -1073,7 +1079,7 @@ def get_subscriber_for_development_events_v0(self, subscriber_id, **kwargs): def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscriber_request, **kwargs): - # type: (str, Subscriber_UpdateSubscriberRequestV0, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, UpdateSubscriberRequest_d5e3199f, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Updates the properties of a subscriber. @@ -1084,7 +1090,7 @@ def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscri :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "set_subscriber_for_development_events_v0" params = locals() @@ -1154,7 +1160,7 @@ def set_subscriber_for_development_events_v0(self, subscriber_id, update_subscri return None def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_ListSubscriptionsResponseV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, ListSubscriptionsResponse_c033036c, Error_d660d58] """ Lists all the subscriptions for a vendor/subscriber depending on the query parameter. @@ -1169,7 +1175,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_ListSubscriptionsResponseV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, ListSubscriptionsResponse_c033036c, Error_d660d58] """ operation_name = "list_subscriptions_for_development_events_v0" params = locals() @@ -1239,7 +1245,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): def create_subscription_for_development_events_v0(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (**Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Creates a new subscription for a subscriber. This needs to be authorized by the client/vendor who created the subscriber and the vendor who publishes the event. @@ -1248,7 +1254,7 @@ def create_subscription_for_development_events_v0(self, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "create_subscription_for_development_events_v0" params = locals() @@ -1308,7 +1314,7 @@ def create_subscription_for_development_events_v0(self, **kwargs): return None def delete_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Deletes a particular subscription. Both, the vendor who created the subscriber and the vendor who publishes the event can delete this resource with appropriate authorization. @@ -1317,7 +1323,7 @@ def delete_subscription_for_development_events_v0(self, subscription_id, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "delete_subscription_for_development_events_v0" params = locals() @@ -1381,7 +1387,7 @@ def delete_subscription_for_development_events_v0(self, subscription_id, **kwarg return None def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_SubscriptionInfoV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, SubscriptionInfo_917bdab3, Error_d660d58] """ Returns information about a particular subscription. Both, the vendor who created the subscriber and the vendor who publishes the event can retrieve this resource with appropriate authorization. @@ -1390,7 +1396,7 @@ def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, Subscription_SubscriptionInfoV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, SubscriptionInfo_917bdab3, Error_d660d58] """ operation_name = "get_subscription_for_development_events_v0" params = locals() @@ -1454,7 +1460,7 @@ def get_subscription_for_development_events_v0(self, subscription_id, **kwargs): def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Updates the mutable properties of a subscription. This needs to be authorized by the client/vendor who created the subscriber and the vendor who publishes the event. The subscriberId cannot be updated. @@ -1465,7 +1471,7 @@ def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "set_subscription_for_development_events_v0" params = locals() @@ -1531,7 +1537,7 @@ def set_subscription_for_development_events_v0(self, subscription_id, **kwargs): return None def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ Associate skill with catalog. @@ -1542,7 +1548,7 @@ def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "associate_catalog_with_skill_v0" params = locals() @@ -1612,7 +1618,7 @@ def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): return None def list_catalogs_for_skill_v0(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] """ Lists all the catalogs associated with a skill. @@ -1625,7 +1631,7 @@ def list_catalogs_for_skill_v0(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Catalog_ListCatalogsResponseV0, V0_BadRequestErrorV0, V0_ErrorV0] + :rtype: Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] """ operation_name = "list_catalogs_for_skill_v0" params = locals() @@ -1693,7 +1699,7 @@ def list_catalogs_for_skill_v0(self, skill_id, **kwargs): def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kwargs): - # type: (str, Upload_CatalogUploadBaseV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, CatalogUploadBase_d7febd7, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Create new upload Creates a new upload for a catalog and returns location to track the upload process. @@ -1705,7 +1711,7 @@ def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "create_catalog_upload_v1" params = locals() @@ -1775,7 +1781,7 @@ def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kw return None def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Upload_GetContentUploadResponseV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetContentUploadResponse_b9580f92] """ Get upload Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a url for downloading the file. @@ -1787,7 +1793,7 @@ def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Upload_GetContentUploadResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetContentUploadResponse_b9580f92] """ operation_name = "get_content_upload_by_id_v1" params = locals() @@ -1856,7 +1862,7 @@ def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url_request_body, **kwargs): - # type: (str, Catalog_CreateContentUploadUrlRequestV1, **Any) -> Union[ApiResponse, object, Catalog_CreateContentUploadUrlResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, CreateContentUploadUrlRequest_4999fa1c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CreateContentUploadUrlResponse_4a18d03c, BadRequestError_f854b05] """ Generates preSigned urls to upload data @@ -1867,7 +1873,7 @@ def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Catalog_CreateContentUploadUrlResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, CreateContentUploadUrlResponse_4a18d03c, BadRequestError_f854b05] """ operation_name = "generate_catalog_upload_url_v1" params = locals() @@ -1937,7 +1943,7 @@ def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): - # type: (AuditLogs_AuditLogsRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AuditLogs_AuditLogsResponseV1, V1_ErrorV1] + # type: (AuditLogsRequest_13316e3e, **Any) -> Union[ApiResponse, object, Error_fbe913d9, AuditLogsResponse_bbbe1918, BadRequestError_f854b05] """ The SMAPI Audit Logs API provides customers with an audit history of all SMAPI calls made by a developer or developers with permissions on that account. @@ -1946,7 +1952,7 @@ def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AuditLogs_AuditLogsResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, AuditLogsResponse_bbbe1918, BadRequestError_f854b05] """ operation_name = "query_development_audit_logs_v1" params = locals() @@ -2010,7 +2016,7 @@ def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] """ Get the list of in-skill products for the vendor. @@ -2035,7 +2041,7 @@ def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] """ operation_name = "get_isp_list_for_vendor_v1" params = locals() @@ -2112,7 +2118,7 @@ def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): - # type: (Isp_CreateInSkillProductRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ProductResponseV1] + # type: (CreateInSkillProductRequest_816cf44b, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ProductResponse_b388eec4, BadRequestError_f854b05] """ Creates a new in-skill product for given vendorId. @@ -2121,7 +2127,7 @@ def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ProductResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, ProductResponse_b388eec4, BadRequestError_f854b05] """ operation_name = "create_isp_for_vendor_v1" params = locals() @@ -2182,7 +2188,7 @@ def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Disassociates an in-skill product from a skill. @@ -2193,7 +2199,7 @@ def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "disassociate_isp_with_skill_v1" params = locals() @@ -2262,7 +2268,7 @@ def disassociate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): return None def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Associates an in-skill product with a skill. @@ -2273,7 +2279,7 @@ def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "associate_isp_with_skill_v1" params = locals() @@ -2342,7 +2348,7 @@ def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): return None def delete_isp_for_product_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Deletes the in-skill product for given productId. Only development stage supported. Live in-skill products or in-skill products associated with a skill cannot be deleted by this API. @@ -2355,7 +2361,7 @@ def delete_isp_for_product_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "delete_isp_for_product_v1" params = locals() @@ -2427,7 +2433,7 @@ def delete_isp_for_product_v1(self, product_id, stage, **kwargs): return None def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Resets the entitlement(s) of the Product for the current user. @@ -2438,7 +2444,7 @@ def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "reset_entitlement_for_product_v1" params = locals() @@ -2508,7 +2514,7 @@ def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): return None def get_isp_definition_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_InSkillProductDefinitionResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, InSkillProductDefinitionResponse_4aa468ff, Error_fbe913d9, BadRequestError_f854b05] """ Returns the in-skill product definition for given productId. @@ -2519,7 +2525,7 @@ def get_isp_definition_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Isp_InSkillProductDefinitionResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, InSkillProductDefinitionResponse_4aa468ff, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "get_isp_definition_v1" params = locals() @@ -2587,7 +2593,7 @@ def get_isp_definition_v1(self, product_id, stage, **kwargs): def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_request, **kwargs): - # type: (str, str, Isp_UpdateInSkillProductRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, UpdateInSkillProductRequest_ee975cf1, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Updates in-skill product definition for given productId. Only development stage supported. @@ -2602,7 +2608,7 @@ def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "update_isp_for_product_v1" params = locals() @@ -2680,7 +2686,7 @@ def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_r return None def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_AssociatedSkillResponseV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9] """ Get the associated skills for the in-skill product. @@ -2695,7 +2701,7 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Isp_AssociatedSkillResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9] """ operation_name = "get_isp_associated_skills_v1" params = locals() @@ -2766,7 +2772,7 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): def get_isp_summary_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Isp_InSkillProductSummaryResponseV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, InSkillProductSummaryResponse_32ba64d7] """ Get the summary information for an in-skill product. @@ -2777,7 +2783,7 @@ def get_isp_summary_v1(self, product_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Isp_InSkillProductSummaryResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, InSkillProductSummaryResponse_32ba64d7] """ operation_name = "get_isp_summary_v1" params = locals() @@ -2844,7 +2850,7 @@ def get_isp_summary_v1(self, product_id, stage, **kwargs): def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete the catalog. @@ -2853,7 +2859,7 @@ def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_interaction_model_catalog_v1" params = locals() @@ -2917,7 +2923,7 @@ def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): return None def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Catalog_CatalogDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogDefinitionOutput_21703cd9] """ get the catalog definition @@ -2926,7 +2932,7 @@ def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Catalog_CatalogDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogDefinitionOutput_21703cd9] """ operation_name = "get_interaction_model_catalog_definition_v1" params = locals() @@ -2990,7 +2996,7 @@ def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwargs): - # type: (str, Catalog_UpdateRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, UpdateRequest_12e0eebe, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ update description and vendorGuidance string for certain version of a catalog. @@ -3001,7 +3007,7 @@ def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwar :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_interaction_model_catalog_v1" params = locals() @@ -3071,7 +3077,7 @@ def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwar return None def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_CatalogStatusV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogStatus_c70ba222] """ Get the status of catalog resource and its sub-resources for a given catalogId. @@ -3082,7 +3088,7 @@ def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_CatalogStatusV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogStatus_c70ba222] """ operation_name = "get_interaction_model_catalog_update_status_v1" params = locals() @@ -3152,7 +3158,7 @@ def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_requ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Version_ListCatalogEntityVersionsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogEntityVersionsResponse_aa31060e, StandardizedError_f5106a89, BadRequestError_f854b05] """ List all the historical versions of the given catalogId. @@ -3169,7 +3175,7 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Version_ListCatalogEntityVersionsResponseV1] + :rtype: Union[ApiResponse, object, ListCatalogEntityVersionsResponse_aa31060e, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "list_interaction_model_catalog_versions_v1" params = locals() @@ -3241,7 +3247,7 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwargs): - # type: (str, Version_VersionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, VersionData_af79e8d3, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Create a new version of catalog entity for the given catalogId. @@ -3252,7 +3258,7 @@ def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_interaction_model_catalog_version_v1" params = locals() @@ -3322,7 +3328,7 @@ def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwa return None def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete catalog version. @@ -3333,7 +3339,7 @@ def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_interaction_model_catalog_version_v1" params = locals() @@ -3403,7 +3409,7 @@ def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa return None def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Version_CatalogVersionDataV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogVersionData_86156352] """ Get catalog version data of given catalog version. @@ -3414,7 +3420,7 @@ def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Version_CatalogVersionDataV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogVersionData_86156352] """ operation_name = "get_interaction_model_catalog_version_v1" params = locals() @@ -3484,7 +3490,7 @@ def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Update description and vendorGuidance string for certain version of a catalog. @@ -3497,7 +3503,7 @@ def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_interaction_model_catalog_version_v1" params = locals() @@ -3569,7 +3575,7 @@ def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa return None def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Version_CatalogValuesV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, CatalogValues_ef5c3823, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get catalog values from the given catalogId & version. @@ -3584,7 +3590,7 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Version_CatalogValuesV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, CatalogValues_ef5c3823, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_interaction_model_catalog_values_v1" params = locals() @@ -3658,7 +3664,7 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_ListCatalogResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListCatalogResponse_bc059ec9] """ List all catalogs for the vendor. @@ -3673,7 +3679,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Catalog_ListCatalogResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListCatalogResponse_bc059ec9] """ operation_name = "list_interaction_model_catalogs_v1" params = locals() @@ -3743,7 +3749,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): def create_interaction_model_catalog_v1(self, catalog, **kwargs): - # type: (Catalog_DefinitionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Catalog_CatalogResponseV1, V1_BadRequestErrorV1] + # type: (DefinitionData_ccdbb3c2, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogResponse_2f6fe800] """ Create a new version of catalog within the given catalogId. @@ -3752,7 +3758,7 @@ def create_interaction_model_catalog_v1(self, catalog, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Catalog_CatalogResponseV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogResponse_2f6fe800] """ operation_name = "create_interaction_model_catalog_v1" params = locals() @@ -3816,7 +3822,7 @@ def create_interaction_model_catalog_v1(self, catalog, **kwargs): def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_ListJobDefinitionsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListJobDefinitionsResponse_72319c0d] """ Retrieve a list of jobs associated with the vendor. @@ -3829,7 +3835,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_ListJobDefinitionsResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListJobDefinitionsResponse_72319c0d] """ operation_name = "list_job_definitions_for_interaction_model_v1" params = locals() @@ -3896,7 +3902,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ Delete the job definition for a given jobId. @@ -3905,7 +3911,7 @@ def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ operation_name = "delete_job_definition_for_interaction_model_v1" params = locals() @@ -3969,7 +3975,7 @@ def delete_job_definition_for_interaction_model_v1(self, job_id, **kwargs): return None def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ Cancel the next execution for the given job. @@ -3980,7 +3986,7 @@ def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_i :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ operation_name = "cancel_next_job_execution_for_interaction_model_v1" params = locals() @@ -4050,7 +4056,7 @@ def cancel_next_job_execution_for_interaction_model_v1(self, job_id, execution_i return None def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_GetExecutionsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, GetExecutionsResponse_1b1a1680, BadRequestError_f854b05] """ List the execution history associated with the job definition, with default sortField to be the executions' timestamp. @@ -4065,7 +4071,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_GetExecutionsResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, GetExecutionsResponse_1b1a1680, BadRequestError_f854b05] """ operation_name = "list_job_executions_for_interaction_model_v1" params = locals() @@ -4134,7 +4140,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_JobDefinitionV1] + # type: (str, **Any) -> Union[ApiResponse, object, JobDefinition_ee5db797, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get the job definition for a given jobId. @@ -4143,7 +4149,7 @@ def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Jobs_JobDefinitionV1] + :rtype: Union[ApiResponse, object, JobDefinition_ee5db797, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_job_definition_for_interaction_model_v1" params = locals() @@ -4206,7 +4212,7 @@ def get_job_definition_for_interaction_model_v1(self, job_id, **kwargs): def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_request, **kwargs): - # type: (str, Jobs_UpdateJobStatusRequestV1, **Any) -> Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, UpdateJobStatusRequest_f2d8379d, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ Update the JobStatus to Enable or Disable a job. @@ -4217,7 +4223,7 @@ def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_requ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ValidationErrors_d42055a1] """ operation_name = "set_job_status_for_interaction_model_v1" params = locals() @@ -4287,7 +4293,7 @@ def set_job_status_for_interaction_model_v1(self, job_id, update_job_status_requ return None def create_job_definition_for_interaction_model_v1(self, create_job_definition_request, **kwargs): - # type: (Jobs_CreateJobDefinitionRequestV1, **Any) -> Union[ApiResponse, object, Jobs_CreateJobDefinitionResponseV1, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (CreateJobDefinitionRequest_e3d4c41, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CreateJobDefinitionResponse_efaa9a6f, ValidationErrors_d42055a1] """ Creates a new Job Definition from the Job Definition request provided. This can be either a CatalogAutoRefresh, which supports time-based configurations for catalogs, or a ReferencedResourceVersionUpdate, which is used for slotTypes and Interaction models to be automatically updated on the dynamic update of their referenced catalog. @@ -4296,7 +4302,7 @@ def create_job_definition_for_interaction_model_v1(self, create_job_definition_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Jobs_CreateJobDefinitionResponseV1, Jobs_ValidationErrorsV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CreateJobDefinitionResponse_efaa9a6f, ValidationErrors_d42055a1] """ operation_name = "create_job_definition_for_interaction_model_v1" params = locals() @@ -4359,7 +4365,7 @@ def create_job_definition_for_interaction_model_v1(self, create_job_definition_r def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_ListSlotTypeResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, ListSlotTypeResponse_b426c805, StandardizedError_f5106a89, BadRequestError_f854b05] """ List all slot types for the vendor. @@ -4374,7 +4380,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_ListSlotTypeResponseV1] + :rtype: Union[ApiResponse, object, ListSlotTypeResponse_b426c805, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "list_interaction_model_slot_types_v1" params = locals() @@ -4443,7 +4449,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): - # type: (ModelType_DefinitionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_SlotTypeResponseV1] + # type: (DefinitionData_dad4effb, **Any) -> Union[ApiResponse, object, SlotTypeResponse_1ca513dc, StandardizedError_f5106a89, BadRequestError_f854b05] """ Create a new version of slot type within the given slotTypeId. @@ -4452,7 +4458,7 @@ def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ModelType_SlotTypeResponseV1] + :rtype: Union[ApiResponse, object, SlotTypeResponse_1ca513dc, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_interaction_model_slot_type_v1" params = locals() @@ -4514,7 +4520,7 @@ def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete the slot type. @@ -4523,7 +4529,7 @@ def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_interaction_model_slot_type_v1" params = locals() @@ -4587,7 +4593,7 @@ def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): return None def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, ModelType_SlotTypeDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, SlotTypeDefinitionOutput_20e87f7, BadRequestError_f854b05] """ Get the slot type definition. @@ -4596,7 +4602,7 @@ def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, ModelType_SlotTypeDefinitionOutputV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, SlotTypeDefinitionOutput_20e87f7, BadRequestError_f854b05] """ operation_name = "get_interaction_model_slot_type_definition_v1" params = locals() @@ -4660,7 +4666,7 @@ def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, **kwargs): - # type: (str, ModelType_UpdateRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, UpdateRequest_43de537, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Update description and vendorGuidance string for certain version of a slot type. @@ -4671,7 +4677,7 @@ def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_interaction_model_slot_type_v1" params = locals() @@ -4741,7 +4747,7 @@ def update_interaction_model_slot_type_v1(self, slot_type_id, update_request, ** return None def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, ModelType_SlotTypeStatusV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, SlotTypeStatus_a293ebfc, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get the status of slot type resource and its sub-resources for a given slotTypeId. @@ -4752,7 +4758,7 @@ def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_r :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, ModelType_SlotTypeStatusV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, SlotTypeStatus_a293ebfc, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_interaction_model_slot_type_build_status_v1" params = locals() @@ -4822,7 +4828,7 @@ def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_r def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_ListSlotTypeVersionResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ListSlotTypeVersionResponse_7d552abf, BadRequestError_f854b05] """ List all slot type versions for the slot type id. @@ -4837,7 +4843,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_ListSlotTypeVersionResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, ListSlotTypeVersionResponse_7d552abf, BadRequestError_f854b05] """ operation_name = "list_interaction_model_slot_type_versions_v1" params = locals() @@ -4906,7 +4912,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, **kwargs): - # type: (str, TypeVersion_VersionDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, VersionData_faa770c8, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Create a new version of slot type entity for the given slotTypeId. @@ -4917,7 +4923,7 @@ def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_interaction_model_slot_type_version_v1" params = locals() @@ -4987,7 +4993,7 @@ def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, return None def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete slot type version. @@ -4998,7 +5004,7 @@ def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_interaction_model_slot_type_version_v1" params = locals() @@ -5068,7 +5074,7 @@ def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, * return None def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_SlotTypeVersionDataV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, SlotTypeVersionData_1f3ee474] """ Get slot type version data of given slot type version. @@ -5079,7 +5085,7 @@ def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, TypeVersion_SlotTypeVersionDataV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, SlotTypeVersionData_1f3ee474] """ operation_name = "get_interaction_model_slot_type_version_v1" params = locals() @@ -5149,7 +5155,7 @@ def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kw def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, slot_type_update, **kwargs): - # type: (str, str, TypeVersion_SlotTypeUpdateV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, SlotTypeUpdate_ae01835f, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Update description and vendorGuidance string for certain version of a slot type. @@ -5162,7 +5168,7 @@ def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, s :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_interaction_model_slot_type_version_v1" params = locals() @@ -5238,7 +5244,7 @@ def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, s return None def get_status_of_export_request_v1(self, export_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ExportResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd] """ Get status for given exportId @@ -5247,7 +5253,7 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ExportResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd] """ operation_name = "get_status_of_export_request_v1" params = locals() @@ -5309,7 +5315,7 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): def list_skills_for_vendor_v1(self, vendor_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_ListSkillResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, ListSkillResponse_527462d0, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get the list of skills for the vendor. @@ -5324,7 +5330,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_ListSkillResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, ListSkillResponse_527462d0, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "list_skills_for_vendor_v1" params = locals() @@ -5392,7 +5398,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): def get_import_status_v1(self, import_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_ImportResponseV1, Skill_StandardizedErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ImportResponse_364fa39f] """ Get status for given importId. @@ -5401,7 +5407,7 @@ def get_import_status_v1(self, import_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_ImportResponseV1, Skill_StandardizedErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, ImportResponse_364fa39f] """ operation_name = "get_import_status_v1" params = locals() @@ -5463,7 +5469,7 @@ def get_import_status_v1(self, import_id, **kwargs): def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): - # type: (Skill_CreateSkillWithPackageRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (CreateSkillWithPackageRequest_cd7f22be, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates a new import for a skill. @@ -5472,7 +5478,7 @@ def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_skill_package_v1" params = locals() @@ -5535,7 +5541,7 @@ def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): return None def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): - # type: (Skill_CreateSkillRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_CreateSkillResponseV1, V1_BadRequestErrorV1] + # type: (CreateSkillRequest_92e74e84, **Any) -> Union[ApiResponse, object, CreateSkillResponse_2bad1094, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates a new skill for given vendorId. @@ -5544,7 +5550,7 @@ def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_CreateSkillResponseV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, CreateSkillResponse_2bad1094, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_skill_for_vendor_v1" params = locals() @@ -5606,8 +5612,92 @@ def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): return api_response.body + def get_resource_schema_v1(self, resource, vendor_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetResourceSchemaResponse_9df87651, BadRequestError_f854b05] + """ + GetResourceSchema API provides schema for skill related resources. The schema returned by this API will be specific to vendor because it considers public beta features allowed for the vendor. + + :param resource: (required) Name of the ASK resource for which schema is requested. + :type resource: str + :param vendor_id: (required) The vendor ID. + :type vendor_id: str + :param operation: This parameter is required when resource is manifest because skill manifest schema differs based on operation. For example, submit for certification schema has more validations than create skill schema. + :type operation: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetResourceSchemaResponse_9df87651, BadRequestError_f854b05] + """ + operation_name = "get_resource_schema_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'resource' is set + if ('resource' not in params) or (params['resource'] is None): + raise ValueError( + "Missing the required parameter `resource` when calling `" + operation_name + "`") + # verify the required parameter 'vendor_id' is set + if ('vendor_id' not in params) or (params['vendor_id'] is None): + raise ValueError( + "Missing the required parameter `vendor_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/resourceSchema/{resource}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'resource' in params: + path_params['resource'] = params['resource'] + + query_params = [] # type: List + if 'vendor_id' in params: + query_params.append(('vendorId', params['vendor_id'])) + if 'operation' in params: + query_params.append(('operation', params['operation'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.resource_schema.get_resource_schema_response.GetResourceSchemaResponse", status_code=200, message="Returns a S3 presigned URL to location of schema")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Invalid request")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="Unauthorized")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=403, message="Forbidden")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Too Many Requests")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.resource_schema.get_resource_schema_response.GetResourceSchemaResponse") + + if full_response: + return api_response + return api_response.body + + def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillMetadataV1] + # type: (str, **Any) -> Union[ApiResponse, object, HostedSkillMetadata_b8976dfb, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get Alexa hosted skill's metadata @@ -5616,7 +5706,7 @@ def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillMetadataV1] + :rtype: Union[ApiResponse, object, HostedSkillMetadata_b8976dfb, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_alexa_hosted_skill_metadata_v1" params = locals() @@ -5679,7 +5769,7 @@ def get_alexa_hosted_skill_metadata_v1(self, skill_id, **kwargs): def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_repository_credentials_request, **kwargs): - # type: (str, AlexaHosted_HostedSkillRepositoryCredentialsRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillRepositoryCredentialsListV1] + # type: (str, HostedSkillRepositoryCredentialsRequest_79a1c791, **Any) -> Union[ApiResponse, object, HostedSkillRepositoryCredentialsList_d39d5fdf, StandardizedError_f5106a89, BadRequestError_f854b05] """ Generates hosted skill repository credentials to access the hosted skill repository. @@ -5690,7 +5780,7 @@ def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_ :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AlexaHosted_HostedSkillRepositoryCredentialsListV1] + :rtype: Union[ApiResponse, object, HostedSkillRepositoryCredentialsList_d39d5fdf, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "generate_credentials_for_alexa_hosted_skill_v1" params = locals() @@ -5759,7 +5849,7 @@ def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_ def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, accept, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1, V1_ErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetAsrAnnotationSetAnnotationsResponse_e3efbdea, BadRequestError_f854b05] """ Download the annotation set contents. @@ -5776,7 +5866,7 @@ def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_GetAsrAnnotationSetAnnotationsResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetAsrAnnotationSetAnnotationsResponse_e3efbdea, BadRequestError_f854b05] """ operation_name = "get_annotations_for_asr_annotation_set_v1" params = locals() @@ -5856,7 +5946,7 @@ def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_contents_request, **kwargs): - # type: (str, str, AnnotationSets_UpdateAsrAnnotationSetContentsPayloadV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, UpdateAsrAnnotationSetContentsPayload_df3c6c8c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Update the annotations in the annotation set API that updates the annotaions in the annotation set @@ -5870,7 +5960,7 @@ def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "set_annotations_for_asr_annotation_set_v1" params = locals() @@ -5946,7 +6036,7 @@ def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, return None def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Delete the ASR annotation set API which deletes the ASR annotation set. Developers cannot get/list the deleted annotation set. @@ -5958,7 +6048,7 @@ def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "delete_asr_annotation_set_v1" params = locals() @@ -6029,7 +6119,7 @@ def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): return None def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetASRAnnotationSetsPropertiesResponse_1512206, BadRequestError_f854b05] """ Get the metadata of an ASR annotation set Return the metadata for an ASR annotation set. @@ -6041,7 +6131,7 @@ def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetASRAnnotationSetsPropertiesResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetASRAnnotationSetsPropertiesResponse_1512206, BadRequestError_f854b05] """ operation_name = "get_asr_annotation_set_v1" params = locals() @@ -6111,7 +6201,7 @@ def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_properties_request_v1, **kwargs): - # type: (str, str, AnnotationSets_UpdateAsrAnnotationSetPropertiesRequestObjectV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, UpdateAsrAnnotationSetPropertiesRequestObject_946da673, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ update the ASR annotation set properties. API which updates the ASR annotation set properties. Currently, the only data can be updated is annotation set name. @@ -6125,7 +6215,7 @@ def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_anno :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "set_asr_annotation_set_v1" params = locals() @@ -6201,7 +6291,7 @@ def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_anno return None def list_asr_annotation_sets_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_ListASRAnnotationSetsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListASRAnnotationSetsResponse_a9a02e93] """ List ASR annotation sets metadata for a given skill. API which requests all the ASR annotation sets for a skill. Returns the annotation set id and properties for each ASR annotation set. Supports paging of results. @@ -6215,7 +6305,7 @@ def list_asr_annotation_sets_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_ListASRAnnotationSetsResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListASRAnnotationSetsResponse_a9a02e93] """ operation_name = "list_asr_annotation_sets_v1" params = locals() @@ -6283,7 +6373,7 @@ def list_asr_annotation_sets_v1(self, skill_id, **kwargs): def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_request, **kwargs): - # type: (str, AnnotationSets_CreateAsrAnnotationSetRequestObjectV1, **Any) -> Union[ApiResponse, object, AnnotationSets_CreateAsrAnnotationSetResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, CreateAsrAnnotationSetRequestObject_c8c6238c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CreateAsrAnnotationSetResponse_f4ef9811, BadRequestError_f854b05] """ Create a new ASR annotation set for a skill This is an API that creates a new ASR annotation set with a name and returns the annotationSetId which can later be used to retrieve or reference the annotation set @@ -6295,7 +6385,7 @@ def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_reque :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AnnotationSets_CreateAsrAnnotationSetResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, CreateAsrAnnotationSetResponse_f4ef9811, BadRequestError_f854b05] """ operation_name = "create_asr_annotation_set_v1" params = locals() @@ -6365,7 +6455,7 @@ def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_reque def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Delete an evaluation. API which enables the deletion of an evaluation. @@ -6377,7 +6467,7 @@ def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "delete_asr_evaluation_v1" params = locals() @@ -6447,7 +6537,7 @@ def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): return None def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetAsrEvaluationsResultsResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetAsrEvaluationsResultsResponse_4f62e093, BadRequestError_f854b05] """ List results for a completed Evaluation. Paginated API which returns the test case results of an evaluation. This should be considered the \"expensive\" operation while GetAsrEvaluationsStatus is \"cheap\". @@ -6465,7 +6555,7 @@ def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetAsrEvaluationsResultsResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetAsrEvaluationsResultsResponse_4f62e093, BadRequestError_f854b05] """ operation_name = "list_asr_evaluations_results_v1" params = locals() @@ -6541,7 +6631,7 @@ def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Evaluations_GetAsrEvaluationStatusResponseObjectV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, GetAsrEvaluationStatusResponseObject_f8b7f006, Error_fbe913d9, BadRequestError_f854b05] """ Get high level information and status of a asr evaluation. API which requests high level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns the request used to start the job, like the number of total evaluations, number of completed evaluations, and start time. This should be considered the \"cheap\" operation while GetAsrEvaluationsResults is \"expensive\". @@ -6553,7 +6643,7 @@ def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Evaluations_GetAsrEvaluationStatusResponseObjectV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, GetAsrEvaluationStatusResponseObject_f8b7f006, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "get_asr_evaluation_status_v1" params = locals() @@ -6623,7 +6713,7 @@ def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): def list_asr_evaluations_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_ListAsrEvaluationsResponseV1] + # type: (str, **Any) -> Union[ApiResponse, object, ListAsrEvaluationsResponse_ef8cd586, Error_fbe913d9, BadRequestError_f854b05] """ List asr evaluations run for a skill. API that allows developers to get historical ASR evaluations they run before. @@ -6643,7 +6733,7 @@ def list_asr_evaluations_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_ListAsrEvaluationsResponseV1] + :rtype: Union[ApiResponse, object, ListAsrEvaluationsResponse_ef8cd586, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "list_asr_evaluations_v1" params = locals() @@ -6717,7 +6807,7 @@ def list_asr_evaluations_v1(self, skill_id, **kwargs): def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwargs): - # type: (Evaluations_PostAsrEvaluationsRequestObjectV1, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_PostAsrEvaluationsResponseObjectV1] + # type: (PostAsrEvaluationsRequestObject_133223f3, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, PostAsrEvaluationsResponseObject_1e0137c3] """ Start an evaluation against the ASR model built by the skill's interaction model. This is an asynchronous API that starts an evaluation against the ASR model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results upon completion. This operation is unified, meaning both internal and external skill developers may use it to evaluate ASR models. @@ -6729,7 +6819,7 @@ def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_PostAsrEvaluationsResponseObjectV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, PostAsrEvaluationsResponseObject_1e0137c3] """ operation_name = "create_asr_evaluation_v1" params = locals() @@ -6800,7 +6890,7 @@ def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwa def end_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ End beta test. End a beta test for a given Alexa skill. System will revoke the entitlement of each tester and send access-end notification email to them. @@ -6810,7 +6900,7 @@ def end_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "end_beta_test_v1" params = locals() @@ -6873,7 +6963,7 @@ def end_beta_test_v1(self, skill_id, **kwargs): return None def get_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, BetaTest_BetaTestV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BetaTest_e826b162, BadRequestError_f854b05] """ Get beta test. Get beta test for a given Alexa skill. @@ -6883,7 +6973,7 @@ def get_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, BetaTest_BetaTestV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BetaTest_e826b162, BadRequestError_f854b05] """ operation_name = "get_beta_test_v1" params = locals() @@ -6945,7 +7035,7 @@ def get_beta_test_v1(self, skill_id, **kwargs): def create_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Create beta test. Create a beta test for a given Alexa skill. @@ -6957,7 +7047,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "create_beta_test_v1" params = locals() @@ -7022,7 +7112,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): return None def update_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Update beta test. Update a beta test for a given Alexa skill. @@ -7034,7 +7124,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "update_beta_test_v1" params = locals() @@ -7098,7 +7188,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): return None def start_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Start beta test Start a beta test for a given Alexa skill. System will send invitation emails to each tester in the test, and add entitlement on the acceptance. @@ -7108,7 +7198,7 @@ def start_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "start_beta_test_v1" params = locals() @@ -7171,7 +7261,7 @@ def start_beta_test_v1(self, skill_id, **kwargs): return None def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): - # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Add testers to an existing beta test. Add testers to a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance. @@ -7183,7 +7273,7 @@ def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "add_testers_to_beta_test_v1" params = locals() @@ -7251,7 +7341,7 @@ def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): return None def get_list_of_testers_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Testers_ListTestersResponseV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListTestersResponse_991ec8e9] """ List testers. List all testers in a beta test for the given Alexa skill. @@ -7265,7 +7355,7 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Testers_ListTestersResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListTestersResponse_991ec8e9] """ operation_name = "get_list_of_testers_v1" params = locals() @@ -7331,7 +7421,7 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): - # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Remove testers from an existing beta test. Remove testers from a beta test for the given Alexa skill. System will send access end email to each tester and remove entitlement for them. @@ -7343,7 +7433,7 @@ def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "remove_testers_from_beta_test_v1" params = locals() @@ -7411,7 +7501,7 @@ def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): return None def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): - # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Request feedback from testers. Request feedback from the testers in a beta test for the given Alexa skill. System will send notification emails to testers to request feedback. @@ -7423,7 +7513,7 @@ def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "request_feedback_from_testers_v1" params = locals() @@ -7492,7 +7582,7 @@ def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): return None def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): - # type: (str, Testers_TestersListV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Send reminder to testers in a beta test. Send reminder to the testers in a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance. @@ -7504,7 +7594,7 @@ def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "send_reminder_to_testers_v1" params = locals() @@ -7573,7 +7663,7 @@ def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): return None def get_certification_review_v1(self, skill_id, certification_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Certification_CertificationResponseV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad] """ Gets a specific certification resource. The response contains the review tracking information for a skill to show how much time the skill is expected to remain under review by Amazon. Once the review is complete, the response also contains the outcome of the review. Old certifications may not be available, however any ongoing certification would always give a response. If the certification is unavailable the result will return a 404 HTTP status code. @@ -7586,7 +7676,7 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Certification_CertificationResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad] """ operation_name = "get_certification_review_v1" params = locals() @@ -7655,7 +7745,7 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): def get_certifications_list_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Certification_ListCertificationsResponseV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListCertificationsResponse_f2a417c6] """ Get list of all certifications available for a skill, including information about past certifications and any ongoing certification. The default sort order is descending on skillSubmissionTimestamp for Certifications. @@ -7668,7 +7758,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Certification_ListCertificationsResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListCertificationsResponse_f2a417c6] """ operation_name = "get_certifications_list_v1" params = locals() @@ -7734,7 +7824,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): def get_skill_credentials_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SkillCredentialsV1] + # type: (str, **Any) -> Union[ApiResponse, object, SkillCredentials_a0f29ab1, StandardizedError_f5106a89] """ Get the client credentials for the skill. @@ -7743,7 +7833,7 @@ def get_skill_credentials_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SkillCredentialsV1] + :rtype: Union[ApiResponse, object, SkillCredentials_a0f29ab1, StandardizedError_f5106a89] """ operation_name = "get_skill_credentials_v1" params = locals() @@ -7805,7 +7895,7 @@ def get_skill_credentials_v1(self, skill_id, **kwargs): def delete_skill_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete the skill and model for given skillId. @@ -7814,7 +7904,7 @@ def delete_skill_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_skill_v1" params = locals() @@ -7876,13 +7966,15 @@ def delete_skill_v1(self, skill_id, **kwargs): return None - def get_utterance_data_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, History_IntentRequestsV1, V1_BadRequestErrorV1] + def get_utterance_data_v1(self, skill_id, stage, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, IntentRequests_35db15c7] """ The Intent Request History API provides customers with the aggregated and anonymized transcription of user speech data and intent request details for their skills. :param skill_id: (required) The skill ID. :type skill_id: str + :param stage: (required) The stage of the skill to be used for evaluation. An error will be returned if this skill stage is not enabled on the account used for evaluation. + :type stage: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. @@ -7891,8 +7983,6 @@ def get_utterance_data_v1(self, skill_id, **kwargs): :type sort_direction: str :param sort_field: Sets the field on which the sorting would be applied. :type sort_field: str - :param stage: A filter used to retrieve items where the stage is equal to the given value. - :type stage: list[ask_smapi_model.v1.stage_type.StageType] :param locale: :type locale: list[ask_smapi_model.v1.skill.history.locale_in_query.LocaleInQuery] :param dialog_act_name: A filter used to retrieve items where the dialogAct name is equal to the given value. * `Dialog.ElicitSlot`: Alexa asked the user for the value of a specific slot. (https://developer.amazon.com/docs/custom-skills/dialog-interface-reference.html#elicitslot) * `Dialog.ConfirmSlot`: Alexa confirmed the value of a specific slot before continuing with the dialog. (https://developer.amazon.com/docs/custom-skills/dialog-interface-reference.html#confirmslot) * `Dialog.ConfirmIntent`: Alexa confirmed the all the information the user has provided for the intent before the skill took action. (https://developer.amazon.com/docs/custom-skills/dialog-interface-reference.html#confirmintent) @@ -7912,7 +8002,7 @@ def get_utterance_data_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, History_IntentRequestsV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, IntentRequests_35db15c7] """ operation_name = "get_utterance_data_v1" params = locals() @@ -7923,6 +8013,10 @@ def get_utterance_data_v1(self, skill_id, **kwargs): if ('skill_id' not in params) or (params['skill_id'] is None): raise ValueError( "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'stage' is set + if ('stage' not in params) or (params['stage'] is None): + raise ValueError( + "Missing the required parameter `stage` when calling `" + operation_name + "`") resource_path = '/v1/skills/{skillId}/history/intentRequests' resource_path = resource_path.replace('{format}', 'json') @@ -8001,7 +8095,7 @@ def get_utterance_data_v1(self, skill_id, **kwargs): def import_skill_package_v1(self, update_skill_with_package_request, skill_id, **kwargs): - # type: (Skill_UpdateSkillWithPackageRequestV1, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (UpdateSkillWithPackageRequest_d74ee124, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates a new import for a skill with given skillId. @@ -8014,7 +8108,7 @@ def import_skill_package_v1(self, update_skill_with_package_request, skill_id, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "import_skill_package_v1" params = locals() @@ -8087,7 +8181,7 @@ def import_skill_package_v1(self, update_skill_with_package_request, skill_id, * return None def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): - # type: (str, Invocations_InvokeSkillRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Invocations_InvokeSkillResponseV1, V1_BadRequestErrorV1] + # type: (str, InvokeSkillRequest_8cf8aff9, **Any) -> Union[ApiResponse, object, InvokeSkillResponse_6f32f451, StandardizedError_f5106a89, BadRequestError_f854b05] """ This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where invoking the skill endpoint specifically fails, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the endpoint. The skill must belong to and be enabled by the user of this API. Also, note that calls to the skill endpoint will timeout after 10 seconds. @@ -8098,7 +8192,7 @@ def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Invocations_InvokeSkillResponseV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, InvokeSkillResponse_6f32f451, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "invoke_skill_v1" params = locals() @@ -8167,7 +8261,7 @@ def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, stage, skill_type, **kwargs): - # type: (str, datetime, datetime, str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Metrics_GetMetricDataResponseV1] + # type: (str, datetime, datetime, str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetMetricDataResponse_722e44c4] """ Get analytic metrics report of skill usage. @@ -8196,7 +8290,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Metrics_GetMetricDataResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetMetricDataResponse_722e44c4] """ operation_name = "get_skill_metrics_v1" params = locals() @@ -8304,7 +8398,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, accept, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Get the annotations of an NLU annotation set @@ -8317,7 +8411,7 @@ def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, ac :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "get_annotations_for_nlu_annotation_sets_v1" params = locals() @@ -8392,7 +8486,7 @@ def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, ac return None def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, content_type, update_nlu_annotation_set_annotations_request, **kwargs): - # type: (str, str, str, AnnotationSets_UpdateNLUAnnotationSetAnnotationsRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, str, UpdateNLUAnnotationSetAnnotationsRequest_b336fe43, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Replace the annotations in NLU annotation set. API which replaces the annotations in NLU annotation set. @@ -8408,7 +8502,7 @@ def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "update_annotations_for_nlu_annotation_sets_v1" params = locals() @@ -8489,7 +8583,7 @@ def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, return None def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Delete the NLU annotation set API which deletes the NLU annotation set. Developers cannot get/list the deleted annotation set. @@ -8501,7 +8595,7 @@ def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "delete_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8570,7 +8664,7 @@ def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, return None def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUAnnotationSetPropertiesResponse_731f20d3, BadRequestError_f854b05] """ Get the properties of an NLU annotation set Return the properties for an NLU annotation set. @@ -8582,7 +8676,7 @@ def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **k :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, AnnotationSets_GetNLUAnnotationSetPropertiesResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetNLUAnnotationSetPropertiesResponse_731f20d3, BadRequestError_f854b05] """ operation_name = "get_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8651,7 +8745,7 @@ def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **k def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, update_nlu_annotation_set_properties_request, **kwargs): - # type: (str, str, AnnotationSets_UpdateNLUAnnotationSetPropertiesRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, UpdateNLUAnnotationSetPropertiesRequest_b569f485, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ update the NLU annotation set properties. API which updates the NLU annotation set properties. Currently, the only data can be updated is annotation set name. @@ -8665,7 +8759,7 @@ def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "update_properties_for_nlu_annotation_sets_v1" params = locals() @@ -8740,7 +8834,7 @@ def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, return None def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_ListNLUAnnotationSetsResponseV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListNLUAnnotationSetsResponse_5b1b0b6a, BadRequestError_f854b05] """ List NLU annotation sets for a given skill. API which requests all the NLU annotation sets for a skill. Returns the annotationId and properties for each NLU annotation set. Developers can filter the results using locale. Supports paging of results. @@ -8756,7 +8850,7 @@ def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_ListNLUAnnotationSetsResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, ListNLUAnnotationSetsResponse_5b1b0b6a, BadRequestError_f854b05] """ operation_name = "list_nlu_annotation_sets_v1" params = locals() @@ -8825,7 +8919,7 @@ def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_request, **kwargs): - # type: (str, AnnotationSets_CreateNLUAnnotationSetRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_CreateNLUAnnotationSetResponseV1, V1_ErrorV1] + # type: (str, CreateNLUAnnotationSetRequest_16b1430c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, CreateNLUAnnotationSetResponse_b069cada] """ Create a new NLU annotation set for a skill which will generate a new annotationId. This is an API that creates a new NLU annotation set with properties and returns the annotationId. @@ -8837,7 +8931,7 @@ def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_reque :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, AnnotationSets_CreateNLUAnnotationSetResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, CreateNLUAnnotationSetResponse_b069cada] """ operation_name = "create_nlu_annotation_set_v1" params = locals() @@ -8907,7 +9001,7 @@ def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_reque def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Evaluations_GetNLUEvaluationResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResponse_2fb5e6ed, BadRequestError_f854b05] """ Get top level information and status of a nlu evaluation. API which requests top level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns data used to start the job, like the number of test cases, stage, locale, and start time. This should be considered the 'cheap' operation while getResultForNLUEvaluations is 'expensive'. @@ -8919,7 +9013,7 @@ def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Evaluations_GetNLUEvaluationResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResponse_2fb5e6ed, BadRequestError_f854b05] """ operation_name = "get_nlu_evaluation_v1" params = locals() @@ -8988,7 +9082,7 @@ def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetNLUEvaluationResultsResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResultsResponse_5ca1fa54, BadRequestError_f854b05] """ Get test case results for a completed Evaluation. Paginated API which returns the test case results of an evaluation. This should be considered the 'expensive' operation while getNluEvaluation is 'cheap'. @@ -9012,7 +9106,7 @@ def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Evaluations_GetNLUEvaluationResultsResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResultsResponse_5ca1fa54, BadRequestError_f854b05] """ operation_name = "get_result_for_nlu_evaluations_v1" params = locals() @@ -9093,7 +9187,7 @@ def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): def list_nlu_evaluations_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Evaluations_ListNLUEvaluationsResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListNLUEvaluationsResponse_7ef8d08f, BadRequestError_f854b05] """ List nlu evaluations run for a skill. API which requests recently run nlu evaluations started by a vendor for a skill. Returns the evaluation id and some of the parameters used to start the evaluation. Developers can filter the results using locale and stage. Supports paging of results. @@ -9113,7 +9207,7 @@ def list_nlu_evaluations_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Evaluations_ListNLUEvaluationsResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, ListNLUEvaluationsResponse_7ef8d08f, BadRequestError_f854b05] """ operation_name = "list_nlu_evaluations_v1" params = locals() @@ -9186,7 +9280,7 @@ def list_nlu_evaluations_v1(self, skill_id, **kwargs): def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): - # type: (Evaluations_EvaluateNLURequestV1, str, **Any) -> Union[ApiResponse, object, Evaluations_EvaluateResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (EvaluateNLURequest_7a358f6a, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, EvaluateResponse_640ae5b5, BadRequestError_f854b05] """ Start an evaluation against the NLU model built by the skill's interaction model. This is an asynchronous API that starts an evaluation against the NLU model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results upon completion. This operation is unified, meaning both internal and external skill developers may use it evaluate NLU models. @@ -9198,7 +9292,7 @@ def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Evaluations_EvaluateResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, EvaluateResponse_640ae5b5, BadRequestError_f854b05] """ operation_name = "create_nlu_evaluations_v1" params = locals() @@ -9267,7 +9361,7 @@ def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): def publish_skill_v1(self, skill_id, accept_language, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Publication_SkillPublicationResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] """ If the skill is in certified stage, initiate publishing immediately or set a date at which the skill can publish at. @@ -9280,7 +9374,7 @@ def publish_skill_v1(self, skill_id, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Publication_SkillPublicationResponseV1] + :rtype: Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "publish_skill_v1" params = locals() @@ -9352,7 +9446,7 @@ def publish_skill_v1(self, skill_id, accept_language, **kwargs): def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Publication_SkillPublicationResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89] """ Retrieves the latest skill publishing details of the certified stage of the skill. The publishesAtDate and status of skill publishing. @@ -9363,7 +9457,7 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Publication_SkillPublicationResponseV1] + :rtype: Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89] """ operation_name = "get_skill_publications_v1" params = locals() @@ -9431,7 +9525,7 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): - # type: (str, Skill_CreateRollbackRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_CreateRollbackResponseV1] + # type: (str, CreateRollbackRequest_e7747a32, **Any) -> Union[ApiResponse, object, CreateRollbackResponse_5a2e8250, StandardizedError_f5106a89, BadRequestError_f854b05] """ Submit a target skill version to rollback to. Only one rollback or publish operation can be outstanding for a given skillId. @@ -9442,7 +9536,7 @@ def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_CreateRollbackResponseV1] + :rtype: Union[ApiResponse, object, CreateRollbackResponse_5a2e8250, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "rollback_skill_v1" params = locals() @@ -9513,7 +9607,7 @@ def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_RollbackRequestStatusV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, RollbackRequestStatus_71665366] """ Get the rollback status of a skill given an associated rollbackRequestId. Use ~latest in place of rollbackRequestId to get the latest rollback status. @@ -9524,7 +9618,7 @@ def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, Skill_RollbackRequestStatusV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, RollbackRequestStatus_71665366] """ operation_name = "get_rollback_for_skill_v1" params = locals() @@ -9594,7 +9688,7 @@ def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): - # type: (str, Simulations_SimulationsApiRequestV1, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] + # type: (str, SimulationsApiRequest_606eed02, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] """ Simulate executing a skill with the given id. This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must be in development stage, and it must also belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. @@ -9606,7 +9700,7 @@ def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] """ operation_name = "simulate_skill_v1" params = locals() @@ -9677,7 +9771,7 @@ def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] """ Get the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where the simulation failed, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the skill endpoint. Note that simulation results are stored for 10 minutes. A request for an expired simulation result will return a 404 HTTP status code. @@ -9689,7 +9783,7 @@ def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Simulations_SimulationsApiResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] """ operation_name = "get_skill_simulation_v1" params = locals() @@ -9757,8 +9851,434 @@ def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): return api_response.body + def get_smart_home_capability_evaluation_v1(self, skill_id, evaluation_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f] + """ + Get top level information and status of a Smart Home capability evaluation. + Get top level information and status of a Smart Home capability evaluation. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param evaluation_id: (required) A unique ID to identify each Smart Home capability evaluation. + :type evaluation_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f] + """ + operation_name = "get_smart_home_capability_evaluation_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'evaluation_id' is set + if ('evaluation_id' not in params) or (params['evaluation_id'] is None): + raise ValueError( + "Missing the required parameter `evaluation_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations/{evaluationId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'evaluation_id' in params: + path_params['evaluationId'] = params['evaluation_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_response.GetSHCapabilityEvaluationResponse", status_code=200, message="Successfully retrieved the evaluation status.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="API user does not have permission or is currently in a state that does not allow calls to this API. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=404, message="The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal server error. ")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_response.GetSHCapabilityEvaluationResponse") + + if full_response: + return api_response + return api_response.body + + + def get_smarthome_capablity_evaluation_results_v1(self, skill_id, evaluation_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResultsResponse_9a1d4db0] + """ + Get test case results for an evaluation run. + Get test case results for an evaluation run. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param evaluation_id: (required) A unique ID to identify each Smart Home capability evaluation. + :type evaluation_id: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: float + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResultsResponse_9a1d4db0] + """ + operation_name = "get_smarthome_capablity_evaluation_results_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'evaluation_id' is set + if ('evaluation_id' not in params) or (params['evaluation_id'] is None): + raise ValueError( + "Missing the required parameter `evaluation_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations/{evaluationId}/results' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'evaluation_id' in params: + path_params['evaluationId'] = params['evaluation_id'] + + query_params = [] # type: List + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_results_response.GetSHCapabilityEvaluationResultsResponse", status_code=200, message="Successfully retrieved the evaluation result content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="API user does not have permission or is currently in a state that does not allow calls to this API. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=404, message="The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal server error. ")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_results_response.GetSHCapabilityEvaluationResultsResponse") + + if full_response: + return api_response + return api_response.body + + + def list_smarthome_capability_evaluations_v1(self, skill_id, stage, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityEvaluationsResponse_e6fe49d5, BadRequestError_f854b05] + """ + List Smart Home capability evaluation runs for a skill. + List Smart Home capability evaluation runs for a skill. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param stage: (required) The stage of the skill to be used for evaluation. An error will be returned if this skill stage is not enabled on the account used for evaluation. + :type stage: str + :param start_timestamp_from: The begnning of the start time to query evaluation result. + :type start_timestamp_from: datetime + :param start_timestamp_to: The end of the start time to query evaluation result. + :type start_timestamp_to: datetime + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: float + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityEvaluationsResponse_e6fe49d5, BadRequestError_f854b05] + """ + operation_name = "list_smarthome_capability_evaluations_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'stage' is set + if ('stage' not in params) or (params['stage'] is None): + raise ValueError( + "Missing the required parameter `stage` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + + query_params = [] # type: List + if 'stage' in params: + query_params.append(('stage', params['stage'])) + if 'start_timestamp_from' in params: + query_params.append(('startTimestampFrom', params['start_timestamp_from'])) + if 'start_timestamp_to' in params: + query_params.append(('startTimestampTo', params['start_timestamp_to'])) + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_evaluations_response.ListSHCapabilityEvaluationsResponse", status_code=200, message="Successfully retrieved the evaluation infomation.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="API user does not have permission or is currently in a state that does not allow calls to this API. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=404, message="The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal server error. ")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_evaluations_response.ListSHCapabilityEvaluationsResponse") + + if full_response: + return api_response + return api_response.body + + + def create_smarthome_capability_evaluation_v1(self, skill_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, EvaluateSHCapabilityResponse_38ae7f22] + """ + Start a capability evaluation against a Smart Home skill. + Start a capability evaluation against a Smart Home skill. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param evaluate_sh_capability_payload: Payload sent to start a capability evaluation against a Smart Home skill. + :type evaluate_sh_capability_payload: ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request.EvaluateSHCapabilityRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, EvaluateSHCapabilityResponse_38ae7f22] + """ + operation_name = "create_smarthome_capability_evaluation_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'evaluate_sh_capability_payload' in params: + body_params = params['evaluate_sh_capability_payload'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_response.EvaluateSHCapabilityResponse", status_code=200, message="Evaluation has successfully begun.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="API user does not have permission or is currently in a state that does not allow calls to this API. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=404, message="The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="A test run is already in progress for the specified endpoint. Please retry after some time. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal server error. ")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_response.EvaluateSHCapabilityResponse") + + if full_response: + return api_response + return api_response.body + + + def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityTestPlansResponse_cb289d6, BadRequestError_f854b05] + """ + List all the test plan names and ids for a given skill ID. + List all the test plan names and ids for a given skill ID. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: float + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityTestPlansResponse_cb289d6, BadRequestError_f854b05] + """ + operation_name = "list_smarthome_capability_test_plans_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/smartHome/testing/capabilityTestPlans' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + + query_params = [] # type: List + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_test_plans_response.ListSHCapabilityTestPlansResponse", status_code=200, message="Successfully got the list of test plans.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="API user does not have permission or is currently in a state that does not allow calls to this API. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=404, message="The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal server error. ")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_test_plans_response.ListSHCapabilityTestPlansResponse") + + if full_response: + return api_response + return api_response.body + + def get_ssl_certificates_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SSLCertificatePayloadV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, SSLCertificatePayload_97891902] """ Returns the ssl certificate sets currently associated with this skill. Sets consist of one ssl certificate blob associated with a region as well as the default certificate for the skill. @@ -9767,7 +10287,7 @@ def get_ssl_certificates_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_SSLCertificatePayloadV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, SSLCertificatePayload_97891902] """ operation_name = "get_ssl_certificates_v1" params = locals() @@ -9829,7 +10349,7 @@ def get_ssl_certificates_v1(self, skill_id, **kwargs): def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): - # type: (str, Skill_SSLCertificatePayloadV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, SSLCertificatePayload_97891902, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Updates the ssl certificates associated with this skill. @@ -9840,7 +10360,7 @@ def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "set_ssl_certificates_v1" params = locals() @@ -9909,7 +10429,7 @@ def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): return None def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Deletes the enablement for given skillId/stage and customerId (retrieved from Auth token). @@ -9920,7 +10440,7 @@ def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_skill_enablement_v1" params = locals() @@ -9990,7 +10510,7 @@ def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): return None def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Checks whether an enablement exist for given skillId/stage and customerId (retrieved from Auth token) @@ -10001,7 +10521,7 @@ def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_skill_enablement_status_v1" params = locals() @@ -10071,7 +10591,7 @@ def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): return None def set_skill_enablement_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates/Updates the enablement for given skillId/stage and customerId (retrieved from Auth token) @@ -10082,7 +10602,7 @@ def set_skill_enablement_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "set_skill_enablement_v1" params = locals() @@ -10153,7 +10673,7 @@ def set_skill_enablement_v1(self, skill_id, stage, **kwargs): return None def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89] """ Creates a new export for a skill with given skillId and stage. @@ -10164,7 +10684,7 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89] """ operation_name = "create_export_request_for_skill_v1" params = locals() @@ -10233,7 +10753,7 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): return None def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] """ Get the list of in-skill products for the skillId. @@ -10248,7 +10768,7 @@ def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, V1_ErrorV1, Isp_ListInSkillProductResponseV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] """ operation_name = "get_isp_list_for_skill_id_v1" params = locals() @@ -10320,7 +10840,7 @@ def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs): - # type: (Evaluations_ProfileNluRequestV1, str, str, str, **Any) -> Union[ApiResponse, object, V1_BadRequestErrorV1, Evaluations_ProfileNluResponseV1, V1_ErrorV1] + # type: (ProfileNluRequest_501c0d87, str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ProfileNluResponse_d24b74c1] """ Profile a test utterance. This is a synchronous API that profiles an utterance against interaction model. @@ -10336,7 +10856,7 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_BadRequestErrorV1, Evaluations_ProfileNluResponseV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ProfileNluResponse_d24b74c1] """ operation_name = "profile_nlu_v1" params = locals() @@ -10417,7 +10937,7 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictDetectionJobStatusResponseV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetConflictDetectionJobStatusResponse_9e0e2cf1] """ Retrieve conflict detection job status for skill. This API returns the job status of conflict detection job for a specified interaction model. @@ -10433,7 +10953,7 @@ def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, l :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictDetectionJobStatusResponseV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetConflictDetectionJobStatusResponse_9e0e2cf1] """ operation_name = "get_conflict_detection_job_status_for_interaction_model_v1" params = locals() @@ -10515,7 +11035,7 @@ def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, l def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictsResponseV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, GetConflictsResponse_502eb394, StandardizedError_f5106a89, BadRequestError_f854b05] """ Retrieve conflict detection results for a specified interaction model. This is a paginated API that retrieves results of conflict detection job for a specified interaction model. @@ -10535,7 +11055,7 @@ def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, versio :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, ConflictDetection_GetConflictsResponseV1] + :rtype: Union[ApiResponse, object, GetConflictsResponse_502eb394, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_conflicts_for_interaction_model_v1" params = locals() @@ -10621,7 +11141,7 @@ def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, versio def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Private_ListPrivateDistributionAccountsResponseV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, ListPrivateDistributionAccountsResponse_8783420d, StandardizedError_f5106a89, BadRequestError_f854b05] """ List private distribution accounts. @@ -10636,7 +11156,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Private_ListPrivateDistributionAccountsResponseV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, ListPrivateDistributionAccountsResponse_8783420d, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "list_private_distribution_accounts_v1" params = locals() @@ -10710,7 +11230,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Remove an id from the private distribution accounts. @@ -10723,7 +11243,7 @@ def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_private_distribution_account_id_v1" params = locals() @@ -10799,7 +11319,7 @@ def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwarg return None def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Add an id to the private distribution accounts. @@ -10812,7 +11332,7 @@ def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "set_private_distribution_account_id_v1" params = locals() @@ -10888,7 +11408,7 @@ def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): return None def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Delete AccountLinking information of a skill for the given stage. @@ -10899,7 +11419,7 @@ def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "delete_account_linking_info_v1" params = locals() @@ -10968,7 +11488,7 @@ def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): return None def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AccountLinking_AccountLinkingResponseV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, AccountLinkingResponse_b1f92882, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get AccountLinking information for the skill. @@ -10979,7 +11499,7 @@ def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, AccountLinking_AccountLinkingResponseV1] + :rtype: Union[ApiResponse, object, AccountLinkingResponse_b1f92882, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_account_linking_info_v1" params = locals() @@ -11048,7 +11568,7 @@ def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_request, **kwargs): - # type: (str, str, AccountLinking_AccountLinkingRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, AccountLinkingRequest_cac174e, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Create AccountLinking information for the skill. @@ -11063,7 +11583,7 @@ def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_req :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_account_linking_info_v1" params = locals() @@ -11142,7 +11662,7 @@ def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_req return None def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): - # type: (str, str, Skill_CloneLocaleRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, CloneLocaleRequest_2e00cdf4, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates a new clone locale workflow for a skill with given skillId, source locale, and target locales. In a single workflow, a locale can be cloned to multiple target locales. However, only one such workflow can be started at any time. @@ -11155,7 +11675,7 @@ def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "clone_locale_v1" params = locals() @@ -11232,7 +11752,7 @@ def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): return None def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_CloneLocaleStatusResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed] """ Returns the status of a clone locale workflow associated with the unique identifier of cloneLocaleRequestId. @@ -11245,7 +11765,7 @@ def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_CloneLocaleStatusResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed] """ operation_name = "get_clone_locale_status_v1" params = locals() @@ -11321,7 +11841,7 @@ def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] """ Gets the `InteractionModel` for the skill in the given stage. The path params **skillId**, **stage** and **locale** are required. @@ -11334,7 +11854,7 @@ def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] """ operation_name = "get_interaction_model_v1" params = locals() @@ -11410,7 +11930,7 @@ def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get the latest metadata for the interaction model resource for the given stage. @@ -11423,7 +11943,7 @@ def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_interaction_model_metadata_v1" params = locals() @@ -11499,7 +12019,7 @@ def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs return None def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model, **kwargs): - # type: (str, str, str, InteractionModel_InteractionModelDataV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, InteractionModelData_487fc9ea, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates an `InteractionModel` for the skill. @@ -11516,7 +12036,7 @@ def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "set_interaction_model_v1" params = locals() @@ -11601,7 +12121,7 @@ def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model return None def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Version_ListResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListResponse_cb936759] """ Get the list of interactionModel versions of a skill for the vendor. @@ -11622,7 +12142,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Version_ListResponseV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListResponse_cb936759] """ operation_name = "list_interaction_model_versions_v1" params = locals() @@ -11706,7 +12226,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] + # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] """ Gets the specified version `InteractionModel` of a skill for the vendor. Use `~current` as version parameter to get the current version model. @@ -11721,7 +12241,7 @@ def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1, InteractionModel_InteractionModelDataV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] """ operation_name = "get_interaction_model_version_v1" params = locals() @@ -11803,7 +12323,7 @@ def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Manifest_SkillManifestEnvelopeV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, SkillManifestEnvelope_fc0e823b, StandardizedError_f5106a89, BadRequestError_f854b05] """ Returns the skill manifest for given skillId and stage. @@ -11814,7 +12334,7 @@ def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Manifest_SkillManifestEnvelopeV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, SkillManifestEnvelope_fc0e823b, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_skill_manifest_v1" params = locals() @@ -11885,7 +12405,7 @@ def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs): - # type: (str, str, Manifest_SkillManifestEnvelopeV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, str, SkillManifestEnvelope_fc0e823b, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Updates skill manifest for given skillId and stage. @@ -11900,7 +12420,7 @@ def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **k :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "update_skill_manifest_v1" params = locals() @@ -11980,7 +12500,7 @@ def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **k return None def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, **kwargs): - # type: (Validations_ValidationsApiRequestV1, str, str, **Any) -> Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (ValidationsApiRequest_6f6e9aec, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] """ Validate a skill. This is an asynchronous API which allows a skill developer to execute various validations against their skill. @@ -11994,7 +12514,7 @@ def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, * :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] """ operation_name = "submit_skill_validation_v1" params = locals() @@ -12070,7 +12590,7 @@ def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, * def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] """ Get the result of a previously executed validation. This API gets the result of a previously executed validation. A successful response will contain the status of the executed validation. If the validation successfully completed, the response will also contain information related to executed validations. In cases where requests to this API results in an error, the response will contain a description of the problem. In cases where the validation failed, the response will contain a status attribute indicating that a failure occurred. Note that validation results are stored for 60 minutes. A request for an expired validation result will return a 404 HTTP status code. @@ -12086,7 +12606,7 @@ def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Validations_ValidationsApiResponseV1, V1_BadRequestErrorV1, V1_ErrorV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] """ operation_name = "get_skill_validations_v1" params = locals() @@ -12162,7 +12682,7 @@ def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): def get_skill_status_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_SkillStatusV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, SkillStatus_4fdd647b, StandardizedError_f5106a89, BadRequestError_f854b05] """ Get the status of skill resource and its sub-resources for a given skillId. @@ -12173,7 +12693,7 @@ def get_skill_status_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_SkillStatusV1, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, SkillStatus_4fdd647b, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_skill_status_v1" params = locals() @@ -12239,7 +12759,7 @@ def get_skill_status_v1(self, skill_id, **kwargs): def submit_skill_for_certification_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Submit the skill for certification. @@ -12250,7 +12770,7 @@ def submit_skill_for_certification_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "submit_skill_for_certification_v1" params = locals() @@ -12316,7 +12836,7 @@ def submit_skill_for_certification_v1(self, skill_id, **kwargs): return None def list_versions_for_skill_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ListSkillVersionsResponseV1, V1_BadRequestErrorV1] + # type: (str, **Any) -> Union[ApiResponse, object, ListSkillVersionsResponse_7522147d, StandardizedError_f5106a89, BadRequestError_f854b05] """ Retrieve a list of all skill versions associated with this skill id @@ -12329,7 +12849,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, Skill_ListSkillVersionsResponseV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, ListSkillVersionsResponse_7522147d, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "list_versions_for_skill_v1" params = locals() @@ -12397,7 +12917,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwargs): - # type: (str, Skill_WithdrawRequestV1, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + # type: (str, WithdrawRequest_d09390b7, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Withdraws the skill from certification. @@ -12408,7 +12928,7 @@ def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwa :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "withdraw_skill_from_certification_v1" params = locals() @@ -12478,14 +12998,14 @@ def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwa return None def create_upload_url_v1(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, Skill_UploadResponseV1, Skill_StandardizedErrorV1] + # type: (**Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, UploadResponse_5aa06857] """ Creates a new uploadUrl. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_UploadResponseV1, Skill_StandardizedErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, UploadResponse_5aa06857] """ operation_name = "create_upload_url_v1" params = locals() @@ -12540,14 +13060,14 @@ def create_upload_url_v1(self, **kwargs): def get_vendor_list_v1(self, **kwargs): - # type: (**Any) -> Union[ApiResponse, object, V1_ErrorV1, VendorManagement_VendorsV1] + # type: (**Any) -> Union[ApiResponse, object, Error_fbe913d9, Vendors_f5f1b90b] """ Get the list of Vendor information. :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V1_ErrorV1, VendorManagement_VendorsV1] + :rtype: Union[ApiResponse, object, Error_fbe913d9, Vendors_f5f1b90b] """ operation_name = "get_vendor_list_v1" params = locals() @@ -12602,7 +13122,7 @@ def get_vendor_list_v1(self, **kwargs): def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Skill_StandardizedErrorV1, AlexaHosted_HostedSkillPermissionV1, V1_BadRequestErrorV1] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, HostedSkillPermission_eb71ebfb, BadRequestError_f854b05] """ Get the current user permissions about Alexa hosted skill features. @@ -12613,7 +13133,7 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Skill_StandardizedErrorV1, AlexaHosted_HostedSkillPermissionV1, V1_BadRequestErrorV1] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, HostedSkillPermission_eb71ebfb, BadRequestError_f854b05] """ operation_name = "get_alexa_hosted_skill_user_permissions_v1" params = locals() @@ -12681,7 +13201,7 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, **kwargs): - # type: (str, str, Invocations_InvocationsApiRequestV2, **Any) -> Union[ApiResponse, object, Invocations_InvocationsApiResponseV2, V2_ErrorV2, V2_BadRequestErrorV2] + # type: (str, str, InvocationsApiRequest_a422fa08, **Any) -> Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] """ Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where invoking the skill endpoint specifically fails, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the endpoint. The skill must belong to and be enabled by the user of this API. Also, note that calls to the skill endpoint will timeout after 10 seconds. This API is currently designed in a way that allows extension to an asynchronous API if a significantly bigger timeout is required. @@ -12695,7 +13215,7 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Invocations_InvocationsApiResponseV2, V2_ErrorV2, V2_BadRequestErrorV2] + :rtype: Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] """ operation_name = "invoke_skill_end_point_v2" params = locals() @@ -12771,7 +13291,7 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): - # type: (str, str, Simulations_SimulationsApiRequestV2, **Any) -> Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] + # type: (str, str, SimulationsApiRequest_ae2e6503, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] """ Simulate executing a skill with the given id against a given stage. This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. @@ -12785,7 +13305,7 @@ def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] + :rtype: Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] """ operation_name = "simulate_skill_v2" params = locals() @@ -12862,7 +13382,7 @@ def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] + # type: (str, str, str, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] """ Get the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where the simulation failed, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the skill endpoint. Note that simulation results are stored for 10 minutes. A request for an expired simulation result will return a 404 HTTP status code. @@ -12876,7 +13396,7 @@ def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, V2_ErrorV2, V2_BadRequestErrorV2, Simulations_SimulationsApiResponseV2] + :rtype: Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] """ operation_name = "get_skill_simulation_v2" params = locals() diff --git a/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py index a0a5f5d..8cecc7e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v0/bad_request_error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.error import Error as V0_ErrorV0 + from ask_smapi_model.v0.error import Error as Error_d660d58 class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[V0_ErrorV0]]) -> None + # type: (Optional[str], Optional[List[Error_d660d58]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py index 0ab5f80..fc56f20 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_details.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as CatalogUsage_2f19919a + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as CatalogType_da9270a4 class CatalogDetails(object): @@ -68,7 +68,7 @@ class CatalogDetails(object): supports_multiple_types = False def __init__(self, id=None, title=None, object_type=None, usage=None, last_updated_date=None, created_date=None, associated_skill_ids=None): - # type: (Optional[str], Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[CatalogType_da9270a4], Optional[CatalogUsage_2f19919a], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """ :param id: Unique identifier of the added catalog object. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py index cb6d35e..70149a7 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/catalog_summary.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as CatalogUsage_2f19919a + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as CatalogType_da9270a4 class CatalogSummary(object): @@ -68,7 +68,7 @@ class CatalogSummary(object): supports_multiple_types = False def __init__(self, id=None, title=None, object_type=None, usage=None, last_updated_date=None, created_date=None, associated_skill_ids=None): - # type: (Optional[str], Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[CatalogType_da9270a4], Optional[CatalogUsage_2f19919a], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """ :param id: Unique identifier of the added catalog object. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py b/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py index fa0fcad..df815a7 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/create_catalog_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.catalog_type import CatalogType as Catalog_CatalogTypeV0 - from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as Catalog_CatalogUsageV0 + from ask_smapi_model.v0.catalog.catalog_usage import CatalogUsage as CatalogUsage_2f19919a + from ask_smapi_model.v0.catalog.catalog_type import CatalogType as CatalogType_da9270a4 class CreateCatalogRequest(object): @@ -56,7 +56,7 @@ class CreateCatalogRequest(object): supports_multiple_types = False def __init__(self, title=None, object_type=None, usage=None, vendor_id=None): - # type: (Optional[str], Optional[Catalog_CatalogTypeV0], Optional[Catalog_CatalogUsageV0], Optional[str]) -> None + # type: (Optional[str], Optional[CatalogType_da9270a4], Optional[CatalogUsage_2f19919a], Optional[str]) -> None """ :param title: Title of the catalog. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py index ea51650..d6f4475 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as V0_LinksV0 - from ask_smapi_model.v0.catalog.catalog_summary import CatalogSummary as Catalog_CatalogSummaryV0 + from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v0.catalog.catalog_summary import CatalogSummary as CatalogSummary_c8609f7a class ListCatalogsResponse(object): @@ -58,7 +58,7 @@ class ListCatalogsResponse(object): supports_multiple_types = False def __init__(self, links=None, catalogs=None, is_truncated=None, next_token=None): - # type: (Optional[V0_LinksV0], Optional[List[Catalog_CatalogSummaryV0]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_cdc03ffa], Optional[List[CatalogSummary_c8609f7a]], Optional[bool], Optional[str]) -> None """Information about catalogs. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py index 62af3fc..44526e7 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/complete_upload_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.pre_signed_url_item import PreSignedUrlItem as Upload_PreSignedUrlItemV0 + from ask_smapi_model.v0.catalog.upload.pre_signed_url_item import PreSignedUrlItem as PreSignedUrlItem_f6fd7455 class CompleteUploadRequest(object): @@ -43,7 +43,7 @@ class CompleteUploadRequest(object): supports_multiple_types = False def __init__(self, part_e_tags=None): - # type: (Optional[List[Upload_PreSignedUrlItemV0]]) -> None + # type: (Optional[List[PreSignedUrlItem_f6fd7455]]) -> None """ :param part_e_tags: List of (eTag, part number) pairs for each part of the file uploaded. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py index 9547b90..a62e731 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_file_summary.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.file_upload_status import FileUploadStatus as Upload_FileUploadStatusV0 + from ask_smapi_model.v0.catalog.upload.file_upload_status import FileUploadStatus as FileUploadStatus_b7cb5662 class ContentUploadFileSummary(object): @@ -47,7 +47,7 @@ class ContentUploadFileSummary(object): supports_multiple_types = False def __init__(self, presigned_download_url=None, status=None): - # type: (Optional[str], Optional[Upload_FileUploadStatusV0]) -> None + # type: (Optional[str], Optional[FileUploadStatus_b7cb5662]) -> None """ :param presigned_download_url: If the file is available for download, presigned download URL can be used to download the file. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py index 6ba67b0..a316875 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/content_upload_summary.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as UploadStatus_d394a7f class ContentUploadSummary(object): @@ -59,7 +59,7 @@ class ContentUploadSummary(object): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None): - # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime]) -> None + # type: (Optional[str], Optional[str], Optional[UploadStatus_d394a7f], Optional[datetime], Optional[datetime]) -> None """ :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py index f16e517..338661b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/create_content_upload_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV0 - from ask_smapi_model.v0.catalog.upload.presigned_upload_part import PresignedUploadPart as Upload_PresignedUploadPartV0 - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.presigned_upload_part import PresignedUploadPart as PresignedUploadPart_ab2ee608 + from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as UploadIngestionStep_2da33f78 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as UploadStatus_d394a7f class CreateContentUploadResponse(ContentUploadSummary): @@ -72,7 +72,7 @@ class CreateContentUploadResponse(ContentUploadSummary): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, ingestion_steps=None, presigned_upload_parts=None): - # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime], Optional[List[Upload_UploadIngestionStepV0]], Optional[List[Upload_PresignedUploadPartV0]]) -> None + # type: (Optional[str], Optional[str], Optional[UploadStatus_d394a7f], Optional[datetime], Optional[datetime], Optional[List[UploadIngestionStep_2da33f78]], Optional[List[PresignedUploadPart_ab2ee608]]) -> None """Request body for self-hosted catalog uploads. :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py index 663ecbe..4d42b5c 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/get_content_upload_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as Upload_ContentUploadFileSummaryV0 - from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV0 - from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV0 + from ask_smapi_model.v0.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as ContentUploadFileSummary_785f2eb1 + from ask_smapi_model.v0.catalog.upload.upload_ingestion_step import UploadIngestionStep as UploadIngestionStep_2da33f78 + from ask_smapi_model.v0.catalog.upload.upload_status import UploadStatus as UploadStatus_d394a7f class GetContentUploadResponse(ContentUploadSummary): @@ -72,7 +72,7 @@ class GetContentUploadResponse(ContentUploadSummary): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, file=None, ingestion_steps=None): - # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV0], Optional[datetime], Optional[datetime], Optional[Upload_ContentUploadFileSummaryV0], Optional[List[Upload_UploadIngestionStepV0]]) -> None + # type: (Optional[str], Optional[str], Optional[UploadStatus_d394a7f], Optional[datetime], Optional[datetime], Optional[ContentUploadFileSummary_785f2eb1], Optional[List[UploadIngestionStep_2da33f78]]) -> None """Response object for get content upload request. :param id: Unique identifier of the upload. diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py index c9fb462..86eca19 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as V0_LinksV0 - from ask_smapi_model.v0.catalog.upload.content_upload_summary import ContentUploadSummary as Upload_ContentUploadSummaryV0 + from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v0.catalog.upload.content_upload_summary import ContentUploadSummary as ContentUploadSummary_8ef77e7e class ListUploadsResponse(object): @@ -56,7 +56,7 @@ class ListUploadsResponse(object): supports_multiple_types = False def __init__(self, links=None, is_truncated=None, next_token=None, uploads=None): - # type: (Optional[V0_LinksV0], Optional[bool], Optional[str], Optional[List[Upload_ContentUploadSummaryV0]]) -> None + # type: (Optional[Links_cdc03ffa], Optional[bool], Optional[str], Optional[List[ContentUploadSummary_8ef77e7e]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py index 87d4112..169c7bb 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/upload_ingestion_step.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.error import Error as V0_ErrorV0 - from ask_smapi_model.v0.catalog.upload.ingestion_step_name import IngestionStepName as Upload_IngestionStepNameV0 - from ask_smapi_model.v0.catalog.upload.ingestion_status import IngestionStatus as Upload_IngestionStatusV0 + from ask_smapi_model.v0.catalog.upload.ingestion_status import IngestionStatus as IngestionStatus_2b1122e3 + from ask_smapi_model.v0.error import Error as Error_d660d58 + from ask_smapi_model.v0.catalog.upload.ingestion_step_name import IngestionStepName as IngestionStepName_4eaa95a2 class UploadIngestionStep(object): @@ -59,7 +59,7 @@ class UploadIngestionStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, log_url=None, errors=None): - # type: (Optional[Upload_IngestionStepNameV0], Optional[Upload_IngestionStatusV0], Optional[str], Optional[List[V0_ErrorV0]]) -> None + # type: (Optional[IngestionStepName_4eaa95a2], Optional[IngestionStatus_2b1122e3], Optional[str], Optional[List[Error_d660d58]]) -> None """Represents a single step in the ingestion process of a new upload. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py index 4063bc0..59114a0 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/create_subscriber_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Endpoint_7e4d296f class CreateSubscriberRequest(object): @@ -51,7 +51,7 @@ class CreateSubscriberRequest(object): supports_multiple_types = False def __init__(self, name=None, vendor_id=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[Subscriber_EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[Endpoint_7e4d296f]) -> None """ :param name: Name of the subscriber. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py index 8faf697..5c64a04 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/endpoint.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint_authorization import EndpointAuthorization as Subscriber_EndpointAuthorizationV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint_authorization import EndpointAuthorization as EndpointAuthorization_2de8b344 class Endpoint(object): @@ -47,7 +47,7 @@ class Endpoint(object): supports_multiple_types = False def __init__(self, uri=None, authorization=None): - # type: (Optional[str], Optional[Subscriber_EndpointAuthorizationV0]) -> None + # type: (Optional[str], Optional[EndpointAuthorization_2de8b344]) -> None """ :param uri: Uri of the endpoint that receives the notification. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py index 9524421..85b549e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as V0_LinksV0 - from ask_smapi_model.v0.development_events.subscriber.subscriber_summary import SubscriberSummary as Subscriber_SubscriberSummaryV0 + from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v0.development_events.subscriber.subscriber_summary import SubscriberSummary as SubscriberSummary_3b34977e class ListSubscribersResponse(object): @@ -52,7 +52,7 @@ class ListSubscribersResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscribers=None): - # type: (Optional[V0_LinksV0], Optional[str], Optional[List[Subscriber_SubscriberSummaryV0]]) -> None + # type: (Optional[Links_cdc03ffa], Optional[str], Optional[List[SubscriberSummary_3b34977e]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py index 69af0e9..5928dd4 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Endpoint_7e4d296f class SubscriberInfo(object): @@ -53,7 +53,7 @@ class SubscriberInfo(object): supports_multiple_types = False def __init__(self, subscriber_id=None, name=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[Subscriber_EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[Endpoint_7e4d296f]) -> None """Information about the subscriber. :param subscriber_id: Unique identifier of the subscriber resource. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py index de39466..63fa0d2 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/subscriber_summary.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.subscriber_status import SubscriberStatus as Subscriber_SubscriberStatusV0 - from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Endpoint_7e4d296f + from ask_smapi_model.v0.development_events.subscriber.subscriber_status import SubscriberStatus as SubscriberStatus_9cc1a4de class SubscriberSummary(object): @@ -60,7 +60,7 @@ class SubscriberSummary(object): supports_multiple_types = False def __init__(self, subscriber_id=None, name=None, status=None, client_id=None, endpoint=None): - # type: (Optional[str], Optional[str], Optional[Subscriber_SubscriberStatusV0], Optional[str], Optional[Subscriber_EndpointV0]) -> None + # type: (Optional[str], Optional[str], Optional[SubscriberStatus_9cc1a4de], Optional[str], Optional[Endpoint_7e4d296f]) -> None """ :param subscriber_id: Unique identifier of the subscriber resource. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py index d919f5a..6505332 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/update_subscriber_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Subscriber_EndpointV0 + from ask_smapi_model.v0.development_events.subscriber.endpoint import Endpoint as Endpoint_7e4d296f class UpdateSubscriberRequest(object): @@ -47,7 +47,7 @@ class UpdateSubscriberRequest(object): supports_multiple_types = False def __init__(self, name=None, endpoint=None): - # type: (Optional[str], Optional[Subscriber_EndpointV0]) -> None + # type: (Optional[str], Optional[Endpoint_7e4d296f]) -> None """ :param name: Name of the subscriber. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py index 5f7d15e..782d850 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/create_subscription_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Event_a93e65dc class CreateSubscriptionRequest(object): @@ -55,7 +55,7 @@ class CreateSubscriptionRequest(object): supports_multiple_types = False def __init__(self, name=None, events=None, vendor_id=None, subscriber_id=None): - # type: (Optional[str], Optional[List[Subscription_EventV0]], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[List[Event_a93e65dc]], Optional[str], Optional[str]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py index 8745c4c..21455d2 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.subscription_summary import SubscriptionSummary as Subscription_SubscriptionSummaryV0 - from ask_smapi_model.v0.links import Links as V0_LinksV0 + from ask_smapi_model.v0.development_events.subscription.subscription_summary import SubscriptionSummary as SubscriptionSummary_f00dfd49 + from ask_smapi_model.v0.links import Links as Links_cdc03ffa class ListSubscriptionsResponse(object): @@ -52,7 +52,7 @@ class ListSubscriptionsResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscriptions=None): - # type: (Optional[V0_LinksV0], Optional[str], Optional[List[Subscription_SubscriptionSummaryV0]]) -> None + # type: (Optional[Links_cdc03ffa], Optional[str], Optional[List[SubscriptionSummary_f00dfd49]]) -> None """ :param links: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py index 0327d99..11b1870 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Event_a93e65dc class SubscriptionInfo(object): @@ -59,7 +59,7 @@ class SubscriptionInfo(object): supports_multiple_types = False def __init__(self, name=None, subscription_id=None, subscriber_id=None, vendor_id=None, events=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Subscription_EventV0]]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Event_a93e65dc]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py index 7c2275e..d1e13f9 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/subscription_summary.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Event_a93e65dc class SubscriptionSummary(object): @@ -59,7 +59,7 @@ class SubscriptionSummary(object): supports_multiple_types = False def __init__(self, name=None, subscription_id=None, subscriber_id=None, vendor_id=None, events=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Subscription_EventV0]]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[Event_a93e65dc]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py index 13ff15f..efbc7aa 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/update_subscription_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.development_events.subscription.event import Event as Subscription_EventV0 + from ask_smapi_model.v0.development_events.subscription.event import Event as Event_a93e65dc class UpdateSubscriptionRequest(object): @@ -47,7 +47,7 @@ class UpdateSubscriptionRequest(object): supports_multiple_types = False def __init__(self, name=None, events=None): - # type: (Optional[str], Optional[List[Subscription_EventV0]]) -> None + # type: (Optional[str], Optional[List[Event_a93e65dc]]) -> None """ :param name: Name of the subscription. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py index 44cf3e5..2ffa08e 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/interaction_model_update.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.interaction_model_event_attributes import InteractionModelEventAttributes as EventSchema_InteractionModelEventAttributesV0 + from ask_smapi_model.v0.event_schema.interaction_model_event_attributes import InteractionModelEventAttributes as InteractionModelEventAttributes_d09fc769 class InteractionModelUpdate(BaseSchema): @@ -56,7 +56,7 @@ class InteractionModelUpdate(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[EventSchema_InteractionModelEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[InteractionModelEventAttributes_d09fc769]) -> None """'AlexaDevelopmentEvent.InteractionModelUpdate' event represents the status of set/update interaction model request. The update request may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py index d8dc448..6f40747 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/manifest_update.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as SkillEventAttributes_c0873626 class ManifestUpdate(BaseSchema): @@ -56,7 +56,7 @@ class ManifestUpdate(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributes_c0873626]) -> None """'AlexaDevelopmentEvent.ManifestUpdate' event represents the status of the update request on the Manifest. This event is generated when request to create a skill or update an existing skill is completed. The request may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py index 05a7f95..a4c405c 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_certification.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as SkillEventAttributes_c0873626 class SkillCertification(BaseSchema): @@ -56,7 +56,7 @@ class SkillCertification(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributes_c0873626]) -> None """'AlexaDevelopmentEvent.SkillCertification' event represents the status of various validations of `certification workflow`. This step may complete either with `SUCCEEDED` or `FAILED` status. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py index e080e7b..dbbb551 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/skill_publish.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as EventSchema_SkillEventAttributesV0 + from ask_smapi_model.v0.event_schema.skill_event_attributes import SkillEventAttributes as SkillEventAttributes_c0873626 class SkillPublish(BaseSchema): @@ -56,7 +56,7 @@ class SkillPublish(BaseSchema): supports_multiple_types = False def __init__(self, timestamp=None, request_id=None, payload=None): - # type: (Optional[datetime], Optional[str], Optional[EventSchema_SkillEventAttributesV0]) -> None + # type: (Optional[datetime], Optional[str], Optional[SkillEventAttributes_c0873626]) -> None """'AlexaDevelopmentEvent.SkillPublish' event represents the status of publish to live operation. When a developer submits a skill for certification, it goes through `certification workflow` followed by publish to live workflow. This event is generated in publish workflow and may complete either with `SUCCEEDED` or `FAILED` status. If 'SUCCEEDED', users can see and enable latest version of the skill via Alexa Skill Store. :param timestamp: ISO 8601 timestamp for the instant when event was created. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py index f110bae..b3b2907 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_event_attributes.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.request_status import RequestStatus as EventSchema_RequestStatusV0 - from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as EventSchema_ActorAttributesV0 - from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as EventSchema_SubscriptionAttributesV0 - from ask_smapi_model.v0.event_schema.interaction_model_attributes import InteractionModelAttributes as EventSchema_InteractionModelAttributesV0 + from ask_smapi_model.v0.event_schema.request_status import RequestStatus as RequestStatus_8267d453 + from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as ActorAttributes_a2b7ca5d + from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as SubscriptionAttributes_ee385127 + from ask_smapi_model.v0.event_schema.interaction_model_attributes import InteractionModelAttributes as InteractionModelAttributes_179affa4 class InteractionModelEventAttributes(object): @@ -60,7 +60,7 @@ class InteractionModelEventAttributes(object): supports_multiple_types = False def __init__(self, status=None, actor=None, interaction_model=None, subscription=None): - # type: (Optional[EventSchema_RequestStatusV0], Optional[EventSchema_ActorAttributesV0], Optional[EventSchema_InteractionModelAttributesV0], Optional[EventSchema_SubscriptionAttributesV0]) -> None + # type: (Optional[RequestStatus_8267d453], Optional[ActorAttributes_a2b7ca5d], Optional[InteractionModelAttributes_179affa4], Optional[SubscriptionAttributes_ee385127]) -> None """Interaction model event specific attributes. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py index 01db604..6ae0cf1 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_event_attributes.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.event_schema.request_status import RequestStatus as EventSchema_RequestStatusV0 - from ask_smapi_model.v0.event_schema.skill_attributes import SkillAttributes as EventSchema_SkillAttributesV0 - from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as EventSchema_ActorAttributesV0 - from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as EventSchema_SubscriptionAttributesV0 + from ask_smapi_model.v0.event_schema.request_status import RequestStatus as RequestStatus_8267d453 + from ask_smapi_model.v0.event_schema.actor_attributes import ActorAttributes as ActorAttributes_a2b7ca5d + from ask_smapi_model.v0.event_schema.skill_attributes import SkillAttributes as SkillAttributes_416aaddd + from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as SubscriptionAttributes_ee385127 class SkillEventAttributes(object): @@ -60,7 +60,7 @@ class SkillEventAttributes(object): supports_multiple_types = False def __init__(self, status=None, actor=None, skill=None, subscription=None): - # type: (Optional[EventSchema_RequestStatusV0], Optional[EventSchema_ActorAttributesV0], Optional[EventSchema_SkillAttributesV0], Optional[EventSchema_SubscriptionAttributesV0]) -> None + # type: (Optional[RequestStatus_8267d453], Optional[ActorAttributes_a2b7ca5d], Optional[SkillAttributes_416aaddd], Optional[SubscriptionAttributes_ee385127]) -> None """Skill event specific attributes. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v0/links.py b/ask-smapi-model/ask_smapi_model/v0/links.py index a57d85d..b733249 100644 --- a/ask-smapi-model/ask_smapi_model/v0/links.py +++ b/ask-smapi-model/ask_smapi_model/v0/links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.link import Link as V0_LinkV0 + from ask_smapi_model.v0.link import Link as Link_c73169e4 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[V0_LinkV0], Optional[V0_LinkV0]) -> None + # type: (Optional[Link_c73169e4], Optional[Link_c73169e4]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py index fc6dce5..456f146 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_log.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.client import Client as AuditLogs_ClientV1 - from ask_smapi_model.v1.audit_logs.requester import Requester as AuditLogs_RequesterV1 - from ask_smapi_model.v1.audit_logs.resource import Resource as AuditLogs_ResourceV1 - from ask_smapi_model.v1.audit_logs.operation import Operation as AuditLogs_OperationV1 + from ask_smapi_model.v1.audit_logs.operation import Operation as Operation_7cffbee + from ask_smapi_model.v1.audit_logs.resource import Resource as Resource_1b84fbfc + from ask_smapi_model.v1.audit_logs.requester import Requester as Requester_fd4ba9d8 + from ask_smapi_model.v1.audit_logs.client import Client as Client_2d5ce45c class AuditLog(object): @@ -70,7 +70,7 @@ class AuditLog(object): supports_multiple_types = False def __init__(self, x_amzn_request_id=None, timestamp=None, client=None, operation=None, resources=None, requester=None, http_response_code=None): - # type: (Optional[str], Optional[datetime], Optional[AuditLogs_ClientV1], Optional[AuditLogs_OperationV1], Optional[List[AuditLogs_ResourceV1]], Optional[AuditLogs_RequesterV1], Optional[int]) -> None + # type: (Optional[str], Optional[datetime], Optional[Client_2d5ce45c], Optional[Operation_7cffbee], Optional[List[Resource_1b84fbfc]], Optional[Requester_fd4ba9d8], Optional[int]) -> None """ :param x_amzn_request_id: UUID that identifies a specific request. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py index 120c02d..653daae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_request.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.sort_direction import SortDirection as AuditLogs_SortDirectionV1 - from ask_smapi_model.v1.audit_logs.request_filters import RequestFilters as AuditLogs_RequestFiltersV1 - from ask_smapi_model.v1.audit_logs.sort_field import SortField as AuditLogs_SortFieldV1 - from ask_smapi_model.v1.audit_logs.request_pagination_context import RequestPaginationContext as AuditLogs_RequestPaginationContextV1 + from ask_smapi_model.v1.audit_logs.sort_direction import SortDirection as SortDirection_d727b4e3 + from ask_smapi_model.v1.audit_logs.request_pagination_context import RequestPaginationContext as RequestPaginationContext_6159de28 + from ask_smapi_model.v1.audit_logs.request_filters import RequestFilters as RequestFilters_c18c9d61 + from ask_smapi_model.v1.audit_logs.sort_field import SortField as SortField_9dd89c99 class AuditLogsRequest(object): @@ -62,7 +62,7 @@ class AuditLogsRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, request_filters=None, sort_direction=None, sort_field=None, pagination_context=None): - # type: (Optional[str], Optional[AuditLogs_RequestFiltersV1], Optional[AuditLogs_SortDirectionV1], Optional[AuditLogs_SortFieldV1], Optional[AuditLogs_RequestPaginationContextV1]) -> None + # type: (Optional[str], Optional[RequestFilters_c18c9d61], Optional[SortDirection_d727b4e3], Optional[SortField_9dd89c99], Optional[RequestPaginationContext_6159de28]) -> None """ :param vendor_id: Vendor Id. See developer.amazon.com/mycid.html. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py index 1f271d3..6153808 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.audit_log import AuditLog as AuditLogs_AuditLogV1 - from ask_smapi_model.v1.audit_logs.response_pagination_context import ResponsePaginationContext as AuditLogs_ResponsePaginationContextV1 + from ask_smapi_model.v1.audit_logs.response_pagination_context import ResponsePaginationContext as ResponsePaginationContext_ed91c19c + from ask_smapi_model.v1.audit_logs.audit_log import AuditLog as AuditLog_c55d4ea9 class AuditLogsResponse(object): @@ -50,7 +50,7 @@ class AuditLogsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, audit_logs=None): - # type: (Optional[AuditLogs_ResponsePaginationContextV1], Optional[List[AuditLogs_AuditLogV1]]) -> None + # type: (Optional[ResponsePaginationContext_ed91c19c], Optional[List[AuditLog_c55d4ea9]]) -> None """Response to the Query Audit Logs API. It contains the collection of audit logs for the vendor, nextToken and other metadata related to the search query. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py index c214e6f..75d650d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.client_filter import ClientFilter as AuditLogs_ClientFilterV1 - from ask_smapi_model.v1.audit_logs.resource_filter import ResourceFilter as AuditLogs_ResourceFilterV1 - from ask_smapi_model.v1.audit_logs.requester_filter import RequesterFilter as AuditLogs_RequesterFilterV1 - from ask_smapi_model.v1.audit_logs.operation_filter import OperationFilter as AuditLogs_OperationFilterV1 + from ask_smapi_model.v1.audit_logs.operation_filter import OperationFilter as OperationFilter_65f5ab53 + from ask_smapi_model.v1.audit_logs.client_filter import ClientFilter as ClientFilter_f8370157 + from ask_smapi_model.v1.audit_logs.requester_filter import RequesterFilter as RequesterFilter_22457ff3 + from ask_smapi_model.v1.audit_logs.resource_filter import ResourceFilter as ResourceFilter_ca75dd class RequestFilters(object): @@ -72,7 +72,7 @@ class RequestFilters(object): supports_multiple_types = False def __init__(self, clients=None, operations=None, resources=None, requesters=None, start_time=None, end_time=None, http_response_codes=None): - # type: (Optional[List[AuditLogs_ClientFilterV1]], Optional[List[AuditLogs_OperationFilterV1]], Optional[List[AuditLogs_ResourceFilterV1]], Optional[List[AuditLogs_RequesterFilterV1]], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None + # type: (Optional[List[ClientFilter_f8370157]], Optional[List[OperationFilter_65f5ab53]], Optional[List[ResourceFilter_ca75dd]], Optional[List[RequesterFilter_22457ff3]], Optional[datetime], Optional[datetime], Optional[List[object]]) -> None """Request Filters for filtering audit logs. :param clients: List of Client IDs for filtering. diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py index fdc47b3..afc8d92 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/resource_filter.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.audit_logs.resource_type_enum import ResourceTypeEnum as AuditLogs_ResourceTypeEnumV1 + from ask_smapi_model.v1.audit_logs.resource_type_enum import ResourceTypeEnum as ResourceTypeEnum_fbeff4f0 class ResourceFilter(object): @@ -49,7 +49,7 @@ class ResourceFilter(object): supports_multiple_types = False def __init__(self, id=None, object_type=None): - # type: (Optional[str], Optional[AuditLogs_ResourceTypeEnumV1]) -> None + # type: (Optional[str], Optional[ResourceTypeEnum_fbeff4f0]) -> None """Resource that the developer operated on. Both do not need to be provided. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py index daa19a8..cabf2c4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v1/bad_request_error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.error import Error as V1_ErrorV1 + from ask_smapi_model.v1.error import Error as Error_fbe913d9 class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[V1_ErrorV1]]) -> None + # type: (Optional[str], Optional[List[Error_fbe913d9]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py index 626a30e..67411ef 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.presigned_upload_part_items import PresignedUploadPartItems as Catalog_PresignedUploadPartItemsV1 + from ask_smapi_model.v1.catalog.presigned_upload_part_items import PresignedUploadPartItems as PresignedUploadPartItems_81cf2d27 class CreateContentUploadUrlResponse(object): @@ -47,7 +47,7 @@ class CreateContentUploadUrlResponse(object): supports_multiple_types = False def __init__(self, url_id=None, pre_signed_upload_parts=None): - # type: (Optional[str], Optional[List[Catalog_PresignedUploadPartItemsV1]]) -> None + # type: (Optional[str], Optional[List[PresignedUploadPartItems_81cf2d27]]) -> None """ :param url_id: Unique identifier for collection of generated urls. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py index d0d9cea..8e7ee27 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/content_upload_file_summary.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.file_upload_status import FileUploadStatus as Upload_FileUploadStatusV1 + from ask_smapi_model.v1.catalog.upload.file_upload_status import FileUploadStatus as FileUploadStatus_e5a3f0c1 class ContentUploadFileSummary(object): @@ -51,7 +51,7 @@ class ContentUploadFileSummary(object): supports_multiple_types = False def __init__(self, download_url=None, expires_at=None, status=None): - # type: (Optional[str], Optional[datetime], Optional[Upload_FileUploadStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[FileUploadStatus_e5a3f0c1]) -> None """ :param download_url: If the file is available for download, downloadUrl can be used to download the file. diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py index a71a189..29bca89 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/get_content_upload_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.upload_ingestion_step import UploadIngestionStep as Upload_UploadIngestionStepV1 - from ask_smapi_model.v1.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as Upload_ContentUploadFileSummaryV1 - from ask_smapi_model.v1.catalog.upload.upload_status import UploadStatus as Upload_UploadStatusV1 + from ask_smapi_model.v1.catalog.upload.upload_ingestion_step import UploadIngestionStep as UploadIngestionStep_ba905697 + from ask_smapi_model.v1.catalog.upload.upload_status import UploadStatus as UploadStatus_f27ab940 + from ask_smapi_model.v1.catalog.upload.content_upload_file_summary import ContentUploadFileSummary as ContentUploadFileSummary_69b0be32 class GetContentUploadResponse(object): @@ -69,7 +69,7 @@ class GetContentUploadResponse(object): supports_multiple_types = False def __init__(self, id=None, catalog_id=None, status=None, created_date=None, last_updated_date=None, file=None, ingestion_steps=None): - # type: (Optional[str], Optional[str], Optional[Upload_UploadStatusV1], Optional[datetime], Optional[datetime], Optional[Upload_ContentUploadFileSummaryV1], Optional[List[Upload_UploadIngestionStepV1]]) -> None + # type: (Optional[str], Optional[str], Optional[UploadStatus_f27ab940], Optional[datetime], Optional[datetime], Optional[ContentUploadFileSummary_69b0be32], Optional[List[UploadIngestionStep_ba905697]]) -> None """ :param id: Unique identifier of the upload diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py index e99ce85..e277176 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/pre_signed_url.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.pre_signed_url_item import PreSignedUrlItem as Upload_PreSignedUrlItemV1 + from ask_smapi_model.v1.catalog.upload.pre_signed_url_item import PreSignedUrlItem as PreSignedUrlItem_843825d6 class PreSignedUrl(CatalogUploadBase): @@ -50,7 +50,7 @@ class PreSignedUrl(CatalogUploadBase): supports_multiple_types = False def __init__(self, url_id=None, part_e_tags=None): - # type: (Optional[str], Optional[List[Upload_PreSignedUrlItemV1]]) -> None + # type: (Optional[str], Optional[List[PreSignedUrlItem_843825d6]]) -> None """Request body for self-hosted catalog uploads :param url_id: Unique identifier for urls diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py index 73f8e3b..1d3ebf6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/upload_ingestion_step.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.catalog.upload.ingestion_step_name import IngestionStepName as Upload_IngestionStepNameV1 - from ask_smapi_model.v1.error import Error as V1_ErrorV1 - from ask_smapi_model.v1.catalog.upload.ingestion_status import IngestionStatus as Upload_IngestionStatusV1 + from ask_smapi_model.v1.catalog.upload.ingestion_status import IngestionStatus as IngestionStatus_2a9abce4 + from ask_smapi_model.v1.catalog.upload.ingestion_step_name import IngestionStepName as IngestionStepName_68c61441 + from ask_smapi_model.v1.error import Error as Error_fbe913d9 class UploadIngestionStep(object): @@ -59,7 +59,7 @@ class UploadIngestionStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, log_url=None, violations=None): - # type: (Optional[Upload_IngestionStepNameV1], Optional[Upload_IngestionStatusV1], Optional[str], Optional[List[V1_ErrorV1]]) -> None + # type: (Optional[IngestionStepName_68c61441], Optional[IngestionStatus_2a9abce4], Optional[str], Optional[List[Error_fbe913d9]]) -> None """Represents a single step in the multi-step ingestion process of a new upload. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 7bbe5cb..6336455 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -24,6 +24,7 @@ from .stage import Stage from .summary_price_listing import SummaryPriceListing from .localized_publishing_information import LocalizedPublishingInformation +from .promotable_state import PromotableState from .in_skill_product_definition import InSkillProductDefinition from .create_in_skill_product_request import CreateInSkillProductRequest from .subscription_information import SubscriptionInformation diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py index 15de8f9..c069ad4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/associated_skill_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b class AssociatedSkillResponse(object): @@ -57,7 +57,7 @@ class AssociatedSkillResponse(object): supports_multiple_types = False def __init__(self, associated_skill_ids=None, links=None, is_truncated=None, next_token=None): - # type: (Optional[List[object]], Optional[V1_LinksV1], Optional[bool], Optional[str]) -> None + # type: (Optional[List[object]], Optional[Links_bc43467b], Optional[bool], Optional[str]) -> None """In-skill product skill association details. :param associated_skill_ids: List of skill IDs that correspond to the skills associated with the in-skill product. The associations are stage specific. A live association is created through successful skill certification. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py b/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py index b61efa2..2490a79 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/create_in_skill_product_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as InSkillProductDefinition_20ce10ca class CreateInSkillProductRequest(object): @@ -47,7 +47,7 @@ class CreateInSkillProductRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, in_skill_product_definition=None): - # type: (Optional[str], Optional[Isp_InSkillProductDefinitionV1]) -> None + # type: (Optional[str], Optional[InSkillProductDefinition_20ce10ca]) -> None """ :param vendor_id: ID of the vendor owning the in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py index 7328ec8..576182c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition.py @@ -23,11 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as Isp_PurchasableStateV1 - from ask_smapi_model.v1.isp.privacy_and_compliance import PrivacyAndCompliance as Isp_PrivacyAndComplianceV1 - from ask_smapi_model.v1.isp.subscription_information import SubscriptionInformation as Isp_SubscriptionInformationV1 - from ask_smapi_model.v1.isp.publishing_information import PublishingInformation as Isp_PublishingInformationV1 - from ask_smapi_model.v1.isp.product_type import ProductType as Isp_ProductTypeV1 + from ask_smapi_model.v1.isp.product_type import ProductType as ProductType_bf0e7936 + from ask_smapi_model.v1.isp.promotable_state import PromotableState as PromotableState_25399706 + from ask_smapi_model.v1.isp.publishing_information import PublishingInformation as PublishingInformation_e7caf3fc + from ask_smapi_model.v1.isp.privacy_and_compliance import PrivacyAndCompliance as PrivacyAndCompliance_bf320b8d + from ask_smapi_model.v1.isp.subscription_information import SubscriptionInformation as SubscriptionInformation_f76debbc + from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as PurchasableState_c58a6ca2 class InSkillProductDefinition(object): @@ -43,6 +44,8 @@ class InSkillProductDefinition(object): :type reference_name: (optional) str :param purchasable_state: :type purchasable_state: (optional) ask_smapi_model.v1.isp.purchasable_state.PurchasableState + :param promotable_state: + :type promotable_state: (optional) ask_smapi_model.v1.isp.promotable_state.PromotableState :param subscription_information: :type subscription_information: (optional) ask_smapi_model.v1.isp.subscription_information.SubscriptionInformation :param publishing_information: @@ -58,6 +61,7 @@ class InSkillProductDefinition(object): 'object_type': 'ask_smapi_model.v1.isp.product_type.ProductType', 'reference_name': 'str', 'purchasable_state': 'ask_smapi_model.v1.isp.purchasable_state.PurchasableState', + 'promotable_state': 'ask_smapi_model.v1.isp.promotable_state.PromotableState', 'subscription_information': 'ask_smapi_model.v1.isp.subscription_information.SubscriptionInformation', 'publishing_information': 'ask_smapi_model.v1.isp.publishing_information.PublishingInformation', 'privacy_and_compliance': 'ask_smapi_model.v1.isp.privacy_and_compliance.PrivacyAndCompliance', @@ -69,6 +73,7 @@ class InSkillProductDefinition(object): 'object_type': 'type', 'reference_name': 'referenceName', 'purchasable_state': 'purchasableState', + 'promotable_state': 'promotableState', 'subscription_information': 'subscriptionInformation', 'publishing_information': 'publishingInformation', 'privacy_and_compliance': 'privacyAndCompliance', @@ -76,8 +81,8 @@ class InSkillProductDefinition(object): } # type: Dict supports_multiple_types = False - def __init__(self, version=None, object_type=None, reference_name=None, purchasable_state=None, subscription_information=None, publishing_information=None, privacy_and_compliance=None, testing_instructions=None): - # type: (Optional[str], Optional[Isp_ProductTypeV1], Optional[str], Optional[Isp_PurchasableStateV1], Optional[Isp_SubscriptionInformationV1], Optional[Isp_PublishingInformationV1], Optional[Isp_PrivacyAndComplianceV1], Optional[str]) -> None + def __init__(self, version=None, object_type=None, reference_name=None, purchasable_state=None, promotable_state=None, subscription_information=None, publishing_information=None, privacy_and_compliance=None, testing_instructions=None): + # type: (Optional[str], Optional[ProductType_bf0e7936], Optional[str], Optional[PurchasableState_c58a6ca2], Optional[PromotableState_25399706], Optional[SubscriptionInformation_f76debbc], Optional[PublishingInformation_e7caf3fc], Optional[PrivacyAndCompliance_bf320b8d], Optional[str]) -> None """Defines the structure for an in-skill product. :param version: Version of in-skill product definition. @@ -88,6 +93,8 @@ def __init__(self, version=None, object_type=None, reference_name=None, purchasa :type reference_name: (optional) str :param purchasable_state: :type purchasable_state: (optional) ask_smapi_model.v1.isp.purchasable_state.PurchasableState + :param promotable_state: + :type promotable_state: (optional) ask_smapi_model.v1.isp.promotable_state.PromotableState :param subscription_information: :type subscription_information: (optional) ask_smapi_model.v1.isp.subscription_information.SubscriptionInformation :param publishing_information: @@ -103,6 +110,7 @@ def __init__(self, version=None, object_type=None, reference_name=None, purchasa self.object_type = object_type self.reference_name = reference_name self.purchasable_state = purchasable_state + self.promotable_state = promotable_state self.subscription_information = subscription_information self.publishing_information = publishing_information self.privacy_and_compliance = privacy_and_compliance diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py index 924b07d..8929d2f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_definition_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as InSkillProductDefinition_20ce10ca class InSkillProductDefinitionResponse(object): @@ -45,7 +45,7 @@ class InSkillProductDefinitionResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_definition=None): - # type: (Optional[Isp_InSkillProductDefinitionV1]) -> None + # type: (Optional[InSkillProductDefinition_20ce10ca]) -> None """Defines In-skill product response. :param in_skill_product_definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py index a1a02f0..499c796 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py @@ -23,13 +23,14 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.stage import Stage as Isp_StageV1 - from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as Isp_PurchasableStateV1 - from ask_smapi_model.v1.isp.editable_state import EditableState as Isp_EditableStateV1 - from ask_smapi_model.v1.isp.status import Status as Isp_StatusV1 - from ask_smapi_model.v1.isp.summary_marketplace_pricing import SummaryMarketplacePricing as Isp_SummaryMarketplacePricingV1 - from ask_smapi_model.v1.isp.isp_summary_links import IspSummaryLinks as Isp_IspSummaryLinksV1 - from ask_smapi_model.v1.isp.product_type import ProductType as Isp_ProductTypeV1 + from ask_smapi_model.v1.isp.product_type import ProductType as ProductType_bf0e7936 + from ask_smapi_model.v1.isp.editable_state import EditableState as EditableState_1fb842e6 + from ask_smapi_model.v1.isp.promotable_state import PromotableState as PromotableState_25399706 + from ask_smapi_model.v1.isp.status import Status as Status_cbf30a3d + from ask_smapi_model.v1.isp.stage import Stage as Stage_70f2185d + from ask_smapi_model.v1.isp.isp_summary_links import IspSummaryLinks as IspSummaryLinks_84051861 + from ask_smapi_model.v1.isp.summary_marketplace_pricing import SummaryMarketplacePricing as SummaryMarketplacePricing_d0d9d0db + from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as PurchasableState_c58a6ca2 class InSkillProductSummary(object): @@ -55,6 +56,8 @@ class InSkillProductSummary(object): :type editable_state: (optional) ask_smapi_model.v1.isp.editable_state.EditableState :param purchasable_state: :type purchasable_state: (optional) ask_smapi_model.v1.isp.purchasable_state.PurchasableState + :param promotable_state: + :type promotable_state: (optional) ask_smapi_model.v1.isp.promotable_state.PromotableState :param links: :type links: (optional) ask_smapi_model.v1.isp.isp_summary_links.IspSummaryLinks :param pricing: In-skill product pricing information. @@ -71,6 +74,7 @@ class InSkillProductSummary(object): 'stage': 'ask_smapi_model.v1.isp.stage.Stage', 'editable_state': 'ask_smapi_model.v1.isp.editable_state.EditableState', 'purchasable_state': 'ask_smapi_model.v1.isp.purchasable_state.PurchasableState', + 'promotable_state': 'ask_smapi_model.v1.isp.promotable_state.PromotableState', 'links': 'ask_smapi_model.v1.isp.isp_summary_links.IspSummaryLinks', 'pricing': 'dict(str, ask_smapi_model.v1.isp.summary_marketplace_pricing.SummaryMarketplacePricing)' } # type: Dict @@ -85,13 +89,14 @@ class InSkillProductSummary(object): 'stage': 'stage', 'editable_state': 'editableState', 'purchasable_state': 'purchasableState', + 'promotable_state': 'promotableState', 'links': '_links', 'pricing': 'pricing' } # type: Dict supports_multiple_types = False - def __init__(self, object_type=None, product_id=None, reference_name=None, last_updated=None, name_by_locale=None, status=None, stage=None, editable_state=None, purchasable_state=None, links=None, pricing=None): - # type: (Optional[Isp_ProductTypeV1], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[Isp_StatusV1], Optional[Isp_StageV1], Optional[Isp_EditableStateV1], Optional[Isp_PurchasableStateV1], Optional[Isp_IspSummaryLinksV1], Optional[Dict[str, Isp_SummaryMarketplacePricingV1]]) -> None + def __init__(self, object_type=None, product_id=None, reference_name=None, last_updated=None, name_by_locale=None, status=None, stage=None, editable_state=None, purchasable_state=None, promotable_state=None, links=None, pricing=None): + # type: (Optional[ProductType_bf0e7936], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[Status_cbf30a3d], Optional[Stage_70f2185d], Optional[EditableState_1fb842e6], Optional[PurchasableState_c58a6ca2], Optional[PromotableState_25399706], Optional[IspSummaryLinks_84051861], Optional[Dict[str, SummaryMarketplacePricing_d0d9d0db]]) -> None """Information about the in-skill product that is not editable. :param object_type: @@ -112,6 +117,8 @@ def __init__(self, object_type=None, product_id=None, reference_name=None, last_ :type editable_state: (optional) ask_smapi_model.v1.isp.editable_state.EditableState :param purchasable_state: :type purchasable_state: (optional) ask_smapi_model.v1.isp.purchasable_state.PurchasableState + :param promotable_state: + :type promotable_state: (optional) ask_smapi_model.v1.isp.promotable_state.PromotableState :param links: :type links: (optional) ask_smapi_model.v1.isp.isp_summary_links.IspSummaryLinks :param pricing: In-skill product pricing information. @@ -128,6 +135,7 @@ def __init__(self, object_type=None, product_id=None, reference_name=None, last_ self.stage = stage self.editable_state = editable_state self.purchasable_state = purchasable_state + self.promotable_state = promotable_state self.links = links self.pricing = pricing diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py index bdf15ec..fb39790 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as Isp_InSkillProductSummaryV1 + from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as InSkillProductSummary_295940f4 class InSkillProductSummaryResponse(object): @@ -45,7 +45,7 @@ class InSkillProductSummaryResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_summary=None): - # type: (Optional[Isp_InSkillProductSummaryV1]) -> None + # type: (Optional[InSkillProductSummary_295940f4]) -> None """In-skill product summary response. :param in_skill_product_summary: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py b/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py index 353b1ca..1d8576e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/isp_summary_links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import Link as V1_LinkV1 + from ask_smapi_model.v1.link import Link as Link_5c161ca5 class IspSummaryLinks(object): @@ -43,7 +43,7 @@ class IspSummaryLinks(object): supports_multiple_types = False def __init__(self, object_self=None): - # type: (Optional[V1_LinkV1]) -> None + # type: (Optional[Link_5c161ca5]) -> None """ :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py index 5a71afd..e6ccb8c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as Isp_InSkillProductSummaryV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.isp.in_skill_product_summary import InSkillProductSummary as InSkillProductSummary_295940f4 class ListInSkillProduct(object): @@ -58,7 +58,7 @@ class ListInSkillProduct(object): supports_multiple_types = False def __init__(self, links=None, in_skill_products=None, is_truncated=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[Isp_InSkillProductSummaryV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[InSkillProductSummary_295940f4]], Optional[bool], Optional[str]) -> None """List of in-skill products. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py index 34a28e7..7e072ac 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/list_in_skill_product_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.list_in_skill_product import ListInSkillProduct as Isp_ListInSkillProductV1 + from ask_smapi_model.v1.isp.list_in_skill_product import ListInSkillProduct as ListInSkillProduct_8bb28838 class ListInSkillProductResponse(object): @@ -45,7 +45,7 @@ class ListInSkillProductResponse(object): supports_multiple_types = False def __init__(self, in_skill_product_summary_list=None): - # type: (Optional[Isp_ListInSkillProductV1]) -> None + # type: (Optional[ListInSkillProduct_8bb28838]) -> None """List of in-skill product response. :param in_skill_product_summary_list: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py index 954267c..c650583 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/localized_publishing_information.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.custom_product_prompts import CustomProductPrompts as Isp_CustomProductPromptsV1 + from ask_smapi_model.v1.isp.custom_product_prompts import CustomProductPrompts as CustomProductPrompts_f71d1c5d class LocalizedPublishingInformation(object): @@ -73,7 +73,7 @@ class LocalizedPublishingInformation(object): supports_multiple_types = False def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary=None, description=None, example_phrases=None, keywords=None, custom_product_prompts=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]], Optional[Isp_CustomProductPromptsV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]], Optional[CustomProductPrompts_f71d1c5d]) -> None """Defines the structure for locale specific publishing information in the in-skill product definition. :param name: Name of the in-skill product that is heard by customers and displayed in the Alexa app. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py b/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py index bc865a8..cea56f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/marketplace_pricing.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.price_listing import PriceListing as Isp_PriceListingV1 + from ask_smapi_model.v1.isp.price_listing import PriceListing as PriceListing_37c6f12c class MarketplacePricing(object): @@ -49,7 +49,7 @@ class MarketplacePricing(object): supports_multiple_types = False def __init__(self, release_date=None, default_price_listing=None): - # type: (Optional[datetime], Optional[Isp_PriceListingV1]) -> None + # type: (Optional[datetime], Optional[PriceListing_37c6f12c]) -> None """In-skill product pricing information for a marketplace. :param release_date: Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py b/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py index 34b7093..fec865f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/price_listing.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.currency import Currency as Isp_CurrencyV1 + from ask_smapi_model.v1.isp.currency import Currency as Currency_b5ead69d class PriceListing(object): @@ -49,7 +49,7 @@ class PriceListing(object): supports_multiple_types = False def __init__(self, price=None, currency=None): - # type: (Optional[float], Optional[Isp_CurrencyV1]) -> None + # type: (Optional[float], Optional[Currency_b5ead69d]) -> None """Price listing information for in-skill product. :param price: Defines the price of an in-skill product. The list price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py index 3cc4edc..83989b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/privacy_and_compliance.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.localized_privacy_and_compliance import LocalizedPrivacyAndCompliance as Isp_LocalizedPrivacyAndComplianceV1 + from ask_smapi_model.v1.isp.localized_privacy_and_compliance import LocalizedPrivacyAndCompliance as LocalizedPrivacyAndCompliance_df1dc646 class PrivacyAndCompliance(object): @@ -45,7 +45,7 @@ class PrivacyAndCompliance(object): supports_multiple_types = False def __init__(self, locales=None): - # type: (Optional[Dict[str, Isp_LocalizedPrivacyAndComplianceV1]]) -> None + # type: (Optional[Dict[str, LocalizedPrivacyAndCompliance_df1dc646]]) -> None """Defines the structure for privacy and compliance. :param locales: Defines the structure for locale specific privacy and compliance. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/promotable_state.py b/ask-smapi-model/ask_smapi_model/v1/isp/promotable_state.py new file mode 100644 index 0000000..d99a096 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/isp/promotable_state.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PromotableState(Enum): + """ + Promote this ISP on Amazon channels such as Amazon.com. Enabling this setting will allow customers to view ISP detail pages and purchase the ISP on Amazon.com. + + + + Allowed enum values: [IN_SKILL_ONLY, ALL_AMAZON_CHANNELS] + """ + IN_SKILL_ONLY = "IN_SKILL_ONLY" + ALL_AMAZON_CHANNELS = "ALL_AMAZON_CHANNELS" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PromotableState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py index 1efce68..5ccaf80 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/publishing_information.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.localized_publishing_information import LocalizedPublishingInformation as Isp_LocalizedPublishingInformationV1 - from ask_smapi_model.v1.isp.distribution_countries import DistributionCountries as Isp_DistributionCountriesV1 - from ask_smapi_model.v1.isp.marketplace_pricing import MarketplacePricing as Isp_MarketplacePricingV1 - from ask_smapi_model.v1.isp.tax_information import TaxInformation as Isp_TaxInformationV1 + from ask_smapi_model.v1.isp.distribution_countries import DistributionCountries as DistributionCountries_9441646c + from ask_smapi_model.v1.isp.tax_information import TaxInformation as TaxInformation_d7a91e8 + from ask_smapi_model.v1.isp.marketplace_pricing import MarketplacePricing as MarketplacePricing_bbe8aae8 + from ask_smapi_model.v1.isp.localized_publishing_information import LocalizedPublishingInformation as LocalizedPublishingInformation_4fbbbb97 class PublishingInformation(object): @@ -60,7 +60,7 @@ class PublishingInformation(object): supports_multiple_types = False def __init__(self, locales=None, distribution_countries=None, pricing=None, tax_information=None): - # type: (Optional[Dict[str, Isp_LocalizedPublishingInformationV1]], Optional[List[Isp_DistributionCountriesV1]], Optional[Dict[str, Isp_MarketplacePricingV1]], Optional[Isp_TaxInformationV1]) -> None + # type: (Optional[Dict[str, LocalizedPublishingInformation_4fbbbb97]], Optional[List[DistributionCountries_9441646c]], Optional[Dict[str, MarketplacePricing_bbe8aae8]], Optional[TaxInformation_d7a91e8]) -> None """Defines the structure for in-skill product publishing information. :param locales: Defines the structure for locale specific publishing information for an in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py index 11be446..8ea527b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/subscription_information.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.subscription_payment_frequency import SubscriptionPaymentFrequency as Isp_SubscriptionPaymentFrequencyV1 + from ask_smapi_model.v1.isp.subscription_payment_frequency import SubscriptionPaymentFrequency as SubscriptionPaymentFrequency_35249ecf class SubscriptionInformation(object): @@ -49,7 +49,7 @@ class SubscriptionInformation(object): supports_multiple_types = False def __init__(self, subscription_payment_frequency=None, subscription_trial_period_days=None): - # type: (Optional[Isp_SubscriptionPaymentFrequencyV1], Optional[int]) -> None + # type: (Optional[SubscriptionPaymentFrequency_35249ecf], Optional[int]) -> None """Defines the structure for in-skill product subscription information. :param subscription_payment_frequency: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py b/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py index 635f324..f5cd8a3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/summary_marketplace_pricing.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.summary_price_listing import SummaryPriceListing as Isp_SummaryPriceListingV1 + from ask_smapi_model.v1.isp.summary_price_listing import SummaryPriceListing as SummaryPriceListing_dd08d917 class SummaryMarketplacePricing(object): @@ -49,7 +49,7 @@ class SummaryMarketplacePricing(object): supports_multiple_types = False def __init__(self, release_date=None, default_price_listing=None): - # type: (Optional[datetime], Optional[Isp_SummaryPriceListingV1]) -> None + # type: (Optional[datetime], Optional[SummaryPriceListing_dd08d917]) -> None """Localized in-skill product pricing information. :param release_date: Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py b/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py index de4b619..9c49caa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/summary_price_listing.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.currency import Currency as Isp_CurrencyV1 + from ask_smapi_model.v1.isp.currency import Currency as Currency_b5ead69d class SummaryPriceListing(object): @@ -53,7 +53,7 @@ class SummaryPriceListing(object): supports_multiple_types = False def __init__(self, price=None, prime_member_price=None, currency=None): - # type: (Optional[float], Optional[float], Optional[Isp_CurrencyV1]) -> None + # type: (Optional[float], Optional[float], Optional[Currency_b5ead69d]) -> None """Price listing information for in-skill product. :param price: The price of an in-skill product. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py index 0035d88..91214b1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/tax_information.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.tax_information_category import TaxInformationCategory as Isp_TaxInformationCategoryV1 + from ask_smapi_model.v1.isp.tax_information_category import TaxInformationCategory as TaxInformationCategory_c38bfef7 class TaxInformation(object): @@ -45,7 +45,7 @@ class TaxInformation(object): supports_multiple_types = False def __init__(self, category=None): - # type: (Optional[Isp_TaxInformationCategoryV1]) -> None + # type: (Optional[TaxInformationCategory_c38bfef7]) -> None """Defines the structure for in-skill product tax information. :param category: diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py b/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py index 0939a9a..a0860e6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/update_in_skill_product_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as Isp_InSkillProductDefinitionV1 + from ask_smapi_model.v1.isp.in_skill_product_definition import InSkillProductDefinition as InSkillProductDefinition_20ce10ca class UpdateInSkillProductRequest(object): @@ -43,7 +43,7 @@ class UpdateInSkillProductRequest(object): supports_multiple_types = False def __init__(self, in_skill_product_definition=None): - # type: (Optional[Isp_InSkillProductDefinitionV1]) -> None + # type: (Optional[InSkillProductDefinition_20ce10ca]) -> None """ :param in_skill_product_definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/links.py b/ask-smapi-model/ask_smapi_model/v1/links.py index e59d67f..5cab3ab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import Link as V1_LinkV1 + from ask_smapi_model.v1.link import Link as Link_5c161ca5 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None + # type: (Optional[Link_5c161ca5], Optional[Link_5c161ca5]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py index b8b2b15..0bfad2b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_platform_authorization_url.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.platform_type import PlatformType as AccountLinking_PlatformTypeV1 + from ask_smapi_model.v1.skill.account_linking.platform_type import PlatformType as PlatformType_d133fbf3 class AccountLinkingPlatformAuthorizationUrl(object): @@ -49,7 +49,7 @@ class AccountLinkingPlatformAuthorizationUrl(object): supports_multiple_types = False def __init__(self, platform_type=None, platform_authorization_url=None): - # type: (Optional[AccountLinking_PlatformTypeV1], Optional[str]) -> None + # type: (Optional[PlatformType_d133fbf3], Optional[str]) -> None """A key-value pair object that contains the OAuth2 authorization url to initiate the skill account linking process. :param platform_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py index 8108d43..fee1ecb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_request_payload import AccountLinkingRequestPayload as AccountLinking_AccountLinkingRequestPayloadV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_request_payload import AccountLinkingRequestPayload as AccountLinkingRequestPayload_6a6fa471 class AccountLinkingRequest(object): @@ -45,7 +45,7 @@ class AccountLinkingRequest(object): supports_multiple_types = False def __init__(self, account_linking_request=None): - # type: (Optional[AccountLinking_AccountLinkingRequestPayloadV1]) -> None + # type: (Optional[AccountLinkingRequestPayload_6a6fa471]) -> None """The request body of AccountLinkingRequest. :param account_linking_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py index f47f3c6..fe725f8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinking_AccountLinkingTypeV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinking_AccountLinkingPlatformAuthorizationUrlV1 - from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccountLinking_AccessTokenSchemeTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinkingType_bb3d8e2 + from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccessTokenSchemeType_e9bad6d7 + from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinkingPlatformAuthorizationUrl_2972ebae class AccountLinkingRequestPayload(object): @@ -95,7 +95,7 @@ class AccountLinkingRequestPayload(object): supports_multiple_types = False def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None, skip_on_enablement=None): - # type: (Optional[AccountLinking_AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccountLinking_AccessTokenSchemeTypeV1], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinking_AccountLinkingPlatformAuthorizationUrlV1]], Optional[bool]) -> None + # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]], Optional[bool]) -> None """The payload for creating the account linking partner. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py index 1bdc395..6211cf3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinking_AccountLinkingTypeV1 - from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinking_AccountLinkingPlatformAuthorizationUrlV1 - from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccountLinking_AccessTokenSchemeTypeV1 + from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinkingType_bb3d8e2 + from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccessTokenSchemeType_e9bad6d7 + from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinkingPlatformAuthorizationUrl_2972ebae class AccountLinkingResponse(object): @@ -83,7 +83,7 @@ class AccountLinkingResponse(object): supports_multiple_types = False def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, access_token_scheme=None, default_token_expiration_in_seconds=None, redirect_urls=None, authorization_urls_by_platform=None): - # type: (Optional[AccountLinking_AccountLinkingTypeV1], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccountLinking_AccessTokenSchemeTypeV1], Optional[int], Optional[List[object]], Optional[List[AccountLinking_AccountLinkingPlatformAuthorizationUrlV1]]) -> None + # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]]) -> None """The account linking information of a skill. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py index dc15977..a6d64f3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as AlexaHosted_HostedSkillRuntimeV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as HostedSkillRuntime_6f3a4c25 class AlexaHostedConfig(object): @@ -45,7 +45,7 @@ class AlexaHostedConfig(object): supports_multiple_types = False def __init__(self, runtime=None): - # type: (Optional[AlexaHosted_HostedSkillRuntimeV1]) -> None + # type: (Optional[HostedSkillRuntime_6f3a4c25]) -> None """Alexa hosted skill create configuration :param runtime: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py index 3fda0e8..a7fb5b4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_info.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as AlexaHosted_HostedSkillRuntimeV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as AlexaHosted_HostedSkillRepositoryInfoV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as HostedSkillRuntime_6f3a4c25 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as HostedSkillRepositoryInfo_957f5416 class HostedSkillInfo(object): @@ -48,7 +48,7 @@ class HostedSkillInfo(object): supports_multiple_types = False def __init__(self, repository=None, runtime=None): - # type: (Optional[AlexaHosted_HostedSkillRepositoryInfoV1], Optional[AlexaHosted_HostedSkillRuntimeV1]) -> None + # type: (Optional[HostedSkillRepositoryInfo_957f5416], Optional[HostedSkillRuntime_6f3a4c25]) -> None """ :param repository: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py index 65f30bc..f7570d3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_metadata.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_info import HostedSkillInfo as AlexaHosted_HostedSkillInfoV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_info import HostedSkillInfo as HostedSkillInfo_de0ff179 class HostedSkillMetadata(object): @@ -45,7 +45,7 @@ class HostedSkillMetadata(object): supports_multiple_types = False def __init__(self, alexa_hosted=None): - # type: (Optional[AlexaHosted_HostedSkillInfoV1]) -> None + # type: (Optional[HostedSkillInfo_de0ff179]) -> None """Alexa Hosted skill's metadata :param alexa_hosted: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py index ce0be53..0cae179 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_permission.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_status import HostedSkillPermissionStatus as AlexaHosted_HostedSkillPermissionStatusV1 - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_type import HostedSkillPermissionType as AlexaHosted_HostedSkillPermissionTypeV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_type import HostedSkillPermissionType as HostedSkillPermissionType_97df770e + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission_status import HostedSkillPermissionStatus as HostedSkillPermissionStatus_52fd27be class HostedSkillPermission(object): @@ -54,7 +54,7 @@ class HostedSkillPermission(object): supports_multiple_types = False def __init__(self, permission=None, status=None, action_url=None): - # type: (Optional[AlexaHosted_HostedSkillPermissionTypeV1], Optional[AlexaHosted_HostedSkillPermissionStatusV1], Optional[str]) -> None + # type: (Optional[HostedSkillPermissionType_97df770e], Optional[HostedSkillPermissionStatus_52fd27be], Optional[str]) -> None """Customer's permission about Hosted skill features. :param permission: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py index 2fd5445..f9e945f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_list.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials import HostedSkillRepositoryCredentials as AlexaHosted_HostedSkillRepositoryCredentialsV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials import HostedSkillRepositoryCredentials as HostedSkillRepositoryCredentials_d0820c6e class HostedSkillRepositoryCredentialsList(object): @@ -45,7 +45,7 @@ class HostedSkillRepositoryCredentialsList(object): supports_multiple_types = False def __init__(self, repository_credentials=None): - # type: (Optional[AlexaHosted_HostedSkillRepositoryCredentialsV1]) -> None + # type: (Optional[HostedSkillRepositoryCredentials_d0820c6e]) -> None """defines the structure for the hosted skill repository credentials response :param repository_credentials: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py index b8257a8..56418e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_credentials_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as AlexaHosted_HostedSkillRepositoryInfoV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_info import HostedSkillRepositoryInfo as HostedSkillRepositoryInfo_957f5416 class HostedSkillRepositoryCredentialsRequest(object): @@ -43,7 +43,7 @@ class HostedSkillRepositoryCredentialsRequest(object): supports_multiple_types = False def __init__(self, repository=None): - # type: (Optional[AlexaHosted_HostedSkillRepositoryInfoV1]) -> None + # type: (Optional[HostedSkillRepositoryInfo_957f5416]) -> None """ :param repository: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py index 1f9ff96..e17c0aa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_repository_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository import HostedSkillRepository as AlexaHosted_HostedSkillRepositoryV1 + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository import HostedSkillRepository as HostedSkillRepository_4a5af8b1 class HostedSkillRepositoryInfo(object): @@ -49,7 +49,7 @@ class HostedSkillRepositoryInfo(object): supports_multiple_types = False def __init__(self, url=None, object_type=None): - # type: (Optional[str], Optional[AlexaHosted_HostedSkillRepositoryV1]) -> None + # type: (Optional[str], Optional[HostedSkillRepository_4a5af8b1]) -> None """Alexa Hosted Skill's Repository Information :param url: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py index 63e4a7d..35fd510 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosting_configuration.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.alexa_hosted_config import AlexaHostedConfig as AlexaHosted_AlexaHostedConfigV1 + from ask_smapi_model.v1.skill.alexa_hosted.alexa_hosted_config import AlexaHostedConfig as AlexaHostedConfig_4d3d0617 class HostingConfiguration(object): @@ -45,7 +45,7 @@ class HostingConfiguration(object): supports_multiple_types = False def __init__(self, alexa_hosted=None): - # type: (Optional[AlexaHosted_AlexaHostedConfigV1]) -> None + # type: (Optional[AlexaHostedConfig_4d3d0617]) -> None """Configurations for creating new hosted skill :param alexa_hosted: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py index cc43410..fe562a3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset import AudioAsset as AnnotationSets_AudioAssetV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset import AudioAsset as AudioAsset_24d67d02 class AnnotationWithAudioAsset(Annotation): @@ -62,7 +62,7 @@ class AnnotationWithAudioAsset(Annotation): supports_multiple_types = False def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AnnotationSets_AudioAssetV1]) -> None + # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAsset_24d67d02]) -> None """Object containing annotation content and audio file download information. :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py index 69e84ca..1128f7b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationSets_AnnotationWithAudioAssetV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationWithAudioAsset_9d046a40 + from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as PaginationContext_8c68d512 class GetAsrAnnotationSetAnnotationsResponse(object): @@ -50,7 +50,7 @@ class GetAsrAnnotationSetAnnotationsResponse(object): supports_multiple_types = False def __init__(self, annotations=None, pagination_context=None): - # type: (Optional[List[AnnotationSets_AnnotationWithAudioAssetV1]], Optional[AnnotationSets_PaginationContextV1]) -> None + # type: (Optional[List[AnnotationWithAudioAsset_9d046a40]], Optional[PaginationContext_8c68d512]) -> None """This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download. :param annotations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py index 6c81426..69f835b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items import AnnotationSetItems as AnnotationSets_AnnotationSetItemsV1 - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as PaginationContext_8c68d512 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items import AnnotationSetItems as AnnotationSetItems_b0b5b727 class ListASRAnnotationSetsResponse(object): @@ -48,7 +48,7 @@ class ListASRAnnotationSetsResponse(object): supports_multiple_types = False def __init__(self, annotation_sets=None, pagination_context=None): - # type: (Optional[List[AnnotationSets_AnnotationSetItemsV1]], Optional[AnnotationSets_PaginationContextV1]) -> None + # type: (Optional[List[AnnotationSetItems_b0b5b727]], Optional[PaginationContext_8c68d512]) -> None """ :param annotation_sets: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py index 8d9fbde..1890aa1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import Annotation as AnnotationSets_AnnotationV1 + from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import Annotation as Annotation_47f32e2d class UpdateAsrAnnotationSetContentsPayload(object): @@ -45,7 +45,7 @@ class UpdateAsrAnnotationSetContentsPayload(object): supports_multiple_types = False def __init__(self, annotations=None): - # type: (Optional[List[AnnotationSets_AnnotationV1]]) -> None + # type: (Optional[List[Annotation_47f32e2d]]) -> None """This is the payload shema for updating asr annotation set contents. Note for text/csv content type, the csv header definitions need to follow the properties of '#/definitions/Annotaion' :param annotations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py index 120c08d..d4162df 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.audio_asset import AudioAsset as Evaluations_AudioAssetV1 + from ask_smapi_model.v1.skill.asr.evaluations.audio_asset import AudioAsset as AudioAsset_5ba858ec class AnnotationWithAudioAsset(Annotation): @@ -62,7 +62,7 @@ class AnnotationWithAudioAsset(Annotation): supports_multiple_types = False def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[Evaluations_AudioAssetV1]) -> None + # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAsset_5ba858ec]) -> None """object containing annotation content and audio file download information. :param upload_id: upload id obtained when developer creates an upload using catalog API diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py index 0b4e955..cc2667d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py @@ -24,10 +24,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 class EvaluationItems(EvaluationMetadata): @@ -75,7 +75,7 @@ class EvaluationItems(EvaluationMetadata): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None, id=None): - # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1], Optional[str]) -> None + # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1], Optional[str]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py index 7e69436..d530a36 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 class EvaluationMetadata(object): @@ -72,7 +72,7 @@ class EvaluationMetadata(object): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1]) -> None + # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1]) -> None """response body for GetAsrEvaluationsStatus API :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py index 4a69ea7..3ac6bbe 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as Evaluations_EvaluationResultStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.metrics import Metrics as Evaluations_MetricsV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as EvaluationResultStatus_2e2193d + from ask_smapi_model.v1.skill.asr.evaluations.metrics import Metrics as Metrics_7a347fcd class EvaluationMetadataResult(object): @@ -50,7 +50,7 @@ class EvaluationMetadataResult(object): supports_multiple_types = False def __init__(self, status=None, metrics=None): - # type: (Optional[Evaluations_EvaluationResultStatusV1], Optional[Evaluations_MetricsV1]) -> None + # type: (Optional[EvaluationResultStatus_2e2193d], Optional[Metrics_7a347fcd]) -> None """indicate the result of the evaluation. This field would be present if the evaluation status is `COMPLETED` :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py index 3811c87..9a885a7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as Evaluations_EvaluationResultStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset import AnnotationWithAudioAsset as Evaluations_AnnotationWithAudioAssetV1 - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output import EvaluationResultOutput as Evaluations_EvaluationResultOutputV1 + from ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationWithAudioAsset_102c10aa + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output import EvaluationResultOutput as EvaluationResultOutput_7d57585d + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as EvaluationResultStatus_2e2193d + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa class EvaluationResult(object): @@ -60,7 +60,7 @@ class EvaluationResult(object): supports_multiple_types = False def __init__(self, status=None, annotation=None, output=None, error=None): - # type: (Optional[Evaluations_EvaluationResultStatusV1], Optional[Evaluations_AnnotationWithAudioAssetV1], Optional[Evaluations_EvaluationResultOutputV1], Optional[Evaluations_ErrorObjectV1]) -> None + # type: (Optional[EvaluationResultStatus_2e2193d], Optional[AnnotationWithAudioAsset_102c10aa], Optional[EvaluationResultOutput_7d57585d], Optional[ErrorObject_27eea4fa]) -> None """evaluation detailed result :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py index db80661..764ea27 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py @@ -24,10 +24,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as Evaluations_ErrorObjectV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as Evaluations_EvaluationMetadataResultV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as Evaluations_EvaluationStatusV1 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as Evaluations_PostAsrEvaluationsRequestObjectV1 + from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 + from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 class GetAsrEvaluationStatusResponseObject(EvaluationMetadata): @@ -71,7 +71,7 @@ class GetAsrEvaluationStatusResponseObject(EvaluationMetadata): supports_multiple_types = False def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[Evaluations_EvaluationStatusV1], Optional[float], Optional[float], Optional[datetime], Optional[Evaluations_PostAsrEvaluationsRequestObjectV1], Optional[Evaluations_ErrorObjectV1], Optional[Evaluations_EvaluationMetadataResultV1]) -> None + # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py index cbb803e..bebaf4c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result import EvaluationResult as Evaluations_EvaluationResultV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result import EvaluationResult as EvaluationResult_8b6638d2 + from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as PaginationContext_d7ee8f7c class GetAsrEvaluationsResultsResponse(object): @@ -50,7 +50,7 @@ class GetAsrEvaluationsResultsResponse(object): supports_multiple_types = False def __init__(self, results=None, pagination_context=None): - # type: (Optional[List[Evaluations_EvaluationResultV1]], Optional[Evaluations_PaginationContextV1]) -> None + # type: (Optional[List[EvaluationResult_8b6638d2]], Optional[PaginationContext_d7ee8f7c]) -> None """response for GetAsrEvaluationsResults :param results: array containing all evaluation results. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py index a548cf3..fd2117e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_items import EvaluationItems as Evaluations_EvaluationItemsV1 + from ask_smapi_model.v1.skill.asr.evaluations.evaluation_items import EvaluationItems as EvaluationItems_4521721e + from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as PaginationContext_d7ee8f7c class ListAsrEvaluationsResponse(object): @@ -50,7 +50,7 @@ class ListAsrEvaluationsResponse(object): supports_multiple_types = False def __init__(self, evaluations=None, pagination_context=None): - # type: (Optional[List[Evaluations_EvaluationItemsV1]], Optional[Evaluations_PaginationContextV1]) -> None + # type: (Optional[List[EvaluationItems_4521721e]], Optional[PaginationContext_d7ee8f7c]) -> None """response body for a list evaluation API :param evaluations: an array containing all evaluations that have ever run by developers based on the filter criteria defined in the request diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py index 71818de..f475883 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.skill import Skill as Evaluations_SkillV1 + from ask_smapi_model.v1.skill.asr.evaluations.skill import Skill as Skill_9cb28c29 class PostAsrEvaluationsRequestObject(object): @@ -47,7 +47,7 @@ class PostAsrEvaluationsRequestObject(object): supports_multiple_types = False def __init__(self, skill=None, annotation_set_id=None): - # type: (Optional[Evaluations_SkillV1], Optional[str]) -> None + # type: (Optional[Skill_9cb28c29], Optional[str]) -> None """ :param skill: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py index 73a7e09..f6b99cc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 + from ask_smapi_model.v1.stage_type import StageType as StageType_700be16e class Skill(object): @@ -47,7 +47,7 @@ class Skill(object): supports_multiple_types = False def __init__(self, stage=None, locale=None): - # type: (Optional[V1_StageTypeV1], Optional[str]) -> None + # type: (Optional[StageType_700be16e], Optional[str]) -> None """ :param stage: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py index 4a75995..e628041 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.status import Status as BetaTest_StatusV1 + from ask_smapi_model.v1.skill.beta_test.status import Status as Status_3d3324db class BetaTest(object): @@ -61,7 +61,7 @@ class BetaTest(object): supports_multiple_types = False def __init__(self, expiry_date=None, status=None, feedback_email=None, invitation_url=None, invites_remaining=None): - # type: (Optional[datetime], Optional[BetaTest_StatusV1], Optional[str], Optional[str], Optional[float]) -> None + # type: (Optional[datetime], Optional[Status_3d3324db], Optional[str], Optional[str], Optional[float]) -> None """Beta test for an Alexa skill. :param expiry_date: Expiry date of the beta test. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py index ea063d5..3bc8091 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/list_testers_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.tester_with_details import TesterWithDetails as Testers_TesterWithDetailsV1 + from ask_smapi_model.v1.skill.beta_test.testers.tester_with_details import TesterWithDetails as TesterWithDetails_e51f394b class ListTestersResponse(object): @@ -51,7 +51,7 @@ class ListTestersResponse(object): supports_multiple_types = False def __init__(self, testers=None, is_truncated=None, next_token=None): - # type: (Optional[List[Testers_TesterWithDetailsV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[List[TesterWithDetails_e51f394b]], Optional[bool], Optional[str]) -> None """ :param testers: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py index 7313e2f..b8ca953 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/tester_with_details.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.invitation_status import InvitationStatus as Testers_InvitationStatusV1 + from ask_smapi_model.v1.skill.beta_test.testers.invitation_status import InvitationStatus as InvitationStatus_d942d94e class TesterWithDetails(object): @@ -57,7 +57,7 @@ class TesterWithDetails(object): supports_multiple_types = False def __init__(self, email_id=None, association_date=None, is_reminder_allowed=None, invitation_status=None): - # type: (Optional[str], Optional[datetime], Optional[bool], Optional[Testers_InvitationStatusV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[bool], Optional[InvitationStatus_d942d94e]) -> None """Tester information. :param email_id: Email address of the tester. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py index c1b9988..3b5802c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/testers_list.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.beta_test.testers.tester import Tester as Testers_TesterV1 + from ask_smapi_model.v1.skill.beta_test.testers.tester import Tester as Tester_39f38261 class TestersList(object): @@ -45,7 +45,7 @@ class TestersList(object): supports_multiple_types = False def __init__(self, testers=None): - # type: (Optional[List[Testers_TesterV1]]) -> None + # type: (Optional[List[Tester_39f38261]]) -> None """List of testers. :param testers: List of the email address of testers. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py index bbed89c..51a27ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_details.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.build_step import BuildStep as Skill_BuildStepV1 + from ask_smapi_model.v1.skill.build_step import BuildStep as BuildStep_c5ced0cf class BuildDetails(object): @@ -45,7 +45,7 @@ class BuildDetails(object): supports_multiple_types = False def __init__(self, steps=None): - # type: (Optional[List[Skill_BuildStepV1]]) -> None + # type: (Optional[List[BuildStep_c5ced0cf]]) -> None """Contains array which describes steps involved in a build. Elements (or build steps) are added to this array as they become IN_PROGRESS. :param steps: An array where each element represents a build step. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py index 79a55ac..18640c6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_step.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.build_step_name import BuildStepName as Skill_BuildStepNameV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 + from ask_smapi_model.v1.skill.build_step_name import BuildStepName as BuildStepName_524a98be + from ask_smapi_model.v1.skill.status import Status as Status_585d1308 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class BuildStep(object): @@ -55,7 +55,7 @@ class BuildStep(object): supports_multiple_types = False def __init__(self, name=None, status=None, errors=None): - # type: (Optional[Skill_BuildStepNameV1], Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[BuildStepName_524a98be], Optional[Status_585d1308], Optional[List[StandardizedError_f5106a89]]) -> None """Describes the status of a build step. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py index 825592e..0b8a987 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.review_tracking_info import ReviewTrackingInfo as Certification_ReviewTrackingInfoV1 - from ask_smapi_model.v1.skill.certification.certification_result import CertificationResult as Certification_CertificationResultV1 - from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as Certification_CertificationStatusV1 + from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as CertificationStatus_f3c4064f + from ask_smapi_model.v1.skill.certification.certification_result import CertificationResult as CertificationResult_84c93325 + from ask_smapi_model.v1.skill.certification.review_tracking_info import ReviewTrackingInfo as ReviewTrackingInfo_efea7da2 class CertificationResponse(object): @@ -61,7 +61,7 @@ class CertificationResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, skill_submission_timestamp=None, review_tracking_info=None, result=None): - # type: (Optional[str], Optional[Certification_CertificationStatusV1], Optional[datetime], Optional[Certification_ReviewTrackingInfoV1], Optional[Certification_CertificationResultV1]) -> None + # type: (Optional[str], Optional[CertificationStatus_f3c4064f], Optional[datetime], Optional[ReviewTrackingInfo_efea7da2], Optional[CertificationResult_84c93325]) -> None """ :param id: Certification Id for the skill diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py index d860989..c7d28f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.distribution_info import DistributionInfo as Certification_DistributionInfoV1 + from ask_smapi_model.v1.skill.certification.distribution_info import DistributionInfo as DistributionInfo_e586ad31 class CertificationResult(object): @@ -45,7 +45,7 @@ class CertificationResult(object): supports_multiple_types = False def __init__(self, distribution_info=None): - # type: (Optional[Certification_DistributionInfoV1]) -> None + # type: (Optional[DistributionInfo_e586ad31]) -> None """Structure for the result for the outcomes of certification review for the skill. Currently provides the distribution information of a skill if the certification SUCCEEDED. :param distribution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py index a82e7fc..66216d8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/certification_summary.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.review_tracking_info_summary import ReviewTrackingInfoSummary as Certification_ReviewTrackingInfoSummaryV1 - from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as Certification_CertificationStatusV1 + from ask_smapi_model.v1.skill.certification.certification_status import CertificationStatus as CertificationStatus_f3c4064f + from ask_smapi_model.v1.skill.certification.review_tracking_info_summary import ReviewTrackingInfoSummary as ReviewTrackingInfoSummary_98ac3a4b class CertificationSummary(object): @@ -58,7 +58,7 @@ class CertificationSummary(object): supports_multiple_types = False def __init__(self, id=None, status=None, skill_submission_timestamp=None, review_tracking_info=None): - # type: (Optional[str], Optional[Certification_CertificationStatusV1], Optional[datetime], Optional[Certification_ReviewTrackingInfoSummaryV1]) -> None + # type: (Optional[str], Optional[CertificationStatus_f3c4064f], Optional[datetime], Optional[ReviewTrackingInfoSummary_98ac3a4b]) -> None """Summary of the certification resource. This is a leaner view of the certification resource for the collections API. :param id: Certification Id for the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py index 43fb282..8953d5e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/distribution_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.publication_failure import PublicationFailure as Certification_PublicationFailureV1 + from ask_smapi_model.v1.skill.certification.publication_failure import PublicationFailure as PublicationFailure_998813af class DistributionInfo(object): @@ -49,7 +49,7 @@ class DistributionInfo(object): supports_multiple_types = False def __init__(self, published_countries=None, publication_failures=None): - # type: (Optional[List[object]], Optional[List[Certification_PublicationFailureV1]]) -> None + # type: (Optional[List[object]], Optional[List[PublicationFailure_998813af]]) -> None """The distribution information for skill where Amazon distributed the skill :param published_countries: All countries where the skill was published in by Amazon. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py index 75429b5..a2de4f2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/list_certifications_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.certification.certification_summary import CertificationSummary as Certification_CertificationSummaryV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.certification.certification_summary import CertificationSummary as CertificationSummary_96b78053 class ListCertificationsResponse(object): @@ -62,7 +62,7 @@ class ListCertificationsResponse(object): supports_multiple_types = False def __init__(self, links=None, is_truncated=None, next_token=None, total_count=None, items=None): - # type: (Optional[V1_LinksV1], Optional[bool], Optional[str], Optional[int], Optional[List[Certification_CertificationSummaryV1]]) -> None + # type: (Optional[Links_bc43467b], Optional[bool], Optional[str], Optional[int], Optional[List[CertificationSummary_96b78053]]) -> None """List of certification summary for a skill. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py index 98f4840..28b2d1d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/review_tracking_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.certification.estimation_update import EstimationUpdate as Certification_EstimationUpdateV1 + from ask_smapi_model.v1.skill.certification.estimation_update import EstimationUpdate as EstimationUpdate_39260d1f class ReviewTrackingInfo(object): @@ -57,7 +57,7 @@ class ReviewTrackingInfo(object): supports_multiple_types = False def __init__(self, estimated_completion_timestamp=None, actual_completion_timestamp=None, last_updated=None, estimation_updates=None): - # type: (Optional[datetime], Optional[datetime], Optional[datetime], Optional[List[Certification_EstimationUpdateV1]]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[datetime], Optional[List[EstimationUpdate_39260d1f]]) -> None """Structure for review tracking information of the skill. :param estimated_completion_timestamp: Timestamp for estimated completion of certification review for the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py index 5e64742..2a40daa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.overwrite_mode import OverwriteMode as Skill_OverwriteModeV1 + from ask_smapi_model.v1.skill.overwrite_mode import OverwriteMode as OverwriteMode_d847ef1d class CloneLocaleRequest(object): @@ -53,7 +53,7 @@ class CloneLocaleRequest(object): supports_multiple_types = False def __init__(self, source_locale=None, target_locales=None, overwrite_mode=None): - # type: (Optional[str], Optional[List[object]], Optional[Skill_OverwriteModeV1]) -> None + # type: (Optional[str], Optional[List[object]], Optional[OverwriteMode_d847ef1d]) -> None """Defines the request body for the cloneLocale API. :param source_locale: Locale with the assets that will be cloned. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py index 0c5a84b..adfc620 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_resource_status.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.clone_locale_status import CloneLocaleStatus as Skill_CloneLocaleStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.clone_locale_status import CloneLocaleStatus as CloneLocaleStatus_404d88aa + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class CloneLocaleResourceStatus(object): @@ -50,7 +50,7 @@ class CloneLocaleResourceStatus(object): supports_multiple_types = False def __init__(self, status=None, errors=None): - # type: (Optional[Skill_CloneLocaleStatusV1], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[CloneLocaleStatus_404d88aa], Optional[List[StandardizedError_f5106a89]]) -> None """an object detailing the status of a locale clone request and if applicable the errors occurred when saving/building resources during clone process. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py index b72ec15..9135c14 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/clone_locale_status_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.clone_locale_resource_status import CloneLocaleResourceStatus as Skill_CloneLocaleResourceStatusV1 - from ask_smapi_model.v1.skill.clone_locale_request_status import CloneLocaleRequestStatus as Skill_CloneLocaleRequestStatusV1 + from ask_smapi_model.v1.skill.clone_locale_request_status import CloneLocaleRequestStatus as CloneLocaleRequestStatus_cb446f9 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 + from ask_smapi_model.v1.skill.clone_locale_resource_status import CloneLocaleResourceStatus as CloneLocaleResourceStatus_60dd154f class CloneLocaleStatusResponse(object): @@ -59,7 +59,7 @@ class CloneLocaleStatusResponse(object): supports_multiple_types = False def __init__(self, status=None, errors=None, source_locale=None, target_locales=None): - # type: (Optional[Skill_CloneLocaleRequestStatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[str], Optional[Dict[str, Skill_CloneLocaleResourceStatusV1]]) -> None + # type: (Optional[CloneLocaleRequestStatus_cb446f9], Optional[List[StandardizedError_f5106a89]], Optional[str], Optional[Dict[str, CloneLocaleResourceStatus_60dd154f]]) -> None """A mapping of statuses per locale detailing progress of resource or error if encountered. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py index 4da17fd..e1223f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/create_skill_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.alexa_hosted.hosting_configuration import HostingConfiguration as AlexaHosted_HostingConfigurationV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as Manifest_SkillManifestV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as SkillManifest_312bea88 + from ask_smapi_model.v1.skill.alexa_hosted.hosting_configuration import HostingConfiguration as HostingConfiguration_695b9ede class CreateSkillRequest(object): @@ -52,7 +52,7 @@ class CreateSkillRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, manifest=None, hosting=None): - # type: (Optional[str], Optional[Manifest_SkillManifestV1], Optional[AlexaHosted_HostingConfigurationV1]) -> None + # type: (Optional[str], Optional[SkillManifest_312bea88], Optional[HostingConfiguration_695b9ede]) -> None """ :param vendor_id: ID of the vendor owning the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py index c356010..13acbe0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/dialog_act.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.dialog_act_type import DialogActType as Evaluations_DialogActTypeV1 + from ask_smapi_model.v1.skill.evaluations.dialog_act_type import DialogActType as DialogActType_3c2701d7 class DialogAct(object): @@ -49,7 +49,7 @@ class DialogAct(object): supports_multiple_types = False def __init__(self, object_type=None, target_slot=None): - # type: (Optional[Evaluations_DialogActTypeV1], Optional[str]) -> None + # type: (Optional[DialogActType_3c2701d7], Optional[str]) -> None """A representation of question prompts to the user for multi-turn, which requires user to fill a slot value, or confirm a slot value, or confirm an intent. :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py index dd36605..84133c3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.slot import Slot as Evaluations_SlotV1 - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as ConfirmationStatusType_cfdd6bf5 + from ask_smapi_model.v1.skill.evaluations.slot import Slot as Slot_6c891311 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Dict[str, Evaluations_SlotV1]]) -> None + # type: (Optional[str], Optional[ConfirmationStatusType_cfdd6bf5], Optional[Dict[str, Slot_6c891311]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py index 2f5e890..0261e78 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/multi_turn.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.dialog_act import DialogAct as Evaluations_DialogActV1 + from ask_smapi_model.v1.skill.evaluations.dialog_act import DialogAct as DialogAct_6e492614 class MultiTurn(object): @@ -53,7 +53,7 @@ class MultiTurn(object): supports_multiple_types = False def __init__(self, dialog_act=None, token=None, prompt=None): - # type: (Optional[Evaluations_DialogActV1], Optional[str], Optional[str]) -> None + # type: (Optional[DialogAct_6e492614], Optional[str], Optional[str]) -> None """Included when the selected intent has dialog defined and the dialog is not completed. To continue the dialog, provide the value of the token in the multiTurnToken field in the next request. :param dialog_act: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py index 06cc6ff..6f1d8bf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.profile_nlu_selected_intent import ProfileNluSelectedIntent as Evaluations_ProfileNluSelectedIntentV1 - from ask_smapi_model.v1.skill.evaluations.intent import Intent as Evaluations_IntentV1 - from ask_smapi_model.v1.skill.evaluations.multi_turn import MultiTurn as Evaluations_MultiTurnV1 + from ask_smapi_model.v1.skill.evaluations.intent import Intent as Intent_c78fc7d1 + from ask_smapi_model.v1.skill.evaluations.profile_nlu_selected_intent import ProfileNluSelectedIntent as ProfileNluSelectedIntent_a1e7970e + from ask_smapi_model.v1.skill.evaluations.multi_turn import MultiTurn as MultiTurn_9de2d9e8 class ProfileNluResponse(object): @@ -57,7 +57,7 @@ class ProfileNluResponse(object): supports_multiple_types = False def __init__(self, session_ended=None, selected_intent=None, considered_intents=None, multi_turn=None): - # type: (Optional[bool], Optional[Evaluations_ProfileNluSelectedIntentV1], Optional[List[Evaluations_IntentV1]], Optional[Evaluations_MultiTurnV1]) -> None + # type: (Optional[bool], Optional[ProfileNluSelectedIntent_a1e7970e], Optional[List[Intent_c78fc7d1]], Optional[MultiTurn_9de2d9e8]) -> None """ :param session_ended: Represents when an utterance results in the skill exiting. It would be true when NLU selects 1P ExitAppIntent or GoHomeIntent, and false otherwise. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py index 8314ab7..ae92d54 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/profile_nlu_selected_intent.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.slot import Slot as Evaluations_SlotV1 - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as ConfirmationStatusType_cfdd6bf5 + from ask_smapi_model.v1.skill.evaluations.slot import Slot as Slot_6c891311 class ProfileNluSelectedIntent(Intent): @@ -55,7 +55,7 @@ class ProfileNluSelectedIntent(Intent): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Dict[str, Evaluations_SlotV1]]) -> None + # type: (Optional[str], Optional[ConfirmationStatusType_cfdd6bf5], Optional[Dict[str, Slot_6c891311]]) -> None """The intent that Alexa selected for the utterance in the request. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py index 7986b9b..f1ae96b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_items.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as Evaluations_ResolutionsPerAuthorityValueItemsV1 - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Evaluations_ResolutionsPerAuthorityStatusV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as ResolutionsPerAuthorityValueItems_a0e0a4d + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as ResolutionsPerAuthorityStatus_5e501476 class ResolutionsPerAuthorityItems(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthorityItems(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[Evaluations_ResolutionsPerAuthorityStatusV1], Optional[List[Evaluations_ResolutionsPerAuthorityValueItemsV1]]) -> None + # type: (Optional[str], Optional[ResolutionsPerAuthorityStatus_5e501476], Optional[List[ResolutionsPerAuthorityValueItems_a0e0a4d]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py index e5be07b..a0472e8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/resolutions_per_authority_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Evaluations_ResolutionsPerAuthorityStatusCodeV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as ResolutionsPerAuthorityStatusCode_bcfcdf25 class ResolutionsPerAuthorityStatus(object): @@ -45,7 +45,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[Evaluations_ResolutionsPerAuthorityStatusCodeV1]) -> None + # type: (Optional[ResolutionsPerAuthorityStatusCode_bcfcdf25]) -> None """An object representing the status of entity resolution for the slot. :param code: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py index 6dfc6f2..9560773 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as Evaluations_ConfirmationStatusTypeV1 - from ask_smapi_model.v1.skill.evaluations.slot_resolutions import SlotResolutions as Evaluations_SlotResolutionsV1 + from ask_smapi_model.v1.skill.evaluations.confirmation_status_type import ConfirmationStatusType as ConfirmationStatusType_cfdd6bf5 + from ask_smapi_model.v1.skill.evaluations.slot_resolutions import SlotResolutions as SlotResolutions_9471687e class Slot(object): @@ -56,7 +56,7 @@ class Slot(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[Evaluations_ConfirmationStatusTypeV1], Optional[Evaluations_SlotResolutionsV1]) -> None + # type: (Optional[str], Optional[str], Optional[ConfirmationStatusType_cfdd6bf5], Optional[SlotResolutions_9471687e]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py index 29530f5..8b1f7ac 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/slot_resolutions.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as Evaluations_ResolutionsPerAuthorityItemsV1 + from ask_smapi_model.v1.skill.evaluations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as ResolutionsPerAuthorityItems_3c8f9434 class SlotResolutions(object): @@ -45,7 +45,7 @@ class SlotResolutions(object): supports_multiple_types = False def __init__(self, resolutions_per_authority=None): - # type: (Optional[List[Evaluations_ResolutionsPerAuthorityItemsV1]]) -> None + # type: (Optional[List[ResolutionsPerAuthorityItems_3c8f9434]]) -> None """A resolutions object representing the results of resolving the words captured from the user's utterance. :param resolutions_per_authority: An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py index 7576539..c05b9e5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/export_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.export_response_skill import ExportResponseSkill as Skill_ExportResponseSkillV1 - from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as ResponseStatus_95347977 + from ask_smapi_model.v1.skill.export_response_skill import ExportResponseSkill as ExportResponseSkill_66ce2c66 class ExportResponse(object): @@ -48,7 +48,7 @@ class ExportResponse(object): supports_multiple_types = False def __init__(self, status=None, skill=None): - # type: (Optional[Skill_ResponseStatusV1], Optional[Skill_ExportResponseSkillV1]) -> None + # type: (Optional[ResponseStatus_95347977], Optional[ExportResponseSkill_66ce2c66]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py index cd9e0b9..db07d1b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/confidence.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.confidence_bin import ConfidenceBin as History_ConfidenceBinV1 + from ask_smapi_model.v1.skill.history.confidence_bin import ConfidenceBin as ConfidenceBin_b5468f41 class Confidence(object): @@ -45,7 +45,7 @@ class Confidence(object): supports_multiple_types = False def __init__(self, bin=None): - # type: (Optional[History_ConfidenceBinV1]) -> None + # type: (Optional[ConfidenceBin_b5468f41]) -> None """The hypothesized confidence for this interaction. :param bin: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py index a9974e0..6a6957c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/dialog_act.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as History_DialogActNameV1 + from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as DialogActName_df8326d6 class DialogAct(object): @@ -45,7 +45,7 @@ class DialogAct(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[History_DialogActNameV1]) -> None + # type: (Optional[DialogActName_df8326d6]) -> None """The dialog act used in the interaction. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py index f0dba0d..76a7c38 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.slot import Slot as History_SlotV1 - from ask_smapi_model.v1.skill.history.confidence import Confidence as History_ConfidenceV1 + from ask_smapi_model.v1.skill.history.slot import Slot as Slot_9d1773ae + from ask_smapi_model.v1.skill.history.confidence import Confidence as Confidence_e1f5282e class Intent(object): @@ -54,7 +54,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confidence=None, slots=None): - # type: (Optional[str], Optional[History_ConfidenceV1], Optional[Dict[str, History_SlotV1]]) -> None + # type: (Optional[str], Optional[Confidence_e1f5282e], Optional[Dict[str, Slot_9d1773ae]]) -> None """Provides the intent name, slots and confidence of the intent used in this interaction. :param name: The hypothesized intent for this utterance. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py index 7aaa463..88b7e83 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_request.py @@ -23,12 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.history.dialog_act import DialogAct as History_DialogActV1 - from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as History_PublicationStatusV1 - from ask_smapi_model.v1.stage_type import StageType as V1_StageTypeV1 - from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as History_InteractionTypeV1 - from ask_smapi_model.v1.skill.history.intent_request_locales import IntentRequestLocales as History_IntentRequestLocalesV1 - from ask_smapi_model.v1.skill.history.intent import Intent as History_IntentV1 + from ask_smapi_model.v1.skill.history.dialog_act import DialogAct as DialogAct_4ef13157 + from ask_smapi_model.v1.skill.history.intent_request_locales import IntentRequestLocales as IntentRequestLocales_e5c9ca2e + from ask_smapi_model.v1.skill.history.publication_status import PublicationStatus as PublicationStatus_af1ce535 + from ask_smapi_model.v1.skill.history.intent import Intent as Intent_529291ee + from ask_smapi_model.v1.stage_type import StageType as StageType_700be16e + from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as InteractionType_80494a05 class IntentRequest(object): @@ -72,7 +72,7 @@ class IntentRequest(object): supports_multiple_types = False def __init__(self, dialog_act=None, intent=None, interaction_type=None, locale=None, publication_status=None, stage=None, utterance_text=None): - # type: (Optional[History_DialogActV1], Optional[History_IntentV1], Optional[History_InteractionTypeV1], Optional[History_IntentRequestLocalesV1], Optional[History_PublicationStatusV1], Optional[V1_StageTypeV1], Optional[str]) -> None + # type: (Optional[DialogAct_4ef13157], Optional[Intent_529291ee], Optional[InteractionType_80494a05], Optional[IntentRequestLocales_e5c9ca2e], Optional[PublicationStatus_af1ce535], Optional[StageType_700be16e], Optional[str]) -> None """ :param dialog_act: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py index 2fc55af..7dd977b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/intent_requests.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.history.intent_request import IntentRequest as History_IntentRequestV1 + from ask_smapi_model.v1.skill.history.intent_request import IntentRequest as IntentRequest_f6fbe211 + from ask_smapi_model.v1.links import Links as Links_bc43467b class IntentRequests(object): @@ -70,7 +70,7 @@ class IntentRequests(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, is_truncated=None, total_count=None, start_index=None, skill_id=None, items=None): - # type: (Optional[V1_LinksV1], Optional[str], Optional[bool], Optional[float], Optional[float], Optional[str], Optional[List[History_IntentRequestV1]]) -> None + # type: (Optional[Links_bc43467b], Optional[str], Optional[bool], Optional[float], Optional[float], Optional[str], Optional[List[IntentRequest_f6fbe211]]) -> None """Response to the GET Intent Request History API. It contains the collection of utterances for the skill, nextToken and other metadata related to the search query. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py index e935912..b05a4d5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest as Skill_HostedSkillDeploymentStatusLastUpdateRequestV1 + from ask_smapi_model.v1.skill.hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest as HostedSkillDeploymentStatusLastUpdateRequest_4ef7ab8e class HostedSkillDeploymentStatus(object): @@ -45,7 +45,7 @@ class HostedSkillDeploymentStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[Skill_HostedSkillDeploymentStatusLastUpdateRequestV1]) -> None + # type: (Optional[HostedSkillDeploymentStatusLastUpdateRequest_4ef7ab8e]) -> None """Defines the most recent deployment status for the Alexa hosted skill. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py index cba7dec..6a01f8c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_deployment_status_last_update_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_deployment_details import HostedSkillDeploymentDetails as Skill_HostedSkillDeploymentDetailsV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 + from ask_smapi_model.v1.skill.status import Status as Status_585d1308 + from ask_smapi_model.v1.skill.hosted_skill_deployment_details import HostedSkillDeploymentDetails as HostedSkillDeploymentDetails_874bf779 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class HostedSkillDeploymentStatusLastUpdateRequest(object): @@ -59,7 +59,7 @@ class HostedSkillDeploymentStatusLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, deployment_details=None): - # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_HostedSkillDeploymentDetailsV1]) -> None + # type: (Optional[Status_585d1308], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]], Optional[HostedSkillDeploymentDetails_874bf779]) -> None """Contains attributes related to last modification request of a hosted skill deployment resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py index 3530356..c5f704b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_last_update_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 + from ask_smapi_model.v1.skill.status import Status as Status_585d1308 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class HostedSkillProvisioningLastUpdateRequest(object): @@ -54,7 +54,7 @@ class HostedSkillProvisioningLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None): - # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[Status_585d1308], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]]) -> None """Contains attributes related to last modification request of a hosted skill provisioning resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py index 6de60e1..3ed8080 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/hosted_skill_provisioning_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest as Skill_HostedSkillProvisioningLastUpdateRequestV1 + from ask_smapi_model.v1.skill.hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest as HostedSkillProvisioningLastUpdateRequest_93921317 class HostedSkillProvisioningStatus(object): @@ -45,7 +45,7 @@ class HostedSkillProvisioningStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[Skill_HostedSkillProvisioningLastUpdateRequestV1]) -> None + # type: (Optional[HostedSkillProvisioningLastUpdateRequest_93921317]) -> None """Defines the provisioning status for hosted skill. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py index 3f1a96b..ccf3675 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.image_size import ImageSize as Skill_ImageSizeV1 - from ask_smapi_model.v1.skill.image_dimension import ImageDimension as Skill_ImageDimensionV1 + from ask_smapi_model.v1.skill.image_dimension import ImageDimension as ImageDimension_4f87c1d + from ask_smapi_model.v1.skill.image_size import ImageSize as ImageSize_f2e12ed9 class ImageAttributes(object): @@ -50,7 +50,7 @@ class ImageAttributes(object): supports_multiple_types = False def __init__(self, dimension=None, size=None): - # type: (Optional[Skill_ImageDimensionV1], Optional[Skill_ImageSizeV1]) -> None + # type: (Optional[ImageDimension_4f87c1d], Optional[ImageSize_f2e12ed9]) -> None """Set of properties of the image provided by the customer. :param dimension: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py index 4bfe09e..8b87ba1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_size.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.image_size_unit import ImageSizeUnit as Skill_ImageSizeUnitV1 + from ask_smapi_model.v1.skill.image_size_unit import ImageSizeUnit as ImageSizeUnit_6d76202a class ImageSize(object): @@ -49,7 +49,7 @@ class ImageSize(object): supports_multiple_types = False def __init__(self, value=None, unit=None): - # type: (Optional[float], Optional[Skill_ImageSizeUnitV1]) -> None + # type: (Optional[float], Optional[ImageSizeUnit_6d76202a]) -> None """On disk storage size of image. :param value: Value measuring the size of the image. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py index 1514d72..239381e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/import_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.import_response_skill import ImportResponseSkill as Skill_ImportResponseSkillV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as ResponseStatus_95347977 + from ask_smapi_model.v1.skill.import_response_skill import ImportResponseSkill as ImportResponseSkill_9f6a4e84 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class ImportResponse(object): @@ -57,7 +57,7 @@ class ImportResponse(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, skill=None): - # type: (Optional[Skill_ResponseStatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_ImportResponseSkillV1]) -> None + # type: (Optional[ResponseStatus_95347977], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]], Optional[ImportResponseSkill_9f6a4e84]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py index 31590ca..8a2e4ba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/import_response_skill.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.resource_import_status import ResourceImportStatus as Skill_ResourceImportStatusV1 + from ask_smapi_model.v1.skill.resource_import_status import ResourceImportStatus as ResourceImportStatus_5e5873f2 class ImportResponseSkill(object): @@ -51,7 +51,7 @@ class ImportResponseSkill(object): supports_multiple_types = False def __init__(self, skill_id=None, e_tag=None, resources=None): - # type: (Optional[str], Optional[str], Optional[List[Skill_ResourceImportStatusV1]]) -> None + # type: (Optional[str], Optional[str], Optional[List[ResourceImportStatus_5e5873f2]]) -> None """ :param skill_id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/instance.py b/ask-smapi-model/ask_smapi_model/v1/skill/instance.py index 0aaab3c..6a174ae 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/instance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/instance.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as Skill_ValidationDataTypesV1 + from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as ValidationDataTypes_30c76c0c class Instance(object): @@ -53,7 +53,7 @@ class Instance(object): supports_multiple_types = False def __init__(self, property_path=None, data_type=None, value=None): - # type: (Optional[str], Optional[Skill_ValidationDataTypesV1], Optional[str]) -> None + # type: (Optional[str], Optional[ValidationDataTypes_30c76c0c], Optional[str]) -> None """Structure representing properties of an instance of data. Definition will be either one of a booleanInstance, stringInstance, integerInstance, or compoundInstance. :param property_path: Path that uniquely identifies the instance in the resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py index 40452d3..26cf4cd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_definition_output.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_entity import CatalogEntity as Catalog_CatalogEntityV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_entity import CatalogEntity as CatalogEntity_8b1d9044 class CatalogDefinitionOutput(object): @@ -53,7 +53,7 @@ class CatalogDefinitionOutput(object): supports_multiple_types = False def __init__(self, catalog=None, creation_time=None, total_versions=None): - # type: (Optional[Catalog_CatalogEntityV1], Optional[str], Optional[str]) -> None + # type: (Optional[CatalogEntity_8b1d9044], Optional[str], Optional[str]) -> None """Catalog request definitions. :param catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py index 7b2481a..53ac3f5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b class CatalogItem(object): @@ -57,7 +57,7 @@ class CatalogItem(object): supports_multiple_types = False def __init__(self, name=None, description=None, catalog_id=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[V1_LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Links_bc43467b]) -> None """Definition for catalog entity. :param name: Name of the catalog. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py index 42063ca..b142569 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/catalog_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.last_update_request import LastUpdateRequest as Catalog_LastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.last_update_request import LastUpdateRequest as LastUpdateRequest_c40c7e97 class CatalogStatus(object): @@ -45,7 +45,7 @@ class CatalogStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None): - # type: (Optional[Catalog_LastUpdateRequestV1]) -> None + # type: (Optional[LastUpdateRequest_c40c7e97]) -> None """Defines the structure for catalog status response. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py index 105bff0..1e54985 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/definition_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input import CatalogInput as Catalog_CatalogInputV1 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input import CatalogInput as CatalogInput_948a7988 class DefinitionData(object): @@ -49,7 +49,7 @@ class DefinitionData(object): supports_multiple_types = False def __init__(self, catalog=None, vendor_id=None): - # type: (Optional[Catalog_CatalogInputV1], Optional[str]) -> None + # type: (Optional[CatalogInput_948a7988], Optional[str]) -> None """Catalog request definitions. :param catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py index ff7b269..78511bf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/last_update_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status_type import CatalogStatusType as Catalog_CatalogStatusTypeV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status_type import CatalogStatusType as CatalogStatusType_67605beb class LastUpdateRequest(object): @@ -54,7 +54,7 @@ class LastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, version=None, errors=None): - # type: (Optional[Catalog_CatalogStatusTypeV1], Optional[str], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[CatalogStatusType_67605beb], Optional[str], Optional[List[StandardizedError_f5106a89]]) -> None """Contains attributes related to last modification request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py index cef7a75..147bdd2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/list_catalog_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_item import CatalogItem as Catalog_CatalogItemV1 - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_item import CatalogItem as CatalogItem_63fca3a4 class ListCatalogResponse(object): @@ -62,7 +62,7 @@ class ListCatalogResponse(object): supports_multiple_types = False def __init__(self, links=None, catalogs=None, is_truncated=None, next_token=None, total_count=None): - # type: (Optional[V1_LinksV1], Optional[List[Catalog_CatalogItemV1]], Optional[bool], Optional[str], Optional[int]) -> None + # type: (Optional[Links_bc43467b], Optional[List[CatalogItem_63fca3a4]], Optional[bool], Optional[str], Optional[int]) -> None """List of catalog versions of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py index 3e814d1..176a64c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog_value_supplier.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.value_catalog import ValueCatalog as InteractionModel_ValueCatalogV1 + from ask_smapi_model.v1.skill.interaction_model.value_catalog import ValueCatalog as ValueCatalog_7d792103 class CatalogValueSupplier(ValueSupplier): @@ -48,7 +48,7 @@ class CatalogValueSupplier(ValueSupplier): supports_multiple_types = False def __init__(self, value_catalog=None): - # type: (Optional[InteractionModel_ValueCatalogV1]) -> None + # type: (Optional[ValueCatalog_7d792103]) -> None """Supply slot values from catalog(s). :param value_catalog: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py index 27d3c76..f95947c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot import ConflictIntentSlot as ConflictDetection_ConflictIntentSlotV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot import ConflictIntentSlot as ConflictIntentSlot_925d4bc8 class ConflictIntent(object): @@ -47,7 +47,7 @@ class ConflictIntent(object): supports_multiple_types = False def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, ConflictDetection_ConflictIntentSlotV1]]) -> None + # type: (Optional[str], Optional[Dict[str, ConflictIntentSlot_925d4bc8]]) -> None """ :param name: Conflict intent name diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py index 60197dc..2172fd9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent import ConflictIntent as ConflictDetection_ConflictIntentV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent import ConflictIntent as ConflictIntent_b2b26bb1 class ConflictResult(object): @@ -47,7 +47,7 @@ class ConflictResult(object): supports_multiple_types = False def __init__(self, sample_utterance=None, intent=None): - # type: (Optional[str], Optional[ConflictDetection_ConflictIntentV1]) -> None + # type: (Optional[str], Optional[ConflictIntent_b2b26bb1]) -> None """ :param sample_utterance: Sample utterance provided by 3P developers for intents. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py index e913758..0c8e331 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status import ConflictDetectionJobStatus as ConflictDetection_ConflictDetectionJobStatusV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status import ConflictDetectionJobStatus as ConflictDetectionJobStatus_4a73678d class GetConflictDetectionJobStatusResponse(object): @@ -47,7 +47,7 @@ class GetConflictDetectionJobStatusResponse(object): supports_multiple_types = False def __init__(self, status=None, total_conflicts=None): - # type: (Optional[ConflictDetection_ConflictDetectionJobStatusV1], Optional[float]) -> None + # type: (Optional[ConflictDetectionJobStatus_4a73678d], Optional[float]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py index ea8852d..1da36af 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as ConflictDetection_PaginationContextV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResult as ConflictDetection_GetConflictsResponseResultV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as PaginationContext_25fb50cf + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResult as GetConflictsResponseResult_a3ae2661 class GetConflictsResponse(PagedResponse): @@ -54,7 +54,7 @@ class GetConflictsResponse(PagedResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, results=None): - # type: (Optional[ConflictDetection_PaginationContextV1], Optional[V1_LinksV1], Optional[List[ConflictDetection_GetConflictsResponseResultV1]]) -> None + # type: (Optional[PaginationContext_25fb50cf], Optional[Links_bc43467b], Optional[List[GetConflictsResponseResult_a3ae2661]]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py index 156fa3c..eaca9da 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result import ConflictResult as ConflictDetection_ConflictResultV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result import ConflictResult as ConflictResult_e85f1991 class GetConflictsResponseResult(object): @@ -47,7 +47,7 @@ class GetConflictsResponseResult(object): supports_multiple_types = False def __init__(self, conflicting_utterance=None, conflicts=None): - # type: (Optional[str], Optional[List[ConflictDetection_ConflictResultV1]]) -> None + # type: (Optional[str], Optional[List[ConflictResult_e85f1991]]) -> None """ :param conflicting_utterance: Utterance resolved from sample utterance that causes conflicts among different intents. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py index 6fd1b99..cc726c5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as ConflictDetection_PaginationContextV1 + from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as PaginationContext_25fb50cf + from ask_smapi_model.v1.links import Links as Links_bc43467b class PagedResponse(object): @@ -48,7 +48,7 @@ class PagedResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[ConflictDetection_PaginationContextV1], Optional[V1_LinksV1]) -> None + # type: (Optional[PaginationContext_25fb50cf], Optional[Links_bc43467b]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py index 047e930..04d7dcb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog_intents import DialogIntents as InteractionModel_DialogIntentsV1 - from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as InteractionModel_DelegationStrategyTypeV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_intents import DialogIntents as DialogIntents_30175679 + from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as DelegationStrategyType_41525f1c class Dialog(object): @@ -50,7 +50,7 @@ class Dialog(object): supports_multiple_types = False def __init__(self, delegation_strategy=None, intents=None): - # type: (Optional[InteractionModel_DelegationStrategyTypeV1], Optional[List[InteractionModel_DialogIntentsV1]]) -> None + # type: (Optional[DelegationStrategyType_41525f1c], Optional[List[DialogIntents_30175679]]) -> None """Defines dialog rules e.g. slot elicitation and validation, intent chaining etc. :param delegation_strategy: Defines a delegation strategy for the dialogs in this dialog model. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py index 142adf5..d2b18b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_intents.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog_slot_items import DialogSlotItems as InteractionModel_DialogSlotItemsV1 - from ask_smapi_model.v1.skill.interaction_model.dialog_intents_prompts import DialogIntentsPrompts as InteractionModel_DialogIntentsPromptsV1 - from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as InteractionModel_DelegationStrategyTypeV1 + from ask_smapi_model.v1.skill.interaction_model.delegation_strategy_type import DelegationStrategyType as DelegationStrategyType_41525f1c + from ask_smapi_model.v1.skill.interaction_model.dialog_intents_prompts import DialogIntentsPrompts as DialogIntentsPrompts_21433a86 + from ask_smapi_model.v1.skill.interaction_model.dialog_slot_items import DialogSlotItems as DialogSlotItems_b80f42ca class DialogIntents(object): @@ -61,7 +61,7 @@ class DialogIntents(object): supports_multiple_types = False def __init__(self, name=None, delegation_strategy=None, slots=None, confirmation_required=None, prompts=None): - # type: (Optional[str], Optional[InteractionModel_DelegationStrategyTypeV1], Optional[List[InteractionModel_DialogSlotItemsV1]], Optional[bool], Optional[InteractionModel_DialogIntentsPromptsV1]) -> None + # type: (Optional[str], Optional[DelegationStrategyType_41525f1c], Optional[List[DialogSlotItems_b80f42ca]], Optional[bool], Optional[DialogIntentsPrompts_21433a86]) -> None """ :param name: Name of the intent that has a dialog specification. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py index a2b37d6..67f98bf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/dialog_slot_items.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog_prompts import DialogPrompts as InteractionModel_DialogPromptsV1 - from ask_smapi_model.v1.skill.interaction_model.slot_validation import SlotValidation as InteractionModel_SlotValidationV1 + from ask_smapi_model.v1.skill.interaction_model.dialog_prompts import DialogPrompts as DialogPrompts_613880e9 + from ask_smapi_model.v1.skill.interaction_model.slot_validation import SlotValidation as SlotValidation_a707da03 class DialogSlotItems(object): @@ -64,7 +64,7 @@ class DialogSlotItems(object): supports_multiple_types = False def __init__(self, name=None, object_type=None, elicitation_required=None, confirmation_required=None, prompts=None, validations=None): - # type: (Optional[str], Optional[str], Optional[bool], Optional[bool], Optional[InteractionModel_DialogPromptsV1], Optional[List[InteractionModel_SlotValidationV1]]) -> None + # type: (Optional[str], Optional[str], Optional[bool], Optional[bool], Optional[DialogPrompts_613880e9], Optional[List[SlotValidation_a707da03]]) -> None """ :param name: The name of the slot that has dialog rules associated with it. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py index 4cb4717..5fe919c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/fallback_intent_sensitivity.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel as InteractionModel_FallbackIntentSensitivityLevelV1 + from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel as FallbackIntentSensitivityLevel_f253866b class FallbackIntentSensitivity(object): @@ -45,7 +45,7 @@ class FallbackIntentSensitivity(object): supports_multiple_types = False def __init__(self, level=None): - # type: (Optional[InteractionModel_FallbackIntentSensitivityLevelV1]) -> None + # type: (Optional[FallbackIntentSensitivityLevel_f253866b]) -> None """Denotes skill's sensitivity for out-of-domain utterances. :param level: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py index b7dfcd9..01505e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/inline_value_supplier.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as InteractionModel_TypeValueV1 + from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as TypeValue_6d4bbead class InlineValueSupplier(ValueSupplier): @@ -48,7 +48,7 @@ class InlineValueSupplier(ValueSupplier): supports_multiple_types = False def __init__(self, values=None): - # type: (Optional[List[InteractionModel_TypeValueV1]]) -> None + # type: (Optional[List[TypeValue_6d4bbead]]) -> None """Supplies inline slot type values. :param values: The list of slot type values. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py index 8c3efbb..c38cd6c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.slot_definition import SlotDefinition as InteractionModel_SlotDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.slot_definition import SlotDefinition as SlotDefinition_fa94ac3 class Intent(object): @@ -53,7 +53,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, slots=None, samples=None): - # type: (Optional[str], Optional[List[InteractionModel_SlotDefinitionV1]], Optional[List[object]]) -> None + # type: (Optional[str], Optional[List[SlotDefinition_fa94ac3]], Optional[List[object]]) -> None """The set of intents your service can accept and process. :param name: Name to identify the intent. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py index 6801d9b..e3ab486 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.interaction_model_schema import InteractionModelSchema as InteractionModel_InteractionModelSchemaV1 + from ask_smapi_model.v1.skill.interaction_model.interaction_model_schema import InteractionModelSchema as InteractionModelSchema_63fd76ca class InteractionModelData(object): @@ -51,7 +51,7 @@ class InteractionModelData(object): supports_multiple_types = False def __init__(self, version=None, description=None, interaction_model=None): - # type: (Optional[str], Optional[str], Optional[InteractionModel_InteractionModelSchemaV1]) -> None + # type: (Optional[str], Optional[str], Optional[InteractionModelSchema_63fd76ca]) -> None """ :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py index 820ea59..1714b9a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/interaction_model_schema.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.dialog import Dialog as InteractionModel_DialogV1 - from ask_smapi_model.v1.skill.interaction_model.prompt import Prompt as InteractionModel_PromptV1 - from ask_smapi_model.v1.skill.interaction_model.language_model import LanguageModel as InteractionModel_LanguageModelV1 + from ask_smapi_model.v1.skill.interaction_model.dialog import Dialog as Dialog_57cb7416 + from ask_smapi_model.v1.skill.interaction_model.language_model import LanguageModel as LanguageModel_70c320dd + from ask_smapi_model.v1.skill.interaction_model.prompt import Prompt as Prompt_d3acdc96 class InteractionModelSchema(object): @@ -53,7 +53,7 @@ class InteractionModelSchema(object): supports_multiple_types = False def __init__(self, language_model=None, dialog=None, prompts=None): - # type: (Optional[InteractionModel_LanguageModelV1], Optional[InteractionModel_DialogV1], Optional[List[InteractionModel_PromptV1]]) -> None + # type: (Optional[LanguageModel_70c320dd], Optional[Dialog_57cb7416], Optional[List[Prompt_d3acdc96]]) -> None """ :param language_model: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py index b984b0a..a6cfc1b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/catalog_auto_refresh.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.scheduled import Scheduled as Jobs_ScheduledV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.catalog import Catalog as Jobs_CatalogV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.catalog import Catalog as Catalog_5d01e944 + from ask_smapi_model.v1.skill.interaction_model.jobs.scheduled import Scheduled as Scheduled_efc5aac class CatalogAutoRefresh(JobDefinition): @@ -57,7 +57,7 @@ class CatalogAutoRefresh(JobDefinition): supports_multiple_types = False def __init__(self, trigger=None, status=None, resource=None): - # type: (Optional[Jobs_ScheduledV1], Optional[str], Optional[Jobs_CatalogV1]) -> None + # type: (Optional[Scheduled_efc5aac], Optional[str], Optional[Catalog_5d01e944]) -> None """Definition for CatalogAutoRefresh job. :param trigger: CatalogAutoRefresh can only have CatalogAutoRefresh trigger. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py index 8b43dc2..fa94b01 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/create_job_definition_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as Jobs_JobDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition import JobDefinition as JobDefinition_ee5db797 class CreateJobDefinitionRequest(object): @@ -49,7 +49,7 @@ class CreateJobDefinitionRequest(object): supports_multiple_types = False def __init__(self, vendor_id=None, job_definition=None): - # type: (Optional[str], Optional[Jobs_JobDefinitionV1]) -> None + # type: (Optional[str], Optional[JobDefinition_ee5db797]) -> None """Request to create job definitions. :param vendor_id: ID of the vendor owning the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py index 6f0ff24..251bcb4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/execution.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details import JobErrorDetails as Jobs_JobErrorDetailsV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_error_details import JobErrorDetails as JobErrorDetails_b4176392 class Execution(object): @@ -61,7 +61,7 @@ class Execution(object): supports_multiple_types = False def __init__(self, execution_id=None, timestamp=None, error_code=None, status=None, error_details=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[Jobs_JobErrorDetailsV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[JobErrorDetails_b4176392]) -> None """Execution data. :param execution_id: Identifier of the execution. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py index 3e6a0d1..77fadf0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/get_executions_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as Jobs_JobAPIPaginationContextV1 - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.execution import Execution as Jobs_ExecutionV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as JobAPIPaginationContext_8ba512fb + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.jobs.execution import Execution as Execution_6b1925c2 class GetExecutionsResponse(object): @@ -55,7 +55,7 @@ class GetExecutionsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, executions=None): - # type: (Optional[Jobs_JobAPIPaginationContextV1], Optional[V1_LinksV1], Optional[List[Jobs_ExecutionV1]]) -> None + # type: (Optional[JobAPIPaginationContext_8ba512fb], Optional[Links_bc43467b], Optional[List[Execution_6b1925c2]]) -> None """The response of get execution history. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py index b4ab3e3..7c215cc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import Trigger as Jobs_TriggerV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.trigger import Trigger as Trigger_ce25c582 class JobDefinition(object): @@ -73,7 +73,7 @@ class JobDefinition(object): @abstractmethod def __init__(self, object_type=None, trigger=None, status=None): - # type: (Optional[str], Optional[Jobs_TriggerV1], Optional[str]) -> None + # type: (Optional[str], Optional[Trigger_ce25c582], Optional[str]) -> None """Definition for dynamic job. :param object_type: Polymorphic type of the job diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py index 0f3bc55..1dc74de 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_definition_metadata.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as Jobs_JobDefinitionStatusV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as JobDefinitionStatus_2d026a70 class JobDefinitionMetadata(object): @@ -53,7 +53,7 @@ class JobDefinitionMetadata(object): supports_multiple_types = False def __init__(self, id=None, object_type=None, status=None): - # type: (Optional[str], Optional[str], Optional[Jobs_JobDefinitionStatusV1]) -> None + # type: (Optional[str], Optional[str], Optional[JobDefinitionStatus_2d026a70]) -> None """Metadata of the job definition. :param id: Job identifier. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py index 3ddb89f..75abb8a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/job_error_details.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata import ExecutionMetadata as Jobs_ExecutionMetadataV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.execution_metadata import ExecutionMetadata as ExecutionMetadata_cbbdc8af class JobErrorDetails(object): @@ -45,7 +45,7 @@ class JobErrorDetails(object): supports_multiple_types = False def __init__(self, execution_metadata=None): - # type: (Optional[List[Jobs_ExecutionMetadataV1]]) -> None + # type: (Optional[List[ExecutionMetadata_cbbdc8af]]) -> None """Optional details if the execution is depending on other executions. :param execution_metadata: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py index e9e6243..aaae174 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/list_job_definitions_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata import JobDefinitionMetadata as Jobs_JobDefinitionMetadataV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as Jobs_JobAPIPaginationContextV1 - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_api_pagination_context import JobAPIPaginationContext as JobAPIPaginationContext_8ba512fb + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_metadata import JobDefinitionMetadata as JobDefinitionMetadata_c4abc32a class ListJobDefinitionsResponse(object): @@ -55,7 +55,7 @@ class ListJobDefinitionsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, jobs=None): - # type: (Optional[Jobs_JobAPIPaginationContextV1], Optional[V1_LinksV1], Optional[List[Jobs_JobDefinitionMetadataV1]]) -> None + # type: (Optional[JobAPIPaginationContext_8ba512fb], Optional[Links_bc43467b], Optional[List[JobDefinitionMetadata_c4abc32a]]) -> None """The response of list job definitions. :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py index 6eaa433..b5946ed 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/reference_version_update.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject as Jobs_ResourceObjectV1 - from ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete import ReferencedResourceJobsComplete as Jobs_ReferencedResourceJobsCompleteV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.resource_object import ResourceObject as ResourceObject_91e8440b + from ask_smapi_model.v1.skill.interaction_model.jobs.referenced_resource_jobs_complete import ReferencedResourceJobsComplete as ReferencedResourceJobsComplete_fb43acad class ReferenceVersionUpdate(JobDefinition): @@ -65,7 +65,7 @@ class ReferenceVersionUpdate(JobDefinition): supports_multiple_types = False def __init__(self, trigger=None, status=None, resource=None, references=None, publish_to_live=None): - # type: (Optional[Jobs_ReferencedResourceJobsCompleteV1], Optional[str], Optional[Jobs_ResourceObjectV1], Optional[List[Jobs_ResourceObjectV1]], Optional[bool]) -> None + # type: (Optional[ReferencedResourceJobsComplete_fb43acad], Optional[str], Optional[ResourceObject_91e8440b], Optional[List[ResourceObject_91e8440b]], Optional[bool]) -> None """Definition for ReferenceVersionUpdate job. :param trigger: Can only have ReferencedResourceJobsComplete trigger. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py index 9bfab0d..f1c692b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/update_job_status_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as Jobs_JobDefinitionStatusV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.job_definition_status import JobDefinitionStatus as JobDefinitionStatus_2d026a70 class UpdateJobStatusRequest(object): @@ -45,7 +45,7 @@ class UpdateJobStatusRequest(object): supports_multiple_types = False def __init__(self, status=None): - # type: (Optional[Jobs_JobDefinitionStatusV1]) -> None + # type: (Optional[JobDefinitionStatus_2d026a70]) -> None """Update job status. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py index 9e9ed63..09fe96d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/validation_errors.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error import DynamicUpdateError as Jobs_DynamicUpdateErrorV1 + from ask_smapi_model.v1.skill.interaction_model.jobs.dynamic_update_error import DynamicUpdateError as DynamicUpdateError_da9be79c class ValidationErrors(object): @@ -45,7 +45,7 @@ class ValidationErrors(object): supports_multiple_types = False def __init__(self, errors=None): - # type: (Optional[List[Jobs_DynamicUpdateErrorV1]]) -> None + # type: (Optional[List[DynamicUpdateError_da9be79c]]) -> None """The list of errors. :param errors: The list of errors. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py index e476483..68ebc6d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/language_model.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_configuration import ModelConfiguration as InteractionModel_ModelConfigurationV1 - from ask_smapi_model.v1.skill.interaction_model.intent import Intent as InteractionModel_IntentV1 - from ask_smapi_model.v1.skill.interaction_model.slot_type import SlotType as InteractionModel_SlotTypeV1 + from ask_smapi_model.v1.skill.interaction_model.intent import Intent as Intent_40cc0d96 + from ask_smapi_model.v1.skill.interaction_model.model_configuration import ModelConfiguration as ModelConfiguration_8fc09c73 + from ask_smapi_model.v1.skill.interaction_model.slot_type import SlotType as SlotType_4f0557e3 class LanguageModel(object): @@ -59,7 +59,7 @@ class LanguageModel(object): supports_multiple_types = False def __init__(self, invocation_name=None, types=None, intents=None, model_configuration=None): - # type: (Optional[str], Optional[List[InteractionModel_SlotTypeV1]], Optional[List[InteractionModel_IntentV1]], Optional[InteractionModel_ModelConfigurationV1]) -> None + # type: (Optional[str], Optional[List[SlotType_4f0557e3]], Optional[List[Intent_40cc0d96]], Optional[ModelConfiguration_8fc09c73]) -> None """Define the language model. :param invocation_name: Invocation name of the skill. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py index 137bbc2..f2856e5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_configuration.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity import FallbackIntentSensitivity as InteractionModel_FallbackIntentSensitivityV1 + from ask_smapi_model.v1.skill.interaction_model.fallback_intent_sensitivity import FallbackIntentSensitivity as FallbackIntentSensitivity_b18daf14 class ModelConfiguration(object): @@ -45,7 +45,7 @@ class ModelConfiguration(object): supports_multiple_types = False def __init__(self, fallback_intent_sensitivity=None): - # type: (Optional[InteractionModel_FallbackIntentSensitivityV1]) -> None + # type: (Optional[FallbackIntentSensitivity_b18daf14]) -> None """Global configurations applicable to a skill's model. :param fallback_intent_sensitivity: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py index 0121d3f..7368047 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/definition_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as ModelType_SlotTypeInputV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as SlotTypeInput_adfe084 class DefinitionData(object): @@ -49,7 +49,7 @@ class DefinitionData(object): supports_multiple_types = False def __init__(self, slot_type=None, vendor_id=None): - # type: (Optional[ModelType_SlotTypeInputV1], Optional[str]) -> None + # type: (Optional[SlotTypeInput_adfe084], Optional[str]) -> None """Slot type request definitions. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py index f3c81b9..018974a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/last_update_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.warning import Warning as ModelType_WarningV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status_type import SlotTypeStatusType as ModelType_SlotTypeStatusTypeV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.error import Error as ModelType_ErrorV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status_type import SlotTypeStatusType as SlotTypeStatusType_7b04d795 + from ask_smapi_model.v1.skill.interaction_model.model_type.warning import Warning as Warning_e65df984 + from ask_smapi_model.v1.skill.interaction_model.model_type.error import Error as Error_bf6a85dc class LastUpdateRequest(object): @@ -59,7 +59,7 @@ class LastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, version=None, errors=None, warnings=None): - # type: (Optional[ModelType_SlotTypeStatusTypeV1], Optional[str], Optional[List[ModelType_ErrorV1]], Optional[List[ModelType_WarningV1]]) -> None + # type: (Optional[SlotTypeStatusType_7b04d795], Optional[str], Optional[List[Error_bf6a85dc]], Optional[List[Warning_e65df984]]) -> None """Contains attributes related to last modification request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py index 705f8c1..a118106 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/list_slot_type_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_item import SlotTypeItem as ModelType_SlotTypeItemV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_item import SlotTypeItem as SlotTypeItem_2093a99c class ListSlotTypeResponse(object): @@ -54,7 +54,7 @@ class ListSlotTypeResponse(object): supports_multiple_types = False def __init__(self, links=None, slot_types=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[ModelType_SlotTypeItemV1]], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[SlotTypeItem_2093a99c]], Optional[str]) -> None """List of slot types of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py index 533fb74..6c7c52c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as ModelType_SlotTypeInputV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_input import SlotTypeInput as SlotTypeInput_adfe084 class SlotTypeDefinitionOutput(object): @@ -49,7 +49,7 @@ class SlotTypeDefinitionOutput(object): supports_multiple_types = False def __init__(self, slot_type=None, total_versions=None): - # type: (Optional[ModelType_SlotTypeInputV1], Optional[str]) -> None + # type: (Optional[SlotTypeInput_adfe084], Optional[str]) -> None """Slot Type request definitions. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py index 9254d6b..259d471 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b class SlotTypeItem(object): @@ -57,7 +57,7 @@ class SlotTypeItem(object): supports_multiple_types = False def __init__(self, name=None, description=None, id=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[V1_LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Links_bc43467b]) -> None """Definition for slot type entity. :param name: Name of the slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py index 3f7e389..5844639 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response_entity import SlotTypeResponseEntity as ModelType_SlotTypeResponseEntityV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response_entity import SlotTypeResponseEntity as SlotTypeResponseEntity_31d87d3 class SlotTypeResponse(object): @@ -45,7 +45,7 @@ class SlotTypeResponse(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[ModelType_SlotTypeResponseEntityV1]) -> None + # type: (Optional[SlotTypeResponseEntity_31d87d3]) -> None """Slot Type information. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py index 21ac69c..c792947 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.last_update_request import LastUpdateRequest as ModelType_LastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.last_update_request import LastUpdateRequest as LastUpdateRequest_a39ac03e class SlotTypeStatus(object): @@ -45,7 +45,7 @@ class SlotTypeStatus(object): supports_multiple_types = False def __init__(self, update_request=None): - # type: (Optional[ModelType_LastUpdateRequestV1]) -> None + # type: (Optional[LastUpdateRequest_a39ac03e]) -> None """Defines the structure for slot type status response. :param update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py index ea96156..a7fa69d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/update_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_update_definition import SlotTypeUpdateDefinition as ModelType_SlotTypeUpdateDefinitionV1 + from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_update_definition import SlotTypeUpdateDefinition as SlotTypeUpdateDefinition_cc57d523 class UpdateRequest(object): @@ -45,7 +45,7 @@ class UpdateRequest(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[ModelType_SlotTypeUpdateDefinitionV1]) -> None + # type: (Optional[SlotTypeUpdateDefinition_cc57d523]) -> None """Slot type update request object. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py index d3ee9a0..a9c9f27 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.prompt_items import PromptItems as InteractionModel_PromptItemsV1 + from ask_smapi_model.v1.skill.interaction_model.prompt_items import PromptItems as PromptItems_cab2750b class Prompt(object): @@ -47,7 +47,7 @@ class Prompt(object): supports_multiple_types = False def __init__(self, id=None, variations=None): - # type: (Optional[str], Optional[List[InteractionModel_PromptItemsV1]]) -> None + # type: (Optional[str], Optional[List[PromptItems_cab2750b]]) -> None """ :param id: The prompt id, this id can be used from dialog definitions. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py index 7af65e0..53b4edf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/prompt_items.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.prompt_items_type import PromptItemsType as InteractionModel_PromptItemsTypeV1 + from ask_smapi_model.v1.skill.interaction_model.prompt_items_type import PromptItemsType as PromptItemsType_ab40ad64 class PromptItems(object): @@ -47,7 +47,7 @@ class PromptItems(object): supports_multiple_types = False def __init__(self, object_type=None, value=None): - # type: (Optional[InteractionModel_PromptItemsTypeV1], Optional[str]) -> None + # type: (Optional[PromptItemsType_ab40ad64], Optional[str]) -> None """ :param object_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py index 06c52f7..a5e920f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.multiple_values_config import MultipleValuesConfig as InteractionModel_MultipleValuesConfigV1 + from ask_smapi_model.v1.skill.interaction_model.multiple_values_config import MultipleValuesConfig as MultipleValuesConfig_83acc8ba class SlotDefinition(object): @@ -57,7 +57,7 @@ class SlotDefinition(object): supports_multiple_types = False def __init__(self, name=None, object_type=None, multiple_values=None, samples=None): - # type: (Optional[str], Optional[str], Optional[InteractionModel_MultipleValuesConfigV1], Optional[List[object]]) -> None + # type: (Optional[str], Optional[str], Optional[MultipleValuesConfig_83acc8ba], Optional[List[object]]) -> None """Slot definition. :param name: The name of the slot. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py index 8d581bb..27107da 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as InteractionModel_ValueSupplierV1 - from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as InteractionModel_TypeValueV1 + from ask_smapi_model.v1.skill.interaction_model.type_value import TypeValue as TypeValue_6d4bbead + from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as ValueSupplier_88bf9fe1 class SlotType(object): @@ -54,7 +54,7 @@ class SlotType(object): supports_multiple_types = False def __init__(self, name=None, values=None, value_supplier=None): - # type: (Optional[str], Optional[List[InteractionModel_TypeValueV1]], Optional[InteractionModel_ValueSupplierV1]) -> None + # type: (Optional[str], Optional[List[TypeValue_6d4bbead]], Optional[ValueSupplier_88bf9fe1]) -> None """Custom slot type to define a list of possible values for a slot. Used for items that are not covered by Amazon's built-in slot types. :param name: The name of the custom slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py index 80b7c9f..8be943c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_value.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_value_object import TypeValueObject as InteractionModel_TypeValueObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_value_object import TypeValueObject as TypeValueObject_a6f9c062 class TypeValue(object): @@ -49,7 +49,7 @@ class TypeValue(object): supports_multiple_types = False def __init__(self, id=None, name=None): - # type: (Optional[str], Optional[InteractionModel_TypeValueObjectV1]) -> None + # type: (Optional[str], Optional[TypeValueObject_a6f9c062]) -> None """The value schema in type object of interaction model. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py index 1cbcd8f..4519218 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/list_slot_type_version_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_item import SlotTypeVersionItem as TypeVersion_SlotTypeVersionItemV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_item import SlotTypeVersionItem as SlotTypeVersionItem_424d2cc6 class ListSlotTypeVersionResponse(object): @@ -54,7 +54,7 @@ class ListSlotTypeVersionResponse(object): supports_multiple_types = False def __init__(self, links=None, slot_type_versions=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[TypeVersion_SlotTypeVersionItemV1]], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[SlotTypeVersionItem_424d2cc6]], Optional[str]) -> None """List of slot type versions of a skill for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py index 30203a3..9a10716 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_update.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update_object import SlotTypeUpdateObject as TypeVersion_SlotTypeUpdateObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update_object import SlotTypeUpdateObject as SlotTypeUpdateObject_f14eb740 class SlotTypeUpdate(object): @@ -45,7 +45,7 @@ class SlotTypeUpdate(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[TypeVersion_SlotTypeUpdateObjectV1]) -> None + # type: (Optional[SlotTypeUpdateObject_f14eb740]) -> None """Slot Type update description wrapper. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py index 2473e64..242e317 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data_object import SlotTypeVersionDataObject as TypeVersion_SlotTypeVersionDataObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data_object import SlotTypeVersionDataObject as SlotTypeVersionDataObject_9bb98401 class SlotTypeVersionData(object): @@ -45,7 +45,7 @@ class SlotTypeVersionData(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[TypeVersion_SlotTypeVersionDataObjectV1]) -> None + # type: (Optional[SlotTypeVersionDataObject_9bb98401]) -> None """Slot Type version data with metadata. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py index 09ea1e0..40edda7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_data_object.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as TypeVersion_ValueSupplierObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as ValueSupplierObject_922aef8f class SlotTypeVersionDataObject(object): @@ -57,7 +57,7 @@ class SlotTypeVersionDataObject(object): supports_multiple_types = False def __init__(self, id=None, definition=None, description=None, version=None): - # type: (Optional[str], Optional[TypeVersion_ValueSupplierObjectV1], Optional[str], Optional[str]) -> None + # type: (Optional[str], Optional[ValueSupplierObject_922aef8f], Optional[str], Optional[str]) -> None """Slot Type version fields with metadata. :param id: Slot type id associated with the slot type version. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py index 9a60e14..1872d68 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/slot_type_version_item.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b class SlotTypeVersionItem(object): @@ -53,7 +53,7 @@ class SlotTypeVersionItem(object): supports_multiple_types = False def __init__(self, version=None, description=None, links=None): - # type: (Optional[str], Optional[str], Optional[V1_LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[Links_bc43467b]) -> None """Definition for slot type entity. :param version: Version number of slot type. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py index 2a5e07a..a6dfb58 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/value_supplier_object.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as InteractionModel_ValueSupplierV1 + from ask_smapi_model.v1.skill.interaction_model.value_supplier import ValueSupplier as ValueSupplier_88bf9fe1 class ValueSupplierObject(object): @@ -45,7 +45,7 @@ class ValueSupplierObject(object): supports_multiple_types = False def __init__(self, value_supplier=None): - # type: (Optional[InteractionModel_ValueSupplierV1]) -> None + # type: (Optional[ValueSupplier_88bf9fe1]) -> None """Value supplier object for slot definition. :param value_supplier: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py index 1139cb7..8482161 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.version_data_object import VersionDataObject as TypeVersion_VersionDataObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.version_data_object import VersionDataObject as VersionDataObject_21c8201d class VersionData(object): @@ -45,7 +45,7 @@ class VersionData(object): supports_multiple_types = False def __init__(self, slot_type=None): - # type: (Optional[TypeVersion_VersionDataObjectV1]) -> None + # type: (Optional[VersionDataObject_21c8201d]) -> None """Slot Type version specific data. :param slot_type: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py index bd458d3..9f037c6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/version_data_object.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as TypeVersion_ValueSupplierObjectV1 + from ask_smapi_model.v1.skill.interaction_model.type_version.value_supplier_object import ValueSupplierObject as ValueSupplierObject_922aef8f class VersionDataObject(object): @@ -49,7 +49,7 @@ class VersionDataObject(object): supports_multiple_types = False def __init__(self, definition=None, description=None): - # type: (Optional[TypeVersion_ValueSupplierObjectV1], Optional[str]) -> None + # type: (Optional[ValueSupplierObject_922aef8f], Optional[str]) -> None """Slot Type version fields with specific data. :param definition: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py index 43454ff..2dc8c08 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_entity_version.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Links_7f14ca56 class CatalogEntityVersion(object): @@ -57,7 +57,7 @@ class CatalogEntityVersion(object): supports_multiple_types = False def __init__(self, version=None, creation_time=None, description=None, links=None): - # type: (Optional[str], Optional[datetime], Optional[str], Optional[Version_LinksV1]) -> None + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Links_7f14ca56]) -> None """Version metadata about the catalog entity version. :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py index 8766eef..5339a71 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_values.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.version.value_schema import ValueSchema as Version_ValueSchemaV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.version.value_schema import ValueSchema as ValueSchema_5ad1df21 class CatalogValues(object): @@ -62,7 +62,7 @@ class CatalogValues(object): supports_multiple_types = False def __init__(self, is_truncated=None, next_token=None, total_count=None, links=None, values=None): - # type: (Optional[bool], Optional[str], Optional[int], Optional[V1_LinksV1], Optional[List[Version_ValueSchemaV1]]) -> None + # type: (Optional[bool], Optional[str], Optional[int], Optional[Links_bc43467b], Optional[List[ValueSchema_5ad1df21]]) -> None """List of catalog values. :param is_truncated: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py index 63f9bb8..f425a7e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as Version_InputSourceV1 + from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as InputSource_f7163db5 class CatalogVersionData(object): @@ -53,7 +53,7 @@ class CatalogVersionData(object): supports_multiple_types = False def __init__(self, source=None, description=None, version=None): - # type: (Optional[Version_InputSourceV1], Optional[str], Optional[str]) -> None + # type: (Optional[InputSource_f7163db5], Optional[str], Optional[str]) -> None """Catalog version data with metadata. :param source: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py index bb9323e..d851707 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import Link as V1_LinkV1 + from ask_smapi_model.v1.link import Link as Link_5c161ca5 class Links(object): @@ -43,7 +43,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None): - # type: (Optional[V1_LinkV1]) -> None + # type: (Optional[Link_5c161ca5]) -> None """ :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py index dbd0ee9..5153d2f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_catalog_entity_versions_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.catalog_entity_version import CatalogEntityVersion as Version_CatalogEntityVersionV1 - from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Links_7f14ca56 + from ask_smapi_model.v1.skill.interaction_model.version.catalog_entity_version import CatalogEntityVersion as CatalogEntityVersion_3888263a class ListCatalogEntityVersionsResponse(object): @@ -62,7 +62,7 @@ class ListCatalogEntityVersionsResponse(object): supports_multiple_types = False def __init__(self, links=None, catalog_versions=None, is_truncated=None, next_token=None, total_count=None): - # type: (Optional[Version_LinksV1], Optional[List[Version_CatalogEntityVersionV1]], Optional[bool], Optional[str], Optional[int]) -> None + # type: (Optional[Links_7f14ca56], Optional[List[CatalogEntityVersion_3888263a]], Optional[bool], Optional[str], Optional[int]) -> None """List of catalog versions of a catalog for the vendor in sortDirection order, descending as default. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py index 877cd5a..3e95748 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/list_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.interaction_model.version.version_items import VersionItems as Version_VersionItemsV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.interaction_model.version.version_items import VersionItems as VersionItems_678f4ab class ListResponse(object): @@ -58,7 +58,7 @@ class ListResponse(object): supports_multiple_types = False def __init__(self, links=None, skill_model_versions=None, is_truncated=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[Version_VersionItemsV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[VersionItems_678f4ab]], Optional[bool], Optional[str]) -> None """List of interactionModel versions of a skill for the vendor :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py index 6f61abb..8d6af11 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/value_schema.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.value_schema_name import ValueSchemaName as Version_ValueSchemaNameV1 + from ask_smapi_model.v1.skill.interaction_model.version.value_schema_name import ValueSchemaName as ValueSchemaName_bf76f45c class ValueSchema(object): @@ -49,7 +49,7 @@ class ValueSchema(object): supports_multiple_types = False def __init__(self, id=None, name=None): - # type: (Optional[str], Optional[Version_ValueSchemaNameV1]) -> None + # type: (Optional[str], Optional[ValueSchemaName_bf76f45c]) -> None """The value schema in type object of interaction model. :param id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py index d92bd77..8353798 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_data.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as Version_InputSourceV1 + from ask_smapi_model.v1.skill.interaction_model.version.input_source import InputSource as InputSource_f7163db5 class VersionData(object): @@ -49,7 +49,7 @@ class VersionData(object): supports_multiple_types = False def __init__(self, source=None, description=None): - # type: (Optional[Version_InputSourceV1], Optional[str]) -> None + # type: (Optional[InputSource_f7163db5], Optional[str]) -> None """Catalog version specific data. :param source: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py index 8553e0f..ae4dd2e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/version_items.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Version_LinksV1 + from ask_smapi_model.v1.skill.interaction_model.version.links import Links as Links_7f14ca56 class VersionItems(object): @@ -57,7 +57,7 @@ class VersionItems(object): supports_multiple_types = False def __init__(self, version=None, creation_time=None, description=None, links=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[Version_LinksV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[Links_7f14ca56]) -> None """Version metadata about the entity. :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py index 37c3efd..1535149 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model_last_update_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 - from ask_smapi_model.v1.skill.build_details import BuildDetails as Skill_BuildDetailsV1 + from ask_smapi_model.v1.skill.status import Status as Status_585d1308 + from ask_smapi_model.v1.skill.build_details import BuildDetails as BuildDetails_e31a9a37 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class InteractionModelLastUpdateRequest(object): @@ -59,7 +59,7 @@ class InteractionModelLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, build_details=None): - # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[Skill_BuildDetailsV1]) -> None + # type: (Optional[Status_585d1308], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]], Optional[BuildDetails_e31a9a37]) -> None """Contains attributes related to last modification (create/update) request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py index 76c1bb2..6f2b847 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invocation_response_result.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.skill_execution_info import SkillExecutionInfo as Invocations_SkillExecutionInfoV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.invocations.skill_execution_info import SkillExecutionInfo as SkillExecutionInfo_a72238cf + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class InvocationResponseResult(object): @@ -48,7 +48,7 @@ class InvocationResponseResult(object): supports_multiple_types = False def __init__(self, skill_execution_info=None, error=None): - # type: (Optional[Invocations_SkillExecutionInfoV1], Optional[Skill_StandardizedErrorV1]) -> None + # type: (Optional[SkillExecutionInfo_a72238cf], Optional[StandardizedError_f5106a89]) -> None """ :param skill_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py index b40caae..e0496ee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.skill_request import SkillRequest as Invocations_SkillRequestV1 - from ask_smapi_model.v1.skill.invocations.end_point_regions import EndPointRegions as Invocations_EndPointRegionsV1 + from ask_smapi_model.v1.skill.invocations.skill_request import SkillRequest as SkillRequest_354d57fc + from ask_smapi_model.v1.skill.invocations.end_point_regions import EndPointRegions as EndPointRegions_fe2fd2d7 class InvokeSkillRequest(object): @@ -48,7 +48,7 @@ class InvokeSkillRequest(object): supports_multiple_types = False def __init__(self, endpoint_region=None, skill_request=None): - # type: (Optional[Invocations_EndPointRegionsV1], Optional[Invocations_SkillRequestV1]) -> None + # type: (Optional[EndPointRegions_fe2fd2d7], Optional[SkillRequest_354d57fc]) -> None """ :param endpoint_region: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py index 473f53a..28c8bfc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/invoke_skill_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.invocation_response_status import InvocationResponseStatus as Invocations_InvocationResponseStatusV1 - from ask_smapi_model.v1.skill.invocations.invocation_response_result import InvocationResponseResult as Invocations_InvocationResponseResultV1 + from ask_smapi_model.v1.skill.invocations.invocation_response_result import InvocationResponseResult as InvocationResponseResult_8c0a7a7f + from ask_smapi_model.v1.skill.invocations.invocation_response_status import InvocationResponseStatus as InvocationResponseStatus_d722841f class InvokeSkillResponse(object): @@ -48,7 +48,7 @@ class InvokeSkillResponse(object): supports_multiple_types = False def __init__(self, status=None, result=None): - # type: (Optional[Invocations_InvocationResponseStatusV1], Optional[Invocations_InvocationResponseResultV1]) -> None + # type: (Optional[InvocationResponseStatus_d722841f], Optional[InvocationResponseResult_8c0a7a7f]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py index 5fbec8a..44ab450 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_execution_info.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.invocations.response import Response as Invocations_ResponseV1 - from ask_smapi_model.v1.skill.invocations.metrics import Metrics as Invocations_MetricsV1 - from ask_smapi_model.v1.skill.invocations.request import Request as Invocations_RequestV1 + from ask_smapi_model.v1.skill.invocations.response import Response as Response_fc63f99d + from ask_smapi_model.v1.skill.invocations.metrics import Metrics as Metrics_5e44e067 + from ask_smapi_model.v1.skill.invocations.request import Request as Request_f8b8b7ff class SkillExecutionInfo(object): @@ -53,7 +53,7 @@ class SkillExecutionInfo(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[Dict[str, Invocations_RequestV1]], Optional[Dict[str, Invocations_ResponseV1]], Optional[Dict[str, Invocations_MetricsV1]]) -> None + # type: (Optional[Dict[str, Request_f8b8b7ff]], Optional[Dict[str, Response_fc63f99d]], Optional[Dict[str, Metrics_5e44e067]]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py index 104c4bf..bfd764a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.skill_summary import SkillSummary as Skill_SkillSummaryV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.skill_summary import SkillSummary as SkillSummary_610b3b71 class ListSkillResponse(object): @@ -58,7 +58,7 @@ class ListSkillResponse(object): supports_multiple_types = False def __init__(self, links=None, skills=None, is_truncated=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[Skill_SkillSummaryV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[SkillSummary_610b3b71]], Optional[bool], Optional[str]) -> None """List of skills for the vendor. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py index c781376..651adab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/list_skill_versions_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.skill_version import SkillVersion as Skill_SkillVersionV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.skill_version import SkillVersion as SkillVersion_c642bcb1 class ListSkillVersionsResponse(object): @@ -58,7 +58,7 @@ class ListSkillVersionsResponse(object): supports_multiple_types = False def __init__(self, links=None, skill_versions=None, is_truncated=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[Skill_SkillVersionV1]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[SkillVersion_c642bcb1]], Optional[bool], Optional[str]) -> None """List of all skill versions :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py index 1362743..af0d95b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_apis.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface import AlexaForBusinessInterface as Manifest_AlexaForBusinessInterfaceV1 - from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface import AlexaForBusinessInterface as AlexaForBusinessInterface_bc7084aa + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 + from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 class AlexaForBusinessApis(object): @@ -55,7 +55,7 @@ class AlexaForBusinessApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, interfaces=None): - # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[List[Manifest_AlexaForBusinessInterfaceV1]]) -> None + # type: (Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[List[AlexaForBusinessInterface_bc7084aa]]) -> None """Defines the structure of alexaForBusiness api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py index d5bfada..41d87af 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.version import Version as Manifest_VersionV1 - from ask_smapi_model.v1.skill.manifest.request import Request as Manifest_RequestV1 + from ask_smapi_model.v1.skill.manifest.request import Request as Request_f4811697 + from ask_smapi_model.v1.skill.manifest.version import Version as Version_17871229 class AlexaForBusinessInterface(object): @@ -52,7 +52,7 @@ class AlexaForBusinessInterface(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None): - # type: (Optional[str], Optional[Manifest_VersionV1], Optional[List[Manifest_RequestV1]]) -> None + # type: (Optional[str], Optional[Version_17871229], Optional[List[Request_f4811697]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py index 178f90d..528e3ca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_presentation_apl_interface.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.viewport_specification import ViewportSpecification as Manifest_ViewportSpecificationV1 + from ask_smapi_model.v1.skill.manifest.viewport_specification import ViewportSpecification as ViewportSpecification_3bba5cf2 class AlexaPresentationAplInterface(Interface): @@ -48,7 +48,7 @@ class AlexaPresentationAplInterface(Interface): supports_multiple_types = False def __init__(self, supported_viewports=None): - # type: (Optional[List[Manifest_ViewportSpecificationV1]]) -> None + # type: (Optional[List[ViewportSpecification_3bba5cf2]]) -> None """Used to declare that the skill uses the Alexa.Presentation.APL interface. :param supported_viewports: List of supported viewports. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py index fe255f9..18cc30c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.connections_payload import ConnectionsPayload as Manifest_ConnectionsPayloadV1 + from ask_smapi_model.v1.skill.manifest.connections_payload import ConnectionsPayload as ConnectionsPayload_8d7b13bc class Connections(object): @@ -49,7 +49,7 @@ class Connections(object): supports_multiple_types = False def __init__(self, name=None, payload=None): - # type: (Optional[str], Optional[Manifest_ConnectionsPayloadV1]) -> None + # type: (Optional[str], Optional[ConnectionsPayload_8d7b13bc]) -> None """Skill connection object. :param name: Name of the connection. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py index ac7d3b1..0bf3e04 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task import SkillManifestCustomTask as Manifest_SkillManifestCustomTaskV1 - from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 - from ask_smapi_model.v1.skill.manifest.interface import Interface as Manifest_InterfaceV1 - from ask_smapi_model.v1.skill.manifest.custom_connections import CustomConnections as Manifest_CustomConnectionsV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task import SkillManifestCustomTask as SkillManifestCustomTask_32519412 + from ask_smapi_model.v1.skill.manifest.interface import Interface as Interface_1e4dc7ab + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 + from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 + from ask_smapi_model.v1.skill.manifest.custom_connections import CustomConnections as CustomConnections_1f24e36 class CustomApis(object): @@ -65,7 +65,7 @@ class CustomApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, interfaces=None, tasks=None, connections=None): - # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[List[Manifest_InterfaceV1]], Optional[List[Manifest_SkillManifestCustomTaskV1]], Optional[Manifest_CustomConnectionsV1]) -> None + # type: (Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[List[Interface_1e4dc7ab]], Optional[List[SkillManifestCustomTask_32519412]], Optional[CustomConnections_1f24e36]) -> None """Defines the structure for custom api of the skill. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py index 8dae6f7..b6e4f14 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.connections import Connections as Manifest_ConnectionsV1 + from ask_smapi_model.v1.skill.manifest.connections import Connections as Connections_5364d3a3 class CustomConnections(object): @@ -49,7 +49,7 @@ class CustomConnections(object): supports_multiple_types = False def __init__(self, requires=None, provides=None): - # type: (Optional[List[Manifest_ConnectionsV1]], Optional[List[Manifest_ConnectionsV1]]) -> None + # type: (Optional[List[Connections_5364d3a3]], Optional[List[Connections_5364d3a3]]) -> None """Supported connections. :param requires: List of required connections. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py index a5d6aab..21c8011 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/display_interface.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.display_interface_apml_version import DisplayInterfaceApmlVersion as Manifest_DisplayInterfaceApmlVersionV1 - from ask_smapi_model.v1.skill.manifest.display_interface_template_version import DisplayInterfaceTemplateVersion as Manifest_DisplayInterfaceTemplateVersionV1 + from ask_smapi_model.v1.skill.manifest.display_interface_apml_version import DisplayInterfaceApmlVersion as DisplayInterfaceApmlVersion_558fc1e8 + from ask_smapi_model.v1.skill.manifest.display_interface_template_version import DisplayInterfaceTemplateVersion as DisplayInterfaceTemplateVersion_13978768 class DisplayInterface(Interface): @@ -53,7 +53,7 @@ class DisplayInterface(Interface): supports_multiple_types = False def __init__(self, minimum_template_version=None, minimum_apml_version=None): - # type: (Optional[Manifest_DisplayInterfaceTemplateVersionV1], Optional[Manifest_DisplayInterfaceApmlVersionV1]) -> None + # type: (Optional[DisplayInterfaceTemplateVersion_13978768], Optional[DisplayInterfaceApmlVersion_558fc1e8]) -> None """Used to declare that the skill uses the Display interface. When a skill declares that it uses the Display interface the Display interface will be passed in the supportedInterfaces section of devices which meet any of the required minimum version attributes specified in the manifest. If the device does not meet any of the minimum versions specified in the manifest the Display interface will not be present in the supportedInterfaces section. If neither the minimumTemplateVersion nor the minimumApmlVersion attributes are specified in the manifes then the minimumTemplateVersion is defaulted to 1.0 and apmlVersion is omitted. :param minimum_template_version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py index 52e8268..5ff628f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.event_name_type import EventNameType as Manifest_EventNameTypeV1 + from ask_smapi_model.v1.skill.manifest.event_name_type import EventNameType as EventNameType_e044f521 class EventName(object): @@ -43,7 +43,7 @@ class EventName(object): supports_multiple_types = False def __init__(self, event_name=None): - # type: (Optional[Manifest_EventNameTypeV1]) -> None + # type: (Optional[EventNameType_e044f521]) -> None """ :param event_name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py index 3d02c66..35a8ce5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info import LocalizedFlashBriefingInfo as Manifest_LocalizedFlashBriefingInfoV1 + from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info import LocalizedFlashBriefingInfo as LocalizedFlashBriefingInfo_ff538220 class FlashBriefingApis(object): @@ -45,7 +45,7 @@ class FlashBriefingApis(object): supports_multiple_types = False def __init__(self, locales=None): - # type: (Optional[Dict[str, Manifest_LocalizedFlashBriefingInfoV1]]) -> None + # type: (Optional[Dict[str, LocalizedFlashBriefingInfo_ff538220]]) -> None """Defines the structure for flash briefing api of the skill. :param locales: Defines the structure for locale specific flash briefing api information. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py index f1292ee..18e7d93 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_interface import HealthInterface as Manifest_HealthInterfaceV1 - from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 - from ask_smapi_model.v1.skill.manifest.health_protocol_version import HealthProtocolVersion as Manifest_HealthProtocolVersionV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.health_protocol_version import HealthProtocolVersion as HealthProtocolVersion_55d5691 + from ask_smapi_model.v1.skill.manifest.health_interface import HealthInterface as HealthInterface_9e90f99e + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 + from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 class HealthApis(object): @@ -60,7 +60,7 @@ class HealthApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, protocol_version=None, interfaces=None): - # type: (Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1], Optional[Manifest_HealthProtocolVersionV1], Optional[Manifest_HealthInterfaceV1]) -> None + # type: (Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[HealthProtocolVersion_55d5691], Optional[HealthInterface_9e90f99e]) -> None """Defines the structure of health api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py index 256ef8a..00eddba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.version import Version as Manifest_VersionV1 - from ask_smapi_model.v1.skill.manifest.localized_health_info import LocalizedHealthInfo as Manifest_LocalizedHealthInfoV1 - from ask_smapi_model.v1.skill.manifest.health_request import HealthRequest as Manifest_HealthRequestV1 + from ask_smapi_model.v1.skill.manifest.health_request import HealthRequest as HealthRequest_8ee2408a + from ask_smapi_model.v1.skill.manifest.localized_health_info import LocalizedHealthInfo as LocalizedHealthInfo_a37e772b + from ask_smapi_model.v1.skill.manifest.version import Version as Version_17871229 class HealthInterface(object): @@ -57,7 +57,7 @@ class HealthInterface(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None, locales=None): - # type: (Optional[str], Optional[Manifest_VersionV1], Optional[List[Manifest_HealthRequestV1]], Optional[Dict[str, Manifest_LocalizedHealthInfoV1]]) -> None + # type: (Optional[str], Optional[Version_17871229], Optional[List[HealthRequest_8ee2408a]], Optional[Dict[str, LocalizedHealthInfo_a37e772b]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py index 68639a5..22609ad 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_region.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 class LambdaRegion(object): @@ -45,7 +45,7 @@ class LambdaRegion(object): supports_multiple_types = False def __init__(self, endpoint=None): - # type: (Optional[Manifest_LambdaEndpointV1]) -> None + # type: (Optional[LambdaEndpoint_87e61436]) -> None """Defines the structure of a regional information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py index dfdaca1..c928887 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems as Manifest_LocalizedFlashBriefingInfoItemsV1 + from ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems as LocalizedFlashBriefingInfoItems_61b30981 class LocalizedFlashBriefingInfo(object): @@ -49,7 +49,7 @@ class LocalizedFlashBriefingInfo(object): supports_multiple_types = False def __init__(self, feeds=None, custom_error_message=None): - # type: (Optional[List[Manifest_LocalizedFlashBriefingInfoItemsV1]], Optional[str]) -> None + # type: (Optional[List[LocalizedFlashBriefingInfoItems_61b30981]], Optional[str]) -> None """Defines the localized flash briefing api information. :param feeds: Defines the structure for a feed information in the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py index fe523b3..5002960 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info_items.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.flash_briefing_content_type import FlashBriefingContentType as Manifest_FlashBriefingContentTypeV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_update_frequency import FlashBriefingUpdateFrequency as Manifest_FlashBriefingUpdateFrequencyV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_genre import FlashBriefingGenre as Manifest_FlashBriefingGenreV1 + from ask_smapi_model.v1.skill.manifest.flash_briefing_update_frequency import FlashBriefingUpdateFrequency as FlashBriefingUpdateFrequency_fc6f8314 + from ask_smapi_model.v1.skill.manifest.flash_briefing_content_type import FlashBriefingContentType as FlashBriefingContentType_2621043a + from ask_smapi_model.v1.skill.manifest.flash_briefing_genre import FlashBriefingGenre as FlashBriefingGenre_e8bad3c5 class LocalizedFlashBriefingInfoItems(object): @@ -77,7 +77,7 @@ class LocalizedFlashBriefingInfoItems(object): supports_multiple_types = False def __init__(self, logical_name=None, name=None, url=None, image_uri=None, content_type=None, genre=None, update_frequency=None, vui_preamble=None, is_default=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[Manifest_FlashBriefingContentTypeV1], Optional[Manifest_FlashBriefingGenreV1], Optional[Manifest_FlashBriefingUpdateFrequencyV1], Optional[str], Optional[bool]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[FlashBriefingContentType_2621043a], Optional[FlashBriefingGenre_e8bad3c5], Optional[FlashBriefingUpdateFrequency_fc6f8314], Optional[str], Optional[bool]) -> None """ :param logical_name: Logical name of the feed. This is used to signify relation among feeds across different locales. Example If you have \"weather\" feed in multiple locale then consider naming it \"weather_update\" and we will make sure to play the right feed if customer changes the language on device. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py index dc034a7..359bdc3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_alias import HealthAlias as Manifest_HealthAliasV1 + from ask_smapi_model.v1.skill.manifest.health_alias import HealthAlias as HealthAlias_f9de66cc class LocalizedHealthInfo(object): @@ -49,7 +49,7 @@ class LocalizedHealthInfo(object): supports_multiple_types = False def __init__(self, prompt_name=None, aliases=None): - # type: (Optional[str], Optional[List[Manifest_HealthAliasV1]]) -> None + # type: (Optional[str], Optional[List[HealthAlias_f9de66cc]]) -> None """Defines the structure for health skill locale specific publishing information in the skill manifest. :param prompt_name: SSML supported name to use when Alexa renders the health skill name in a prompt to the user. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py index d3da072..84410a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_alias import MusicAlias as Manifest_MusicAliasV1 - from ask_smapi_model.v1.skill.manifest.music_feature import MusicFeature as Manifest_MusicFeatureV1 - from ask_smapi_model.v1.skill.manifest.music_wordmark import MusicWordmark as Manifest_MusicWordmarkV1 + from ask_smapi_model.v1.skill.manifest.music_wordmark import MusicWordmark as MusicWordmark_7fa21758 + from ask_smapi_model.v1.skill.manifest.music_alias import MusicAlias as MusicAlias_d8ed1e1c + from ask_smapi_model.v1.skill.manifest.music_feature import MusicFeature as MusicFeature_126f781c class LocalizedMusicInfo(object): @@ -59,7 +59,7 @@ class LocalizedMusicInfo(object): supports_multiple_types = False def __init__(self, prompt_name=None, aliases=None, features=None, wordmark_logos=None): - # type: (Optional[str], Optional[List[Manifest_MusicAliasV1]], Optional[List[Manifest_MusicFeatureV1]], Optional[List[Manifest_MusicWordmarkV1]]) -> None + # type: (Optional[str], Optional[List[MusicAlias_d8ed1e1c]], Optional[List[MusicFeature_126f781c]], Optional[List[MusicWordmark_7fa21758]]) -> None """Defines the structure of localized music information in the skill manifest. :param prompt_name: Name to be used when Alexa renders the music skill name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py index 7a1cdd5..969c1f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.gadget_support import GadgetSupport as Manifest_GadgetSupportV1 + from ask_smapi_model.v1.skill.manifest.gadget_support import GadgetSupport as GadgetSupport_718b090a class ManifestGadgetSupport(object): @@ -61,7 +61,7 @@ class ManifestGadgetSupport(object): supports_multiple_types = False def __init__(self, requirement=None, min_gadget_buttons=None, max_gadget_buttons=None, num_players_max=None, num_players_min=None): - # type: (Optional[Manifest_GadgetSupportV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None + # type: (Optional[GadgetSupport_718b090a], Optional[int], Optional[int], Optional[int], Optional[int]) -> None """Defines the structure for gadget buttons support in the skill manifest. :param requirement: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py index b65e8c0..f5a56a3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_apis.py @@ -23,12 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 - from ask_smapi_model.v1.skill.manifest.music_capability import MusicCapability as Manifest_MusicCapabilityV1 - from ask_smapi_model.v1.skill.manifest.music_content_type import MusicContentType as Manifest_MusicContentTypeV1 - from ask_smapi_model.v1.skill.manifest.localized_music_info import LocalizedMusicInfo as Manifest_LocalizedMusicInfoV1 - from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as Manifest_LambdaRegionV1 - from ask_smapi_model.v1.skill.manifest.music_interfaces import MusicInterfaces as Manifest_MusicInterfacesV1 + from ask_smapi_model.v1.skill.manifest.music_capability import MusicCapability as MusicCapability_d0d720da + from ask_smapi_model.v1.skill.manifest.localized_music_info import LocalizedMusicInfo as LocalizedMusicInfo_d0ce0241 + from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as LambdaRegion_3e305f16 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 + from ask_smapi_model.v1.skill.manifest.music_content_type import MusicContentType as MusicContentType_f344db69 + from ask_smapi_model.v1.skill.manifest.music_interfaces import MusicInterfaces as MusicInterfaces_8eb4875e class MusicApis(object): @@ -70,7 +70,7 @@ class MusicApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, capabilities=None, interfaces=None, locales=None, content_types=None): - # type: (Optional[Dict[str, Manifest_LambdaRegionV1]], Optional[Manifest_LambdaEndpointV1], Optional[List[Manifest_MusicCapabilityV1]], Optional[List[Manifest_MusicInterfacesV1]], Optional[Dict[str, Manifest_LocalizedMusicInfoV1]], Optional[List[Manifest_MusicContentTypeV1]]) -> None + # type: (Optional[Dict[str, LambdaRegion_3e305f16]], Optional[LambdaEndpoint_87e61436], Optional[List[MusicCapability_d0d720da]], Optional[List[MusicInterfaces_8eb4875e]], Optional[Dict[str, LocalizedMusicInfo_d0ce0241]], Optional[List[MusicContentType_f344db69]]) -> None """Defines the structure of music api in the skill manifest. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py index e5596df..508c0d1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_content_type.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_content_name import MusicContentName as Manifest_MusicContentNameV1 + from ask_smapi_model.v1.skill.manifest.music_content_name import MusicContentName as MusicContentName_8780c789 class MusicContentType(object): @@ -45,7 +45,7 @@ class MusicContentType(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[Manifest_MusicContentNameV1]) -> None + # type: (Optional[MusicContentName_8780c789]) -> None """Defines the structure for content that can be provided by a music skill. :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py index ae5e43a..d32baa0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/music_interfaces.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.music_request import MusicRequest as Manifest_MusicRequestV1 + from ask_smapi_model.v1.skill.manifest.music_request import MusicRequest as MusicRequest_803658bc class MusicInterfaces(object): @@ -51,7 +51,7 @@ class MusicInterfaces(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None): - # type: (Optional[str], Optional[str], Optional[List[Manifest_MusicRequestV1]]) -> None + # type: (Optional[str], Optional[str], Optional[List[MusicRequest_803658bc]]) -> None """ :param namespace: Name of the interface. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py index 956e6ea..a6395ef 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_items.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.permission_name import PermissionName as Manifest_PermissionNameV1 + from ask_smapi_model.v1.skill.manifest.permission_name import PermissionName as PermissionName_64e2a506 class PermissionItems(object): @@ -43,7 +43,7 @@ class PermissionItems(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[Manifest_PermissionNameV1]) -> None + # type: (Optional[PermissionName_64e2a506]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py index 5d15105..9dc913a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/region.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 class Region(object): @@ -45,7 +45,7 @@ class Region(object): supports_multiple_types = False def __init__(self, endpoint=None): - # type: (Optional[Manifest_SkillManifestEndpointV1]) -> None + # type: (Optional[SkillManifestEndpoint_b30bcc05]) -> None """Defines the structure for regional information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py index d9667ba..395fe01 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.request_name import RequestName as Manifest_RequestNameV1 + from ask_smapi_model.v1.skill.manifest.request_name import RequestName as RequestName_a5d181c0 class Request(object): @@ -43,7 +43,7 @@ class Request(object): supports_multiple_types = False def __init__(self, name=None): - # type: (Optional[Manifest_RequestNameV1]) -> None + # type: (Optional[RequestName_a5d181c0]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py index 47bb9d1..9b5d303 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py @@ -23,11 +23,11 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.permission_items import PermissionItems as Manifest_PermissionItemsV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance as Manifest_SkillManifestPrivacyAndComplianceV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_apis import SkillManifestApis as Manifest_SkillManifestApisV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_events import SkillManifestEvents as Manifest_SkillManifestEventsV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information import SkillManifestPublishingInformation as Manifest_SkillManifestPublishingInformationV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information import SkillManifestPublishingInformation as SkillManifestPublishingInformation_eef29c5e + from ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance as SkillManifestPrivacyAndCompliance_5c8f839f + from ask_smapi_model.v1.skill.manifest.skill_manifest_apis import SkillManifestApis as SkillManifestApis_cbb83f8d + from ask_smapi_model.v1.skill.manifest.permission_items import PermissionItems as PermissionItems_d3460cc + from ask_smapi_model.v1.skill.manifest.skill_manifest_events import SkillManifestEvents as SkillManifestEvents_29025b4d class SkillManifest(object): @@ -69,7 +69,7 @@ class SkillManifest(object): supports_multiple_types = False def __init__(self, manifest_version=None, publishing_information=None, privacy_and_compliance=None, events=None, permissions=None, apis=None): - # type: (Optional[str], Optional[Manifest_SkillManifestPublishingInformationV1], Optional[Manifest_SkillManifestPrivacyAndComplianceV1], Optional[Manifest_SkillManifestEventsV1], Optional[List[Manifest_PermissionItemsV1]], Optional[Manifest_SkillManifestApisV1]) -> None + # type: (Optional[str], Optional[SkillManifestPublishingInformation_eef29c5e], Optional[SkillManifestPrivacyAndCompliance_5c8f839f], Optional[SkillManifestEvents_29025b4d], Optional[List[PermissionItems_d3460cc]], Optional[SkillManifestApis_cbb83f8d]) -> None """Defines the structure for a skill's metadata. :param manifest_version: Version of the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py index 32cfe07..7d06dad 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py @@ -23,14 +23,14 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.smart_home_apis import SmartHomeApis as Manifest_SmartHomeApisV1 - from ask_smapi_model.v1.skill.manifest.health_apis import HealthApis as Manifest_HealthApisV1 - from ask_smapi_model.v1.skill.manifest.video_apis import VideoApis as Manifest_VideoApisV1 - from ask_smapi_model.v1.skill.manifest.alexa_for_business_apis import AlexaForBusinessApis as Manifest_AlexaForBusinessApisV1 - from ask_smapi_model.v1.skill.manifest.house_hold_list import HouseHoldList as Manifest_HouseHoldListV1 - from ask_smapi_model.v1.skill.manifest.flash_briefing_apis import FlashBriefingApis as Manifest_FlashBriefingApisV1 - from ask_smapi_model.v1.skill.manifest.custom_apis import CustomApis as Manifest_CustomApisV1 - from ask_smapi_model.v1.skill.manifest.music_apis import MusicApis as Manifest_MusicApisV1 + from ask_smapi_model.v1.skill.manifest.smart_home_apis import SmartHomeApis as SmartHomeApis_768def7d + from ask_smapi_model.v1.skill.manifest.music_apis import MusicApis as MusicApis_7489e85c + from ask_smapi_model.v1.skill.manifest.alexa_for_business_apis import AlexaForBusinessApis as AlexaForBusinessApis_8e9dbc0 + from ask_smapi_model.v1.skill.manifest.custom_apis import CustomApis as CustomApis_e197110a + from ask_smapi_model.v1.skill.manifest.health_apis import HealthApis as HealthApis_d9db5b60 + from ask_smapi_model.v1.skill.manifest.house_hold_list import HouseHoldList as HouseHoldList_76371b75 + from ask_smapi_model.v1.skill.manifest.video_apis import VideoApis as VideoApis_f912969c + from ask_smapi_model.v1.skill.manifest.flash_briefing_apis import FlashBriefingApis as FlashBriefingApis_a7aeebab class SkillManifestApis(object): @@ -80,7 +80,7 @@ class SkillManifestApis(object): supports_multiple_types = False def __init__(self, flash_briefing=None, custom=None, smart_home=None, video=None, alexa_for_business=None, health=None, household_list=None, music=None): - # type: (Optional[Manifest_FlashBriefingApisV1], Optional[Manifest_CustomApisV1], Optional[Manifest_SmartHomeApisV1], Optional[Manifest_VideoApisV1], Optional[Manifest_AlexaForBusinessApisV1], Optional[Manifest_HealthApisV1], Optional[Manifest_HouseHoldListV1], Optional[Manifest_MusicApisV1]) -> None + # type: (Optional[FlashBriefingApis_a7aeebab], Optional[CustomApis_e197110a], Optional[SmartHomeApis_768def7d], Optional[VideoApis_f912969c], Optional[AlexaForBusinessApis_8e9dbc0], Optional[HealthApis_d9db5b60], Optional[HouseHoldList_76371b75], Optional[MusicApis_7489e85c]) -> None """Defines the structure for implemented apis information in the skill manifest. :param flash_briefing: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py index c7ca064..dccc57d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_endpoint.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.ssl_certificate_type import SSLCertificateType as Manifest_SSLCertificateTypeV1 + from ask_smapi_model.v1.skill.manifest.ssl_certificate_type import SSLCertificateType as SSLCertificateType_b8d91d45 class SkillManifestEndpoint(object): @@ -49,7 +49,7 @@ class SkillManifestEndpoint(object): supports_multiple_types = False def __init__(self, uri=None, ssl_certificate_type=None): - # type: (Optional[str], Optional[Manifest_SSLCertificateTypeV1]) -> None + # type: (Optional[str], Optional[SSLCertificateType_b8d91d45]) -> None """Defines the structure for endpoint information in the skill manifest. :param uri: Amazon Resource Name (ARN) of the skill's Lambda function or HTTPS URL. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py index 6fa4d9b..fb469ba 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_envelope.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as Manifest_SkillManifestV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest import SkillManifest as SkillManifest_312bea88 class SkillManifestEnvelope(object): @@ -43,7 +43,7 @@ class SkillManifestEnvelope(object): supports_multiple_types = False def __init__(self, manifest=None): - # type: (Optional[Manifest_SkillManifestV1]) -> None + # type: (Optional[SkillManifest_312bea88]) -> None """ :param manifest: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py index b46599b..2a62a5d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_events.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.event_publications import EventPublications as Manifest_EventPublicationsV1 - from ask_smapi_model.v1.skill.manifest.region import Region as Manifest_RegionV1 - from ask_smapi_model.v1.skill.manifest.event_name import EventName as Manifest_EventNameV1 - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as Manifest_SkillManifestEndpointV1 + from ask_smapi_model.v1.skill.manifest.event_publications import EventPublications as EventPublications_edd60118 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 + from ask_smapi_model.v1.skill.manifest.event_name import EventName as EventName_36aae8a0 + from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 class SkillManifestEvents(object): @@ -60,7 +60,7 @@ class SkillManifestEvents(object): supports_multiple_types = False def __init__(self, subscriptions=None, publications=None, regions=None, endpoint=None): - # type: (Optional[List[Manifest_EventNameV1]], Optional[List[Manifest_EventPublicationsV1]], Optional[Dict[str, Manifest_RegionV1]], Optional[Manifest_SkillManifestEndpointV1]) -> None + # type: (Optional[List[EventName_36aae8a0]], Optional[List[EventPublications_edd60118]], Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05]) -> None """Defines the structure for subscribed events information in the skill manifest. :param subscriptions: Contains an array of eventName object each of which contains the name of a skill event. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py index 4f73dad..3aa825e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance as Manifest_SkillManifestLocalizedPrivacyAndComplianceV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance as SkillManifestLocalizedPrivacyAndCompliance_ef86fcec class SkillManifestPrivacyAndCompliance(object): @@ -69,7 +69,7 @@ class SkillManifestPrivacyAndCompliance(object): supports_multiple_types = False def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, is_child_directed=None, is_export_compliant=None, contains_ads=None, uses_health_info=None): - # type: (Optional[Dict[str, Manifest_SkillManifestLocalizedPrivacyAndComplianceV1]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None + # type: (Optional[Dict[str, SkillManifestLocalizedPrivacyAndCompliance_ef86fcec]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None """Defines the structure for privacy & compliance information in the skill manifest. :param locales: Defines the structure for locale specific privacy & compliance information in the skill manifest. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py index 30d3e04..9201631 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation as Manifest_SkillManifestLocalizedPublishingInformationV1 - from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as Manifest_DistributionModeV1 - from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupport as Manifest_ManifestGadgetSupportV1 - from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountries as Manifest_DistributionCountriesV1 + from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation as SkillManifestLocalizedPublishingInformation_1e8ff5fd + from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountries as DistributionCountries_33dc1fd4 + from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as DistributionMode_7068bbf0 + from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupport as ManifestGadgetSupport_2efdc899 class SkillManifestPublishingInformation(object): @@ -80,7 +80,7 @@ class SkillManifestPublishingInformation(object): supports_multiple_types = False def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None): - # type: (Optional[str], Optional[str], Optional[Dict[str, Manifest_SkillManifestLocalizedPublishingInformationV1]], Optional[bool], Optional[Manifest_DistributionModeV1], Optional[Manifest_ManifestGadgetSupportV1], Optional[str], Optional[str], Optional[List[Manifest_DistributionCountriesV1]]) -> None + # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]]) -> None """Defines the structure for publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py index f06d52f..e1a01d6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 - from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as Manifest_LambdaRegionV1 - from ask_smapi_model.v1.skill.manifest.smart_home_protocol import SmartHomeProtocol as Manifest_SmartHomeProtocolV1 + from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as LambdaRegion_3e305f16 + from ask_smapi_model.v1.skill.manifest.smart_home_protocol import SmartHomeProtocol as SmartHomeProtocol_65bf853b + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 class SmartHomeApis(object): @@ -55,7 +55,7 @@ class SmartHomeApis(object): supports_multiple_types = False def __init__(self, regions=None, endpoint=None, protocol_version=None): - # type: (Optional[Dict[str, Manifest_LambdaRegionV1]], Optional[Manifest_LambdaEndpointV1], Optional[Manifest_SmartHomeProtocolV1]) -> None + # type: (Optional[Dict[str, LambdaRegion_3e305f16]], Optional[LambdaEndpoint_87e61436], Optional[SmartHomeProtocol_65bf853b]) -> None """Defines the structure for smart home api of the skill. :param regions: Contains an array of the supported <region> Objects. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py index bb7c5e0..d1b00be 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 - from ask_smapi_model.v1.skill.manifest.video_apis_locale import VideoApisLocale as Manifest_VideoApisLocaleV1 - from ask_smapi_model.v1.skill.manifest.video_country_info import VideoCountryInfo as Manifest_VideoCountryInfoV1 - from ask_smapi_model.v1.skill.manifest.video_region import VideoRegion as Manifest_VideoRegionV1 + from ask_smapi_model.v1.skill.manifest.video_region import VideoRegion as VideoRegion_376628d2 + from ask_smapi_model.v1.skill.manifest.video_apis_locale import VideoApisLocale as VideoApisLocale_4f25f8e3 + from ask_smapi_model.v1.skill.manifest.video_country_info import VideoCountryInfo as VideoCountryInfo_d9ac11a3 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 class VideoApis(object): @@ -60,7 +60,7 @@ class VideoApis(object): supports_multiple_types = False def __init__(self, regions=None, locales=None, endpoint=None, countries=None): - # type: (Optional[Dict[str, Manifest_VideoRegionV1]], Optional[Dict[str, Manifest_VideoApisLocaleV1]], Optional[Manifest_LambdaEndpointV1], Optional[Dict[str, Manifest_VideoCountryInfoV1]]) -> None + # type: (Optional[Dict[str, VideoRegion_376628d2]], Optional[Dict[str, VideoApisLocale_4f25f8e3]], Optional[LambdaEndpoint_87e61436], Optional[Dict[str, VideoCountryInfo_d9ac11a3]]) -> None """Defines the structure for video api of the skill. :param regions: Defines the structure for region information. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py index 4a0c661..bdb548b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as Manifest_VideoCatalogInfoV1 + from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as VideoCatalogInfo_2bd994e9 class VideoApisLocale(object): @@ -53,7 +53,7 @@ class VideoApisLocale(object): supports_multiple_types = False def __init__(self, video_provider_targeting_names=None, video_provider_logo_uri=None, catalog_information=None): - # type: (Optional[List[object]], Optional[str], Optional[List[Manifest_VideoCatalogInfoV1]]) -> None + # type: (Optional[List[object]], Optional[str], Optional[List[VideoCatalogInfo_2bd994e9]]) -> None """Defines the structure for localized video api information. :param video_provider_targeting_names: Defines the video provider's targeting name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py index f630c48..ad3ab22 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_country_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as Manifest_VideoCatalogInfoV1 + from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as VideoCatalogInfo_2bd994e9 class VideoCountryInfo(object): @@ -45,7 +45,7 @@ class VideoCountryInfo(object): supports_multiple_types = False def __init__(self, catalog_information=None): - # type: (Optional[List[Manifest_VideoCatalogInfoV1]]) -> None + # type: (Optional[List[VideoCatalogInfo_2bd994e9]]) -> None """Defines the structure of per-country video info in the skill manifest. :param catalog_information: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py index 0c80917..2e193f1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as Manifest_LambdaEndpointV1 - from ask_smapi_model.v1.skill.manifest.up_channel_items import UpChannelItems as Manifest_UpChannelItemsV1 + from ask_smapi_model.v1.skill.manifest.up_channel_items import UpChannelItems as UpChannelItems_408eea2d + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 class VideoRegion(object): @@ -50,7 +50,7 @@ class VideoRegion(object): supports_multiple_types = False def __init__(self, endpoint=None, upchannel=None): - # type: (Optional[Manifest_LambdaEndpointV1], Optional[List[Manifest_UpChannelItemsV1]]) -> None + # type: (Optional[LambdaEndpoint_87e61436], Optional[List[UpChannelItems_408eea2d]]) -> None """Defines the structure for endpoint information. :param endpoint: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py index bc5e881..321fd04 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_mode.py @@ -31,10 +31,13 @@ class ViewportMode(Enum): - Allowed enum values: [HUB, TV] + Allowed enum values: [HUB, TV, MOBILE, PC, AUTO] """ HUB = "HUB" TV = "TV" + MOBILE = "MOBILE" + PC = "PC" + AUTO = "AUTO" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py index e8c81f4..e9055c9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/viewport_specification.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.viewport_mode import ViewportMode as Manifest_ViewportModeV1 - from ask_smapi_model.v1.skill.manifest.viewport_shape import ViewportShape as Manifest_ViewportShapeV1 + from ask_smapi_model.v1.skill.manifest.viewport_mode import ViewportMode as ViewportMode_ade01bb4 + from ask_smapi_model.v1.skill.manifest.viewport_shape import ViewportShape as ViewportShape_bfdfacae class ViewportSpecification(object): @@ -66,7 +66,7 @@ class ViewportSpecification(object): supports_multiple_types = False def __init__(self, mode=None, shape=None, min_width=None, max_width=None, min_height=None, max_height=None): - # type: (Optional[Manifest_ViewportModeV1], Optional[Manifest_ViewportShapeV1], Optional[int], Optional[int], Optional[int], Optional[int]) -> None + # type: (Optional[ViewportMode_ade01bb4], Optional[ViewportShape_bfdfacae], Optional[int], Optional[int], Optional[int], Optional[int]) -> None """Defines a viewport specification. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py index 732364a..b4d8640 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_last_update_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 - from ask_smapi_model.v1.skill.status import Status as Skill_StatusV1 + from ask_smapi_model.v1.skill.status import Status as Status_585d1308 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class ManifestLastUpdateRequest(object): @@ -58,7 +58,7 @@ class ManifestLastUpdateRequest(object): supports_multiple_types = False def __init__(self, status=None, errors=None, warnings=None, version=None): - # type: (Optional[Skill_StatusV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]], Optional[str]) -> None + # type: (Optional[Status_585d1308], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]], Optional[str]) -> None """Contains attributes related to last modification (create/update) request of a resource. :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py index ff2ad2d..d822d04 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest_last_update_request import ManifestLastUpdateRequest as Skill_ManifestLastUpdateRequestV1 + from ask_smapi_model.v1.skill.manifest_last_update_request import ManifestLastUpdateRequest as ManifestLastUpdateRequest_a14b90ab class ManifestStatus(object): @@ -49,7 +49,7 @@ class ManifestStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None, e_tag=None): - # type: (Optional[Skill_ManifestLastUpdateRequestV1], Optional[str]) -> None + # type: (Optional[ManifestLastUpdateRequest_a14b90ab], Optional[str]) -> None """Defines the structure for a resource status. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py index e59d67f..5cab3ab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import Link as V1_LinkV1 + from ask_smapi_model.v1.link import Link as Link_5c161ca5 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None + # type: (Optional[Link_5c161ca5], Optional[Link_5c161ca5]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py index be7f77e..15b31df 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/list_nlu_annotation_sets_response.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.annotation_sets.pagination_context import PaginationContext as AnnotationSets_PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.links import Links as AnnotationSets_LinksV1 - from ask_smapi_model.v1.skill.nlu.annotation_sets.annotation_set import AnnotationSet as AnnotationSets_AnnotationSetV1 + from ask_smapi_model.v1.skill.nlu.annotation_sets.pagination_context import PaginationContext as PaginationContext_c92f317b + from ask_smapi_model.v1.skill.nlu.annotation_sets.links import Links as Links_2dc49e1a + from ask_smapi_model.v1.skill.nlu.annotation_sets.annotation_set import AnnotationSet as AnnotationSet_b0768ac1 class ListNLUAnnotationSetsResponse(object): @@ -53,7 +53,7 @@ class ListNLUAnnotationSetsResponse(object): supports_multiple_types = False def __init__(self, annotation_sets=None, pagination_context=None, links=None): - # type: (Optional[List[AnnotationSets_AnnotationSetV1]], Optional[AnnotationSets_PaginationContextV1], Optional[AnnotationSets_LinksV1]) -> None + # type: (Optional[List[AnnotationSet_b0768ac1]], Optional[PaginationContext_c92f317b], Optional[Links_2dc49e1a]) -> None """ :param annotation_sets: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py index ea55c26..4d568cd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/actual.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.intent import Intent as Evaluations_IntentV1 + from ask_smapi_model.v1.skill.nlu.evaluations.intent import Intent as Intent_986cde1a class Actual(object): @@ -47,7 +47,7 @@ class Actual(object): supports_multiple_types = False def __init__(self, domain=None, intent=None): - # type: (Optional[str], Optional[Evaluations_IntentV1]) -> None + # type: (Optional[str], Optional[Intent_986cde1a]) -> None """ :param domain: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py index 3b5bde7..afaebc9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluate_nlu_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Evaluations_SourceV1 + from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Source_89d9013a class EvaluateNLURequest(object): @@ -51,7 +51,7 @@ class EvaluateNLURequest(object): supports_multiple_types = False def __init__(self, stage=None, locale=None, source=None): - # type: (Optional[object], Optional[str], Optional[Evaluations_SourceV1]) -> None + # type: (Optional[object], Optional[str], Optional[Source_89d9013a]) -> None """ :param stage: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py index 5e5b2e9..2e47428 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation.py @@ -24,8 +24,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as EvaluationInputs_14ada97b + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Status_1263d15a class Evaluation(EvaluationEntity): @@ -65,7 +65,7 @@ class Evaluation(EvaluationEntity): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None, id=None): - # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1], Optional[str]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Status_1263d15a], Optional[str], Optional[EvaluationInputs_14ada97b], Optional[str]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py index c4eaab0..0b2951e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_entity.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as EvaluationInputs_14ada97b + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Status_1263d15a class EvaluationEntity(object): @@ -60,7 +60,7 @@ class EvaluationEntity(object): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None): - # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Status_1263d15a], Optional[str], Optional[EvaluationInputs_14ada97b]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py index b4a2b03..1dc9ea8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/evaluation_inputs.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Evaluations_SourceV1 + from ask_smapi_model.v1.skill.nlu.evaluations.source import Source as Source_89d9013a class EvaluationInputs(object): @@ -51,7 +51,7 @@ class EvaluationInputs(object): supports_multiple_types = False def __init__(self, locale=None, stage=None, source=None): - # type: (Optional[str], Optional[object], Optional[Evaluations_SourceV1]) -> None + # type: (Optional[str], Optional[object], Optional[Source_89d9013a]) -> None """ :param locale: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py index 4adde11..2b4a429 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent import ExpectedIntent as Evaluations_ExpectedIntentV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent import ExpectedIntent as ExpectedIntent_a4c5ac93 class Expected(object): @@ -47,7 +47,7 @@ class Expected(object): supports_multiple_types = False def __init__(self, domain=None, intent=None): - # type: (Optional[str], Optional[Evaluations_ExpectedIntentV1]) -> None + # type: (Optional[str], Optional[ExpectedIntent_a4c5ac93]) -> None """ :param domain: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py index 15565b5..5d7547b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/expected_intent.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent_slots_props import ExpectedIntentSlotsProps as Evaluations_ExpectedIntentSlotsPropsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected_intent_slots_props import ExpectedIntentSlotsProps as ExpectedIntentSlotsProps_7e0c5c67 class ExpectedIntent(object): @@ -47,7 +47,7 @@ class ExpectedIntent(object): supports_multiple_types = False def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, Evaluations_ExpectedIntentSlotsPropsV1]]) -> None + # type: (Optional[str], Optional[Dict[str, ExpectedIntentSlotsProps_7e0c5c67]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py index 87fdc1b..ee824a0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as Evaluations_EvaluationInputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Evaluations_StatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks as Evaluations_GetNLUEvaluationResponseLinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation_inputs import EvaluationInputs as EvaluationInputs_14ada97b + from ask_smapi_model.v1.skill.nlu.evaluations.status import Status as Status_1263d15a + from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks as GetNLUEvaluationResponseLinks_677aaac6 class GetNLUEvaluationResponse(EvaluationEntity): @@ -66,7 +66,7 @@ class GetNLUEvaluationResponse(EvaluationEntity): supports_multiple_types = False def __init__(self, start_timestamp=None, end_timestamp=None, status=None, error_message=None, inputs=None, links=None): - # type: (Optional[datetime], Optional[datetime], Optional[Evaluations_StatusV1], Optional[str], Optional[Evaluations_EvaluationInputsV1], Optional[Evaluations_GetNLUEvaluationResponseLinksV1]) -> None + # type: (Optional[datetime], Optional[datetime], Optional[Status_1263d15a], Optional[str], Optional[EvaluationInputs_14ada97b], Optional[GetNLUEvaluationResponseLinks_677aaac6]) -> None """ :param start_timestamp: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py index 65b8e92..3c7a57c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_response_links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.results import Results as Evaluations_ResultsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.results import Results as Results_eb19baaa class GetNLUEvaluationResponseLinks(object): @@ -43,7 +43,7 @@ class GetNLUEvaluationResponseLinks(object): supports_multiple_types = False def __init__(self, results=None): - # type: (Optional[Evaluations_ResultsV1]) -> None + # type: (Optional[Results_eb19baaa]) -> None """ :param results: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py index 6808a36..8fb072a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/get_nlu_evaluation_results_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as Evaluations_PagedResultsResponsePaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.test_case import TestCase as Evaluations_TestCaseV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Links_f9f963f0 + from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as PagedResultsResponsePaginationContext_530bbee6 + from ask_smapi_model.v1.skill.nlu.evaluations.test_case import TestCase as TestCase_ce8e86c7 class GetNLUEvaluationResultsResponse(PagedResultsResponse): @@ -58,7 +58,7 @@ class GetNLUEvaluationResultsResponse(PagedResultsResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, total_failed=None, test_cases=None): - # type: (Optional[Evaluations_PagedResultsResponsePaginationContextV1], Optional[Evaluations_LinksV1], Optional[float], Optional[List[Evaluations_TestCaseV1]]) -> None + # type: (Optional[PagedResultsResponsePaginationContext_530bbee6], Optional[Links_f9f963f0], Optional[float], Optional[List[TestCase_ce8e86c7]]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py index c287ce7..63bbe90 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as Evaluations_ConfirmationStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.slots_props import SlotsProps as Evaluations_SlotsPropsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as ConfirmationStatus_5853164d + from ask_smapi_model.v1.skill.nlu.evaluations.slots_props import SlotsProps as SlotsProps_49b87617 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[Evaluations_ConfirmationStatusV1], Optional[Dict[str, Evaluations_SlotsPropsV1]]) -> None + # type: (Optional[str], Optional[ConfirmationStatus_5853164d], Optional[Dict[str, SlotsProps_49b87617]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py index e59d67f..5cab3ab 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/links.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.link import Link as V1_LinkV1 + from ask_smapi_model.v1.link import Link as Link_5c161ca5 class Links(object): @@ -49,7 +49,7 @@ class Links(object): supports_multiple_types = False def __init__(self, object_self=None, next=None): - # type: (Optional[V1_LinkV1], Optional[V1_LinkV1]) -> None + # type: (Optional[Link_5c161ca5], Optional[Link_5c161ca5]) -> None """Links for the API navigation. :param object_self: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py index bf15dea..8918891 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/list_nlu_evaluations_response.py @@ -24,9 +24,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.evaluation import Evaluation as Evaluations_EvaluationV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Links_f9f963f0 + from ask_smapi_model.v1.skill.nlu.evaluations.evaluation import Evaluation as Evaluation_85d2851a + from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as PaginationContext_281d8865 class ListNLUEvaluationsResponse(PagedResponse): @@ -56,7 +56,7 @@ class ListNLUEvaluationsResponse(PagedResponse): supports_multiple_types = False def __init__(self, pagination_context=None, links=None, evaluations=None): - # type: (Optional[Evaluations_PaginationContextV1], Optional[Evaluations_LinksV1], Optional[List[Evaluations_EvaluationV1]]) -> None + # type: (Optional[PaginationContext_281d8865], Optional[Links_f9f963f0], Optional[List[Evaluation_85d2851a]]) -> None """response body for a list evaluation API :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py index 320255a..4b029c2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as Evaluations_PaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Links_f9f963f0 + from ask_smapi_model.v1.skill.nlu.evaluations.pagination_context import PaginationContext as PaginationContext_281d8865 class PagedResponse(object): @@ -48,7 +48,7 @@ class PagedResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[Evaluations_PaginationContextV1], Optional[Evaluations_LinksV1]) -> None + # type: (Optional[PaginationContext_281d8865], Optional[Links_f9f963f0]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py index a67ef84..87beb57 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/paged_results_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as Evaluations_PagedResultsResponsePaginationContextV1 - from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Evaluations_LinksV1 + from ask_smapi_model.v1.skill.nlu.evaluations.links import Links as Links_f9f963f0 + from ask_smapi_model.v1.skill.nlu.evaluations.paged_results_response_pagination_context import PagedResultsResponsePaginationContext as PagedResultsResponsePaginationContext_530bbee6 class PagedResultsResponse(object): @@ -48,7 +48,7 @@ class PagedResultsResponse(object): supports_multiple_types = False def __init__(self, pagination_context=None, links=None): - # type: (Optional[Evaluations_PagedResultsResponsePaginationContextV1], Optional[Evaluations_LinksV1]) -> None + # type: (Optional[PagedResultsResponsePaginationContext_530bbee6], Optional[Links_f9f963f0]) -> None """ :param pagination_context: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py index b0d932a..96036f4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Evaluations_ResolutionsPerAuthorityStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_value import ResolutionsPerAuthorityValue as Evaluations_ResolutionsPerAuthorityValueV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_value import ResolutionsPerAuthorityValue as ResolutionsPerAuthorityValue_2a33306b + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as ResolutionsPerAuthorityStatus_74ba1d4d class ResolutionsPerAuthority(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthority(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[Evaluations_ResolutionsPerAuthorityStatusV1], Optional[List[Evaluations_ResolutionsPerAuthorityValueV1]]) -> None + # type: (Optional[str], Optional[ResolutionsPerAuthorityStatus_74ba1d4d], Optional[List[ResolutionsPerAuthorityValue_2a33306b]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py index 4d246d8..d9deccc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/resolutions_per_authority_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Evaluations_ResolutionsPerAuthorityStatusCodeV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as ResolutionsPerAuthorityStatusCode_b309d82e class ResolutionsPerAuthorityStatus(object): @@ -43,7 +43,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[Evaluations_ResolutionsPerAuthorityStatusCodeV1]) -> None + # type: (Optional[ResolutionsPerAuthorityStatusCode_b309d82e]) -> None """ :param code: A code indicating the results of attempting to resolve the user utterance against the defined slot types. This can be one of the following: ER_SUCCESS_MATCH: The spoken value matched a value or synonym explicitly defined in your custom slot type. ER_SUCCESS_NO_MATCH: The spoken value did not match any values or synonyms explicitly defined in your custom slot type. ER_ERROR_TIMEOUT: An error occurred due to a timeout. ER_ERROR_EXCEPTION: An error occurred due to an exception during processing. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py index 6adb728..feba9da 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/slots_props.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as Evaluations_ConfirmationStatusV1 - from ask_smapi_model.v1.skill.nlu.evaluations.resolutions import Resolutions as Evaluations_ResolutionsV1 + from ask_smapi_model.v1.skill.nlu.evaluations.resolutions import Resolutions as Resolutions_4b194bcc + from ask_smapi_model.v1.skill.nlu.evaluations.confirmation_status import ConfirmationStatus as ConfirmationStatus_5853164d class SlotsProps(object): @@ -56,7 +56,7 @@ class SlotsProps(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[Evaluations_ConfirmationStatusV1], Optional[Evaluations_ResolutionsV1]) -> None + # type: (Optional[str], Optional[str], Optional[ConfirmationStatus_5853164d], Optional[Resolutions_4b194bcc]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py index 4f06d0a..8167998 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/test_case.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.nlu.evaluations.inputs import Inputs as Evaluations_InputsV1 - from ask_smapi_model.v1.skill.nlu.evaluations.actual import Actual as Evaluations_ActualV1 - from ask_smapi_model.v1.skill.nlu.evaluations.expected import Expected as Evaluations_ExpectedV1 - from ask_smapi_model.v1.skill.nlu.evaluations.results_status import ResultsStatus as Evaluations_ResultsStatusV1 + from ask_smapi_model.v1.skill.nlu.evaluations.expected import Expected as Expected_2f82531a + from ask_smapi_model.v1.skill.nlu.evaluations.results_status import ResultsStatus as ResultsStatus_97dfe1c9 + from ask_smapi_model.v1.skill.nlu.evaluations.inputs import Inputs as Inputs_9b28fd7a + from ask_smapi_model.v1.skill.nlu.evaluations.actual import Actual as Actual_3f8509da class TestCase(object): @@ -58,7 +58,7 @@ class TestCase(object): supports_multiple_types = False def __init__(self, status=None, inputs=None, actual=None, expected=None): - # type: (Optional[Evaluations_ResultsStatusV1], Optional[Evaluations_InputsV1], Optional[Evaluations_ActualV1], Optional[List[Evaluations_ExpectedV1]]) -> None + # type: (Optional[ResultsStatus_97dfe1c9], Optional[Inputs_9b28fd7a], Optional[Actual_3f8509da], Optional[List[Expected_2f82531a]]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py index a162f1a..af448c3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.skill.private.private_distribution_account import PrivateDistributionAccount as Private_PrivateDistributionAccountV1 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.private.private_distribution_account import PrivateDistributionAccount as PrivateDistributionAccount_f2cc4575 class ListPrivateDistributionAccountsResponse(object): @@ -54,7 +54,7 @@ class ListPrivateDistributionAccountsResponse(object): supports_multiple_types = False def __init__(self, links=None, private_distribution_accounts=None, next_token=None): - # type: (Optional[V1_LinksV1], Optional[List[Private_PrivateDistributionAccountV1]], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[PrivateDistributionAccount_f2cc4575]], Optional[str]) -> None """Response of ListPrivateDistributionAccounts. :param links: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py index bb0bc87..a2fc748 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.private.accept_status import AcceptStatus as Private_AcceptStatusV1 + from ask_smapi_model.v1.skill.private.accept_status import AcceptStatus as AcceptStatus_98754010 class PrivateDistributionAccount(object): @@ -49,7 +49,7 @@ class PrivateDistributionAccount(object): supports_multiple_types = False def __init__(self, principal=None, accept_status=None): - # type: (Optional[str], Optional[Private_AcceptStatusV1]) -> None + # type: (Optional[str], Optional[AcceptStatus_98754010]) -> None """Contains information of the private distribution account with given id. :param principal: 12-digit numerical account ID for AWS account holders. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py index 85c9e4d..2626ea2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/skill_publication_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.publication.skill_publication_status import SkillPublicationStatus as Publication_SkillPublicationStatusV1 + from ask_smapi_model.v1.skill.publication.skill_publication_status import SkillPublicationStatus as SkillPublicationStatus_99f2cd80 class SkillPublicationResponse(object): @@ -47,7 +47,7 @@ class SkillPublicationResponse(object): supports_multiple_types = False def __init__(self, publishes_at_date=None, status=None): - # type: (Optional[datetime], Optional[Publication_SkillPublicationStatusV1]) -> None + # type: (Optional[datetime], Optional[SkillPublicationStatus_99f2cd80]) -> None """ :param publishes_at_date: Used to determine when the skill Publishing should start. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py index 2684fd3..13e9843 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/resource_import_status.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.response_status import ResponseStatus as Skill_ResponseStatusV1 - from ask_smapi_model.v1.skill.action import Action as Skill_ActionV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.response_status import ResponseStatus as ResponseStatus_95347977 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 + from ask_smapi_model.v1.skill.action import Action as Action_fd8d3e88 class ResourceImportStatus(object): @@ -63,7 +63,7 @@ class ResourceImportStatus(object): supports_multiple_types = False def __init__(self, name=None, status=None, action=None, errors=None, warnings=None): - # type: (Optional[str], Optional[Skill_ResponseStatusV1], Optional[Skill_ActionV1], Optional[List[Skill_StandardizedErrorV1]], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[str], Optional[ResponseStatus_95347977], Optional[Action_fd8d3e88], Optional[List[StandardizedError_f5106a89]], Optional[List[StandardizedError_f5106a89]]) -> None """Defines the structure for a resource deployment status. :param name: Resource name. eg. manifest, interactionModels.en_US and so on. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/__init__.py new file mode 100644 index 0000000..c1799ad --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .get_resource_schema_response import GetResourceSchemaResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/get_resource_schema_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/get_resource_schema_response.py new file mode 100644 index 0000000..70459ec --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/get_resource_schema_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class GetResourceSchemaResponse(object): + """ + + :param schema_location_url: S3 presigned URL to schema location. + :type schema_location_url: (optional) str + :param expiry_time: Timestamp when the schema location url expires in ISO 8601 format. + :type expiry_time: (optional) datetime + + """ + deserialized_types = { + 'schema_location_url': 'str', + 'expiry_time': 'datetime' + } # type: Dict + + attribute_map = { + 'schema_location_url': 'schemaLocationUrl', + 'expiry_time': 'expiryTime' + } # type: Dict + supports_multiple_types = False + + def __init__(self, schema_location_url=None, expiry_time=None): + # type: (Optional[str], Optional[datetime]) -> None + """ + + :param schema_location_url: S3 presigned URL to schema location. + :type schema_location_url: (optional) str + :param expiry_time: Timestamp when the schema location url expires in ISO 8601 format. + :type expiry_time: (optional) datetime + """ + self.__discriminator_value = None # type: str + + self.schema_location_url = schema_location_url + self.expiry_time = expiry_time + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetResourceSchemaResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/resource_schema/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py index 85e9393..98ab657 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/rollback_request_status.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.rollback_request_status_types import RollbackRequestStatusTypes as Skill_RollbackRequestStatusTypesV1 - from ask_smapi_model.v1.skill.standardized_error import StandardizedError as Skill_StandardizedErrorV1 + from ask_smapi_model.v1.skill.rollback_request_status_types import RollbackRequestStatusTypes as RollbackRequestStatusTypes_721f9239 + from ask_smapi_model.v1.skill.standardized_error import StandardizedError as StandardizedError_f5106a89 class RollbackRequestStatus(object): @@ -62,7 +62,7 @@ class RollbackRequestStatus(object): supports_multiple_types = False def __init__(self, id=None, target_version=None, submission_time=None, status=None, errors=None): - # type: (Optional[str], Optional[str], Optional[datetime], Optional[Skill_RollbackRequestStatusTypesV1], Optional[List[Skill_StandardizedErrorV1]]) -> None + # type: (Optional[str], Optional[str], Optional[datetime], Optional[RollbackRequestStatusTypes_721f9239], Optional[List[StandardizedError_f5106a89]]) -> None """Rollback request for a skill :param id: rollback request id diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py index 6d30e68..a7bc85d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_execution_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_response import AlexaResponse as Simulations_AlexaResponseV1 + from ask_smapi_model.v1.skill.simulations.alexa_response import AlexaResponse as AlexaResponse_d3763fbb class AlexaExecutionInfo(object): @@ -43,7 +43,7 @@ class AlexaExecutionInfo(object): supports_multiple_types = False def __init__(self, alexa_responses=None): - # type: (Optional[List[Simulations_AlexaResponseV1]]) -> None + # type: (Optional[List[AlexaResponse_d3763fbb]]) -> None """ :param alexa_responses: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py index e3c8183..d88834a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/alexa_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_response_content import AlexaResponseContent as Simulations_AlexaResponseContentV1 + from ask_smapi_model.v1.skill.simulations.alexa_response_content import AlexaResponseContent as AlexaResponseContent_2bb01644 class AlexaResponse(object): @@ -47,7 +47,7 @@ class AlexaResponse(object): supports_multiple_types = False def __init__(self, object_type=None, content=None): - # type: (Optional[str], Optional[Simulations_AlexaResponseContentV1]) -> None + # type: (Optional[str], Optional[AlexaResponseContent_2bb01644]) -> None """ :param object_type: The type of Alexa response diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py index 778eacd..8cdfa29 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/invocation.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.invocation_request import InvocationRequest as Simulations_InvocationRequestV1 - from ask_smapi_model.v1.skill.simulations.metrics import Metrics as Simulations_MetricsV1 - from ask_smapi_model.v1.skill.simulations.invocation_response import InvocationResponse as Simulations_InvocationResponseV1 + from ask_smapi_model.v1.skill.simulations.metrics import Metrics as Metrics_7045efd0 + from ask_smapi_model.v1.skill.simulations.invocation_request import InvocationRequest as InvocationRequest_325188d9 + from ask_smapi_model.v1.skill.simulations.invocation_response import InvocationResponse as InvocationResponse_9e900857 class Invocation(object): @@ -53,7 +53,7 @@ class Invocation(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[Simulations_InvocationRequestV1], Optional[Simulations_InvocationResponseV1], Optional[Simulations_MetricsV1]) -> None + # type: (Optional[InvocationRequest_325188d9], Optional[InvocationResponse_9e900857], Optional[Metrics_7045efd0]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py index 68ec763..8f96546 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/session.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.session_mode import SessionMode as Simulations_SessionModeV1 + from ask_smapi_model.v1.skill.simulations.session_mode import SessionMode as SessionMode_8a5f999f class Session(object): @@ -45,7 +45,7 @@ class Session(object): supports_multiple_types = False def __init__(self, mode=None): - # type: (Optional[Simulations_SessionModeV1]) -> None + # type: (Optional[SessionMode_8a5f999f]) -> None """Session settings for running current simulation. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py index 63e78f5..f4190be 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_result.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.alexa_execution_info import AlexaExecutionInfo as Simulations_AlexaExecutionInfoV1 - from ask_smapi_model.v1.error import Error as V1_ErrorV1 - from ask_smapi_model.v1.skill.simulations.invocation import Invocation as Simulations_InvocationV1 + from ask_smapi_model.v1.skill.simulations.invocation import Invocation as Invocation_e7f6d826 + from ask_smapi_model.v1.skill.simulations.alexa_execution_info import AlexaExecutionInfo as AlexaExecutionInfo_84a001f8 + from ask_smapi_model.v1.error import Error as Error_fbe913d9 class SimulationResult(object): @@ -53,7 +53,7 @@ class SimulationResult(object): supports_multiple_types = False def __init__(self, alexa_execution_info=None, skill_execution_info=None, error=None): - # type: (Optional[Simulations_AlexaExecutionInfoV1], Optional[Simulations_InvocationV1], Optional[V1_ErrorV1]) -> None + # type: (Optional[AlexaExecutionInfo_84a001f8], Optional[Invocation_e7f6d826], Optional[Error_fbe913d9]) -> None """ :param alexa_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py index c190516..3c4387b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.input import Input as Simulations_InputV1 - from ask_smapi_model.v1.skill.simulations.session import Session as Simulations_SessionV1 - from ask_smapi_model.v1.skill.simulations.device import Device as Simulations_DeviceV1 + from ask_smapi_model.v1.skill.simulations.session import Session as Session_700bf076 + from ask_smapi_model.v1.skill.simulations.device import Device as Device_88be9466 + from ask_smapi_model.v1.skill.simulations.input import Input as Input_7307d1de class SimulationsApiRequest(object): @@ -53,7 +53,7 @@ class SimulationsApiRequest(object): supports_multiple_types = False def __init__(self, input=None, device=None, session=None): - # type: (Optional[Simulations_InputV1], Optional[Simulations_DeviceV1], Optional[Simulations_SessionV1]) -> None + # type: (Optional[Input_7307d1de], Optional[Device_88be9466], Optional[Session_700bf076]) -> None """ :param input: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py index 89c218f..484ffcc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as Simulations_SimulationsApiResponseStatusV1 - from ask_smapi_model.v1.skill.simulations.simulation_result import SimulationResult as Simulations_SimulationResultV1 + from ask_smapi_model.v1.skill.simulations.simulation_result import SimulationResult as SimulationResult_1c241445 + from ask_smapi_model.v1.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as SimulationsApiResponseStatus_e76dde3f class SimulationsApiResponse(object): @@ -52,7 +52,7 @@ class SimulationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[Simulations_SimulationsApiResponseStatusV1], Optional[Simulations_SimulationResultV1]) -> None + # type: (Optional[str], Optional[SimulationsApiResponseStatus_e76dde3f], Optional[SimulationResult_1c241445]) -> None """ :param id: Id of the simulation resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py index cce3c7a..0be4ec5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_credentials.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.skill_messaging_credentials import SkillMessagingCredentials as Skill_SkillMessagingCredentialsV1 + from ask_smapi_model.v1.skill.skill_messaging_credentials import SkillMessagingCredentials as SkillMessagingCredentials_a95ce148 class SkillCredentials(object): @@ -45,7 +45,7 @@ class SkillCredentials(object): supports_multiple_types = False def __init__(self, skill_messaging_credentials=None): - # type: (Optional[Skill_SkillMessagingCredentialsV1]) -> None + # type: (Optional[SkillMessagingCredentials_a95ce148]) -> None """Structure for skill credentials response. :param skill_messaging_credentials: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py index 0d73412..ab7d6f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_interaction_model_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model_last_update_request import InteractionModelLastUpdateRequest as Skill_InteractionModelLastUpdateRequestV1 + from ask_smapi_model.v1.skill.interaction_model_last_update_request import InteractionModelLastUpdateRequest as InteractionModelLastUpdateRequest_f980bda4 class SkillInteractionModelStatus(object): @@ -53,7 +53,7 @@ class SkillInteractionModelStatus(object): supports_multiple_types = False def __init__(self, last_update_request=None, e_tag=None, version=None): - # type: (Optional[Skill_InteractionModelLastUpdateRequestV1], Optional[str], Optional[str]) -> None + # type: (Optional[InteractionModelLastUpdateRequest_f980bda4], Optional[str], Optional[str]) -> None """Defines the structure for interaction model build status. :param last_update_request: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py index 4652de4..6a63656 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_status.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.hosted_skill_deployment_status import HostedSkillDeploymentStatus as Skill_HostedSkillDeploymentStatusV1 - from ask_smapi_model.v1.skill.manifest_status import ManifestStatus as Skill_ManifestStatusV1 - from ask_smapi_model.v1.skill.hosted_skill_provisioning_status import HostedSkillProvisioningStatus as Skill_HostedSkillProvisioningStatusV1 - from ask_smapi_model.v1.skill.skill_interaction_model_status import SkillInteractionModelStatus as Skill_SkillInteractionModelStatusV1 + from ask_smapi_model.v1.skill.manifest_status import ManifestStatus as ManifestStatus_3a40bc53 + from ask_smapi_model.v1.skill.hosted_skill_deployment_status import HostedSkillDeploymentStatus as HostedSkillDeploymentStatus_501287f + from ask_smapi_model.v1.skill.hosted_skill_provisioning_status import HostedSkillProvisioningStatus as HostedSkillProvisioningStatus_2c3cd17f + from ask_smapi_model.v1.skill.skill_interaction_model_status import SkillInteractionModelStatus as SkillInteractionModelStatus_6331b4f5 class SkillStatus(object): @@ -60,7 +60,7 @@ class SkillStatus(object): supports_multiple_types = False def __init__(self, manifest=None, interaction_model=None, hosted_skill_deployment=None, hosted_skill_provisioning=None): - # type: (Optional[Skill_ManifestStatusV1], Optional[Dict[str, Skill_SkillInteractionModelStatusV1]], Optional[Skill_HostedSkillDeploymentStatusV1], Optional[Skill_HostedSkillProvisioningStatusV1]) -> None + # type: (Optional[ManifestStatus_3a40bc53], Optional[Dict[str, SkillInteractionModelStatus_6331b4f5]], Optional[HostedSkillDeploymentStatus_501287f], Optional[HostedSkillProvisioningStatus_2c3cd17f]) -> None """Defines the structure for skill status response. :param manifest: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py index 8039afd..fff6f0b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary.py @@ -23,10 +23,10 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.links import Links as V1_LinksV1 - from ask_smapi_model.v1.stage_v2_type import StageV2Type as V1_StageV2TypeV1 - from ask_smapi_model.v1.skill.skill_summary_apis import SkillSummaryApis as Skill_SkillSummaryApisV1 - from ask_smapi_model.v1.skill.publication_status import PublicationStatus as Skill_PublicationStatusV1 + from ask_smapi_model.v1.stage_v2_type import StageV2Type as StageV2Type_72e74959 + from ask_smapi_model.v1.skill.skill_summary_apis import SkillSummaryApis as SkillSummaryApis_dd99d3d6 + from ask_smapi_model.v1.links import Links as Links_bc43467b + from ask_smapi_model.v1.skill.publication_status import PublicationStatus as PublicationStatus_faee621b class SkillSummary(object): @@ -76,7 +76,7 @@ class SkillSummary(object): supports_multiple_types = False def __init__(self, skill_id=None, stage=None, apis=None, publication_status=None, last_updated=None, name_by_locale=None, asin=None, links=None): - # type: (Optional[str], Optional[V1_StageV2TypeV1], Optional[List[Skill_SkillSummaryApisV1]], Optional[Skill_PublicationStatusV1], Optional[datetime], Optional[Dict[str, object]], Optional[str], Optional[V1_LinksV1]) -> None + # type: (Optional[str], Optional[StageV2Type_72e74959], Optional[List[SkillSummaryApis_dd99d3d6]], Optional[PublicationStatus_faee621b], Optional[datetime], Optional[Dict[str, object]], Optional[str], Optional[Links_bc43467b]) -> None """Information about the skills. :param skill_id: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py index f9d7f97..9f9460d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_version.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.version_submission import VersionSubmission as Skill_VersionSubmissionV1 + from ask_smapi_model.v1.skill.version_submission import VersionSubmission as VersionSubmission_65be74f class SkillVersion(object): @@ -57,7 +57,7 @@ class SkillVersion(object): supports_multiple_types = False def __init__(self, version=None, message=None, creation_time=None, submissions=None): - # type: (Optional[str], Optional[str], Optional[datetime], Optional[List[Skill_VersionSubmissionV1]]) -> None + # type: (Optional[str], Optional[str], Optional[datetime], Optional[List[VersionSubmission_65be74f]]) -> None """Information about the skill version :param version: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py index 490bdc6..2530787 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/ssl_certificate_payload.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.regional_ssl_certificate import RegionalSSLCertificate as Skill_RegionalSSLCertificateV1 + from ask_smapi_model.v1.skill.regional_ssl_certificate import RegionalSSLCertificate as RegionalSSLCertificate_6484866e class SSLCertificatePayload(object): @@ -47,7 +47,7 @@ class SSLCertificatePayload(object): supports_multiple_types = False def __init__(self, ssl_certificate=None, regions=None): - # type: (Optional[str], Optional[Dict[str, Skill_RegionalSSLCertificateV1]]) -> None + # type: (Optional[str], Optional[Dict[str, RegionalSSLCertificate_6484866e]]) -> None """ :param ssl_certificate: The default ssl certificate for the skill. If a request is made for a region without an explicit ssl certificate, this certificate will be used. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py b/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py index 8d08d12..f332dca 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/standardized_error.py @@ -24,7 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_details import ValidationDetails as Skill_ValidationDetailsV1 + from ask_smapi_model.v1.skill.validation_details import ValidationDetails as ValidationDetails_f05a8bbd class StandardizedError(Error): @@ -54,7 +54,7 @@ class StandardizedError(Error): supports_multiple_types = False def __init__(self, validation_details=None, code=None, message=None): - # type: (Optional[Skill_ValidationDetailsV1], Optional[str], Optional[str]) -> None + # type: (Optional[ValidationDetails_f05a8bbd], Optional[str], Optional[str]) -> None """Standardized structure which wraps machine parsable and human readable information about an error. :param validation_details: Standardized, machine readable structure that wraps all the information about a specific occurrence of an error of the type specified by the code. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py index 082806a..f3efd11 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/submit_skill_for_certification_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.publication_method import PublicationMethod as Skill_PublicationMethodV1 + from ask_smapi_model.v1.skill.publication_method import PublicationMethod as PublicationMethod_98efa639 class SubmitSkillForCertificationRequest(object): @@ -47,7 +47,7 @@ class SubmitSkillForCertificationRequest(object): supports_multiple_types = False def __init__(self, publication_method=None, version_message=None): - # type: (Optional[Skill_PublicationMethodV1], Optional[str]) -> None + # type: (Optional[PublicationMethod_98efa639], Optional[str]) -> None """ :param publication_method: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py index dcd0e06..0d4c058 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_details.py @@ -23,14 +23,14 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.instance import Instance as Skill_InstanceV1 - from ask_smapi_model.v1.skill.validation_failure_reason import ValidationFailureReason as Skill_ValidationFailureReasonV1 - from ask_smapi_model.v1.skill.image_attributes import ImageAttributes as Skill_ImageAttributesV1 - from ask_smapi_model.v1.skill.validation_endpoint import ValidationEndpoint as Skill_ValidationEndpointV1 - from ask_smapi_model.v1.skill.format import Format as Skill_FormatV1 - from ask_smapi_model.v1.skill.agreement_type import AgreementType as Skill_AgreementTypeV1 - from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as Skill_ValidationDataTypesV1 - from ask_smapi_model.v1.skill.validation_feature import ValidationFeature as Skill_ValidationFeatureV1 + from ask_smapi_model.v1.skill.image_attributes import ImageAttributes as ImageAttributes_c561cc05 + from ask_smapi_model.v1.skill.validation_failure_reason import ValidationFailureReason as ValidationFailureReason_56689f00 + from ask_smapi_model.v1.skill.validation_data_types import ValidationDataTypes as ValidationDataTypes_30c76c0c + from ask_smapi_model.v1.skill.validation_endpoint import ValidationEndpoint as ValidationEndpoint_86396347 + from ask_smapi_model.v1.skill.instance import Instance as Instance_7ed45668 + from ask_smapi_model.v1.skill.agreement_type import AgreementType as AgreementType_25fa482b + from ask_smapi_model.v1.skill.validation_feature import ValidationFeature as ValidationFeature_a1685825 + from ask_smapi_model.v1.skill.format import Format as Format_685f368 class ValidationDetails(object): @@ -144,7 +144,7 @@ class ValidationDetails(object): supports_multiple_types = False def __init__(self, actual_image_attributes=None, actual_number_of_items=None, actual_string_length=None, allowed_content_types=None, allowed_data_types=None, allowed_image_attributes=None, conflicting_instance=None, expected_format=None, expected_instance=None, expected_regex_pattern=None, agreement_type=None, feature=None, inconsistent_endpoint=None, minimum_integer_value=None, minimum_number_of_items=None, minimum_string_length=None, maximum_integer_value=None, maximum_number_of_items=None, maximum_string_length=None, original_endpoint=None, original_instance=None, reason=None, required_property=None, unexpected_property=None): - # type: (Optional[Skill_ImageAttributesV1], Optional[int], Optional[int], Optional[List[object]], Optional[List[Skill_ValidationDataTypesV1]], Optional[List[Skill_ImageAttributesV1]], Optional[Skill_InstanceV1], Optional[Skill_FormatV1], Optional[Skill_InstanceV1], Optional[str], Optional[Skill_AgreementTypeV1], Optional[Skill_ValidationFeatureV1], Optional[Skill_ValidationEndpointV1], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[Skill_ValidationEndpointV1], Optional[Skill_InstanceV1], Optional[Skill_ValidationFailureReasonV1], Optional[str], Optional[str]) -> None + # type: (Optional[ImageAttributes_c561cc05], Optional[int], Optional[int], Optional[List[object]], Optional[List[ValidationDataTypes_30c76c0c]], Optional[List[ImageAttributes_c561cc05]], Optional[Instance_7ed45668], Optional[Format_685f368], Optional[Instance_7ed45668], Optional[str], Optional[AgreementType_25fa482b], Optional[ValidationFeature_a1685825], Optional[ValidationEndpoint_86396347], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[int], Optional[ValidationEndpoint_86396347], Optional[Instance_7ed45668], Optional[ValidationFailureReason_56689f00], Optional[str], Optional[str]) -> None """Standardized, machine readable structure that wraps all the information about a specific occurrence of an error of the type specified by the code. :param actual_image_attributes: Set of properties of the image provided by the customer. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py index 849fa6c..803271e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validation_failure_reason.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validation_failure_type import ValidationFailureType as Skill_ValidationFailureTypeV1 + from ask_smapi_model.v1.skill.validation_failure_type import ValidationFailureType as ValidationFailureType_f9b43cac class ValidationFailureReason(object): @@ -45,7 +45,7 @@ class ValidationFailureReason(object): supports_multiple_types = False def __init__(self, object_type=None): - # type: (Optional[Skill_ValidationFailureTypeV1]) -> None + # type: (Optional[ValidationFailureType_f9b43cac]) -> None """Object representing what is wrong in the request. :param object_type: Enum for type of validation failure in the request. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py index f0c7afb..14098bf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/response_validation.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validations.response_validation_importance import ResponseValidationImportance as Validations_ResponseValidationImportanceV1 - from ask_smapi_model.v1.skill.validations.response_validation_status import ResponseValidationStatus as Validations_ResponseValidationStatusV1 + from ask_smapi_model.v1.skill.validations.response_validation_importance import ResponseValidationImportance as ResponseValidationImportance_c1ef7626 + from ask_smapi_model.v1.skill.validations.response_validation_status import ResponseValidationStatus as ResponseValidationStatus_b15167e6 class ResponseValidation(object): @@ -64,7 +64,7 @@ class ResponseValidation(object): supports_multiple_types = False def __init__(self, title=None, description=None, category=None, locale=None, importance=None, status=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[Validations_ResponseValidationImportanceV1], Optional[Validations_ResponseValidationStatusV1]) -> None + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[ResponseValidationImportance_c1ef7626], Optional[ResponseValidationStatus_b15167e6]) -> None """ :param title: Short, human readable title of the validation performed. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py index 4fc584a..6bb7e9c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.validations.validations_api_response_status import ValidationsApiResponseStatus as Validations_ValidationsApiResponseStatusV1 - from ask_smapi_model.v1.skill.validations.validations_api_response_result import ValidationsApiResponseResult as Validations_ValidationsApiResponseResultV1 + from ask_smapi_model.v1.skill.validations.validations_api_response_status import ValidationsApiResponseStatus as ValidationsApiResponseStatus_f5b7115 + from ask_smapi_model.v1.skill.validations.validations_api_response_result import ValidationsApiResponseResult as ValidationsApiResponseResult_b6ff44f5 class ValidationsApiResponse(object): @@ -52,7 +52,7 @@ class ValidationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[Validations_ValidationsApiResponseStatusV1], Optional[Validations_ValidationsApiResponseResultV1]) -> None + # type: (Optional[str], Optional[ValidationsApiResponseStatus_f5b7115], Optional[ValidationsApiResponseResult_b6ff44f5]) -> None """ :param id: Id of the validation resource. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py index 6f04454..f1ecad3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/validations_api_response_result.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.error import Error as V1_ErrorV1 - from ask_smapi_model.v1.skill.validations.response_validation import ResponseValidation as Validations_ResponseValidationV1 + from ask_smapi_model.v1.error import Error as Error_fbe913d9 + from ask_smapi_model.v1.skill.validations.response_validation import ResponseValidation as ResponseValidation_30c99beb class ValidationsApiResponseResult(object): @@ -48,7 +48,7 @@ class ValidationsApiResponseResult(object): supports_multiple_types = False def __init__(self, validations=None, error=None): - # type: (Optional[List[Validations_ResponseValidationV1]], Optional[V1_ErrorV1]) -> None + # type: (Optional[List[ResponseValidation_30c99beb]], Optional[Error_fbe913d9]) -> None """ :param validations: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py index 4687dce..55bd718 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/version_submission.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.version_submission_status import VersionSubmissionStatus as Skill_VersionSubmissionStatusV1 + from ask_smapi_model.v1.skill.version_submission_status import VersionSubmissionStatus as VersionSubmissionStatus_c5134e60 class VersionSubmission(object): @@ -49,7 +49,7 @@ class VersionSubmission(object): supports_multiple_types = False def __init__(self, status=None, submission_time=None): - # type: (Optional[Skill_VersionSubmissionStatusV1], Optional[datetime]) -> None + # type: (Optional[VersionSubmissionStatus_c5134e60], Optional[datetime]) -> None """Submission for a skill version :param status: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py index 734103f..df39ded 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/withdraw_request.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.reason import Reason as Skill_ReasonV1 + from ask_smapi_model.v1.skill.reason import Reason as Reason_7e9f32c8 class WithdrawRequest(object): @@ -49,7 +49,7 @@ class WithdrawRequest(object): supports_multiple_types = False def __init__(self, reason=None, message=None): - # type: (Optional[Skill_ReasonV1], Optional[str]) -> None + # type: (Optional[Reason_7e9f32c8], Optional[str]) -> None """The payload for the withdraw operation. :param reason: diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py new file mode 100644 index 0000000..8e41a5a --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .sh_capability_response import SHCapabilityResponse +from .evaluation_object import EvaluationObject +from .stage import Stage +from .endpoint import Endpoint +from .pagination_context import PaginationContext +from .capability_test_plan import CapabilityTestPlan +from .pagination_context_token import PaginationContextToken +from .sh_capability_error_code import SHCapabilityErrorCode +from .list_sh_test_plan_item import ListSHTestPlanItem +from .sh_evaluation_results_metric import SHEvaluationResultsMetric +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse +from .sh_capability_error import SHCapabilityError +from .sh_capability_directive import SHCapabilityDirective +from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse +from .sh_capability_state import SHCapabilityState +from .test_case_result import TestCaseResult +from .test_case_result_status import TestCaseResultStatus +from .paged_response import PagedResponse +from .evaluation_entity_status import EvaluationEntityStatus +from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse +from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/capability_test_plan.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/capability_test_plan.py new file mode 100644 index 0000000..ad63697 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/capability_test_plan.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CapabilityTestPlan(object): + """ + + :param id: + :type id: (optional) str + + """ + deserialized_types = { + 'id': 'str' + } # type: Dict + + attribute_map = { + 'id': 'id' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None): + # type: (Optional[str]) -> None + """ + + :param id: + :type id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.id = id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CapabilityTestPlan): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/endpoint.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/endpoint.py new file mode 100644 index 0000000..2017eb6 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/endpoint.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Endpoint(object): + """ + + :param endpoint_id: + :type endpoint_id: (optional) str + + """ + deserialized_types = { + 'endpoint_id': 'str' + } # type: Dict + + attribute_map = { + 'endpoint_id': 'endpointId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, endpoint_id=None): + # type: (Optional[str]) -> None + """ + + :param endpoint_id: + :type endpoint_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.endpoint_id = endpoint_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Endpoint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_request.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_request.py new file mode 100644 index 0000000..2e9c520 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.capability_test_plan import CapabilityTestPlan as CapabilityTestPlan_7d93b401 + from ask_smapi_model.v1.smart_home_evaluation.stage import Stage as Stage_5c1d183d + from ask_smapi_model.v1.smart_home_evaluation.endpoint import Endpoint as Endpoint_912f62fd + + +class EvaluateSHCapabilityRequest(object): + """ + + :param capability_test_plan: + :type capability_test_plan: (optional) ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan + :param endpoint: + :type endpoint: (optional) ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint + :param stage: + :type stage: (optional) ask_smapi_model.v1.smart_home_evaluation.stage.Stage + + """ + deserialized_types = { + 'capability_test_plan': 'ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan', + 'endpoint': 'ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint', + 'stage': 'ask_smapi_model.v1.smart_home_evaluation.stage.Stage' + } # type: Dict + + attribute_map = { + 'capability_test_plan': 'capabilityTestPlan', + 'endpoint': 'endpoint', + 'stage': 'stage' + } # type: Dict + supports_multiple_types = False + + def __init__(self, capability_test_plan=None, endpoint=None, stage=None): + # type: (Optional[CapabilityTestPlan_7d93b401], Optional[Endpoint_912f62fd], Optional[Stage_5c1d183d]) -> None + """ + + :param capability_test_plan: + :type capability_test_plan: (optional) ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan + :param endpoint: + :type endpoint: (optional) ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint + :param stage: + :type stage: (optional) ask_smapi_model.v1.smart_home_evaluation.stage.Stage + """ + self.__discriminator_value = None # type: str + + self.capability_test_plan = capability_test_plan + self.endpoint = endpoint + self.stage = stage + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, EvaluateSHCapabilityRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_response.py new file mode 100644 index 0000000..9f44b46 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_response.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request import EvaluateSHCapabilityRequest + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.capability_test_plan import CapabilityTestPlan as CapabilityTestPlan_7d93b401 + from ask_smapi_model.v1.smart_home_evaluation.stage import Stage as Stage_5c1d183d + from ask_smapi_model.v1.smart_home_evaluation.endpoint import Endpoint as Endpoint_912f62fd + + +class EvaluateSHCapabilityResponse(EvaluateSHCapabilityRequest): + """ + + :param capability_test_plan: + :type capability_test_plan: (optional) ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan + :param endpoint: + :type endpoint: (optional) ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint + :param stage: + :type stage: (optional) ask_smapi_model.v1.smart_home_evaluation.stage.Stage + :param id: + :type id: (optional) str + + """ + deserialized_types = { + 'capability_test_plan': 'ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan', + 'endpoint': 'ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint', + 'stage': 'ask_smapi_model.v1.smart_home_evaluation.stage.Stage', + 'id': 'str' + } # type: Dict + + attribute_map = { + 'capability_test_plan': 'capabilityTestPlan', + 'endpoint': 'endpoint', + 'stage': 'stage', + 'id': 'id' + } # type: Dict + supports_multiple_types = False + + def __init__(self, capability_test_plan=None, endpoint=None, stage=None, id=None): + # type: (Optional[CapabilityTestPlan_7d93b401], Optional[Endpoint_912f62fd], Optional[Stage_5c1d183d], Optional[str]) -> None + """ + + :param capability_test_plan: + :type capability_test_plan: (optional) ask_smapi_model.v1.smart_home_evaluation.capability_test_plan.CapabilityTestPlan + :param endpoint: + :type endpoint: (optional) ask_smapi_model.v1.smart_home_evaluation.endpoint.Endpoint + :param stage: + :type stage: (optional) ask_smapi_model.v1.smart_home_evaluation.stage.Stage + :param id: + :type id: (optional) str + """ + self.__discriminator_value = None # type: str + + super(EvaluateSHCapabilityResponse, self).__init__(capability_test_plan=capability_test_plan, endpoint=endpoint, stage=stage) + self.id = id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, EvaluateSHCapabilityResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_entity_status.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_entity_status.py new file mode 100644 index 0000000..3c11623 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_entity_status.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class EvaluationEntityStatus(Enum): + """ + + + Allowed enum values: [PASSED, FAILED, IN_PROGRESS, ERROR] + """ + PASSED = "PASSED" + FAILED = "FAILED" + IN_PROGRESS = "IN_PROGRESS" + ERROR = "ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, EvaluationEntityStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_object.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_object.py new file mode 100644 index 0000000..57e39cd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/evaluation_object.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status import EvaluationEntityStatus as EvaluationEntityStatus_996e143 + + +class EvaluationObject(object): + """ + + :param end_timestamp: + :type end_timestamp: (optional) datetime + :param start_timestamp: + :type start_timestamp: (optional) datetime + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus + :param endpoint_id: + :type endpoint_id: (optional) str + :param id: + :type id: (optional) str + :param source_test_plan_ids: + :type source_test_plan_ids: (optional) list[str] + :param test_plan_id: + :type test_plan_id: (optional) str + + """ + deserialized_types = { + 'end_timestamp': 'datetime', + 'start_timestamp': 'datetime', + 'status': 'ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus', + 'endpoint_id': 'str', + 'id': 'str', + 'source_test_plan_ids': 'list[str]', + 'test_plan_id': 'str' + } # type: Dict + + attribute_map = { + 'end_timestamp': 'endTimestamp', + 'start_timestamp': 'startTimestamp', + 'status': 'status', + 'endpoint_id': 'endpointId', + 'id': 'id', + 'source_test_plan_ids': 'sourceTestPlanIds', + 'test_plan_id': 'testPlanId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, end_timestamp=None, start_timestamp=None, status=None, endpoint_id=None, id=None, source_test_plan_ids=None, test_plan_id=None): + # type: (Optional[datetime], Optional[datetime], Optional[EvaluationEntityStatus_996e143], Optional[str], Optional[str], Optional[List[object]], Optional[str]) -> None + """ + + :param end_timestamp: + :type end_timestamp: (optional) datetime + :param start_timestamp: + :type start_timestamp: (optional) datetime + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus + :param endpoint_id: + :type endpoint_id: (optional) str + :param id: + :type id: (optional) str + :param source_test_plan_ids: + :type source_test_plan_ids: (optional) list[str] + :param test_plan_id: + :type test_plan_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.end_timestamp = end_timestamp + self.start_timestamp = start_timestamp + self.status = status + self.endpoint_id = endpoint_id + self.id = id + self.source_test_plan_ids = source_test_plan_ids + self.test_plan_id = test_plan_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, EvaluationObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_response.py new file mode 100644 index 0000000..314f373 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request import EvaluateSHCapabilityRequest as EvaluateSHCapabilityRequest_2d391178 + from ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status import EvaluationEntityStatus as EvaluationEntityStatus_996e143 + from ask_smapi_model.v1.smart_home_evaluation.sh_evaluation_results_metric import SHEvaluationResultsMetric as SHEvaluationResultsMetric_64305eca + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_error import SHCapabilityError as SHCapabilityError_806131e7 + + +class GetSHCapabilityEvaluationResponse(object): + """ + + :param end_timestamp: + :type end_timestamp: (optional) datetime + :param start_timestamp: + :type start_timestamp: (optional) datetime + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus + :param error: + :type error: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError + :param input: + :type input: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request.EvaluateSHCapabilityRequest + :param metrics: + :type metrics: (optional) dict(str, ask_smapi_model.v1.smart_home_evaluation.sh_evaluation_results_metric.SHEvaluationResultsMetric) + + """ + deserialized_types = { + 'end_timestamp': 'datetime', + 'start_timestamp': 'datetime', + 'status': 'ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus', + 'error': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError', + 'input': 'ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request.EvaluateSHCapabilityRequest', + 'metrics': 'dict(str, ask_smapi_model.v1.smart_home_evaluation.sh_evaluation_results_metric.SHEvaluationResultsMetric)' + } # type: Dict + + attribute_map = { + 'end_timestamp': 'endTimestamp', + 'start_timestamp': 'startTimestamp', + 'status': 'status', + 'error': 'error', + 'input': 'input', + 'metrics': 'metrics' + } # type: Dict + supports_multiple_types = False + + def __init__(self, end_timestamp=None, start_timestamp=None, status=None, error=None, input=None, metrics=None): + # type: (Optional[datetime], Optional[datetime], Optional[EvaluationEntityStatus_996e143], Optional[SHCapabilityError_806131e7], Optional[EvaluateSHCapabilityRequest_2d391178], Optional[Dict[str, SHEvaluationResultsMetric_64305eca]]) -> None + """ + + :param end_timestamp: + :type end_timestamp: (optional) datetime + :param start_timestamp: + :type start_timestamp: (optional) datetime + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluation_entity_status.EvaluationEntityStatus + :param error: + :type error: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError + :param input: + :type input: (optional) ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_request.EvaluateSHCapabilityRequest + :param metrics: + :type metrics: (optional) dict(str, ask_smapi_model.v1.smart_home_evaluation.sh_evaluation_results_metric.SHEvaluationResultsMetric) + """ + self.__discriminator_value = None # type: str + + self.end_timestamp = end_timestamp + self.start_timestamp = start_timestamp + self.status = status + self.error = error + self.input = input + self.metrics = metrics + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetSHCapabilityEvaluationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_results_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_results_response.py new file mode 100644 index 0000000..38143d5 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/get_sh_capability_evaluation_results_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.smart_home_evaluation.paged_response import PagedResponse + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.pagination_context import PaginationContext as PaginationContext_1a5b9c42 + from ask_smapi_model.v1.smart_home_evaluation.test_case_result import TestCaseResult as TestCaseResult_ec2c4a7d + + +class GetSHCapabilityEvaluationResultsResponse(PagedResponse): + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + :param test_case_results: + :type test_case_results: (optional) list[ask_smapi_model.v1.smart_home_evaluation.test_case_result.TestCaseResult] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext', + 'test_case_results': 'list[ask_smapi_model.v1.smart_home_evaluation.test_case_result.TestCaseResult]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'test_case_results': 'testCaseResults' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, test_case_results=None): + # type: (Optional[PaginationContext_1a5b9c42], Optional[List[TestCaseResult_ec2c4a7d]]) -> None + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + :param test_case_results: + :type test_case_results: (optional) list[ask_smapi_model.v1.smart_home_evaluation.test_case_result.TestCaseResult] + """ + self.__discriminator_value = None # type: str + + super(GetSHCapabilityEvaluationResultsResponse, self).__init__(pagination_context=pagination_context) + self.test_case_results = test_case_results + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetSHCapabilityEvaluationResultsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_evaluations_response.py new file mode 100644 index 0000000..3fd9bcb --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_evaluations_response.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.pagination_context_token import PaginationContextToken as PaginationContextToken_8a4288dd + from ask_smapi_model.v1.smart_home_evaluation.evaluation_object import EvaluationObject as EvaluationObject_c72d2758 + + +class ListSHCapabilityEvaluationsResponse(object): + """ + + :param pagination_context_token: + :type pagination_context_token: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context_token.PaginationContextToken + :param evaluations: + :type evaluations: (optional) list[ask_smapi_model.v1.smart_home_evaluation.evaluation_object.EvaluationObject] + + """ + deserialized_types = { + 'pagination_context_token': 'ask_smapi_model.v1.smart_home_evaluation.pagination_context_token.PaginationContextToken', + 'evaluations': 'list[ask_smapi_model.v1.smart_home_evaluation.evaluation_object.EvaluationObject]' + } # type: Dict + + attribute_map = { + 'pagination_context_token': 'paginationContextToken', + 'evaluations': 'evaluations' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context_token=None, evaluations=None): + # type: (Optional[PaginationContextToken_8a4288dd], Optional[List[EvaluationObject_c72d2758]]) -> None + """ + + :param pagination_context_token: + :type pagination_context_token: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context_token.PaginationContextToken + :param evaluations: + :type evaluations: (optional) list[ask_smapi_model.v1.smart_home_evaluation.evaluation_object.EvaluationObject] + """ + self.__discriminator_value = None # type: str + + self.pagination_context_token = pagination_context_token + self.evaluations = evaluations + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListSHCapabilityEvaluationsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_test_plans_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_test_plans_response.py new file mode 100644 index 0000000..b925101 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_capability_test_plans_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.smart_home_evaluation.paged_response import PagedResponse + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.pagination_context import PaginationContext as PaginationContext_1a5b9c42 + from ask_smapi_model.v1.smart_home_evaluation.list_sh_test_plan_item import ListSHTestPlanItem as ListSHTestPlanItem_9e4ab799 + + +class ListSHCapabilityTestPlansResponse(PagedResponse): + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + :param test_plans: + :type test_plans: (optional) list[ask_smapi_model.v1.smart_home_evaluation.list_sh_test_plan_item.ListSHTestPlanItem] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext', + 'test_plans': 'list[ask_smapi_model.v1.smart_home_evaluation.list_sh_test_plan_item.ListSHTestPlanItem]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'test_plans': 'testPlans' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, test_plans=None): + # type: (Optional[PaginationContext_1a5b9c42], Optional[List[ListSHTestPlanItem_9e4ab799]]) -> None + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + :param test_plans: + :type test_plans: (optional) list[ask_smapi_model.v1.smart_home_evaluation.list_sh_test_plan_item.ListSHTestPlanItem] + """ + self.__discriminator_value = None # type: str + + super(ListSHCapabilityTestPlansResponse, self).__init__(pagination_context=pagination_context) + self.test_plans = test_plans + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListSHCapabilityTestPlansResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_test_plan_item.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_test_plan_item.py new file mode 100644 index 0000000..3621301 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/list_sh_test_plan_item.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ListSHTestPlanItem(object): + """ + + :param id: + :type id: (optional) str + :param name: + :type name: (optional) str + + """ + deserialized_types = { + 'id': 'str', + 'name': 'str' + } # type: Dict + + attribute_map = { + 'id': 'id', + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None, name=None): + # type: (Optional[str], Optional[str]) -> None + """ + + :param id: + :type id: (optional) str + :param name: + :type name: (optional) str + """ + self.__discriminator_value = None # type: str + + self.id = id + self.name = name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListSHTestPlanItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/paged_response.py new file mode 100644 index 0000000..3b53426 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/paged_response.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.pagination_context import PaginationContext as PaginationContext_1a5b9c42 + + +class PagedResponse(object): + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None): + # type: (Optional[PaginationContext_1a5b9c42]) -> None + """ + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.smart_home_evaluation.pagination_context.PaginationContext + """ + self.__discriminator_value = None # type: str + + self.pagination_context = pagination_context + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PagedResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context.py new file mode 100644 index 0000000..0001c9e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PaginationContext(object): + """ + + :param next_token: + :type next_token: (optional) str + :param total_count: + :type total_count: (optional) int + + """ + deserialized_types = { + 'next_token': 'str', + 'total_count': 'int' + } # type: Dict + + attribute_map = { + 'next_token': 'nextToken', + 'total_count': 'totalCount' + } # type: Dict + supports_multiple_types = False + + def __init__(self, next_token=None, total_count=None): + # type: (Optional[str], Optional[int]) -> None + """ + + :param next_token: + :type next_token: (optional) str + :param total_count: + :type total_count: (optional) int + """ + self.__discriminator_value = None # type: str + + self.next_token = next_token + self.total_count = total_count + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PaginationContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context_token.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context_token.py new file mode 100644 index 0000000..c2d2fbc --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/pagination_context_token.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PaginationContextToken(object): + """ + + :param next_token: + :type next_token: (optional) str + + """ + deserialized_types = { + 'next_token': 'str' + } # type: Dict + + attribute_map = { + 'next_token': 'nextToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, next_token=None): + # type: (Optional[str]) -> None + """ + + :param next_token: + :type next_token: (optional) str + """ + self.__discriminator_value = None # type: str + + self.next_token = next_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PaginationContextToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/py.typed b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_directive.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_directive.py new file mode 100644 index 0000000..0c0c63f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_directive.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SHCapabilityDirective(object): + """ + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """ + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHCapabilityDirective): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error.py new file mode 100644 index 0000000..a344542 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_error_code import SHCapabilityErrorCode as SHCapabilityErrorCode_45c6414c + + +class SHCapabilityError(object): + """ + + :param code: + :type code: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error_code.SHCapabilityErrorCode + :param message: + :type message: (optional) str + + """ + deserialized_types = { + 'code': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_error_code.SHCapabilityErrorCode', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'code': 'code', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, code=None, message=None): + # type: (Optional[SHCapabilityErrorCode_45c6414c], Optional[str]) -> None + """ + + :param code: + :type code: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error_code.SHCapabilityErrorCode + :param message: + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.code = code + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHCapabilityError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error_code.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error_code.py new file mode 100644 index 0000000..54675b7 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_error_code.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SHCapabilityErrorCode(Enum): + """ + + + Allowed enum values: [NO_SUCH_ENDPOINT, NO_SUCH_SKILL_STAGE, NO_SUCH_TEST_PLAN, MULTIPLE_MATCHED_ENDPOINTS, MULTIPLE_MATCHED_TEST_PLANS, CAPABILITY_NOT_SUPPORTED, DISCOVERY_FAILED, TEST_CASE_TIME_OUT] + """ + NO_SUCH_ENDPOINT = "NO_SUCH_ENDPOINT" + NO_SUCH_SKILL_STAGE = "NO_SUCH_SKILL_STAGE" + NO_SUCH_TEST_PLAN = "NO_SUCH_TEST_PLAN" + MULTIPLE_MATCHED_ENDPOINTS = "MULTIPLE_MATCHED_ENDPOINTS" + MULTIPLE_MATCHED_TEST_PLANS = "MULTIPLE_MATCHED_TEST_PLANS" + CAPABILITY_NOT_SUPPORTED = "CAPABILITY_NOT_SUPPORTED" + DISCOVERY_FAILED = "DISCOVERY_FAILED" + TEST_CASE_TIME_OUT = "TEST_CASE_TIME_OUT" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHCapabilityErrorCode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_response.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_response.py new file mode 100644 index 0000000..04b654d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SHCapabilityResponse(object): + """ + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """ + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHCapabilityResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_state.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_state.py new file mode 100644 index 0000000..84bfd40 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_capability_state.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SHCapabilityState(object): + """ + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """ + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHCapabilityState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_evaluation_results_metric.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_evaluation_results_metric.py new file mode 100644 index 0000000..2da9a44 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/sh_evaluation_results_metric.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SHEvaluationResultsMetric(object): + """ + + :param error_test_cases: + :type error_test_cases: (optional) int + :param failed_test_cases: + :type failed_test_cases: (optional) int + :param passed_test_cases: + :type passed_test_cases: (optional) int + :param total_test_cases: + :type total_test_cases: (optional) int + + """ + deserialized_types = { + 'error_test_cases': 'int', + 'failed_test_cases': 'int', + 'passed_test_cases': 'int', + 'total_test_cases': 'int' + } # type: Dict + + attribute_map = { + 'error_test_cases': 'errorTestCases', + 'failed_test_cases': 'failedTestCases', + 'passed_test_cases': 'passedTestCases', + 'total_test_cases': 'totalTestCases' + } # type: Dict + supports_multiple_types = False + + def __init__(self, error_test_cases=None, failed_test_cases=None, passed_test_cases=None, total_test_cases=None): + # type: (Optional[int], Optional[int], Optional[int], Optional[int]) -> None + """ + + :param error_test_cases: + :type error_test_cases: (optional) int + :param failed_test_cases: + :type failed_test_cases: (optional) int + :param passed_test_cases: + :type passed_test_cases: (optional) int + :param total_test_cases: + :type total_test_cases: (optional) int + """ + self.__discriminator_value = None # type: str + + self.error_test_cases = error_test_cases + self.failed_test_cases = failed_test_cases + self.passed_test_cases = passed_test_cases + self.total_test_cases = total_test_cases + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SHEvaluationResultsMetric): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/stage.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/stage.py new file mode 100644 index 0000000..938afc5 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/stage.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Stage(Enum): + """ + + + Allowed enum values: [development, live] + """ + development = "development" + live = "live" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Stage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result.py new file mode 100644 index 0000000..73a37a8 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result.py @@ -0,0 +1,160 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_directive import SHCapabilityDirective as SHCapabilityDirective_72bbfeb5 + from ask_smapi_model.v1.smart_home_evaluation.test_case_result_status import TestCaseResultStatus as TestCaseResultStatus_5c4be03e + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_error import SHCapabilityError as SHCapabilityError_806131e7 + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_response import SHCapabilityResponse as SHCapabilityResponse_5c94224d + from ask_smapi_model.v1.smart_home_evaluation.sh_capability_state import SHCapabilityState as SHCapabilityState_db42e6b9 + + +class TestCaseResult(object): + """ + + :param actual_capability_states: + :type actual_capability_states: (optional) list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState] + :param actual_response: + :type actual_response: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse + :param directive: + :type directive: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_directive.SHCapabilityDirective + :param error: + :type error: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError + :param expected_capability_states: + :type expected_capability_states: (optional) list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState] + :param expected_response: + :type expected_response: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse + :param name: + :type name: (optional) str + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.test_case_result_status.TestCaseResultStatus + + """ + deserialized_types = { + 'actual_capability_states': 'list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState]', + 'actual_response': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse', + 'directive': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_directive.SHCapabilityDirective', + 'error': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError', + 'expected_capability_states': 'list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState]', + 'expected_response': 'ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse', + 'name': 'str', + 'status': 'ask_smapi_model.v1.smart_home_evaluation.test_case_result_status.TestCaseResultStatus' + } # type: Dict + + attribute_map = { + 'actual_capability_states': 'actualCapabilityStates', + 'actual_response': 'actualResponse', + 'directive': 'directive', + 'error': 'error', + 'expected_capability_states': 'expectedCapabilityStates', + 'expected_response': 'expectedResponse', + 'name': 'name', + 'status': 'status' + } # type: Dict + supports_multiple_types = False + + def __init__(self, actual_capability_states=None, actual_response=None, directive=None, error=None, expected_capability_states=None, expected_response=None, name=None, status=None): + # type: (Optional[List[SHCapabilityState_db42e6b9]], Optional[SHCapabilityResponse_5c94224d], Optional[SHCapabilityDirective_72bbfeb5], Optional[SHCapabilityError_806131e7], Optional[List[SHCapabilityState_db42e6b9]], Optional[SHCapabilityResponse_5c94224d], Optional[str], Optional[TestCaseResultStatus_5c4be03e]) -> None + """ + + :param actual_capability_states: + :type actual_capability_states: (optional) list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState] + :param actual_response: + :type actual_response: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse + :param directive: + :type directive: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_directive.SHCapabilityDirective + :param error: + :type error: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_error.SHCapabilityError + :param expected_capability_states: + :type expected_capability_states: (optional) list[ask_smapi_model.v1.smart_home_evaluation.sh_capability_state.SHCapabilityState] + :param expected_response: + :type expected_response: (optional) ask_smapi_model.v1.smart_home_evaluation.sh_capability_response.SHCapabilityResponse + :param name: + :type name: (optional) str + :param status: + :type status: (optional) ask_smapi_model.v1.smart_home_evaluation.test_case_result_status.TestCaseResultStatus + """ + self.__discriminator_value = None # type: str + + self.actual_capability_states = actual_capability_states + self.actual_response = actual_response + self.directive = directive + self.error = error + self.expected_capability_states = expected_capability_states + self.expected_response = expected_response + self.name = name + self.status = status + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TestCaseResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result_status.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result_status.py new file mode 100644 index 0000000..741db28 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/test_case_result_status.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TestCaseResultStatus(Enum): + """ + + + Allowed enum values: [PASSED, FAILED, ERROR] + """ + PASSED = "PASSED" + FAILED = "FAILED" + ERROR = "ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TestCaseResultStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py index 276153b..d5361fd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/vendors.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.vendor_management.vendor import Vendor as VendorManagement_VendorV1 + from ask_smapi_model.v1.vendor_management.vendor import Vendor as Vendor_761d0951 class Vendors(object): @@ -45,7 +45,7 @@ class Vendors(object): supports_multiple_types = False def __init__(self, vendors=None): - # type: (Optional[List[VendorManagement_VendorV1]]) -> None + # type: (Optional[List[Vendor_761d0951]]) -> None """List of Vendors. :param vendors: diff --git a/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py b/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py index e6cf329..f979391 100644 --- a/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py +++ b/ask-smapi-model/ask_smapi_model/v2/bad_request_error.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.error import Error as V2_ErrorV2 + from ask_smapi_model.v2.error import Error as Error_ea6c1a5a class BadRequestError(object): @@ -47,7 +47,7 @@ class BadRequestError(object): supports_multiple_types = False def __init__(self, message=None, violations=None): - # type: (Optional[str], Optional[List[V2_ErrorV2]]) -> None + # type: (Optional[str], Optional[List[Error_ea6c1a5a]]) -> None """ :param message: Human readable description of error. diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py index b4cde1b..d23005a 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocation.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation_response import InvocationResponse as Skill_InvocationResponseV2 - from ask_smapi_model.v2.skill.invocation_request import InvocationRequest as Skill_InvocationRequestV2 - from ask_smapi_model.v2.skill.metrics import Metrics as Skill_MetricsV2 + from ask_smapi_model.v2.skill.invocation_response import InvocationResponse as InvocationResponse_92ff1a14 + from ask_smapi_model.v2.skill.metrics import Metrics as Metrics_f81eceb3 + from ask_smapi_model.v2.skill.invocation_request import InvocationRequest as InvocationRequest_c1e3e5d6 class Invocation(object): @@ -53,7 +53,7 @@ class Invocation(object): supports_multiple_types = False def __init__(self, invocation_request=None, invocation_response=None, metrics=None): - # type: (Optional[Skill_InvocationRequestV2], Optional[Skill_InvocationResponseV2], Optional[Skill_MetricsV2]) -> None + # type: (Optional[InvocationRequest_c1e3e5d6], Optional[InvocationResponse_92ff1a14], Optional[Metrics_f81eceb3]) -> None """ :param invocation_request: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py index a0f85fa..21b78dd 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_result.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation import Invocation as Skill_InvocationV2 - from ask_smapi_model.v2.error import Error as V2_ErrorV2 + from ask_smapi_model.v2.error import Error as Error_ea6c1a5a + from ask_smapi_model.v2.skill.invocation import Invocation as Invocation_bd57c0c9 class InvocationResponseResult(object): @@ -48,7 +48,7 @@ class InvocationResponseResult(object): supports_multiple_types = False def __init__(self, skill_execution_info=None, error=None): - # type: (Optional[Skill_InvocationV2], Optional[V2_ErrorV2]) -> None + # type: (Optional[Invocation_bd57c0c9], Optional[Error_ea6c1a5a]) -> None """ :param skill_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py index 8f14fa2..dd12c96 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_request.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocations.end_point_regions import EndPointRegions as Invocations_EndPointRegionsV2 - from ask_smapi_model.v2.skill.invocations.skill_request import SkillRequest as Invocations_SkillRequestV2 + from ask_smapi_model.v2.skill.invocations.skill_request import SkillRequest as SkillRequest_eec4e59b + from ask_smapi_model.v2.skill.invocations.end_point_regions import EndPointRegions as EndPointRegions_8b6a8458 class InvocationsApiRequest(object): @@ -48,7 +48,7 @@ class InvocationsApiRequest(object): supports_multiple_types = False def __init__(self, endpoint_region=None, skill_request=None): - # type: (Optional[Invocations_EndPointRegionsV2], Optional[Invocations_SkillRequestV2]) -> None + # type: (Optional[EndPointRegions_8b6a8458], Optional[SkillRequest_eec4e59b]) -> None """ :param endpoint_region: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py index f6a91bc..6fe3379 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocations_api_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocations.invocation_response_result import InvocationResponseResult as Invocations_InvocationResponseResultV2 - from ask_smapi_model.v2.skill.invocations.invocation_response_status import InvocationResponseStatus as Invocations_InvocationResponseStatusV2 + from ask_smapi_model.v2.skill.invocations.invocation_response_status import InvocationResponseStatus as InvocationResponseStatus_ba4e3760 + from ask_smapi_model.v2.skill.invocations.invocation_response_result import InvocationResponseResult as InvocationResponseResult_6f362dc0 class InvocationsApiResponse(object): @@ -48,7 +48,7 @@ class InvocationsApiResponse(object): supports_multiple_types = False def __init__(self, status=None, result=None): - # type: (Optional[Invocations_InvocationResponseStatusV2], Optional[Invocations_InvocationResponseResultV2]) -> None + # type: (Optional[InvocationResponseStatus_ba4e3760], Optional[InvocationResponseResult_6f362dc0]) -> None """ :param status: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py index e624ea5..67be97f 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_execution_info.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.alexa_response import AlexaResponse as Simulations_AlexaResponseV2 - from ask_smapi_model.v2.skill.simulations.intent import Intent as Simulations_IntentV2 + from ask_smapi_model.v2.skill.simulations.alexa_response import AlexaResponse as AlexaResponse_d40e19a + from ask_smapi_model.v2.skill.simulations.intent import Intent as Intent_779d95a7 class AlexaExecutionInfo(object): @@ -48,7 +48,7 @@ class AlexaExecutionInfo(object): supports_multiple_types = False def __init__(self, alexa_responses=None, considered_intents=None): - # type: (Optional[List[Simulations_AlexaResponseV2]], Optional[List[Simulations_IntentV2]]) -> None + # type: (Optional[List[AlexaResponse_d40e19a]], Optional[List[Intent_779d95a7]]) -> None """ :param alexa_responses: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py index 9fb283d..ab859eb 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/alexa_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.alexa_response_content import AlexaResponseContent as Simulations_AlexaResponseContentV2 + from ask_smapi_model.v2.skill.simulations.alexa_response_content import AlexaResponseContent as AlexaResponseContent_1f3f9a85 class AlexaResponse(object): @@ -47,7 +47,7 @@ class AlexaResponse(object): supports_multiple_types = False def __init__(self, object_type=None, content=None): - # type: (Optional[str], Optional[Simulations_AlexaResponseContentV2]) -> None + # type: (Optional[str], Optional[AlexaResponseContent_1f3f9a85]) -> None """ :param object_type: The type of Alexa response diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py index b09172d..252c910 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/intent.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.slot import Slot as Simulations_SlotV2 - from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as Simulations_ConfirmationStatusTypeV2 + from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as ConfirmationStatusType_c768444b + from ask_smapi_model.v2.skill.simulations.slot import Slot as Slot_3a233be7 class Intent(object): @@ -52,7 +52,7 @@ class Intent(object): supports_multiple_types = False def __init__(self, name=None, confirmation_status=None, slots=None): - # type: (Optional[str], Optional[Simulations_ConfirmationStatusTypeV2], Optional[Dict[str, Simulations_SlotV2]]) -> None + # type: (Optional[str], Optional[ConfirmationStatusType_c768444b], Optional[Dict[str, Slot_3a233be7]]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py index b54f79a..cd3a7f6 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_items.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as Simulations_ResolutionsPerAuthorityValueItemsV2 - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as Simulations_ResolutionsPerAuthorityStatusV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems as ResolutionsPerAuthorityValueItems_accac0a3 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status import ResolutionsPerAuthorityStatus as ResolutionsPerAuthorityStatus_fbbac560 class ResolutionsPerAuthorityItems(object): @@ -52,7 +52,7 @@ class ResolutionsPerAuthorityItems(object): supports_multiple_types = False def __init__(self, authority=None, status=None, values=None): - # type: (Optional[str], Optional[Simulations_ResolutionsPerAuthorityStatusV2], Optional[List[Simulations_ResolutionsPerAuthorityValueItemsV2]]) -> None + # type: (Optional[str], Optional[ResolutionsPerAuthorityStatus_fbbac560], Optional[List[ResolutionsPerAuthorityValueItems_accac0a3]]) -> None """ :param authority: The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name. diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py index c915d56..f5bbf14 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/resolutions_per_authority_status.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as Simulations_ResolutionsPerAuthorityStatusCodeV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode as ResolutionsPerAuthorityStatusCode_5fb9957b class ResolutionsPerAuthorityStatus(object): @@ -45,7 +45,7 @@ class ResolutionsPerAuthorityStatus(object): supports_multiple_types = False def __init__(self, code=None): - # type: (Optional[Simulations_ResolutionsPerAuthorityStatusCodeV2]) -> None + # type: (Optional[ResolutionsPerAuthorityStatusCode_5fb9957b]) -> None """An object representing the status of entity resolution for the slot. :param code: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py index e42934c..ae354c4 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/session.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.session_mode import SessionMode as Simulations_SessionModeV2 + from ask_smapi_model.v2.skill.simulations.session_mode import SessionMode as SessionMode_4d4c02fe class Session(object): @@ -45,7 +45,7 @@ class Session(object): supports_multiple_types = False def __init__(self, mode=None): - # type: (Optional[Simulations_SessionModeV2]) -> None + # type: (Optional[SessionMode_4d4c02fe]) -> None """Session settings for running current simulation. :param mode: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py index 6ecf80e..7495eb6 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_result.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.error import Error as V2_ErrorV2 - from ask_smapi_model.v2.skill.simulations.alexa_execution_info import AlexaExecutionInfo as Simulations_AlexaExecutionInfoV2 - from ask_smapi_model.v2.skill.simulations.skill_execution_info import SkillExecutionInfo as Simulations_SkillExecutionInfoV2 + from ask_smapi_model.v2.skill.simulations.alexa_execution_info import AlexaExecutionInfo as AlexaExecutionInfo_9555ceb9 + from ask_smapi_model.v2.skill.simulations.skill_execution_info import SkillExecutionInfo as SkillExecutionInfo_232ba9f9 + from ask_smapi_model.v2.error import Error as Error_ea6c1a5a class SimulationResult(object): @@ -53,7 +53,7 @@ class SimulationResult(object): supports_multiple_types = False def __init__(self, alexa_execution_info=None, skill_execution_info=None, error=None): - # type: (Optional[Simulations_AlexaExecutionInfoV2], Optional[Simulations_SkillExecutionInfoV2], Optional[V2_ErrorV2]) -> None + # type: (Optional[AlexaExecutionInfo_9555ceb9], Optional[SkillExecutionInfo_232ba9f9], Optional[Error_ea6c1a5a]) -> None """ :param alexa_execution_info: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py index a040dd1..93097a8 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py @@ -23,9 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.input import Input as Simulations_InputV2 - from ask_smapi_model.v2.skill.simulations.session import Session as Simulations_SessionV2 - from ask_smapi_model.v2.skill.simulations.device import Device as Simulations_DeviceV2 + from ask_smapi_model.v2.skill.simulations.device import Device as Device_6965067 + from ask_smapi_model.v2.skill.simulations.input import Input as Input_87f09a1f + from ask_smapi_model.v2.skill.simulations.session import Session as Session_d6e4b037 class SimulationsApiRequest(object): @@ -53,7 +53,7 @@ class SimulationsApiRequest(object): supports_multiple_types = False def __init__(self, input=None, device=None, session=None): - # type: (Optional[Simulations_InputV2], Optional[Simulations_DeviceV2], Optional[Simulations_SessionV2]) -> None + # type: (Optional[Input_87f09a1f], Optional[Device_6965067], Optional[Session_d6e4b037]) -> None """ :param input: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py index a7cf61a..bbe3f68 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_response.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as Simulations_SimulationsApiResponseStatusV2 - from ask_smapi_model.v2.skill.simulations.simulation_result import SimulationResult as Simulations_SimulationResultV2 + from ask_smapi_model.v2.skill.simulations.simulation_result import SimulationResult as SimulationResult_363f92e4 + from ask_smapi_model.v2.skill.simulations.simulations_api_response_status import SimulationsApiResponseStatus as SimulationsApiResponseStatus_c561441e class SimulationsApiResponse(object): @@ -52,7 +52,7 @@ class SimulationsApiResponse(object): supports_multiple_types = False def __init__(self, id=None, status=None, result=None): - # type: (Optional[str], Optional[Simulations_SimulationsApiResponseStatusV2], Optional[Simulations_SimulationResultV2]) -> None + # type: (Optional[str], Optional[SimulationsApiResponseStatus_c561441e], Optional[SimulationResult_363f92e4]) -> None """ :param id: Id of the simulation resource. diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py index de9fe29..37d3add 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/skill_execution_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.invocation import Invocation as Skill_InvocationV2 + from ask_smapi_model.v2.skill.invocation import Invocation as Invocation_bd57c0c9 class SkillExecutionInfo(object): @@ -43,7 +43,7 @@ class SkillExecutionInfo(object): supports_multiple_types = False def __init__(self, invocations=None): - # type: (Optional[List[Skill_InvocationV2]]) -> None + # type: (Optional[List[Invocation_bd57c0c9]]) -> None """ :param invocations: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py index 3130ea5..320ecd1 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.slot_resolutions import SlotResolutions as Simulations_SlotResolutionsV2 - from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as Simulations_ConfirmationStatusTypeV2 + from ask_smapi_model.v2.skill.simulations.slot_resolutions import SlotResolutions as SlotResolutions_137aee8 + from ask_smapi_model.v2.skill.simulations.confirmation_status_type import ConfirmationStatusType as ConfirmationStatusType_c768444b class Slot(object): @@ -56,7 +56,7 @@ class Slot(object): supports_multiple_types = False def __init__(self, name=None, value=None, confirmation_status=None, resolutions=None): - # type: (Optional[str], Optional[str], Optional[Simulations_ConfirmationStatusTypeV2], Optional[Simulations_SlotResolutionsV2]) -> None + # type: (Optional[str], Optional[str], Optional[ConfirmationStatusType_c768444b], Optional[SlotResolutions_137aee8]) -> None """ :param name: diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py index 06e70c5..acae00e 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/slot_resolutions.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as Simulations_ResolutionsPerAuthorityItemsV2 + from ask_smapi_model.v2.skill.simulations.resolutions_per_authority_items import ResolutionsPerAuthorityItems as ResolutionsPerAuthorityItems_57e5779e class SlotResolutions(object): @@ -45,7 +45,7 @@ class SlotResolutions(object): supports_multiple_types = False def __init__(self, resolutions_per_authority=None): - # type: (Optional[List[Simulations_ResolutionsPerAuthorityItemsV2]]) -> None + # type: (Optional[List[ResolutionsPerAuthorityItems_57e5779e]]) -> None """A resolutions object representing the results of resolving the words captured from the user's utterance. :param resolutions_per_authority: An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined. From c1910c1af4551e1b5d40864b5164717af98384d7 Mon Sep 17 00:00:00 2001 From: Nikhil Yogendra Murali <25237515+nikhilym@users.noreply.github.com> Date: Fri, 19 Feb 2021 14:36:40 -0800 Subject: [PATCH 010/111] chore: update license info on PR template --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index e15364b..e1f2352 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -20,4 +20,4 @@ All Pull Requests will be automatically closed, unless the request is generic an - [ ] My code follows the code style of this project - [ ] My change requires a change to the documentation - [ ] The change is generic and can be done across all model classes. -- [ ] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. +- [ ] By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. From 492d7e2651b192e9a8868d00f6c0da0af21b2951 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 1 Apr 2021 21:05:24 +0000 Subject: [PATCH 011/111] Release 1.30.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 10 ++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../alexa/presentation/apl/__init__.py | 4 + .../presentation/apl/animate_item_command.py | 18 +- .../presentation/apl/auto_page_command.py | 18 +- .../presentation/apl/clear_focus_command.py | 18 +- .../alexa/presentation/apl/command.py | 34 +++- .../presentation/apl/control_media_command.py | 18 +- .../alexa/presentation/apl/finish_command.py | 136 +++++++++++++++ .../alexa/presentation/apl/idle_command.py | 18 +- .../presentation/apl/open_url_command.py | 18 +- .../presentation/apl/parallel_command.py | 18 +- .../presentation/apl/play_media_command.py | 18 +- .../presentation/apl/reinflate_command.py | 136 +++++++++++++++ .../alexa/presentation/apl/scroll_command.py | 18 +- .../apl/scroll_to_component_command.py | 151 +++++++++++++++++ .../apl/scroll_to_index_command.py | 18 +- .../alexa/presentation/apl/select_command.py | 158 ++++++++++++++++++ .../presentation/apl/send_event_command.py | 18 +- .../presentation/apl/sequential_command.py | 18 +- .../presentation/apl/set_focus_command.py | 18 +- .../presentation/apl/set_page_command.py | 18 +- .../presentation/apl/set_state_command.py | 18 +- .../presentation/apl/set_value_command.py | 18 +- .../presentation/apl/speak_item_command.py | 18 +- .../presentation/apl/speak_list_command.py | 18 +- 26 files changed, 896 insertions(+), 59 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/finish_command.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/reinflate_command.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_component_command.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/select_command.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 53576e5..7c6f7ea 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -371,3 +371,13 @@ This release contains the following changes : This release contains the following changes : - APL for Audio now sends RuntimeError requests that notify developer of any errors that happened during APLA processing. + + +1.30.0 +~~~~~~ + +This release contains the following changes : + +- Add support for APL 1.6 version. More information about the newest version can be found `here `__. + + diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index d2cde3e..521242a 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.29.0' +__version__ = '1.30.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index c1bfcd2..2093a16 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -43,6 +43,7 @@ from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag from .transform_property import TransformProperty from .send_index_list_data_directive import SendIndexListDataDirective +from .select_command import SelectCommand from .align import Align from .highlight_mode import HighlightMode from .sequential_command import SequentialCommand @@ -50,6 +51,7 @@ from .execute_commands_directive import ExecuteCommandsDirective from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag from .move_transform_property import MoveTransformProperty +from .finish_command import FinishCommand from .clear_focus_command import ClearFocusCommand from .component_entity import ComponentEntity from .command import Command @@ -64,10 +66,12 @@ from .send_event_command import SendEventCommand from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .reinflate_command import ReinflateCommand from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag from .set_state_command import SetStateCommand from .rotate_transform_property import RotateTransformProperty from .scroll_to_index_command import ScrollToIndexCommand +from .scroll_to_component_command import ScrollToComponentCommand from .speak_list_command import SpeakListCommand from .media_command_type import MediaCommandType from .rendered_document_state import RenderedDocumentState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py index df9d4d6..f1c4d5e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/animate_item_command.py @@ -37,6 +37,10 @@ class AnimateItemCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The ID of the animated component. @@ -57,6 +61,8 @@ class AnimateItemCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str', 'duration': 'int', @@ -70,6 +76,8 @@ class AnimateItemCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId', 'duration': 'duration', @@ -80,14 +88,18 @@ class AnimateItemCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None, duration=None, easing='linear', repeat_count=None, repeat_mode=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Optional[str], Union[int, str, None], Optional[AnimateItemRepeatMode_22d93893], Optional[List[AnimatedProperty_b438632b]]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None, duration=None, easing='linear', repeat_count=None, repeat_mode=None, value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Optional[str], Union[int, str, None], Optional[AnimateItemRepeatMode_22d93893], Optional[List[AnimatedProperty_b438632b]]) -> None """Runs a fixed-duration animation sequence on one or more properties of a single component. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The ID of the animated component. @@ -106,7 +118,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None, d self.__discriminator_value = "AnimateItem" # type: str self.object_type = self.__discriminator_value - super(AnimateItemCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(AnimateItemCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id self.duration = duration self.easing = easing diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py index 9c05c3d..8c69690 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/auto_page_command.py @@ -35,6 +35,10 @@ class AutoPageCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the Pager component. @@ -49,6 +53,8 @@ class AutoPageCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str', 'count': 'int', @@ -59,6 +65,8 @@ class AutoPageCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId', 'count': 'count', @@ -66,14 +74,18 @@ class AutoPageCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None, count=None, duration=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None, count=None, duration=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Union[int, str, None], Union[int, str, None]) -> None """Automatically progress through a series of pages displayed in a Pager component. The AutoPage command finishes after the last page has been displayed for the requested time period. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the Pager component. @@ -86,7 +98,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None, c self.__discriminator_value = "AutoPage" # type: str self.object_type = self.__discriminator_value - super(AutoPageCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(AutoPageCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id self.count = count self.duration = duration diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py index 47d3517..dc34f50 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/clear_focus_command.py @@ -35,6 +35,10 @@ class ClearFocusCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool @@ -43,6 +47,8 @@ class ClearFocusCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool' } # type: Dict @@ -50,25 +56,31 @@ class ClearFocusCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None): - # type: (Union[int, str, None], Optional[str], Optional[bool]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool]) -> None """Removes focus from the component that is currently in focus. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool """ self.__discriminator_value = "ClearFocus" # type: str self.object_type = self.__discriminator_value - super(ClearFocusCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(ClearFocusCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py index 2a2cc9c..8790680 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py @@ -37,6 +37,10 @@ class Command(object): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool @@ -49,6 +53,8 @@ class Command(object): | | ControlMedia: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.control_media_command.ControlMediaCommand`, | + | Finish: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.finish_command.FinishCommand`, + | | AutoPage: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.auto_page_command.AutoPageCommand`, | | PlayMedia: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.play_media_command.PlayMediaCommand`, @@ -63,6 +69,8 @@ class Command(object): | | SpeakList: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.speak_list_command.SpeakListCommand`, | + | Select: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.select_command.SelectCommand`, + | | Sequential: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.sequential_command.SequentialCommand`, | | SetState: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.set_state_command.SetStateCommand`, @@ -73,19 +81,25 @@ class Command(object): | | OpenURL: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.open_url_command.OpenUrlCommand`, | + | Reinflate: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.reinflate_command.ReinflateCommand`, + | | ClearFocus: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.clear_focus_command.ClearFocusCommand`, | | ScrollToIndex: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.scroll_to_index_command.ScrollToIndexCommand`, | | SetValue: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.set_value_command.SetValueCommand`, | - | SetFocus: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.set_focus_command.SetFocusCommand` + | SetFocus: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.set_focus_command.SetFocusCommand`, + | + | ScrollToComponent: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.scroll_to_component_command.ScrollToComponentCommand` """ deserialized_types = { 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool' } # type: Dict @@ -93,6 +107,8 @@ class Command(object): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when' } # type: Dict supports_multiple_types = False @@ -100,6 +116,7 @@ class Command(object): discriminator_value_class_map = { 'SetPage': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_page_command.SetPageCommand', 'ControlMedia': 'ask_sdk_model.interfaces.alexa.presentation.apl.control_media_command.ControlMediaCommand', + 'Finish': 'ask_sdk_model.interfaces.alexa.presentation.apl.finish_command.FinishCommand', 'AutoPage': 'ask_sdk_model.interfaces.alexa.presentation.apl.auto_page_command.AutoPageCommand', 'PlayMedia': 'ask_sdk_model.interfaces.alexa.presentation.apl.play_media_command.PlayMediaCommand', 'Scroll': 'ask_sdk_model.interfaces.alexa.presentation.apl.scroll_command.ScrollCommand', @@ -107,15 +124,18 @@ class Command(object): 'AnimateItem': 'ask_sdk_model.interfaces.alexa.presentation.apl.animate_item_command.AnimateItemCommand', 'SendEvent': 'ask_sdk_model.interfaces.alexa.presentation.apl.send_event_command.SendEventCommand', 'SpeakList': 'ask_sdk_model.interfaces.alexa.presentation.apl.speak_list_command.SpeakListCommand', + 'Select': 'ask_sdk_model.interfaces.alexa.presentation.apl.select_command.SelectCommand', 'Sequential': 'ask_sdk_model.interfaces.alexa.presentation.apl.sequential_command.SequentialCommand', 'SetState': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_state_command.SetStateCommand', 'SpeakItem': 'ask_sdk_model.interfaces.alexa.presentation.apl.speak_item_command.SpeakItemCommand', 'Parallel': 'ask_sdk_model.interfaces.alexa.presentation.apl.parallel_command.ParallelCommand', 'OpenURL': 'ask_sdk_model.interfaces.alexa.presentation.apl.open_url_command.OpenUrlCommand', + 'Reinflate': 'ask_sdk_model.interfaces.alexa.presentation.apl.reinflate_command.ReinflateCommand', 'ClearFocus': 'ask_sdk_model.interfaces.alexa.presentation.apl.clear_focus_command.ClearFocusCommand', 'ScrollToIndex': 'ask_sdk_model.interfaces.alexa.presentation.apl.scroll_to_index_command.ScrollToIndexCommand', 'SetValue': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_value_command.SetValueCommand', - 'SetFocus': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_focus_command.SetFocusCommand' + 'SetFocus': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_focus_command.SetFocusCommand', + 'ScrollToComponent': 'ask_sdk_model.interfaces.alexa.presentation.apl.scroll_to_component_command.ScrollToComponentCommand' } json_discriminator_key = "type" @@ -123,8 +143,8 @@ class Command(object): __metaclass__ = ABCMeta @abstractmethod - def __init__(self, object_type=None, delay=None, description=None, when=None): - # type: (Optional[str], Union[int, str, None], Optional[str], Optional[bool]) -> None + def __init__(self, object_type=None, delay=None, description=None, screen_lock=None, sequencer=None, when=None): + # type: (Optional[str], Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool]) -> None """A message that can change the visual or audio presentation of the content on the screen. :param object_type: Defines the command type and dictates which properties must/can be included. @@ -133,6 +153,10 @@ def __init__(self, object_type=None, delay=None, description=None, when=None): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool """ @@ -141,6 +165,8 @@ def __init__(self, object_type=None, delay=None, description=None, when=None): self.object_type = object_type self.delay = delay self.description = description + self.screen_lock = screen_lock + self.sequencer = sequencer self.when = when @classmethod diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py index 7cd29e9..f568d14 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/control_media_command.py @@ -36,6 +36,10 @@ class ControlMediaCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param command: The command to issue on the media player @@ -50,6 +54,8 @@ class ControlMediaCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'command': 'ask_sdk_model.interfaces.alexa.presentation.apl.media_command_type.MediaCommandType', 'component_id': 'str', @@ -60,6 +66,8 @@ class ControlMediaCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'command': 'command', 'component_id': 'componentId', @@ -67,14 +75,18 @@ class ControlMediaCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, command=None, component_id=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[MediaCommandType_47512d90], Optional[str], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, command=None, component_id=None, value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[MediaCommandType_47512d90], Optional[str], Union[int, str, None]) -> None """Control a media player to play, pause, change tracks, or perform some other common action. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param command: The command to issue on the media player @@ -87,7 +99,7 @@ def __init__(self, delay=None, description=None, when=None, command=None, compon self.__discriminator_value = "ControlMedia" # type: str self.object_type = self.__discriminator_value - super(ControlMediaCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(ControlMediaCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.command = command self.component_id = component_id self.value = value diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/finish_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/finish_command.py new file mode 100644 index 0000000..5d7a75b --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/finish_command.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class FinishCommand(Command): + """ + The finish command closes the current APL document and exits. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool]) -> None + """The finish command closes the current APL document and exits. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + """ + self.__discriminator_value = "Finish" # type: str + + self.object_type = self.__discriminator_value + super(FinishCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, FinishCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py index d70519b..022c7a4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/idle_command.py @@ -35,6 +35,10 @@ class IdleCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool @@ -43,6 +47,8 @@ class IdleCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool' } # type: Dict @@ -50,25 +56,31 @@ class IdleCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None): - # type: (Union[int, str, None], Optional[str], Optional[bool]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool]) -> None """The idle command does nothing. It may be a placeholder or used to insert a calculated delay in a longer series of commands. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool """ self.__discriminator_value = "Idle" # type: str self.object_type = self.__discriminator_value - super(IdleCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(IdleCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py index 72fa861..28202aa 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/open_url_command.py @@ -36,6 +36,10 @@ class OpenUrlCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param source: The URL to open @@ -48,6 +52,8 @@ class OpenUrlCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'source': 'str', 'on_fail': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]' @@ -57,20 +63,26 @@ class OpenUrlCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'source': 'source', 'on_fail': 'onFail' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, source=None, on_fail=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[List[Command_bc5ff832]]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, source=None, on_fail=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[List[Command_bc5ff832]]) -> None """Opens a url with web browser or other application on the device. The APL author is responsible for providing a suitable URL that works on the current device. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param source: The URL to open @@ -81,7 +93,7 @@ def __init__(self, delay=None, description=None, when=None, source=None, on_fail self.__discriminator_value = "OpenURL" # type: str self.object_type = self.__discriminator_value - super(OpenUrlCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(OpenUrlCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.source = source self.on_fail = on_fail diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py index f701a42..cf92d1a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/parallel_command.py @@ -36,6 +36,10 @@ class ParallelCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param commands: An un-ordered array of commands to execute in parallel. Once all commands have finished executing the parallel command finishes. Please note that the delay of parallel command and the delay of each command are additive. @@ -46,6 +50,8 @@ class ParallelCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'commands': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]' } # type: Dict @@ -54,19 +60,25 @@ class ParallelCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'commands': 'commands' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, commands=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, commands=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]]) -> None """Execute a series of commands in parallel. The parallel command starts executing all child command simultaneously. The parallel command is considered finished when all of its child commands have finished. When the parallel command is terminated early, all currently executing commands are terminated. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param commands: An un-ordered array of commands to execute in parallel. Once all commands have finished executing the parallel command finishes. Please note that the delay of parallel command and the delay of each command are additive. @@ -75,7 +87,7 @@ def __init__(self, delay=None, description=None, when=None, commands=None): self.__discriminator_value = "Parallel" # type: str self.object_type = self.__discriminator_value - super(ParallelCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(ParallelCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.commands = commands def to_dict(self): diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py index 07d0e2d..bfc48b5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/play_media_command.py @@ -37,6 +37,10 @@ class PlayMediaCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param audio_track: The command to issue on the media player @@ -51,6 +55,8 @@ class PlayMediaCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'audio_track': 'ask_sdk_model.interfaces.alexa.presentation.apl.audio_track.AudioTrack', 'component_id': 'str', @@ -61,6 +67,8 @@ class PlayMediaCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'audio_track': 'audioTrack', 'component_id': 'componentId', @@ -68,14 +76,18 @@ class PlayMediaCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, audio_track=None, component_id=None, source=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[AudioTrack_485ca517], Optional[str], Optional[List[VideoSource_96b69bdd]]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, audio_track=None, component_id=None, source=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[AudioTrack_485ca517], Optional[str], Optional[List[VideoSource_96b69bdd]]) -> None """Plays media on a media player (currently only a Video player; audio may be added in the future). The media may be on the background audio track or may be sequenced with speak directives). :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param audio_track: The command to issue on the media player @@ -88,7 +100,7 @@ def __init__(self, delay=None, description=None, when=None, audio_track=None, co self.__discriminator_value = "PlayMedia" # type: str self.object_type = self.__discriminator_value - super(PlayMediaCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(PlayMediaCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.audio_track = audio_track self.component_id = component_id self.source = source diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/reinflate_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/reinflate_command.py new file mode 100644 index 0000000..13dd652 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/reinflate_command.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ReinflateCommand(Command): + """ + The reinflate command reinflates the current document with updated configuration properties. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool]) -> None + """The reinflate command reinflates the current document with updated configuration properties. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + """ + self.__discriminator_value = "Reinflate" # type: str + + self.object_type = self.__discriminator_value + super(ReinflateCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ReinflateCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py index 53b5008..90bc9f3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_command.py @@ -35,6 +35,10 @@ class ScrollCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param distance: The number of pages to scroll. Defaults to 1. @@ -47,6 +51,8 @@ class ScrollCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'distance': 'int', 'component_id': 'str' @@ -56,20 +62,26 @@ class ScrollCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'distance': 'distance', 'component_id': 'componentId' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, distance=None, component_id=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Union[int, str, None], Optional[str]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, distance=None, component_id=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Union[int, str, None], Optional[str]) -> None """Scroll a ScrollView or Sequence forward or backward by a number of pages. The Scroll command has the following properties in addition to the regular command properties. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param distance: The number of pages to scroll. Defaults to 1. @@ -80,7 +92,7 @@ def __init__(self, delay=None, description=None, when=None, distance=None, compo self.__discriminator_value = "Scroll" # type: str self.object_type = self.__discriminator_value - super(ScrollCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(ScrollCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.distance = distance self.component_id = component_id diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_component_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_component_command.py new file mode 100644 index 0000000..53270cb --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_component_command.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apl.align import Align as Align_70ae0466 + + +class ScrollToComponentCommand(Command): + """ + Scroll forward or backward through a ScrollView or Sequence to ensure that a particular component is in view. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param align: + :type align: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.align.Align + :param component_id: The id of the component. If omitted, the component issuing the ScrollToComponent command is used. + :type component_id: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool', + 'align': 'ask_sdk_model.interfaces.alexa.presentation.apl.align.Align', + 'component_id': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when', + 'align': 'align', + 'component_id': 'componentId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, align=None, component_id=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str]) -> None + """Scroll forward or backward through a ScrollView or Sequence to ensure that a particular component is in view. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param align: + :type align: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.align.Align + :param component_id: The id of the component. If omitted, the component issuing the ScrollToComponent command is used. + :type component_id: (optional) str + """ + self.__discriminator_value = "ScrollToComponent" # type: str + + self.object_type = self.__discriminator_value + super(ScrollToComponentCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + self.align = align + self.component_id = component_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ScrollToComponentCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py index 076d3fe..9f3e2c4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py @@ -36,6 +36,10 @@ class ScrollToIndexCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -50,6 +54,8 @@ class ScrollToIndexCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'align': 'ask_sdk_model.interfaces.alexa.presentation.apl.align.Align', 'component_id': 'str', @@ -60,6 +66,8 @@ class ScrollToIndexCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'align': 'align', 'component_id': 'componentId', @@ -67,14 +75,18 @@ class ScrollToIndexCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, index=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, align=None, component_id=None, index=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None]) -> None """Scroll forward or backward through a ScrollView or Sequence to ensure that a particular child component is in view. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -87,7 +99,7 @@ def __init__(self, delay=None, description=None, when=None, align=None, componen self.__discriminator_value = "ScrollToIndex" # type: str self.object_type = self.__discriminator_value - super(ScrollToIndexCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(ScrollToIndexCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.align = align self.component_id = component_id self.index = index diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/select_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/select_command.py new file mode 100644 index 0000000..ca2acd4 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/select_command.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command as Command_bc5ff832 + + +class SelectCommand(Command): + """ + Select a single command from an array of commands and data. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param commands: An ordered list of commands to select from. + :type commands: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command] + :param data: A list of data to map against the commands. + :type data: (optional) list[object] + :param otherwise: Commands to execute if nothing else runs. + :type otherwise: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command] + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool', + 'commands': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]', + 'data': 'list[object]', + 'otherwise': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when', + 'commands': 'commands', + 'data': 'data', + 'otherwise': 'otherwise' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, commands=None, data=None, otherwise=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]], Optional[List[object]], Optional[List[Command_bc5ff832]]) -> None + """Select a single command from an array of commands and data. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param commands: An ordered list of commands to select from. + :type commands: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command] + :param data: A list of data to map against the commands. + :type data: (optional) list[object] + :param otherwise: Commands to execute if nothing else runs. + :type otherwise: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command] + """ + self.__discriminator_value = "Select" # type: str + + self.object_type = self.__discriminator_value + super(SelectCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + self.commands = commands + self.data = data + self.otherwise = otherwise + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SelectCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py index 0db308f..d5ed0a6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_command.py @@ -35,6 +35,10 @@ class SendEventCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param arguments: An array of argument data to pass to Alexa. @@ -47,6 +51,8 @@ class SendEventCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'arguments': 'list[str]', 'components': 'list[str]' @@ -56,20 +62,26 @@ class SendEventCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'arguments': 'arguments', 'components': 'components' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, arguments=None, components=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[object]], Optional[List[object]]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, arguments=None, components=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[List[object]], Optional[List[object]]) -> None """The SendEvent command allows the APL author to generate and send an event to Alexa. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param arguments: An array of argument data to pass to Alexa. @@ -80,7 +92,7 @@ def __init__(self, delay=None, description=None, when=None, arguments=None, comp self.__discriminator_value = "SendEvent" # type: str self.object_type = self.__discriminator_value - super(SendEventCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SendEventCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.arguments = arguments self.components = components diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py index 6bcf5b5..80a0927 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/sequential_command.py @@ -36,6 +36,10 @@ class SequentialCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param catch: An ordered list of commands to execute if this sequence is prematurely terminated. @@ -52,6 +56,8 @@ class SequentialCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'catch': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]', 'commands': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.command.Command]', @@ -63,6 +69,8 @@ class SequentialCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'catch': 'catch', 'commands': 'commands', @@ -71,14 +79,18 @@ class SequentialCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, catch=None, commands=None, object_finally=None, repeat_count=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, catch=None, commands=None, object_finally=None, repeat_count=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Optional[List[Command_bc5ff832]], Union[int, str, None]) -> None """A sequential command executes a series of commands in order. The sequential command executes the command list in order, waiting for the previous command to finish before executing the next. The sequential command is finished when all of its child commands have finished. When the Sequential command is terminated early, the currently executing command is terminated and no further commands are executed. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param catch: An ordered list of commands to execute if this sequence is prematurely terminated. @@ -93,7 +105,7 @@ def __init__(self, delay=None, description=None, when=None, catch=None, commands self.__discriminator_value = "Sequential" # type: str self.object_type = self.__discriminator_value - super(SequentialCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SequentialCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.catch = catch self.commands = commands self.object_finally = object_finally diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py index c8d929a..b5691d4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_focus_command.py @@ -35,6 +35,10 @@ class SetFocusCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The ID of the component to set focus on. @@ -45,6 +49,8 @@ class SetFocusCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str' } # type: Dict @@ -53,19 +59,25 @@ class SetFocusCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId' } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str]) -> None """Changes the actionable component that is in focus. Only one component may have focus at a time. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The ID of the component to set focus on. @@ -74,7 +86,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None): self.__discriminator_value = "SetFocus" # type: str self.object_type = self.__discriminator_value - super(SetFocusCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SetFocusCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id def to_dict(self): diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py index a8d5e2b..05c546c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_page_command.py @@ -36,6 +36,10 @@ class SetPageCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the Pager component. @@ -50,6 +54,8 @@ class SetPageCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str', 'position': 'ask_sdk_model.interfaces.alexa.presentation.apl.position.Position', @@ -60,6 +66,8 @@ class SetPageCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId', 'position': 'position', @@ -67,14 +75,18 @@ class SetPageCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None, position=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[Position_8c9d1e98], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None, position=None, value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[Position_8c9d1e98], Union[int, str, None]) -> None """Change the page displayed in a Pager component. The SetPage command finishes when the item is fully in view. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the Pager component. @@ -87,7 +99,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None, p self.__discriminator_value = "SetPage" # type: str self.object_type = self.__discriminator_value - super(SetPageCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SetPageCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id self.position = position self.value = value diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py index f8ae3a4..fd3072a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_state_command.py @@ -36,6 +36,10 @@ class SetStateCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the component whose value should be set. @@ -50,6 +54,8 @@ class SetStateCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str', 'state': 'ask_sdk_model.interfaces.alexa.presentation.apl.component_state.ComponentState', @@ -60,6 +66,8 @@ class SetStateCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId', 'state': 'state', @@ -67,14 +75,18 @@ class SetStateCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None, state=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[ComponentState_c92e50c9], Union[bool, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None, state=None, value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[ComponentState_c92e50c9], Union[bool, str, None]) -> None """The SetState command changes one of the component’s state settings. The SetState command can be used to change the checked, disabled, and focused states. The karaoke and pressed states may not be directly set; use the Select command or SpeakItem commands to change those states. Also, note that the focused state may only be set - it can’t be cleared. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the component whose value should be set. @@ -87,7 +99,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None, s self.__discriminator_value = "SetState" # type: str self.object_type = self.__discriminator_value - super(SetStateCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SetStateCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id self.state = state self.value = value diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py index e774353..29f2f51 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/set_value_command.py @@ -35,6 +35,10 @@ class SetValueCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the component whose value to set. @@ -49,6 +53,8 @@ class SetValueCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'component_id': 'str', 'object_property': 'str', @@ -59,6 +65,8 @@ class SetValueCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'component_id': 'componentId', 'object_property': 'property', @@ -66,14 +74,18 @@ class SetValueCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, component_id=None, object_property=None, value=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[str], Optional[str]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, component_id=None, object_property=None, value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[str], Optional[str]) -> None """Change a dynamic property of a component without redrawing the screen. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param component_id: The id of the component whose value to set. @@ -86,7 +98,7 @@ def __init__(self, delay=None, description=None, when=None, component_id=None, o self.__discriminator_value = "SetValue" # type: str self.object_type = self.__discriminator_value - super(SetValueCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SetValueCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.component_id = component_id self.object_property = object_property self.value = value diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py index 137a4a6..ccb56b3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_item_command.py @@ -37,6 +37,10 @@ class SpeakItemCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -53,6 +57,8 @@ class SpeakItemCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'align': 'ask_sdk_model.interfaces.alexa.presentation.apl.align.Align', 'component_id': 'str', @@ -64,6 +70,8 @@ class SpeakItemCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'align': 'align', 'component_id': 'componentId', @@ -72,14 +80,18 @@ class SpeakItemCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, highlight_mode=None, minimum_dwell_time=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Optional[HighlightMode_9965984d], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, align=None, component_id=None, highlight_mode=None, minimum_dwell_time=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Optional[HighlightMode_9965984d], Union[int, str, None]) -> None """Reads the contents of a single item on the screen. By default the item will be scrolled into view if it is not currently visible. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -94,7 +106,7 @@ def __init__(self, delay=None, description=None, when=None, align=None, componen self.__discriminator_value = "SpeakItem" # type: str self.object_type = self.__discriminator_value - super(SpeakItemCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SpeakItemCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.align = align self.component_id = component_id self.highlight_mode = highlight_mode diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py index 56a8a9f..4c66462 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/speak_list_command.py @@ -36,6 +36,10 @@ class SpeakListCommand(Command): :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -54,6 +58,8 @@ class SpeakListCommand(Command): 'object_type': 'str', 'delay': 'int', 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', 'when': 'bool', 'align': 'ask_sdk_model.interfaces.alexa.presentation.apl.align.Align', 'component_id': 'str', @@ -66,6 +72,8 @@ class SpeakListCommand(Command): 'object_type': 'type', 'delay': 'delay', 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', 'when': 'when', 'align': 'align', 'component_id': 'componentId', @@ -75,14 +83,18 @@ class SpeakListCommand(Command): } # type: Dict supports_multiple_types = False - def __init__(self, delay=None, description=None, when=None, align=None, component_id=None, count=None, minimum_dwell_time=None, start=None): - # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None], Union[int, str, None], Union[int, str, None]) -> None + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, align=None, component_id=None, count=None, minimum_dwell_time=None, start=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[Align_70ae0466], Optional[str], Union[int, str, None], Union[int, str, None], Union[int, str, None]) -> None """Read the contents of a range of items inside a common container. Each item will scroll into view before speech. Each item should have a speech property, but it is not required. :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. :type delay: (optional) int :param description: A user-provided description of this command. :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str :param when: If false, the execution of the command is skipped. Defaults to true. :type when: (optional) bool :param align: @@ -99,7 +111,7 @@ def __init__(self, delay=None, description=None, when=None, align=None, componen self.__discriminator_value = "SpeakList" # type: str self.object_type = self.__discriminator_value - super(SpeakListCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, when=when) + super(SpeakListCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) self.align = align self.component_id = component_id self.count = count From 33bff900db72319593f9f910830a6c0d166936d5 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 8 Apr 2021 20:02:35 +0000 Subject: [PATCH 012/111] Release 1.30.1. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/directive.py | 3 + .../alexa/presentation/apl/__init__.py | 2 + .../apl/load_token_list_data_event.py | 152 ++++++++++++++++++ .../apl/send_token_list_data_directive.py | 141 ++++++++++++++++ ask-sdk-model/ask_sdk_model/request.py | 3 + 7 files changed, 310 insertions(+), 1 deletion(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_token_list_data_event.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_token_list_data_directive.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 7c6f7ea..bac0418 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -381,3 +381,11 @@ This release contains the following changes : - Add support for APL 1.6 version. More information about the newest version can be found `here `__. + + +1.30.1 +^^^^^^ + +This release contains the following changes : + +- Adding missing definitions for APL 1.6. More information can be found `here `__. diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 521242a..166daa2 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.30.0' +__version__ = '1.30.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index 6aed33e..c953d66 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -97,6 +97,8 @@ class Directive(object): | | Connections.SendResponse: :py:class:`ask_sdk_model.interfaces.connections.send_response_directive.SendResponseDirective`, | + | Alexa.Presentation.APL.SendTokenListData: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.send_token_list_data_directive.SendTokenListDataDirective`, + | | AudioPlayer.ClearQueue: :py:class:`ask_sdk_model.interfaces.audioplayer.clear_queue_directive.ClearQueueDirective`, | | Alexa.Presentation.APL.UpdateIndexListData: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.update_index_list_data_directive.UpdateIndexListDataDirective` @@ -142,6 +144,7 @@ class Directive(object): 'Tasks.CompleteTask': 'ask_sdk_model.interfaces.tasks.complete_task_directive.CompleteTaskDirective', 'Alexa.Presentation.APL.RenderDocument': 'ask_sdk_model.interfaces.alexa.presentation.apl.render_document_directive.RenderDocumentDirective', 'Connections.SendResponse': 'ask_sdk_model.interfaces.connections.send_response_directive.SendResponseDirective', + 'Alexa.Presentation.APL.SendTokenListData': 'ask_sdk_model.interfaces.alexa.presentation.apl.send_token_list_data_directive.SendTokenListDataDirective', 'AudioPlayer.ClearQueue': 'ask_sdk_model.interfaces.audioplayer.clear_queue_directive.ClearQueueDirective', 'Alexa.Presentation.APL.UpdateIndexListData': 'ask_sdk_model.interfaces.alexa.presentation.apl.update_index_list_data_directive.UpdateIndexListDataDirective' } diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index 2093a16..a06f153 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -49,6 +49,7 @@ from .sequential_command import SequentialCommand from .runtime import Runtime from .execute_commands_directive import ExecuteCommandsDirective +from .load_token_list_data_event import LoadTokenListDataEvent from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag from .move_transform_property import MoveTransformProperty from .finish_command import FinishCommand @@ -62,6 +63,7 @@ from .set_page_command import SetPageCommand from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .send_token_list_data_directive import SendTokenListDataDirective from .scale_transform_property import ScaleTransformProperty from .send_event_command import SendEventCommand from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_token_list_data_event.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_token_list_data_event.py new file mode 100644 index 0000000..826d0ed --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/load_token_list_data_event.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class LoadTokenListDataEvent(Request): + """ + The LoadTokenListData event is sent to the skill to retrieve additional list items. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str + :param correlation_token: An identifier generated by a device that is used to correlate requests with their corresponding response directives. + :type correlation_token: (optional) str + :param list_id: The identifier of the list whose items to fetch. + :type list_id: (optional) str + :param page_token: Opaque token of the array of items to fetch. The skill is expected to be able to identify whether the token represents a forward or backward scroll direction. + :type page_token: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'token': 'str', + 'correlation_token': 'str', + 'list_id': 'str', + 'page_token': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'token': 'token', + 'correlation_token': 'correlationToken', + 'list_id': 'listId', + 'page_token': 'pageToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, token=None, correlation_token=None, list_id=None, page_token=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str]) -> None + """The LoadTokenListData event is sent to the skill to retrieve additional list items. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str + :param correlation_token: An identifier generated by a device that is used to correlate requests with their corresponding response directives. + :type correlation_token: (optional) str + :param list_id: The identifier of the list whose items to fetch. + :type list_id: (optional) str + :param page_token: Opaque token of the array of items to fetch. The skill is expected to be able to identify whether the token represents a forward or backward scroll direction. + :type page_token: (optional) str + """ + self.__discriminator_value = "Alexa.Presentation.APL.LoadTokenListData" # type: str + + self.object_type = self.__discriminator_value + super(LoadTokenListDataEvent, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.token = token + self.correlation_token = correlation_token + self.list_id = list_id + self.page_token = page_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LoadTokenListDataEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_token_list_data_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_token_list_data_directive.py new file mode 100644 index 0000000..db0f587 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/send_token_list_data_directive.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.directive import Directive + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SendTokenListDataDirective(Directive): + """ + Returned in response to a LoadTokenListData event, containing the requested items and metadata for further interaction. + + + :param correlation_token: The correlation token supplied in the LoadTokenListData event. This parameter is mandatory if the skill is responding to a LoadTokenListData request, the skill response will be rejected if the expected correlationToken is not specified. + :type correlation_token: (optional) str + :param list_id: The identifier of the list whose items are contained in this response. + :type list_id: (optional) str + :param page_token: Opaque token for the array of items which are contained in this response. Ignored by the system if correlationToken is specified, but considered less cognitive overhead to have the developer always include & assists platform debugging. + :type page_token: (optional) str + :param next_page_token: Opaque token to retrieve the next page of list items data. Absence of this property indicates that the last item in the list has been reached in the scroll direction. + :type next_page_token: (optional) str + :param items: Array of objects to be added to the device cache. + :type items: (optional) list[object] + + """ + deserialized_types = { + 'object_type': 'str', + 'correlation_token': 'str', + 'list_id': 'str', + 'page_token': 'str', + 'next_page_token': 'str', + 'items': 'list[object]' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'correlation_token': 'correlationToken', + 'list_id': 'listId', + 'page_token': 'pageToken', + 'next_page_token': 'nextPageToken', + 'items': 'items' + } # type: Dict + supports_multiple_types = False + + def __init__(self, correlation_token=None, list_id=None, page_token=None, next_page_token=None, items=None): + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]]) -> None + """Returned in response to a LoadTokenListData event, containing the requested items and metadata for further interaction. + + :param correlation_token: The correlation token supplied in the LoadTokenListData event. This parameter is mandatory if the skill is responding to a LoadTokenListData request, the skill response will be rejected if the expected correlationToken is not specified. + :type correlation_token: (optional) str + :param list_id: The identifier of the list whose items are contained in this response. + :type list_id: (optional) str + :param page_token: Opaque token for the array of items which are contained in this response. Ignored by the system if correlationToken is specified, but considered less cognitive overhead to have the developer always include & assists platform debugging. + :type page_token: (optional) str + :param next_page_token: Opaque token to retrieve the next page of list items data. Absence of this property indicates that the last item in the list has been reached in the scroll direction. + :type next_page_token: (optional) str + :param items: Array of objects to be added to the device cache. + :type items: (optional) list[object] + """ + self.__discriminator_value = "Alexa.Presentation.APL.SendTokenListData" # type: str + + self.object_type = self.__discriminator_value + super(SendTokenListDataDirective, self).__init__(object_type=self.__discriminator_value) + self.correlation_token = correlation_token + self.list_id = list_id + self.page_token = page_token + self.next_page_token = next_page_token + self.items = items + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SendTokenListDataDirective): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index dbc196f..1a962d8 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -61,6 +61,8 @@ class Request(object): | | Alexa.Presentation.APL.LoadIndexListData: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.load_index_list_data_event.LoadIndexListDataEvent`, | + | Alexa.Presentation.APL.LoadTokenListData: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.load_token_list_data_event.LoadTokenListDataEvent`, + | | AudioPlayer.PlaybackFailed: :py:class:`ask_sdk_model.interfaces.audioplayer.playback_failed_request.PlaybackFailedRequest`, | | CanFulfillIntentRequest: :py:class:`ask_sdk_model.canfulfill.can_fulfill_intent_request.CanFulfillIntentRequest`, @@ -168,6 +170,7 @@ class Request(object): 'SessionResumedRequest': 'ask_sdk_model.session_resumed_request.SessionResumedRequest', 'SessionEndedRequest': 'ask_sdk_model.session_ended_request.SessionEndedRequest', 'Alexa.Presentation.APL.LoadIndexListData': 'ask_sdk_model.interfaces.alexa.presentation.apl.load_index_list_data_event.LoadIndexListDataEvent', + 'Alexa.Presentation.APL.LoadTokenListData': 'ask_sdk_model.interfaces.alexa.presentation.apl.load_token_list_data_event.LoadTokenListDataEvent', 'AudioPlayer.PlaybackFailed': 'ask_sdk_model.interfaces.audioplayer.playback_failed_request.PlaybackFailedRequest', 'CanFulfillIntentRequest': 'ask_sdk_model.canfulfill.can_fulfill_intent_request.CanFulfillIntentRequest', 'CustomInterfaceController.Expired': 'ask_sdk_model.interfaces.custom_interface_controller.expired_request.ExpiredRequest', From 2e314ae25f11b4308be3ea7061df14b23a35e1b9 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 10 May 2021 23:35:08 +0000 Subject: [PATCH 013/111] Release 1.9.1. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 10 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 176 ++++---- .../ask_smapi_model/v0/__init__.py | 2 - .../v0/catalog/list_catalogs_response.py | 10 +- .../catalog/upload/list_uploads_response.py | 10 +- .../subscriber/list_subscribers_response.py | 10 +- .../development_events/subscription/event.py | 5 +- .../list_subscriptions_response.py | 10 +- .../v0/event_schema/__init__.py | 2 + .../alexa_customer_feedback_event/__init__.py | 17 + .../alexa_customer_feedback_event/py.typed | 0 .../skill_review_publish.py} | 48 ++- .../v0/event_schema/base_schema.py | 3 + .../event_schema/skill_review_attributes.py | 122 ++++++ .../skill_review_event_attributes.py | 125 ++++++ .../v1/audit_logs/audit_logs_response.py | 12 +- .../audit_logs/request_pagination_context.py | 8 +- .../create_content_upload_url_response.py | 16 +- .../ask_smapi_model/v1/isp/__init__.py | 1 - .../v1/isp/in_skill_product_summary.py | 10 +- .../v1/skill/alexa_hosted/__init__.py | 1 + .../skill/alexa_hosted/alexa_hosted_config.py | 16 +- .../skill/alexa_hosted/hosted_skill_region.py | 67 +++ .../alexa_hosted/hosted_skill_runtime.py | 2 +- .../v1/skill/beta_test/__init__.py | 1 + .../v1/skill/beta_test/beta_test.py | 8 +- .../beta_test/update_beta_test_response.py} | 16 +- .../v1/skill/image_attributes.py | 15 +- .../v1/skill/manifest/__init__.py | 50 ++- .../manifest/alexa_for_business_interface.py | 10 +- .../alexa_for_business_interface_request.py | 107 +++++ ...xa_for_business_interface_request_name.py} | 4 +- .../amazon_conversations_dialog_manager.py | 106 +++++ .../v1/skill/manifest/app_link.py | 109 +++++ ...{health_alias.py => app_link_interface.py} | 22 +- ..._interface.py => app_link_v2_interface.py} | 12 +- .../v1/skill/manifest/authorized_client.py | 108 +++++ .../skill/manifest/authorized_client_lwa.py | 109 +++++ ...y => authorized_client_lwa_application.py} | 27 +- ...thorized_client_lwa_application_android.py | 109 +++++ .../skill/manifest/automatic_distribution.py | 116 +++++ .../v1/skill/manifest/catalog_info.py | 116 +++++ .../v1/skill/manifest/catalog_type.py | 66 +++ .../v1/skill/manifest/custom/__init__.py | 21 + .../{connections.py => custom/connection.py} | 4 +- .../v1/skill/manifest/custom/py.typed | 0 .../manifest/custom/suppressed_interface.py | 79 ++++ .../skill/manifest/custom/target_runtime.py | 132 ++++++ .../manifest/custom/target_runtime_device.py | 106 +++++ .../target_runtime_type.py} | 9 +- .../v1/skill/manifest/custom_apis.py | 48 ++- .../v1/skill/manifest/custom_connections.py | 16 +- .../custom_dialog_management/__init__.py | 17 + .../custom_dialog_management/py.typed | 0 .../session_start_delegation_strategy.py | 108 +++++ .../manifest/custom_localized_information.py | 109 +++++ ...localized_information_dialog_management.py | 109 +++++ ...manifest_custom_task.py => custom_task.py} | 4 +- ...health_apis.py => demand_response_apis.py} | 51 +-- .../manifest/dialog_delegation_strategy.py | 108 +++++ .../v1/skill/manifest/dialog_management.py | 117 +++++ .../v1/skill/manifest/dialog_manager.py | 132 ++++++ .../v1/skill/manifest/distribution_mode.py | 3 +- .../v1/skill/manifest/event_name_type.py | 406 +++++++++--------- .../extension_initialization_request.py} | 41 +- .../v1/skill/manifest/extension_request.py | 108 +++++ .../v1/skill/manifest/flash_briefing_apis.py | 8 +- .../manifest/flash_briefing_content_type.py | 5 +- .../flash_briefing_update_frequency.py | 3 +- .../v1/skill/manifest/friendly_name.py | 116 +++++ ...pport.py => gadget_support_requirement.py} | 4 +- .../v1/skill/manifest/health_interface.py | 33 +- .../v1/skill/manifest/interface.py | 7 +- .../v1/skill/manifest/interface_type.py | 79 ++++ .../v1/skill/manifest/knowledge_apis.py | 109 +++++ .../v1/skill/manifest/lambda_endpoint.py | 4 +- .../v1/skill/manifest/linked_application.py | 131 ++++++ .../manifest/localized_flash_briefing_info.py | 4 +- .../localized_knowledge_information.py | 108 +++++ .../v1/skill/manifest/localized_music_info.py | 4 +- .../{health_request.py => localized_name.py} | 23 +- .../skill/manifest/manifest_gadget_support.py | 10 +- .../manifest/manifest_version.py} | 11 +- .../v1/skill/manifest/permission_name.py | 49 +-- .../v1/skill/manifest/skill_manifest.py | 23 +- .../v1/skill/manifest/skill_manifest_apis.py | 32 +- .../skill_manifest_privacy_and_compliance.py | 4 +- .../skill_manifest_publishing_information.py | 16 +- .../v1/skill/manifest/smart_home_apis.py | 20 +- .../v1/skill/manifest/smart_home_protocol.py | 7 +- .../manifest/source_language_for_locales.py | 115 +++++ .../v1/skill/manifest/supported_controls.py | 109 +++++ .../skill/manifest/supported_controls_type.py | 65 +++ .../v1/skill/manifest/version.py | 4 +- .../v1/skill/manifest/video_apis_locale.py | 36 +- .../v1/skill/manifest/video_feature.py | 142 ++++++ .../video_fire_tv_catalog_ingestion.py | 113 +++++ .../v1/skill/manifest/video_prompt_name.py | 114 +++++ .../skill/manifest/video_prompt_name_type.py | 63 +++ .../v1/skill/manifest/video_region.py | 10 +- .../manifest/video_web_player_feature.py | 112 +++++ .../skill/manifest/voice_profile_feature.py | 112 +++++ .../v1/skill/skill_summary_apis.py | 3 +- .../v1/skill/upload_response.py | 4 +- 105 files changed, 4689 insertions(+), 647 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/py.typed rename ask-smapi-model/ask_smapi_model/{v1/skill/manifest/localized_health_info.py => v0/event_schema/alexa_customer_feedback_event/skill_review_publish.py} (59%) create mode 100644 ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_attributes.py create mode 100644 ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_event_attributes.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_region.py rename ask-smapi-model/ask_smapi_model/{v0/link.py => v1/skill/beta_test/update_beta_test_response.py} (89%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{request_name.py => alexa_for_business_interface_request_name.py} (93%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{health_alias.py => app_link_interface.py} (84%) rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{custom_interface.py => app_link_v2_interface.py} (85%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{request.py => authorized_client_lwa_application.py} (81%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_distribution.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_info.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{connections.py => custom/connection.py} (98%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_device.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{health_protocol_version.py => custom/target_runtime_type.py} (91%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/session_start_delegation_strategy.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information_dialog_management.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{skill_manifest_custom_task.py => custom_task.py} (97%) rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{health_apis.py => demand_response_apis.py} (61%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_delegation_strategy.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_management.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_manager.py rename ask-smapi-model/ask_smapi_model/{v0/links.py => v1/skill/manifest/extension_initialization_request.py} (75%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/friendly_name.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{gadget_support.py => gadget_support_requirement.py} (94%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_knowledge_information.py rename ask-smapi-model/ask_smapi_model/v1/skill/manifest/{health_request.py => localized_name.py} (85%) rename ask-smapi-model/ask_smapi_model/v1/{isp/stage.py => skill/manifest/manifest_version.py} (89%) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/source_language_for_locales.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_fire_tv_catalog_ingestion.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/voice_profile_feature.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 464620b..f8b9f37 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -163,3 +163,13 @@ This release contains the following changes : This release contains the following changes : - Add `Smart Home Evaluation APIs `__. - Add `get resource schema API `__. + + +1.9.1 +^^^^^ + +This release contains the following changes : + +- General bug fixes and updates. +- Model definition updates to support `AlexaCustomerFeedbackEvent.SkillReviewPublish `__ event notifications for skill developers in SMAPI. +- Developers can subscribe to this `new event and get notified `__ whenever there is a customer-review published for their skills. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index c841c1f..9ecdef9 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.9.0' +__version__ = '1.9.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 11cdca3..1467e38 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -184,6 +184,7 @@ from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponse as SlotTypeResponse_1ca513dc from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse as GetNLUEvaluationResultsResponse_5ca1fa54 from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as LocaleInQuery_6526a92e + from ask_smapi_model.v1.skill.beta_test.update_beta_test_response import UpdateBetaTestResponse as UpdateBetaTestResponse_84abf38 from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as GetExecutionsResponse_1b1a1680 from ask_smapi_model.v1.bad_request_error import BadRequestError as BadRequestError_f854b05 @@ -226,7 +227,7 @@ def get_catalog_v0(self, catalog_id, **kwargs): """ Returns information about a particular catalog. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -299,12 +300,12 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): """ Lists all the uploads for a particular catalog. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -380,7 +381,7 @@ def create_content_upload_v0(self, catalog_id, create_content_upload_request, ** """ Creates a new upload for a catalog and returns presigned upload parts for uploading the file. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param create_content_upload_request: (required) Defines the request body for updateCatalog API. :type create_content_upload_request: ask_smapi_model.v0.catalog.upload.create_content_upload_request.CreateContentUploadRequest @@ -461,9 +462,9 @@ def get_content_upload_by_id_v0(self, catalog_id, upload_id, **kwargs): """ Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a presigned url for downloading the file. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str - :param upload_id: (required) Unique identifier of the upload + :param upload_id: (required) Unique identifier of the upload. :type upload_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -542,9 +543,9 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ """ Completes an upload. To be called after the file is uploaded to the backend data store using presigned url(s). - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str - :param upload_id: (required) Unique identifier of the upload + :param upload_id: (required) Unique identifier of the upload. :type upload_id: str :param complete_upload_request_payload: (required) Request payload to complete an upload. :type complete_upload_request_payload: ask_smapi_model.v0.catalog.upload.complete_upload_request.CompleteUploadRequest @@ -606,6 +607,7 @@ def complete_catalog_upload_v0(self, catalog_id, upload_id, complete_upload_requ error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=500, message="Internal Server Error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v0.error.Error", status_code=503, message="Service Unavailable.")) @@ -635,8 +637,8 @@ def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :param max_results: + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -790,7 +792,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -1169,7 +1171,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param subscriber_id: Unique identifier of the subscriber. If this query parameter is provided, the list would be filtered by the owning subscriberId. :type subscriber_id: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -1543,7 +1545,7 @@ def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): :param skill_id: (required) The skill ID. :type skill_id: str - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -1626,8 +1628,8 @@ def list_catalogs_for_skill_v0(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :param max_results: + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -1704,7 +1706,7 @@ def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kw Create new upload Creates a new upload for a catalog and returns location to track the upload process. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param catalog_upload_request_body: (required) Provides the request body for create content upload :type catalog_upload_request_body: ask_smapi_model.v1.catalog.upload.catalog_upload_base.CatalogUploadBase @@ -1786,9 +1788,9 @@ def get_content_upload_by_id_v1(self, catalog_id, upload_id, **kwargs): Get upload Gets detailed information about an upload which was created for a specific catalog. Includes the upload's ingestion steps and a url for downloading the file. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str - :param upload_id: (required) Unique identifier of the upload + :param upload_id: (required) Unique identifier of the upload. :type upload_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -1866,7 +1868,7 @@ def generate_catalog_upload_url_v1(self, catalog_id, generate_catalog_upload_url """ Generates preSigned urls to upload data - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param generate_catalog_upload_url_request_body: (required) Request body to generate catalog upload url :type generate_catalog_upload_url_request_body: ask_smapi_model.v1.catalog.create_content_upload_url_request.CreateContentUploadUrlRequest @@ -2025,7 +2027,7 @@ def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param product_id: The list of in-skill product IDs that you wish to get the summary for. A maximum of 50 in-skill product IDs can be specified in a single listInSkillProducts call. Please note that this parameter must not be used with 'nextToken' and/or 'maxResults' parameter. :type product_id: list[str] :param stage: Filter in-skill products by specified stage. @@ -2686,7 +2688,7 @@ def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_r return None def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9] + # type: (str, str, **Any) -> Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9, BadRequestError_f854b05] """ Get the associated skills for the in-skill product. @@ -2697,11 +2699,11 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9] + :rtype: Union[ApiResponse, object, AssociatedSkillResponse_12067635, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "get_isp_associated_skills_v1" params = locals() @@ -2750,6 +2752,7 @@ def get_isp_associated_skills_v1(self, product_id, stage, **kwargs): error_definitions = [] # type: List error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.isp.associated_skill_response.AssociatedSkillResponse", status_code=200, message="Returns skills associated with the in-skill product.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad request. Returned when a required parameter is not present, badly formatted. ")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="Requested resource not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Too many requests received.")) @@ -2854,7 +2857,7 @@ def delete_interaction_model_catalog_v1(self, catalog_id, **kwargs): """ Delete the catalog. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -2927,7 +2930,7 @@ def get_interaction_model_catalog_definition_v1(self, catalog_id, **kwargs): """ get the catalog definition - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -3000,7 +3003,7 @@ def update_interaction_model_catalog_v1(self, catalog_id, update_request, **kwar """ update description and vendorGuidance string for certain version of a catalog. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param update_request: (required) :type update_request: ask_smapi_model.v1.skill.interaction_model.catalog.update_request.UpdateRequest @@ -3081,7 +3084,7 @@ def get_interaction_model_catalog_update_status_v1(self, catalog_id, update_requ """ Get the status of catalog resource and its sub-resources for a given catalogId. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param update_request_id: (required) The identifier for slotType version creation process :type update_request_id: str @@ -3162,10 +3165,10 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): """ List all the historical versions of the given catalogId. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. @@ -3251,7 +3254,7 @@ def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwa """ Create a new version of catalog entity for the given catalogId. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param catalog: (required) :type catalog: ask_smapi_model.v1.skill.interaction_model.version.version_data.VersionData @@ -3332,7 +3335,7 @@ def delete_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa """ Delete catalog version. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param version: (required) Version for interaction model. :type version: str @@ -3413,7 +3416,7 @@ def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs """ Get catalog version data of given catalog version. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param version: (required) Version for interaction model. :type version: str @@ -3494,7 +3497,7 @@ def update_interaction_model_catalog_version_v1(self, catalog_id, version, **kwa """ Update description and vendorGuidance string for certain version of a catalog. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param version: (required) Version for interaction model. :type version: str @@ -3579,12 +3582,12 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) """ Get catalog values from the given catalogId & version. - :param catalog_id: (required) Provides a unique identifier of the catalog + :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str :param version: (required) Version for interaction model. :type version: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -3671,7 +3674,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. @@ -3829,7 +3832,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -4063,7 +4066,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): :param job_id: (required) The identifier for dynamic jobs. :type job_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. @@ -4372,7 +4375,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. @@ -4835,7 +4838,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): :param slot_type_id: (required) The identifier for a slot type. :type slot_type_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. @@ -5244,7 +5247,7 @@ def update_interaction_model_slot_type_version_v1(self, slot_type_id, version, s return None def get_status_of_export_request_v1(self, export_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd] + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd, BadRequestError_f854b05] """ Get status for given exportId @@ -5253,7 +5256,7 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, ExportResponse_b235e7bd, BadRequestError_f854b05] """ operation_name = "get_status_of_export_request_v1" params = locals() @@ -5292,6 +5295,7 @@ def get_status_of_export_request_v1(self, export_id, **kwargs): error_definitions = [] # type: List error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.export_response.ExportResponse", status_code=200, message="OK.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) @@ -5324,7 +5328,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param skill_id: The list of skillIds that you wish to get the summary for. A maximum of 10 skillIds can be specified to get the skill summary in single listSkills call. Please note that this parameter must not be used with 'nextToken' or/and 'maxResults' parameter. :type skill_id: list[str] :param full_response: Boolean value to check if response should contain headers and status code information. @@ -5519,6 +5523,7 @@ def create_skill_package_v1(self, create_skill_with_package_request, **kwargs): error_definitions.append(ServiceClientResponse(response_type=None, status_code=202, message="Accepted.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=413, message="Payload too large.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) @@ -7015,6 +7020,7 @@ def get_beta_test_v1(self, skill_id, **kwargs): error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="Thrown if user tries to request a new simulation while the old simulation is in progress.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) @@ -7087,7 +7093,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): header_params.append(('Authorization', authorization_value)) error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. Return a URL to track the resource in 'Location' header.")) + error_definitions.append(ServiceClientResponse(response_type=None, status_code=201, message="Success. Return a URL to track the resource in 'Location' header.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) @@ -7112,7 +7118,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): return None def update_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, UpdateBetaTestResponse_84abf38, BadRequestError_f854b05] """ Update beta test. Update a beta test for a given Alexa skill. @@ -7124,7 +7130,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] + :rtype: Union[ApiResponse, object, Error_fbe913d9, UpdateBetaTestResponse_84abf38, BadRequestError_f854b05] """ operation_name = "update_beta_test_v1" params = locals() @@ -7164,10 +7170,11 @@ def update_beta_test_v1(self, skill_id, **kwargs): header_params.append(('Authorization', authorization_value)) error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.beta_test.update_beta_test_response.UpdateBetaTestResponse", status_code=204, message="Success. No content.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="Thrown if user tries to request a new simulation while the old simulation is in progress.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) @@ -7180,12 +7187,12 @@ def update_beta_test_v1(self, skill_id, **kwargs): header_params=header_params, body=body_params, response_definitions=error_definitions, - response_type=None) + response_type="ask_smapi_model.v1.skill.beta_test.update_beta_test_response.UpdateBetaTestResponse") if full_response: return api_response + return api_response.body - return None def start_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] @@ -7321,6 +7328,7 @@ def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) @@ -7350,8 +7358,8 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 500 results, you can add this parameter to your request. The response might contain fewer results than maxResults, but it will never contain more. + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -7401,6 +7409,7 @@ def get_list_of_testers_v1(self, skill_id, **kwargs): error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Bad request.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) @@ -7481,6 +7490,7 @@ def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=500, message="Internal Server Error.")) @@ -7663,7 +7673,7 @@ def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): return None def get_certification_review_v1(self, skill_id, certification_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad] + # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad, BadRequestError_f854b05] """ Gets a specific certification resource. The response contains the review tracking information for a skill to show how much time the skill is expected to remain under review by Amazon. Once the review is complete, the response also contains the outcome of the review. Old certifications may not be available, however any ongoing certification would always give a response. If the certification is unavailable the result will return a 404 HTTP status code. @@ -7676,7 +7686,7 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad] + :rtype: Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad, BadRequestError_f854b05] """ operation_name = "get_certification_review_v1" params = locals() @@ -7723,6 +7733,7 @@ def get_certification_review_v1(self, skill_id, certification_id, **kwargs): error_definitions = [] # type: List error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.certification.certification_response.CertificationResponse", status_code=200, message="Successfully retrieved skill certification information.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error e.g. if any request parameter is invalid like certification Id or pagination token etc. If the maxResults is not in the range of 1 to 50, it also qualifies for this error. ")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceeded the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId. ")) @@ -7754,7 +7765,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -7978,7 +7989,7 @@ def get_utterance_data_v1(self, skill_id, stage, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str :param sort_field: Sets the field on which the sorting would be applied. @@ -8159,6 +8170,7 @@ def import_skill_package_v1(self, update_skill_with_package_request, skill_id, * error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=412, message="Precondition failed.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=413, message="Payload too large.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) @@ -8284,7 +8296,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s :param locale: The locale for the skill. e.g. en-GB, en-US, de-DE and etc. :type locale: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -9446,7 +9458,7 @@ def publish_skill_v1(self, skill_id, accept_language, **kwargs): def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89] + # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] """ Retrieves the latest skill publishing details of the certified stage of the skill. The publishesAtDate and status of skill publishing. @@ -9457,7 +9469,7 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89] + :rtype: Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "get_skill_publications_v1" params = locals() @@ -9502,6 +9514,7 @@ def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): error_definitions = [] # type: List error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.publication.skill_publication_response.SkillPublicationResponse", status_code=200, message="Successfully retrieved latest skill publication information.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) @@ -9943,7 +9956,7 @@ def get_smarthome_capablity_evaluation_results_v1(self, skill_id, evaluation_id, :param evaluation_id: (required) A unique ID to identify each Smart Home capability evaluation. :type evaluation_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -10036,7 +10049,7 @@ def list_smarthome_capability_evaluations_v1(self, skill_id, stage, **kwargs): :param start_timestamp_to: The end of the start time to query evaluation result. :type start_timestamp_to: datetime :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -10205,7 +10218,7 @@ def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): :param skill_id: (required) The skill ID. :type skill_id: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -10673,7 +10686,7 @@ def set_skill_enablement_v1(self, skill_id, stage, **kwargs): return None def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89] + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ Creates a new export for a skill with given skillId and stage. @@ -10684,7 +10697,7 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, StandardizedError_f5106a89] + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ operation_name = "create_export_request_for_skill_v1" params = locals() @@ -10729,6 +10742,7 @@ def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): error_definitions = [] # type: List error_definitions.append(ServiceClientResponse(response_type=None, status_code=202, message="Accepted.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) @@ -10764,7 +10778,7 @@ def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -11152,7 +11166,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -12134,7 +12148,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str :param sort_field: Sets the field on which the sorting would be applied. @@ -12845,7 +12859,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: float + :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -13121,15 +13135,15 @@ def get_vendor_list_v1(self, **kwargs): return api_response.body - def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kwargs): + def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, hosted_skill_permission_type, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, HostedSkillPermission_eb71ebfb, BadRequestError_f854b05] """ Get the current user permissions about Alexa hosted skill features. :param vendor_id: (required) vendorId :type vendor_id: str - :param permission: (required) The permission of a hosted skill feature that customer needs to check. - :type permission: str + :param hosted_skill_permission_type: (required) The permission of a hosted skill feature that customer needs to check. + :type hosted_skill_permission_type: str :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean @@ -13144,19 +13158,19 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw if ('vendor_id' not in params) or (params['vendor_id'] is None): raise ValueError( "Missing the required parameter `vendor_id` when calling `" + operation_name + "`") - # verify the required parameter 'permission' is set - if ('permission' not in params) or (params['permission'] is None): + # verify the required parameter 'hosted_skill_permission_type' is set + if ('hosted_skill_permission_type' not in params) or (params['hosted_skill_permission_type'] is None): raise ValueError( - "Missing the required parameter `permission` when calling `" + operation_name + "`") + "Missing the required parameter `hosted_skill_permission_type` when calling `" + operation_name + "`") - resource_path = '/v1/vendors/{vendorId}/alexaHosted/permissions/{permission}' + resource_path = '/v1/vendors/{vendorId}/alexaHosted/permissions/{hostedSkillPermissionType}' resource_path = resource_path.replace('{format}', 'json') path_params = {} # type: Dict if 'vendor_id' in params: path_params['vendorId'] = params['vendor_id'] - if 'permission' in params: - path_params['permission'] = params['permission'] + if 'hosted_skill_permission_type' in params: + path_params['hostedSkillPermissionType'] = params['hosted_skill_permission_type'] query_params = [] # type: List @@ -13200,8 +13214,8 @@ def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, permission, **kw return api_response.body - def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, **kwargs): - # type: (str, str, InvocationsApiRequest_a422fa08, **Any) -> Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] + def invoke_skill_end_point_v2(self, skill_id, stage, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] """ Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. In cases where invoking the skill endpoint specifically fails, the response will contain a status attribute indicating that a failure occurred and details about what was sent to the endpoint. The skill must belong to and be enabled by the user of this API. Also, note that calls to the skill endpoint will timeout after 10 seconds. This API is currently designed in a way that allows extension to an asynchronous API if a significantly bigger timeout is required. @@ -13210,7 +13224,7 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** :type skill_id: str :param stage: (required) Stage for skill. :type stage: str - :param invocations_api_request: (required) Payload sent to the skill invocation API. + :param invocations_api_request: Payload sent to the skill invocation API. :type invocations_api_request: ask_smapi_model.v2.skill.invocations.invocations_api_request.InvocationsApiRequest :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -13230,10 +13244,6 @@ def invoke_skill_end_point_v2(self, skill_id, stage, invocations_api_request, ** if ('stage' not in params) or (params['stage'] is None): raise ValueError( "Missing the required parameter `stage` when calling `" + operation_name + "`") - # verify the required parameter 'invocations_api_request' is set - if ('invocations_api_request' not in params) or (params['invocations_api_request'] is None): - raise ValueError( - "Missing the required parameter `invocations_api_request` when calling `" + operation_name + "`") resource_path = '/v2/skills/{skillId}/stages/{stage}/invocations' resource_path = resource_path.replace('{format}', 'json') diff --git a/ask-smapi-model/ask_smapi_model/v0/__init__.py b/ask-smapi-model/ask_smapi_model/v0/__init__.py index dc1604c..7bf567d 100644 --- a/ask-smapi-model/ask_smapi_model/v0/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/__init__.py @@ -16,5 +16,3 @@ from .bad_request_error import BadRequestError from .error import Error -from .link import Link -from .links import Links diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py index d6f4475..80ecec0 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/list_catalogs_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v1.links import Links as Links_bc43467b from ask_smapi_model.v0.catalog.catalog_summary import CatalogSummary as CatalogSummary_c8609f7a @@ -33,7 +33,7 @@ class ListCatalogsResponse(object): :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param catalogs: List of catalog summaries. :type catalogs: (optional) list[ask_smapi_model.v0.catalog.catalog_summary.CatalogSummary] :param is_truncated: @@ -43,7 +43,7 @@ class ListCatalogsResponse(object): """ deserialized_types = { - 'links': 'ask_smapi_model.v0.links.Links', + 'links': 'ask_smapi_model.v1.links.Links', 'catalogs': 'list[ask_smapi_model.v0.catalog.catalog_summary.CatalogSummary]', 'is_truncated': 'bool', 'next_token': 'str' @@ -58,11 +58,11 @@ class ListCatalogsResponse(object): supports_multiple_types = False def __init__(self, links=None, catalogs=None, is_truncated=None, next_token=None): - # type: (Optional[Links_cdc03ffa], Optional[List[CatalogSummary_c8609f7a]], Optional[bool], Optional[str]) -> None + # type: (Optional[Links_bc43467b], Optional[List[CatalogSummary_c8609f7a]], Optional[bool], Optional[str]) -> None """Information about catalogs. :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param catalogs: List of catalog summaries. :type catalogs: (optional) list[ask_smapi_model.v0.catalog.catalog_summary.CatalogSummary] :param is_truncated: diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py index 86eca19..d7429a7 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/list_uploads_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v1.links import Links as Links_bc43467b from ask_smapi_model.v0.catalog.upload.content_upload_summary import ContentUploadSummary as ContentUploadSummary_8ef77e7e @@ -31,7 +31,7 @@ class ListUploadsResponse(object): """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param is_truncated: :type is_truncated: (optional) bool :param next_token: @@ -41,7 +41,7 @@ class ListUploadsResponse(object): """ deserialized_types = { - 'links': 'ask_smapi_model.v0.links.Links', + 'links': 'ask_smapi_model.v1.links.Links', 'is_truncated': 'bool', 'next_token': 'str', 'uploads': 'list[ask_smapi_model.v0.catalog.upload.content_upload_summary.ContentUploadSummary]' @@ -56,11 +56,11 @@ class ListUploadsResponse(object): supports_multiple_types = False def __init__(self, links=None, is_truncated=None, next_token=None, uploads=None): - # type: (Optional[Links_cdc03ffa], Optional[bool], Optional[str], Optional[List[ContentUploadSummary_8ef77e7e]]) -> None + # type: (Optional[Links_bc43467b], Optional[bool], Optional[str], Optional[List[ContentUploadSummary_8ef77e7e]]) -> None """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param is_truncated: :type is_truncated: (optional) bool :param next_token: diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py index 85b549e..b2a43f5 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/list_subscribers_response.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.links import Links as Links_cdc03ffa + from ask_smapi_model.v1.links import Links as Links_bc43467b from ask_smapi_model.v0.development_events.subscriber.subscriber_summary import SubscriberSummary as SubscriberSummary_3b34977e @@ -31,7 +31,7 @@ class ListSubscribersResponse(object): """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param next_token: :type next_token: (optional) str :param subscribers: List containing subscriber summary. @@ -39,7 +39,7 @@ class ListSubscribersResponse(object): """ deserialized_types = { - 'links': 'ask_smapi_model.v0.links.Links', + 'links': 'ask_smapi_model.v1.links.Links', 'next_token': 'str', 'subscribers': 'list[ask_smapi_model.v0.development_events.subscriber.subscriber_summary.SubscriberSummary]' } # type: Dict @@ -52,11 +52,11 @@ class ListSubscribersResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscribers=None): - # type: (Optional[Links_cdc03ffa], Optional[str], Optional[List[SubscriberSummary_3b34977e]]) -> None + # type: (Optional[Links_bc43467b], Optional[str], Optional[List[SubscriberSummary_3b34977e]]) -> None """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param next_token: :type next_token: (optional) str :param subscribers: List containing subscriber summary. diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py index b3140ba..752a198 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/event.py @@ -27,17 +27,18 @@ class Event(Enum): """ - Represents an event that the subscriber is interested in. The event is of the format AlexaDevelopmentEvent.OPERATION. You can use wildcard event 'AlexaDevelopmentEvent.All' for recieving all developer notifications listed below. * 'AlexaDevelopmentEvent.ManifestUpdate' - The event representing the status of the update request on the Manifest. * 'AlexaDevelopmentEvent.SkillPublish' - The event representing the status of the skill publish process. * 'AlexaDevelopmentEvent.SkillCertification' - The event represents if a skill has been certified or not. * 'AlexaDevelopmentEvent.InteractionModelUpdate' - The event represents the status of an Interaction Model build for a particular locale. * 'AlexaDevelopmentEvent.All' - A wildcard event name that allows subscription to all the existing events. While using this, you must not specify any other event name. AlexaDevelopmentEvent.All avoids the need of specifying every development event name in order to receive all events pertaining to a vendor account. Similarly, it avoids the need of updating an existing subscription to be able to receive new events, whenever supproted by notification service. Test Subscriber API cannot use this wildcard. Please make sure that your code can gracefully handle new/previously unknown events, if you are using this wildcard. + Represents an event that the subscriber is interested in. The event is of the format EventCategory.OPERATION. You can use wildcard event 'AlexaDevelopmentEvent.All' for recieving all AlexaDevelopmentEvent notifications listed below. We do not support 'AlexaCustomerFeedbackEvent.All' at this point as we only have one event in this category. * 'AlexaDevelopmentEvent.ManifestUpdate' - The event representing the status of the update request on the Manifest. * 'AlexaDevelopmentEvent.SkillPublish' - The event representing the status of the skill publish process. * 'AlexaDevelopmentEvent.SkillCertification' - The event represents if a skill has been certified or not. * 'AlexaDevelopmentEvent.InteractionModelUpdate' - The event represents the status of an Interaction Model build for a particular locale. * 'AlexaDevelopmentEvent.All' - A wildcard event name that allows subscription to all the existing events. While using this, you must not specify any other event name. AlexaDevelopmentEvent.All avoids the need of specifying every development event name in order to receive all events pertaining to a vendor account. Similarly, it avoids the need of updating an existing subscription to be able to receive new events, whenever supproted by notification service. Test Subscriber API cannot use this wildcard. Please make sure that your code can gracefully handle new/previously unknown events, if you are using this wildcard. * 'AlexaCustomerFeedbackEvent.SkillReviewPublish' - The event represents the publishing of a new/updated customer review for a skill on the skill store. - Allowed enum values: [AlexaDevelopmentEvent_ManifestUpdate, AlexaDevelopmentEvent_SkillPublish, AlexaDevelopmentEvent_SkillCertification, AlexaDevelopmentEvent_InteractionModelUpdate, AlexaDevelopmentEvent_All] + Allowed enum values: [AlexaDevelopmentEvent_ManifestUpdate, AlexaDevelopmentEvent_SkillPublish, AlexaDevelopmentEvent_SkillCertification, AlexaDevelopmentEvent_InteractionModelUpdate, AlexaDevelopmentEvent_All, AlexaCustomerFeedbackEvent_SkillReviewPublish] """ AlexaDevelopmentEvent_ManifestUpdate = "AlexaDevelopmentEvent.ManifestUpdate" AlexaDevelopmentEvent_SkillPublish = "AlexaDevelopmentEvent.SkillPublish" AlexaDevelopmentEvent_SkillCertification = "AlexaDevelopmentEvent.SkillCertification" AlexaDevelopmentEvent_InteractionModelUpdate = "AlexaDevelopmentEvent.InteractionModelUpdate" AlexaDevelopmentEvent_All = "AlexaDevelopmentEvent.All" + AlexaCustomerFeedbackEvent_SkillReviewPublish = "AlexaCustomerFeedbackEvent.SkillReviewPublish" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py index 21455d2..2f10b2b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/list_subscriptions_response.py @@ -23,15 +23,15 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.links import Links as Links_bc43467b from ask_smapi_model.v0.development_events.subscription.subscription_summary import SubscriptionSummary as SubscriptionSummary_f00dfd49 - from ask_smapi_model.v0.links import Links as Links_cdc03ffa class ListSubscriptionsResponse(object): """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param next_token: :type next_token: (optional) str :param subscriptions: List of subscription summaries. @@ -39,7 +39,7 @@ class ListSubscriptionsResponse(object): """ deserialized_types = { - 'links': 'ask_smapi_model.v0.links.Links', + 'links': 'ask_smapi_model.v1.links.Links', 'next_token': 'str', 'subscriptions': 'list[ask_smapi_model.v0.development_events.subscription.subscription_summary.SubscriptionSummary]' } # type: Dict @@ -52,11 +52,11 @@ class ListSubscriptionsResponse(object): supports_multiple_types = False def __init__(self, links=None, next_token=None, subscriptions=None): - # type: (Optional[Links_cdc03ffa], Optional[str], Optional[List[SubscriptionSummary_f00dfd49]]) -> None + # type: (Optional[Links_bc43467b], Optional[str], Optional[List[SubscriptionSummary_f00dfd49]]) -> None """ :param links: - :type links: (optional) ask_smapi_model.v0.links.Links + :type links: (optional) ask_smapi_model.v1.links.Links :param next_token: :type next_token: (optional) str :param subscriptions: List of subscription summaries. diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index 35ee70a..cf93445 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -19,6 +19,8 @@ from .request_status import RequestStatus from .subscription_attributes import SubscriptionAttributes from .base_schema import BaseSchema +from .skill_review_event_attributes import SkillReviewEventAttributes +from .skill_review_attributes import SkillReviewAttributes from .skill_event_attributes import SkillEventAttributes from .interaction_model_attributes import InteractionModelAttributes from .interaction_model_event_attributes import InteractionModelEventAttributes diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/__init__.py new file mode 100644 index 0000000..a479ba2 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .skill_review_publish import SkillReviewPublish diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/py.typed b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/skill_review_publish.py similarity index 59% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py rename to ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/skill_review_publish.py index 359bdc3..7004f73 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_health_info.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_customer_feedback_event/skill_review_publish.py @@ -18,49 +18,53 @@ import six import typing from enum import Enum +from ask_smapi_model.v0.event_schema.base_schema import BaseSchema if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_alias import HealthAlias as HealthAlias_f9de66cc + from ask_smapi_model.v0.event_schema.skill_review_event_attributes import SkillReviewEventAttributes as SkillReviewEventAttributes_69f7441f -class LocalizedHealthInfo(object): +class SkillReviewPublish(BaseSchema): """ - Defines the structure for health skill locale specific publishing information in the skill manifest. + 'AlexaCustomerFeedbackEvent.SkillReviewPublish' event represents the publishing of a new/updated customer review for a skill. - :param prompt_name: SSML supported name to use when Alexa renders the health skill name in a prompt to the user. - :type prompt_name: (optional) str - :param aliases: Defines the names to use when a user tries to invoke the health skill. - :type aliases: (optional) list[ask_smapi_model.v1.skill.manifest.health_alias.HealthAlias] + :param timestamp: ISO 8601 timestamp for the instant when event was created. + :type timestamp: (optional) datetime + :param payload: + :type payload: (optional) ask_smapi_model.v0.event_schema.skill_review_event_attributes.SkillReviewEventAttributes """ deserialized_types = { - 'prompt_name': 'str', - 'aliases': 'list[ask_smapi_model.v1.skill.manifest.health_alias.HealthAlias]' + 'timestamp': 'datetime', + 'event_name': 'str', + 'payload': 'ask_smapi_model.v0.event_schema.skill_review_event_attributes.SkillReviewEventAttributes' } # type: Dict attribute_map = { - 'prompt_name': 'promptName', - 'aliases': 'aliases' + 'timestamp': 'timestamp', + 'event_name': 'eventName', + 'payload': 'payload' } # type: Dict supports_multiple_types = False - def __init__(self, prompt_name=None, aliases=None): - # type: (Optional[str], Optional[List[HealthAlias_f9de66cc]]) -> None - """Defines the structure for health skill locale specific publishing information in the skill manifest. + def __init__(self, timestamp=None, payload=None): + # type: (Optional[datetime], Optional[SkillReviewEventAttributes_69f7441f]) -> None + """'AlexaCustomerFeedbackEvent.SkillReviewPublish' event represents the publishing of a new/updated customer review for a skill. - :param prompt_name: SSML supported name to use when Alexa renders the health skill name in a prompt to the user. - :type prompt_name: (optional) str - :param aliases: Defines the names to use when a user tries to invoke the health skill. - :type aliases: (optional) list[ask_smapi_model.v1.skill.manifest.health_alias.HealthAlias] + :param timestamp: ISO 8601 timestamp for the instant when event was created. + :type timestamp: (optional) datetime + :param payload: + :type payload: (optional) ask_smapi_model.v0.event_schema.skill_review_event_attributes.SkillReviewEventAttributes """ - self.__discriminator_value = None # type: str + self.__discriminator_value = "AlexaCustomerFeedbackEvent.SkillReviewPublish" # type: str - self.prompt_name = prompt_name - self.aliases = aliases + self.event_name = self.__discriminator_value + super(SkillReviewPublish, self).__init__(timestamp=timestamp, event_name=self.__discriminator_value) + self.payload = payload def to_dict(self): # type: () -> Dict[str, object] @@ -105,7 +109,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, LocalizedHealthInfo): + if not isinstance(other, SkillReviewPublish): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py index 56c1245..57dcc60 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/base_schema.py @@ -43,6 +43,8 @@ class BaseSchema(object): | AlexaDevelopmentEvent.InteractionModelUpdate: :py:class:`ask_smapi_model.v0.event_schema.alexa_development_event.interaction_model_update.InteractionModelUpdate`, | + | AlexaCustomerFeedbackEvent.SkillReviewPublish: :py:class:`ask_smapi_model.v0.event_schema.alexa_customer_feedback_event.skill_review_publish.SkillReviewPublish`, + | | AlexaDevelopmentEvent.SkillPublish: :py:class:`ask_smapi_model.v0.event_schema.alexa_development_event.skill_publish.SkillPublish`, | | AlexaDevelopmentEvent.ManifestUpdate: :py:class:`ask_smapi_model.v0.event_schema.alexa_development_event.manifest_update.ManifestUpdate`, @@ -63,6 +65,7 @@ class BaseSchema(object): discriminator_value_class_map = { 'AlexaDevelopmentEvent.InteractionModelUpdate': 'ask_smapi_model.v0.event_schema.alexa_development_event.interaction_model_update.InteractionModelUpdate', + 'AlexaCustomerFeedbackEvent.SkillReviewPublish': 'ask_smapi_model.v0.event_schema.alexa_customer_feedback_event.skill_review_publish.SkillReviewPublish', 'AlexaDevelopmentEvent.SkillPublish': 'ask_smapi_model.v0.event_schema.alexa_development_event.skill_publish.SkillPublish', 'AlexaDevelopmentEvent.ManifestUpdate': 'ask_smapi_model.v0.event_schema.alexa_development_event.manifest_update.ManifestUpdate', 'AlexaDevelopmentEvent.SkillCertification': 'ask_smapi_model.v0.event_schema.alexa_development_event.skill_certification.SkillCertification' diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_attributes.py new file mode 100644 index 0000000..28d9652 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_attributes.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SkillReviewAttributes(object): + """ + Represents attributes of a customer review for a skill. + + + :param review_id: Unique review id associated with a customer review for a skill. + :type review_id: (optional) str + :param url: Link to the customer review on Amazon retail website. + :type url: (optional) str + :param star_rating: StarRating provided by the customer in the review. It is always a natural number from 1 to 5 (inclusive of 1 and 5). + :type star_rating: (optional) str + + """ + deserialized_types = { + 'review_id': 'str', + 'url': 'str', + 'star_rating': 'str' + } # type: Dict + + attribute_map = { + 'review_id': 'reviewId', + 'url': 'url', + 'star_rating': 'starRating' + } # type: Dict + supports_multiple_types = False + + def __init__(self, review_id=None, url=None, star_rating=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None + """Represents attributes of a customer review for a skill. + + :param review_id: Unique review id associated with a customer review for a skill. + :type review_id: (optional) str + :param url: Link to the customer review on Amazon retail website. + :type url: (optional) str + :param star_rating: StarRating provided by the customer in the review. It is always a natural number from 1 to 5 (inclusive of 1 and 5). + :type star_rating: (optional) str + """ + self.__discriminator_value = None # type: str + + self.review_id = review_id + self.url = url + self.star_rating = star_rating + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SkillReviewAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_event_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_event_attributes.py new file mode 100644 index 0000000..03fc37c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/skill_review_event_attributes.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v0.event_schema.skill_review_attributes import SkillReviewAttributes as SkillReviewAttributes_a54ff44 + from ask_smapi_model.v0.event_schema.skill_attributes import SkillAttributes as SkillAttributes_416aaddd + from ask_smapi_model.v0.event_schema.subscription_attributes import SubscriptionAttributes as SubscriptionAttributes_ee385127 + + +class SkillReviewEventAttributes(object): + """ + Skill Review by customer event specific attributes. + + + :param skill: + :type skill: (optional) ask_smapi_model.v0.event_schema.skill_attributes.SkillAttributes + :param subscription: + :type subscription: (optional) ask_smapi_model.v0.event_schema.subscription_attributes.SubscriptionAttributes + :param review: + :type review: (optional) ask_smapi_model.v0.event_schema.skill_review_attributes.SkillReviewAttributes + + """ + deserialized_types = { + 'skill': 'ask_smapi_model.v0.event_schema.skill_attributes.SkillAttributes', + 'subscription': 'ask_smapi_model.v0.event_schema.subscription_attributes.SubscriptionAttributes', + 'review': 'ask_smapi_model.v0.event_schema.skill_review_attributes.SkillReviewAttributes' + } # type: Dict + + attribute_map = { + 'skill': 'skill', + 'subscription': 'subscription', + 'review': 'review' + } # type: Dict + supports_multiple_types = False + + def __init__(self, skill=None, subscription=None, review=None): + # type: (Optional[SkillAttributes_416aaddd], Optional[SubscriptionAttributes_ee385127], Optional[SkillReviewAttributes_a54ff44]) -> None + """Skill Review by customer event specific attributes. + + :param skill: + :type skill: (optional) ask_smapi_model.v0.event_schema.skill_attributes.SkillAttributes + :param subscription: + :type subscription: (optional) ask_smapi_model.v0.event_schema.subscription_attributes.SubscriptionAttributes + :param review: + :type review: (optional) ask_smapi_model.v0.event_schema.skill_review_attributes.SkillReviewAttributes + """ + self.__discriminator_value = None # type: str + + self.skill = skill + self.subscription = subscription + self.review = review + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SkillReviewEventAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py index 6153808..69d39fc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/audit_logs_response.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.links import Links as Links_bc43467b from ask_smapi_model.v1.audit_logs.response_pagination_context import ResponsePaginationContext as ResponsePaginationContext_ed91c19c from ask_smapi_model.v1.audit_logs.audit_log import AuditLog as AuditLog_c55d4ea9 @@ -34,33 +35,40 @@ class AuditLogsResponse(object): :param pagination_context: :type pagination_context: (optional) ask_smapi_model.v1.audit_logs.response_pagination_context.ResponsePaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links :param audit_logs: List of audit logs for the vendor. :type audit_logs: (optional) list[ask_smapi_model.v1.audit_logs.audit_log.AuditLog] """ deserialized_types = { 'pagination_context': 'ask_smapi_model.v1.audit_logs.response_pagination_context.ResponsePaginationContext', + 'links': 'ask_smapi_model.v1.links.Links', 'audit_logs': 'list[ask_smapi_model.v1.audit_logs.audit_log.AuditLog]' } # type: Dict attribute_map = { 'pagination_context': 'paginationContext', + 'links': '_links', 'audit_logs': 'auditLogs' } # type: Dict supports_multiple_types = False - def __init__(self, pagination_context=None, audit_logs=None): - # type: (Optional[ResponsePaginationContext_ed91c19c], Optional[List[AuditLog_c55d4ea9]]) -> None + def __init__(self, pagination_context=None, links=None, audit_logs=None): + # type: (Optional[ResponsePaginationContext_ed91c19c], Optional[Links_bc43467b], Optional[List[AuditLog_c55d4ea9]]) -> None """Response to the Query Audit Logs API. It contains the collection of audit logs for the vendor, nextToken and other metadata related to the search query. :param pagination_context: :type pagination_context: (optional) ask_smapi_model.v1.audit_logs.response_pagination_context.ResponsePaginationContext + :param links: + :type links: (optional) ask_smapi_model.v1.links.Links :param audit_logs: List of audit logs for the vendor. :type audit_logs: (optional) list[ask_smapi_model.v1.audit_logs.audit_log.AuditLog] """ self.__discriminator_value = None # type: str self.pagination_context = pagination_context + self.links = links self.audit_logs = audit_logs def to_dict(self): diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py index b8d9789..5c52507 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/request_pagination_context.py @@ -33,12 +33,12 @@ class RequestPaginationContext(object): :param next_token: When the response to this API call is truncated, the response includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that this API understands. Token has expiry of 1 hour. :type next_token: (optional) str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve more or less than the default of 50 results, you can add this parameter to your request. maxResults can exceed the upper limit of 250 but we will not return more items than that. The response might contain fewer results than maxResults for purpose of keeping SLA or because there are not enough items, but it will never contain more. - :type max_results: (optional) float + :type max_results: (optional) int """ deserialized_types = { 'next_token': 'str', - 'max_results': 'float' + 'max_results': 'int' } # type: Dict attribute_map = { @@ -48,13 +48,13 @@ class RequestPaginationContext(object): supports_multiple_types = False def __init__(self, next_token=None, max_results=None): - # type: (Optional[str], Optional[float]) -> None + # type: (Optional[str], Optional[int]) -> None """This object includes nextToken and maxResults. :param next_token: When the response to this API call is truncated, the response includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that this API understands. Token has expiry of 1 hour. :type next_token: (optional) str :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve more or less than the default of 50 results, you can add this parameter to your request. maxResults can exceed the upper limit of 250 but we will not return more items than that. The response might contain fewer results than maxResults for purpose of keeping SLA or because there are not enough items, but it will never contain more. - :type max_results: (optional) float + :type max_results: (optional) int """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py index 67411ef..9c4e0fc 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/create_content_upload_url_response.py @@ -31,34 +31,34 @@ class CreateContentUploadUrlResponse(object): :param url_id: Unique identifier for collection of generated urls. :type url_id: (optional) str - :param pre_signed_upload_parts: Ordered list of presigned upload parts to perform a partitioned (multipart) file upload - :type pre_signed_upload_parts: (optional) list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems] + :param presigned_upload_parts: Ordered list of presigned upload parts to perform a partitioned (multipart) file upload + :type presigned_upload_parts: (optional) list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems] """ deserialized_types = { 'url_id': 'str', - 'pre_signed_upload_parts': 'list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems]' + 'presigned_upload_parts': 'list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems]' } # type: Dict attribute_map = { 'url_id': 'urlId', - 'pre_signed_upload_parts': 'preSignedUploadParts' + 'presigned_upload_parts': 'presignedUploadParts' } # type: Dict supports_multiple_types = False - def __init__(self, url_id=None, pre_signed_upload_parts=None): + def __init__(self, url_id=None, presigned_upload_parts=None): # type: (Optional[str], Optional[List[PresignedUploadPartItems_81cf2d27]]) -> None """ :param url_id: Unique identifier for collection of generated urls. :type url_id: (optional) str - :param pre_signed_upload_parts: Ordered list of presigned upload parts to perform a partitioned (multipart) file upload - :type pre_signed_upload_parts: (optional) list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems] + :param presigned_upload_parts: Ordered list of presigned upload parts to perform a partitioned (multipart) file upload + :type presigned_upload_parts: (optional) list[ask_smapi_model.v1.catalog.presigned_upload_part_items.PresignedUploadPartItems] """ self.__discriminator_value = None # type: str self.url_id = url_id - self.pre_signed_upload_parts = pre_signed_upload_parts + self.presigned_upload_parts = presigned_upload_parts def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 6336455..3640136 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -21,7 +21,6 @@ from .currency import Currency from .associated_skill_response import AssociatedSkillResponse from .tax_information import TaxInformation -from .stage import Stage from .summary_price_listing import SummaryPriceListing from .localized_publishing_information import LocalizedPublishingInformation from .promotable_state import PromotableState diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py index 499c796..4e66d9e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/in_skill_product_summary.py @@ -25,9 +25,9 @@ from datetime import datetime from ask_smapi_model.v1.isp.product_type import ProductType as ProductType_bf0e7936 from ask_smapi_model.v1.isp.editable_state import EditableState as EditableState_1fb842e6 + from ask_smapi_model.v1.stage_type import StageType as StageType_700be16e from ask_smapi_model.v1.isp.promotable_state import PromotableState as PromotableState_25399706 from ask_smapi_model.v1.isp.status import Status as Status_cbf30a3d - from ask_smapi_model.v1.isp.stage import Stage as Stage_70f2185d from ask_smapi_model.v1.isp.isp_summary_links import IspSummaryLinks as IspSummaryLinks_84051861 from ask_smapi_model.v1.isp.summary_marketplace_pricing import SummaryMarketplacePricing as SummaryMarketplacePricing_d0d9d0db from ask_smapi_model.v1.isp.purchasable_state import PurchasableState as PurchasableState_c58a6ca2 @@ -51,7 +51,7 @@ class InSkillProductSummary(object): :param status: :type status: (optional) ask_smapi_model.v1.isp.status.Status :param stage: - :type stage: (optional) ask_smapi_model.v1.isp.stage.Stage + :type stage: (optional) ask_smapi_model.v1.stage_type.StageType :param editable_state: :type editable_state: (optional) ask_smapi_model.v1.isp.editable_state.EditableState :param purchasable_state: @@ -71,7 +71,7 @@ class InSkillProductSummary(object): 'last_updated': 'datetime', 'name_by_locale': 'dict(str, str)', 'status': 'ask_smapi_model.v1.isp.status.Status', - 'stage': 'ask_smapi_model.v1.isp.stage.Stage', + 'stage': 'ask_smapi_model.v1.stage_type.StageType', 'editable_state': 'ask_smapi_model.v1.isp.editable_state.EditableState', 'purchasable_state': 'ask_smapi_model.v1.isp.purchasable_state.PurchasableState', 'promotable_state': 'ask_smapi_model.v1.isp.promotable_state.PromotableState', @@ -96,7 +96,7 @@ class InSkillProductSummary(object): supports_multiple_types = False def __init__(self, object_type=None, product_id=None, reference_name=None, last_updated=None, name_by_locale=None, status=None, stage=None, editable_state=None, purchasable_state=None, promotable_state=None, links=None, pricing=None): - # type: (Optional[ProductType_bf0e7936], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[Status_cbf30a3d], Optional[Stage_70f2185d], Optional[EditableState_1fb842e6], Optional[PurchasableState_c58a6ca2], Optional[PromotableState_25399706], Optional[IspSummaryLinks_84051861], Optional[Dict[str, SummaryMarketplacePricing_d0d9d0db]]) -> None + # type: (Optional[ProductType_bf0e7936], Optional[str], Optional[str], Optional[datetime], Optional[Dict[str, object]], Optional[Status_cbf30a3d], Optional[StageType_700be16e], Optional[EditableState_1fb842e6], Optional[PurchasableState_c58a6ca2], Optional[PromotableState_25399706], Optional[IspSummaryLinks_84051861], Optional[Dict[str, SummaryMarketplacePricing_d0d9d0db]]) -> None """Information about the in-skill product that is not editable. :param object_type: @@ -112,7 +112,7 @@ def __init__(self, object_type=None, product_id=None, reference_name=None, last_ :param status: :type status: (optional) ask_smapi_model.v1.isp.status.Status :param stage: - :type stage: (optional) ask_smapi_model.v1.isp.stage.Stage + :type stage: (optional) ask_smapi_model.v1.stage_type.StageType :param editable_state: :type editable_state: (optional) ask_smapi_model.v1.isp.editable_state.EditableState :param purchasable_state: diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index 563f2f5..38ad2a1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -23,6 +23,7 @@ from .hosted_skill_info import HostedSkillInfo from .hosted_skill_repository import HostedSkillRepository from .hosted_skill_metadata import HostedSkillMetadata +from .hosted_skill_region import HostedSkillRegion from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest from .hosting_configuration import HostingConfiguration diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py index a6d64f3..ec9a0e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/alexa_hosted_config.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_region import HostedSkillRegion as HostedSkillRegion_40868d85 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime import HostedSkillRuntime as HostedSkillRuntime_6f3a4c25 @@ -33,27 +34,34 @@ class AlexaHostedConfig(object): :param runtime: :type runtime: (optional) ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime.HostedSkillRuntime + :param region: + :type region: (optional) ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_region.HostedSkillRegion """ deserialized_types = { - 'runtime': 'ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime.HostedSkillRuntime' + 'runtime': 'ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime.HostedSkillRuntime', + 'region': 'ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_region.HostedSkillRegion' } # type: Dict attribute_map = { - 'runtime': 'runtime' + 'runtime': 'runtime', + 'region': 'region' } # type: Dict supports_multiple_types = False - def __init__(self, runtime=None): - # type: (Optional[HostedSkillRuntime_6f3a4c25]) -> None + def __init__(self, runtime=None, region=None): + # type: (Optional[HostedSkillRuntime_6f3a4c25], Optional[HostedSkillRegion_40868d85]) -> None """Alexa hosted skill create configuration :param runtime: :type runtime: (optional) ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_runtime.HostedSkillRuntime + :param region: + :type region: (optional) ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_region.HostedSkillRegion """ self.__discriminator_value = None # type: str self.runtime = runtime + self.region = region def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_region.py new file mode 100644 index 0000000..189177f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_region.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class HostedSkillRegion(Enum): + """ + Hosted skill AWS region + + + + Allowed enum values: [US_EAST_1, US_WEST_2, EU_WEST_1] + """ + US_EAST_1 = "US_EAST_1" + US_WEST_2 = "US_WEST_2" + EU_WEST_1 = "EU_WEST_1" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, HostedSkillRegion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py index 129916f..4403669 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py @@ -27,7 +27,7 @@ class HostedSkillRuntime(Enum): """ - Hosted skill lambda runtime + Hosted skill lambda runtime; Node.js 10.x is deprecated by Hosted Skill service as of April 30, 2021. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index cc2d87b..d9cb328 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -15,5 +15,6 @@ from __future__ import absolute_import from .beta_test import BetaTest +from .update_beta_test_response import UpdateBetaTestResponse from .status import Status from .test_body import TestBody diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py index e628041..c72c5e2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/beta_test.py @@ -40,7 +40,7 @@ class BetaTest(object): :param invitation_url: Deeplinking for getting authorized to the beta test. :type invitation_url: (optional) str :param invites_remaining: Remaining invite count for the beta test. - :type invites_remaining: (optional) float + :type invites_remaining: (optional) int """ deserialized_types = { @@ -48,7 +48,7 @@ class BetaTest(object): 'status': 'ask_smapi_model.v1.skill.beta_test.status.Status', 'feedback_email': 'str', 'invitation_url': 'str', - 'invites_remaining': 'float' + 'invites_remaining': 'int' } # type: Dict attribute_map = { @@ -61,7 +61,7 @@ class BetaTest(object): supports_multiple_types = False def __init__(self, expiry_date=None, status=None, feedback_email=None, invitation_url=None, invites_remaining=None): - # type: (Optional[datetime], Optional[Status_3d3324db], Optional[str], Optional[str], Optional[float]) -> None + # type: (Optional[datetime], Optional[Status_3d3324db], Optional[str], Optional[str], Optional[int]) -> None """Beta test for an Alexa skill. :param expiry_date: Expiry date of the beta test. @@ -73,7 +73,7 @@ def __init__(self, expiry_date=None, status=None, feedback_email=None, invitatio :param invitation_url: Deeplinking for getting authorized to the beta test. :type invitation_url: (optional) str :param invites_remaining: Remaining invite count for the beta test. - :type invites_remaining: (optional) float + :type invites_remaining: (optional) int """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v0/link.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py similarity index 89% rename from ask-smapi-model/ask_smapi_model/v0/link.py rename to ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py index 1ea807e..6b317fc 100644 --- a/ask-smapi-model/ask_smapi_model/v0/link.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py @@ -25,33 +25,25 @@ from datetime import datetime -class Link(object): +class UpdateBetaTestResponse(object): """ - :param href: - :type href: (optional) str """ deserialized_types = { - 'href': 'str' } # type: Dict attribute_map = { - 'href': 'href' } # type: Dict supports_multiple_types = False - def __init__(self, href=None): - # type: (Optional[str]) -> None + def __init__(self): + # type: () -> None """ - :param href: - :type href: (optional) str """ self.__discriminator_value = None # type: str - self.href = href - def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" @@ -95,7 +87,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Link): + if not isinstance(other, UpdateBetaTestResponse): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py index ccf3675..b7f906b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/image_attributes.py @@ -36,32 +36,39 @@ class ImageAttributes(object): :type dimension: (optional) ask_smapi_model.v1.skill.image_dimension.ImageDimension :param size: :type size: (optional) ask_smapi_model.v1.skill.image_size.ImageSize + :param maximum_size: + :type maximum_size: (optional) ask_smapi_model.v1.skill.image_size.ImageSize """ deserialized_types = { 'dimension': 'ask_smapi_model.v1.skill.image_dimension.ImageDimension', - 'size': 'ask_smapi_model.v1.skill.image_size.ImageSize' + 'size': 'ask_smapi_model.v1.skill.image_size.ImageSize', + 'maximum_size': 'ask_smapi_model.v1.skill.image_size.ImageSize' } # type: Dict attribute_map = { 'dimension': 'dimension', - 'size': 'size' + 'size': 'size', + 'maximum_size': 'maximumSize' } # type: Dict supports_multiple_types = False - def __init__(self, dimension=None, size=None): - # type: (Optional[ImageDimension_4f87c1d], Optional[ImageSize_f2e12ed9]) -> None + def __init__(self, dimension=None, size=None, maximum_size=None): + # type: (Optional[ImageDimension_4f87c1d], Optional[ImageSize_f2e12ed9], Optional[ImageSize_f2e12ed9]) -> None """Set of properties of the image provided by the customer. :param dimension: :type dimension: (optional) ask_smapi_model.v1.skill.image_dimension.ImageDimension :param size: :type size: (optional) ask_smapi_model.v1.skill.image_size.ImageSize + :param maximum_size: + :type maximum_size: (optional) ask_smapi_model.v1.skill.image_size.ImageSize """ self.__discriminator_value = None # type: str self.dimension = dimension self.size = size + self.maximum_size = maximum_size def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 4dc6ed0..529b31b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -15,17 +15,24 @@ from __future__ import absolute_import from .connections_payload import ConnectionsPayload +from .extension_initialization_request import ExtensionInitializationRequest from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance from .music_feature import MusicFeature +from .dialog_delegation_strategy import DialogDelegationStrategy from .skill_manifest_endpoint import SkillManifestEndpoint -from .health_apis import HealthApis +from .video_web_player_feature import VideoWebPlayerFeature +from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .extension_request import ExtensionRequest +from .voice_profile_feature import VoiceProfileFeature from .ssl_certificate_type import SSLCertificateType from .viewport_mode import ViewportMode from .skill_manifest_events import SkillManifestEvents +from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest from .flash_briefing_content_type import FlashBriefingContentType -from .health_alias import HealthAlias from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .authorized_client_lwa import AuthorizedClientLwa +from .interface_type import InterfaceType from .music_apis import MusicApis from .distribution_mode import DistributionMode from .custom_connections import CustomConnections @@ -40,53 +47,74 @@ from .health_interface import HealthInterface from .region import Region from .skill_manifest_envelope import SkillManifestEnvelope +from .supported_controls import SupportedControls +from .app_link_interface import AppLinkInterface from .skill_manifest_apis import SkillManifestApis -from .connections import Connections from .lambda_endpoint import LambdaEndpoint from .viewport_specification import ViewportSpecification +from .catalog_info import CatalogInfo from .music_alias import MusicAlias -from .request_name import RequestName +from .video_feature import VideoFeature from .music_content_type import MusicContentType +from .friendly_name import FriendlyName from .manifest_gadget_support import ManifestGadgetSupport -from .custom_interface import CustomInterface +from .source_language_for_locales import SourceLanguageForLocales +from .dialog_manager import DialogManager +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion from .distribution_countries import DistributionCountries from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .health_protocol_version import HealthProtocolVersion +from .gadget_support_requirement import GadgetSupportRequirement from .video_app_interface import VideoAppInterface from .custom_apis import CustomApis from .flash_briefing_genre import FlashBriefingGenre +from .linked_application import LinkedApplication +from .app_link import AppLink from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems from .music_wordmark import MusicWordmark +from .knowledge_apis import KnowledgeApis from .video_apis_locale import VideoApisLocale -from .health_request import HealthRequest from .alexa_for_business_interface import AlexaForBusinessInterface from .game_engine_interface import GameEngineInterface +from .dialog_management import DialogManagement from .gadget_controller_interface import GadgetControllerInterface from .smart_home_protocol import SmartHomeProtocol from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation from .version import Version from .music_request import MusicRequest from .video_apis import VideoApis -from .gadget_support import GadgetSupport from .lambda_region import LambdaRegion from .video_country_info import VideoCountryInfo from .skill_manifest import SkillManifest +from .manifest_version import ManifestVersion from .flash_briefing_apis import FlashBriefingApis -from .skill_manifest_custom_task import SkillManifestCustomTask +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager from .permission_items import PermissionItems -from .localized_health_info import LocalizedHealthInfo +from .automatic_distribution import AutomaticDistribution +from .authorized_client import AuthorizedClient from .event_name_type import EventNameType from .audio_interface import AudioInterface from .smart_home_apis import SmartHomeApis +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .app_link_v2_interface import AppLinkV2Interface from .alexa_for_business_apis import AlexaForBusinessApis from .video_region import VideoRegion +from .localized_knowledge_information import LocalizedKnowledgeInformation from .viewport_shape import ViewportShape from .alexa_presentation_apl_interface import AlexaPresentationAplInterface from .display_interface import DisplayInterface +from .catalog_type import CatalogType from .music_content_name import MusicContentName +from .localized_name import LocalizedName +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement from .display_interface_template_version import DisplayInterfaceTemplateVersion -from .request import Request from .event_publications import EventPublications +from .demand_response_apis import DemandResponseApis +from .custom_localized_information import CustomLocalizedInformation +from .video_prompt_name_type import VideoPromptNameType +from .video_prompt_name import VideoPromptName +from .custom_task import CustomTask +from .supported_controls_type import SupportedControlsType from .localized_music_info import LocalizedMusicInfo from .video_catalog_info import VideoCatalogInfo from .localized_flash_briefing_info import LocalizedFlashBriefingInfo diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py index 41d87af..e316d5b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface.py @@ -23,8 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.request import Request as Request_f4811697 from ask_smapi_model.v1.skill.manifest.version import Version as Version_17871229 + from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest as AlexaForBusinessInterfaceRequest_3d9e9835 class AlexaForBusinessInterface(object): @@ -35,13 +35,13 @@ class AlexaForBusinessInterface(object): :param version: :type version: (optional) ask_smapi_model.v1.skill.manifest.version.Version :param requests: Contains a list of requests/messages that skill can handle. - :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.request.Request] + :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request.AlexaForBusinessInterfaceRequest] """ deserialized_types = { 'namespace': 'str', 'version': 'ask_smapi_model.v1.skill.manifest.version.Version', - 'requests': 'list[ask_smapi_model.v1.skill.manifest.request.Request]' + 'requests': 'list[ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request.AlexaForBusinessInterfaceRequest]' } # type: Dict attribute_map = { @@ -52,7 +52,7 @@ class AlexaForBusinessInterface(object): supports_multiple_types = False def __init__(self, namespace=None, version=None, requests=None): - # type: (Optional[str], Optional[Version_17871229], Optional[List[Request_f4811697]]) -> None + # type: (Optional[str], Optional[Version_17871229], Optional[List[AlexaForBusinessInterfaceRequest_3d9e9835]]) -> None """ :param namespace: Name of the interface. @@ -60,7 +60,7 @@ def __init__(self, namespace=None, version=None, requests=None): :param version: :type version: (optional) ask_smapi_model.v1.skill.manifest.version.Version :param requests: Contains a list of requests/messages that skill can handle. - :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.request.Request] + :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request.AlexaForBusinessInterfaceRequest] """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request.py new file mode 100644 index 0000000..fbc6c85 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName as AlexaForBusinessInterfaceRequestName_54fdbf00 + + +class AlexaForBusinessInterfaceRequest(object): + """ + + :param name: + :type name: (optional) ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request_name.AlexaForBusinessInterfaceRequestName + + """ + deserialized_types = { + 'name': 'ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request_name.AlexaForBusinessInterfaceRequestName' + } # type: Dict + + attribute_map = { + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None): + # type: (Optional[AlexaForBusinessInterfaceRequestName_54fdbf00]) -> None + """ + + :param name: + :type name: (optional) ask_smapi_model.v1.skill.manifest.alexa_for_business_interface_request_name.AlexaForBusinessInterfaceRequestName + """ + self.__discriminator_value = None # type: str + + self.name = name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AlexaForBusinessInterfaceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request_name.py similarity index 93% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request_name.py index 8e01120..60f612a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_for_business_interface_request_name.py @@ -25,7 +25,7 @@ from datetime import datetime -class RequestName(Enum): +class AlexaForBusinessInterfaceRequestName(Enum): """ Name of the request. @@ -56,7 +56,7 @@ def __repr__(self): def __eq__(self, other): # type: (Any) -> bool """Returns true if both objects are equal""" - if not isinstance(other, RequestName): + if not isinstance(other, AlexaForBusinessInterfaceRequestName): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py new file mode 100644 index 0000000..473ed29 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.dialog_manager import DialogManager + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AMAZONConversationsDialogManager(DialogManager): + """ + The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. See https://w.amazon.com/bin/view/Digital/Alexa/ConversationalAI/Coltrane + + + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. See https://w.amazon.com/bin/view/Digital/Alexa/ConversationalAI/Coltrane + + """ + self.__discriminator_value = "AMAZON.Conversations" # type: str + + self.object_type = self.__discriminator_value + super(AMAZONConversationsDialogManager, self).__init__(object_type=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AMAZONConversationsDialogManager): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py new file mode 100644 index 0000000..416159e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.linked_application import LinkedApplication as LinkedApplication_85efe66c + + +class AppLink(object): + """ + Details required for app linking use cases. + + + :param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface. + :type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication] + + """ + deserialized_types = { + 'linked_applications': 'list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]' + } # type: Dict + + attribute_map = { + 'linked_applications': 'linkedApplications' + } # type: Dict + supports_multiple_types = False + + def __init__(self, linked_applications=None): + # type: (Optional[List[LinkedApplication_85efe66c]]) -> None + """Details required for app linking use cases. + + :param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface. + :type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication] + """ + self.__discriminator_value = None # type: str + + self.linked_applications = linked_applications + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AppLink): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_interface.py similarity index 84% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_interface.py index 2496a3d..9470a40 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_alias.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_interface.py @@ -18,6 +18,7 @@ import six import typing from enum import Enum +from ask_smapi_model.v1.skill.manifest.interface import Interface if typing.TYPE_CHECKING: @@ -25,32 +26,29 @@ from datetime import datetime -class HealthAlias(object): +class AppLinkInterface(Interface): """ - :param name: Name of alias to use when invoking a health skill. - :type name: (optional) str """ deserialized_types = { - 'name': 'str' + 'object_type': 'str' } # type: Dict attribute_map = { - 'name': 'name' + 'object_type': 'type' } # type: Dict supports_multiple_types = False - def __init__(self, name=None): - # type: (Optional[str]) -> None + def __init__(self): + # type: () -> None """ - :param name: Name of alias to use when invoking a health skill. - :type name: (optional) str """ - self.__discriminator_value = None # type: str + self.__discriminator_value = "APP_LINKS" # type: str - self.name = name + self.object_type = self.__discriminator_value + super(AppLinkInterface, self).__init__(object_type=self.__discriminator_value) def to_dict(self): # type: () -> Dict[str, object] @@ -95,7 +93,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, HealthAlias): + if not isinstance(other, AppLinkInterface): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_v2_interface.py similarity index 85% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_v2_interface.py index 91e756a..5ad6296 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link_v2_interface.py @@ -26,10 +26,8 @@ from datetime import datetime -class CustomInterface(Interface): +class AppLinkV2Interface(Interface): """ - Skills using Custom Interfaces can send custom directives and receive custom events from custom endpoints such as Alexa gadgets. - """ @@ -44,13 +42,13 @@ class CustomInterface(Interface): def __init__(self): # type: () -> None - """Skills using Custom Interfaces can send custom directives and receive custom events from custom endpoints such as Alexa gadgets. + """ """ - self.__discriminator_value = "CUSTOM_INTERFACE" # type: str + self.__discriminator_value = "APP_LINKS_V2" # type: str self.object_type = self.__discriminator_value - super(CustomInterface, self).__init__(object_type=self.__discriminator_value) + super(AppLinkV2Interface, self).__init__(object_type=self.__discriminator_value) def to_dict(self): # type: () -> Dict[str, object] @@ -95,7 +93,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, CustomInterface): + if not isinstance(other, AppLinkV2Interface): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client.py new file mode 100644 index 0000000..ba324db --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AuthorizedClient(object): + """ + Defines a client authorized for a skill. + + + :param authentication_provider: + :type authentication_provider: (optional) str + + """ + deserialized_types = { + 'authentication_provider': 'str' + } # type: Dict + + attribute_map = { + 'authentication_provider': 'authenticationProvider' + } # type: Dict + supports_multiple_types = False + + def __init__(self, authentication_provider=None): + # type: (Optional[str]) -> None + """Defines a client authorized for a skill. + + :param authentication_provider: + :type authentication_provider: (optional) str + """ + self.__discriminator_value = None # type: str + + self.authentication_provider = authentication_provider + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizedClient): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py new file mode 100644 index 0000000..d49b8b4 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.authorized_client import AuthorizedClient + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AuthorizedClientLwa(AuthorizedClient): + """ + Defines client using Login With Amazon authentication provider, corresponds to LWA Security Profile. + + + :param authentication_provider: + :type authentication_provider: (optional) str + + """ + deserialized_types = { + 'authentication_provider': 'str' + } # type: Dict + + attribute_map = { + 'authentication_provider': 'authenticationProvider' + } # type: Dict + supports_multiple_types = False + + def __init__(self, authentication_provider=None): + # type: (Optional[str]) -> None + """Defines client using Login With Amazon authentication provider, corresponds to LWA Security Profile. + + :param authentication_provider: + :type authentication_provider: (optional) str + """ + self.__discriminator_value = None # type: str + + super(AuthorizedClientLwa, self).__init__(authentication_provider=authentication_provider) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizedClientLwa): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application.py similarity index 81% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application.py index 395fe01..cc74120 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application.py @@ -23,35 +23,36 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.request_name import RequestName as RequestName_a5d181c0 -class Request(object): +class AuthorizedClientLwaApplication(object): """ + Defines an application for LWA security profile. - :param name: - :type name: (optional) ask_smapi_model.v1.skill.manifest.request_name.RequestName + + :param object_type: + :type object_type: (optional) str """ deserialized_types = { - 'name': 'ask_smapi_model.v1.skill.manifest.request_name.RequestName' + 'object_type': 'str' } # type: Dict attribute_map = { - 'name': 'name' + 'object_type': 'type' } # type: Dict supports_multiple_types = False - def __init__(self, name=None): - # type: (Optional[RequestName_a5d181c0]) -> None - """ + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Defines an application for LWA security profile. - :param name: - :type name: (optional) ask_smapi_model.v1.skill.manifest.request_name.RequestName + :param object_type: + :type object_type: (optional) str """ self.__discriminator_value = None # type: str - self.name = name + self.object_type = object_type def to_dict(self): # type: () -> Dict[str, object] @@ -96,7 +97,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Request): + if not isinstance(other, AuthorizedClientLwaApplication): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py new file mode 100644 index 0000000..7d67915 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.authorized_client_lwa_application import AuthorizedClientLwaApplication + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AuthorizedClientLwaApplicationAndroid(AuthorizedClientLwaApplication): + """ + Defines an android application for LWA authentication provider. + + + :param object_type: + :type object_type: (optional) str + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Defines an android application for LWA authentication provider. + + :param object_type: + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + super(AuthorizedClientLwaApplicationAndroid, self).__init__(object_type=object_type) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AuthorizedClientLwaApplicationAndroid): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_distribution.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_distribution.py new file mode 100644 index 0000000..a365d42 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_distribution.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.source_language_for_locales import SourceLanguageForLocales as SourceLanguageForLocales_eb9c404a + + +class AutomaticDistribution(object): + """ + optional. Used by developer to opt in to Automatic Skill Distribution, a feature where a skill will automatically be published in new eligible locales from the same language (e.g. from \"en-US\" to \"en-CA\" and \"en-GB\"). Locales that the developer has already created will not be overwritten. + + + :param is_active: set to true to opt in to Automatic Skill Distribution. If false, then the skill will not be considered for Automatic Skill Distribution. Note that once a skill has gone through the automatic distribution process and this value is later set to false, any locales that were published through this feature will not be reverted. Any published locales will need to be suppressed manually via contacting DAG. + :type is_active: (optional) bool + :param source_locale_for_languages: list of items pairing a language with a source locale. Required if isActive is set to true. For each language there must be exactly one source locale. + :type source_locale_for_languages: (optional) list[ask_smapi_model.v1.skill.manifest.source_language_for_locales.SourceLanguageForLocales] + + """ + deserialized_types = { + 'is_active': 'bool', + 'source_locale_for_languages': 'list[ask_smapi_model.v1.skill.manifest.source_language_for_locales.SourceLanguageForLocales]' + } # type: Dict + + attribute_map = { + 'is_active': 'isActive', + 'source_locale_for_languages': 'sourceLocaleForLanguages' + } # type: Dict + supports_multiple_types = False + + def __init__(self, is_active=None, source_locale_for_languages=None): + # type: (Optional[bool], Optional[List[SourceLanguageForLocales_eb9c404a]]) -> None + """optional. Used by developer to opt in to Automatic Skill Distribution, a feature where a skill will automatically be published in new eligible locales from the same language (e.g. from \"en-US\" to \"en-CA\" and \"en-GB\"). Locales that the developer has already created will not be overwritten. + + :param is_active: set to true to opt in to Automatic Skill Distribution. If false, then the skill will not be considered for Automatic Skill Distribution. Note that once a skill has gone through the automatic distribution process and this value is later set to false, any locales that were published through this feature will not be reverted. Any published locales will need to be suppressed manually via contacting DAG. + :type is_active: (optional) bool + :param source_locale_for_languages: list of items pairing a language with a source locale. Required if isActive is set to true. For each language there must be exactly one source locale. + :type source_locale_for_languages: (optional) list[ask_smapi_model.v1.skill.manifest.source_language_for_locales.SourceLanguageForLocales] + """ + self.__discriminator_value = None # type: str + + self.is_active = is_active + self.source_locale_for_languages = source_locale_for_languages + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AutomaticDistribution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_info.py new file mode 100644 index 0000000..c6e5230 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.catalog_type import CatalogType as CatalogType_4ef0ccde + + +class CatalogInfo(object): + """ + Details about how the app is listed on app store catalogs. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.catalog_type.CatalogType + :param identifier: Identifier when accessing app in store. + :type identifier: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.manifest.catalog_type.CatalogType', + 'identifier': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'identifier': 'identifier' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, identifier=None): + # type: (Optional[CatalogType_4ef0ccde], Optional[str]) -> None + """Details about how the app is listed on app store catalogs. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.catalog_type.CatalogType + :param identifier: Identifier when accessing app in store. + :type identifier: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.identifier = identifier + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CatalogInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_type.py new file mode 100644 index 0000000..1feb2fe --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_type.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CatalogType(Enum): + """ + Supported catalog + + + + Allowed enum values: [IOS_APP_STORE, GOOGLE_PLAY_STORE] + """ + IOS_APP_STORE = "IOS_APP_STORE" + GOOGLE_PLAY_STORE = "GOOGLE_PLAY_STORE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CatalogType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py new file mode 100644 index 0000000..b1eda5d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -0,0 +1,21 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .target_runtime_device import TargetRuntimeDevice +from .connection import Connection +from .suppressed_interface import SuppressedInterface +from .target_runtime import TargetRuntime +from .target_runtime_type import TargetRuntimeType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/connection.py similarity index 98% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/connection.py index 18cc30c..2003fb8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/connection.py @@ -26,7 +26,7 @@ from ask_smapi_model.v1.skill.manifest.connections_payload import ConnectionsPayload as ConnectionsPayload_8d7b13bc -class Connections(object): +class Connection(object): """ Skill connection object. @@ -105,7 +105,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Connections): + if not isinstance(other, Connection): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py new file mode 100644 index 0000000..6e39caf --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SuppressedInterface(Enum): + """ + + + Allowed enum values: [AudioPlayer, PlaybackController, Display, VideoPlayer, GameEngine, GadgetController, CanHandleIntentRequest, CanFulfillIntentRequest, AlexaPresentationApl, AlexaPresentationHtml, AlexaDataStore, AlexaDataStorePackageManager, PhotoCaptureController, VideoCaptureController, UploadController, CustomInterface, AlexaAugmentationEffectsController] + """ + AudioPlayer = "AudioPlayer" + PlaybackController = "PlaybackController" + Display = "Display" + VideoPlayer = "VideoPlayer" + GameEngine = "GameEngine" + GadgetController = "GadgetController" + CanHandleIntentRequest = "CanHandleIntentRequest" + CanFulfillIntentRequest = "CanFulfillIntentRequest" + AlexaPresentationApl = "AlexaPresentationApl" + AlexaPresentationHtml = "AlexaPresentationHtml" + AlexaDataStore = "AlexaDataStore" + AlexaDataStorePackageManager = "AlexaDataStorePackageManager" + PhotoCaptureController = "PhotoCaptureController" + VideoCaptureController = "VideoCaptureController" + UploadController = "UploadController" + CustomInterface = "CustomInterface" + AlexaAugmentationEffectsController = "AlexaAugmentationEffectsController" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SuppressedInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime.py new file mode 100644 index 0000000..814901b --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TargetRuntime(object): + """ + Discriminator for target runtime objects. + + + :param object_type: + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | DEVICE: :py:class:`ask_smapi_model.v1.skill.manifest.custom.target_runtime_device.TargetRuntimeDevice` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'DEVICE': 'ask_smapi_model.v1.skill.manifest.custom.target_runtime_device.TargetRuntimeDevice' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Discriminator for target runtime objects. + + :param object_type: + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TargetRuntime): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_device.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_device.py new file mode 100644 index 0000000..7ba7bd4 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_device.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.custom.target_runtime import TargetRuntime + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TargetRuntimeDevice(TargetRuntime): + """ + The type of target runtime. + + + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """The type of target runtime. + + """ + self.__discriminator_value = "DEVICE" # type: str + + self.object_type = self.__discriminator_value + super(TargetRuntimeDevice, self).__init__(object_type=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TargetRuntimeDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_type.py similarity index 91% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_type.py index 1451048..7099518 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_protocol_version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/target_runtime_type.py @@ -25,14 +25,13 @@ from datetime import datetime -class HealthProtocolVersion(Enum): +class TargetRuntimeType(Enum): """ - Allowed enum values: [_1, _2] + Allowed enum values: [DEVICE] """ - _1 = "1" - _2 = "2" + DEVICE = "DEVICE" def to_dict(self): # type: () -> Dict[str, Any] @@ -53,7 +52,7 @@ def __repr__(self): def __eq__(self, other): # type: (Any) -> bool """Returns true if both objects are equal""" - if not isinstance(other, HealthProtocolVersion): + if not isinstance(other, TargetRuntimeType): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py index 0bf3e04..180e382 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_apis.py @@ -23,8 +23,12 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task import SkillManifestCustomTask as SkillManifestCustomTask_32519412 + from ask_smapi_model.v1.skill.manifest.custom_localized_information import CustomLocalizedInformation as CustomLocalizedInformation_a617b7bd from ask_smapi_model.v1.skill.manifest.interface import Interface as Interface_1e4dc7ab + from ask_smapi_model.v1.skill.manifest.app_link import AppLink as AppLink_db0195e + from ask_smapi_model.v1.skill.manifest.custom_task import CustomTask as CustomTask_647aa58a + from ask_smapi_model.v1.skill.manifest.dialog_management import DialogManagement as DialogManagement_340237b8 + from ask_smapi_model.v1.skill.manifest.custom.target_runtime import TargetRuntime as TargetRuntime_ab65c587 from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 from ask_smapi_model.v1.skill.manifest.custom_connections import CustomConnections as CustomConnections_1f24e36 @@ -35,6 +39,10 @@ class CustomApis(object): Defines the structure for custom api of the skill. + :param target_runtimes: Defines the set of target runtimes for this skill. + :type target_runtimes: (optional) list[ask_smapi_model.v1.skill.manifest.custom.target_runtime.TargetRuntime] + :param locales: Object that contains <locale> Objects for each supported locale. + :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.custom_localized_information.CustomLocalizedInformation) :param regions: Contains an array of the supported <region> Objects. :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.region.Region) :param endpoint: @@ -42,32 +50,48 @@ class CustomApis(object): :param interfaces: Defines the structure for interfaces supported by the custom api of the skill. :type interfaces: (optional) list[ask_smapi_model.v1.skill.manifest.interface.Interface] :param tasks: List of provided tasks. - :type tasks: (optional) list[ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task.SkillManifestCustomTask] + :type tasks: (optional) list[ask_smapi_model.v1.skill.manifest.custom_task.CustomTask] :param connections: :type connections: (optional) ask_smapi_model.v1.skill.manifest.custom_connections.CustomConnections + :param dialog_management: + :type dialog_management: (optional) ask_smapi_model.v1.skill.manifest.dialog_management.DialogManagement + :param app_link: + :type app_link: (optional) ask_smapi_model.v1.skill.manifest.app_link.AppLink """ deserialized_types = { + 'target_runtimes': 'list[ask_smapi_model.v1.skill.manifest.custom.target_runtime.TargetRuntime]', + 'locales': 'dict(str, ask_smapi_model.v1.skill.manifest.custom_localized_information.CustomLocalizedInformation)', 'regions': 'dict(str, ask_smapi_model.v1.skill.manifest.region.Region)', 'endpoint': 'ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint', 'interfaces': 'list[ask_smapi_model.v1.skill.manifest.interface.Interface]', - 'tasks': 'list[ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task.SkillManifestCustomTask]', - 'connections': 'ask_smapi_model.v1.skill.manifest.custom_connections.CustomConnections' + 'tasks': 'list[ask_smapi_model.v1.skill.manifest.custom_task.CustomTask]', + 'connections': 'ask_smapi_model.v1.skill.manifest.custom_connections.CustomConnections', + 'dialog_management': 'ask_smapi_model.v1.skill.manifest.dialog_management.DialogManagement', + 'app_link': 'ask_smapi_model.v1.skill.manifest.app_link.AppLink' } # type: Dict attribute_map = { + 'target_runtimes': '_targetRuntimes', + 'locales': 'locales', 'regions': 'regions', 'endpoint': 'endpoint', 'interfaces': 'interfaces', 'tasks': 'tasks', - 'connections': 'connections' + 'connections': 'connections', + 'dialog_management': 'dialogManagement', + 'app_link': 'appLink' } # type: Dict supports_multiple_types = False - def __init__(self, regions=None, endpoint=None, interfaces=None, tasks=None, connections=None): - # type: (Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[List[Interface_1e4dc7ab]], Optional[List[SkillManifestCustomTask_32519412]], Optional[CustomConnections_1f24e36]) -> None + def __init__(self, target_runtimes=None, locales=None, regions=None, endpoint=None, interfaces=None, tasks=None, connections=None, dialog_management=None, app_link=None): + # type: (Optional[List[TargetRuntime_ab65c587]], Optional[Dict[str, CustomLocalizedInformation_a617b7bd]], Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[List[Interface_1e4dc7ab]], Optional[List[CustomTask_647aa58a]], Optional[CustomConnections_1f24e36], Optional[DialogManagement_340237b8], Optional[AppLink_db0195e]) -> None """Defines the structure for custom api of the skill. + :param target_runtimes: Defines the set of target runtimes for this skill. + :type target_runtimes: (optional) list[ask_smapi_model.v1.skill.manifest.custom.target_runtime.TargetRuntime] + :param locales: Object that contains <locale> Objects for each supported locale. + :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.custom_localized_information.CustomLocalizedInformation) :param regions: Contains an array of the supported <region> Objects. :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.region.Region) :param endpoint: @@ -75,17 +99,25 @@ def __init__(self, regions=None, endpoint=None, interfaces=None, tasks=None, con :param interfaces: Defines the structure for interfaces supported by the custom api of the skill. :type interfaces: (optional) list[ask_smapi_model.v1.skill.manifest.interface.Interface] :param tasks: List of provided tasks. - :type tasks: (optional) list[ask_smapi_model.v1.skill.manifest.skill_manifest_custom_task.SkillManifestCustomTask] + :type tasks: (optional) list[ask_smapi_model.v1.skill.manifest.custom_task.CustomTask] :param connections: :type connections: (optional) ask_smapi_model.v1.skill.manifest.custom_connections.CustomConnections + :param dialog_management: + :type dialog_management: (optional) ask_smapi_model.v1.skill.manifest.dialog_management.DialogManagement + :param app_link: + :type app_link: (optional) ask_smapi_model.v1.skill.manifest.app_link.AppLink """ self.__discriminator_value = None # type: str + self.target_runtimes = target_runtimes + self.locales = locales self.regions = regions self.endpoint = endpoint self.interfaces = interfaces self.tasks = tasks self.connections = connections + self.dialog_management = dialog_management + self.app_link = app_link def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py index b6e4f14..ff4a7c4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_connections.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.connections import Connections as Connections_5364d3a3 + from ask_smapi_model.v1.skill.manifest.custom.connection import Connection as Connection_199ae82a class CustomConnections(object): @@ -32,14 +32,14 @@ class CustomConnections(object): :param requires: List of required connections. - :type requires: (optional) list[ask_smapi_model.v1.skill.manifest.connections.Connections] + :type requires: (optional) list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection] :param provides: List of provided connections. - :type provides: (optional) list[ask_smapi_model.v1.skill.manifest.connections.Connections] + :type provides: (optional) list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection] """ deserialized_types = { - 'requires': 'list[ask_smapi_model.v1.skill.manifest.connections.Connections]', - 'provides': 'list[ask_smapi_model.v1.skill.manifest.connections.Connections]' + 'requires': 'list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection]', + 'provides': 'list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection]' } # type: Dict attribute_map = { @@ -49,13 +49,13 @@ class CustomConnections(object): supports_multiple_types = False def __init__(self, requires=None, provides=None): - # type: (Optional[List[Connections_5364d3a3]], Optional[List[Connections_5364d3a3]]) -> None + # type: (Optional[List[Connection_199ae82a]], Optional[List[Connection_199ae82a]]) -> None """Supported connections. :param requires: List of required connections. - :type requires: (optional) list[ask_smapi_model.v1.skill.manifest.connections.Connections] + :type requires: (optional) list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection] :param provides: List of provided connections. - :type provides: (optional) list[ask_smapi_model.v1.skill.manifest.connections.Connections] + :type provides: (optional) list[ask_smapi_model.v1.skill.manifest.custom.connection.Connection] """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/__init__.py new file mode 100644 index 0000000..7b08cbd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .session_start_delegation_strategy import SessionStartDelegationStrategy diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/session_start_delegation_strategy.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/session_start_delegation_strategy.py new file mode 100644 index 0000000..30e2d64 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_dialog_management/session_start_delegation_strategy.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SessionStartDelegationStrategy(object): + """ + Specifies the initial dialog manager to field requests when a new skill session starts. If absent, this is assumed to be the default \"skill\" target + + + :param target: + :type target: (optional) str + + """ + deserialized_types = { + 'target': 'str' + } # type: Dict + + attribute_map = { + 'target': 'target' + } # type: Dict + supports_multiple_types = False + + def __init__(self, target=None): + # type: (Optional[str]) -> None + """Specifies the initial dialog manager to field requests when a new skill session starts. If absent, this is assumed to be the default \"skill\" target + + :param target: + :type target: (optional) str + """ + self.__discriminator_value = None # type: str + + self.target = target + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SessionStartDelegationStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information.py new file mode 100644 index 0000000..e21da92 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement as CustomLocalizedInformationDialogManagement_c0a2884d + + +class CustomLocalizedInformation(object): + """ + Defines the localized custom api information. + + + :param dialog_management: + :type dialog_management: (optional) ask_smapi_model.v1.skill.manifest.custom_localized_information_dialog_management.CustomLocalizedInformationDialogManagement + + """ + deserialized_types = { + 'dialog_management': 'ask_smapi_model.v1.skill.manifest.custom_localized_information_dialog_management.CustomLocalizedInformationDialogManagement' + } # type: Dict + + attribute_map = { + 'dialog_management': 'dialogManagement' + } # type: Dict + supports_multiple_types = False + + def __init__(self, dialog_management=None): + # type: (Optional[CustomLocalizedInformationDialogManagement_c0a2884d]) -> None + """Defines the localized custom api information. + + :param dialog_management: + :type dialog_management: (optional) ask_smapi_model.v1.skill.manifest.custom_localized_information_dialog_management.CustomLocalizedInformationDialogManagement + """ + self.__discriminator_value = None # type: str + + self.dialog_management = dialog_management + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CustomLocalizedInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information_dialog_management.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information_dialog_management.py new file mode 100644 index 0000000..0297819 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_localized_information_dialog_management.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.custom_dialog_management.session_start_delegation_strategy import SessionStartDelegationStrategy as SessionStartDelegationStrategy_b0dc02da + + +class CustomLocalizedInformationDialogManagement(object): + """ + Defines locale-specific dialog-management configuration for a skill. + + + :param session_start_delegation_strategy: + :type session_start_delegation_strategy: (optional) ask_smapi_model.v1.skill.manifest.custom_dialog_management.session_start_delegation_strategy.SessionStartDelegationStrategy + + """ + deserialized_types = { + 'session_start_delegation_strategy': 'ask_smapi_model.v1.skill.manifest.custom_dialog_management.session_start_delegation_strategy.SessionStartDelegationStrategy' + } # type: Dict + + attribute_map = { + 'session_start_delegation_strategy': 'sessionStartDelegationStrategy' + } # type: Dict + supports_multiple_types = False + + def __init__(self, session_start_delegation_strategy=None): + # type: (Optional[SessionStartDelegationStrategy_b0dc02da]) -> None + """Defines locale-specific dialog-management configuration for a skill. + + :param session_start_delegation_strategy: + :type session_start_delegation_strategy: (optional) ask_smapi_model.v1.skill.manifest.custom_dialog_management.session_start_delegation_strategy.SessionStartDelegationStrategy + """ + self.__discriminator_value = None # type: str + + self.session_start_delegation_strategy = session_start_delegation_strategy + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CustomLocalizedInformationDialogManagement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_task.py similarity index 97% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_task.py index 2022de7..16a9eed 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_custom_task.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_task.py @@ -25,7 +25,7 @@ from datetime import datetime -class SkillManifestCustomTask(object): +class CustomTask(object): """ Defines the name and version of the task that the skill wants to handle. @@ -104,7 +104,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, SkillManifestCustomTask): + if not isinstance(other, CustomTask): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/demand_response_apis.py similarity index 61% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/demand_response_apis.py index 18e7d93..e1bf85d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/demand_response_apis.py @@ -23,61 +23,52 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_protocol_version import HealthProtocolVersion as HealthProtocolVersion_55d5691 - from ask_smapi_model.v1.skill.manifest.health_interface import HealthInterface as HealthInterface_9e90f99e - from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 - from ask_smapi_model.v1.skill.manifest.region import Region as Region_10de9595 + from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as LambdaRegion_3e305f16 + from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 -class HealthApis(object): +class DemandResponseApis(object): """ - Defines the structure of health api in the skill manifest. + Defines the structure for demand response api of the skill. :param regions: Contains an array of the supported <region> Objects. - :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.region.Region) + :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.lambda_region.LambdaRegion) :param endpoint: - :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint - :param protocol_version: - :type protocol_version: (optional) ask_smapi_model.v1.skill.manifest.health_protocol_version.HealthProtocolVersion - :param interfaces: - :type interfaces: (optional) ask_smapi_model.v1.skill.manifest.health_interface.HealthInterface + :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint + :param enrollment_url: Defines the url for enrolling into a demand response program. + :type enrollment_url: (optional) str """ deserialized_types = { - 'regions': 'dict(str, ask_smapi_model.v1.skill.manifest.region.Region)', - 'endpoint': 'ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint', - 'protocol_version': 'ask_smapi_model.v1.skill.manifest.health_protocol_version.HealthProtocolVersion', - 'interfaces': 'ask_smapi_model.v1.skill.manifest.health_interface.HealthInterface' + 'regions': 'dict(str, ask_smapi_model.v1.skill.manifest.lambda_region.LambdaRegion)', + 'endpoint': 'ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint', + 'enrollment_url': 'str' } # type: Dict attribute_map = { 'regions': 'regions', 'endpoint': 'endpoint', - 'protocol_version': 'protocolVersion', - 'interfaces': 'interfaces' + 'enrollment_url': 'enrollmentUrl' } # type: Dict supports_multiple_types = False - def __init__(self, regions=None, endpoint=None, protocol_version=None, interfaces=None): - # type: (Optional[Dict[str, Region_10de9595]], Optional[SkillManifestEndpoint_b30bcc05], Optional[HealthProtocolVersion_55d5691], Optional[HealthInterface_9e90f99e]) -> None - """Defines the structure of health api in the skill manifest. + def __init__(self, regions=None, endpoint=None, enrollment_url=None): + # type: (Optional[Dict[str, LambdaRegion_3e305f16]], Optional[LambdaEndpoint_87e61436], Optional[str]) -> None + """Defines the structure for demand response api of the skill. :param regions: Contains an array of the supported <region> Objects. - :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.region.Region) + :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.lambda_region.LambdaRegion) :param endpoint: - :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint - :param protocol_version: - :type protocol_version: (optional) ask_smapi_model.v1.skill.manifest.health_protocol_version.HealthProtocolVersion - :param interfaces: - :type interfaces: (optional) ask_smapi_model.v1.skill.manifest.health_interface.HealthInterface + :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint + :param enrollment_url: Defines the url for enrolling into a demand response program. + :type enrollment_url: (optional) str """ self.__discriminator_value = None # type: str self.regions = regions self.endpoint = endpoint - self.protocol_version = protocol_version - self.interfaces = interfaces + self.enrollment_url = enrollment_url def to_dict(self): # type: () -> Dict[str, object] @@ -122,7 +113,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, HealthApis): + if not isinstance(other, DemandResponseApis): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_delegation_strategy.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_delegation_strategy.py new file mode 100644 index 0000000..8baf2cd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_delegation_strategy.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DialogDelegationStrategy(object): + """ + Specifies the initial dialog manager to field requests when a new skill session starts. If absent this is assumed to be the default \\\"skill\\\" target. + + + :param target: + :type target: (optional) str + + """ + deserialized_types = { + 'target': 'str' + } # type: Dict + + attribute_map = { + 'target': 'target' + } # type: Dict + supports_multiple_types = False + + def __init__(self, target=None): + # type: (Optional[str]) -> None + """Specifies the initial dialog manager to field requests when a new skill session starts. If absent this is assumed to be the default \\\"skill\\\" target. + + :param target: + :type target: (optional) str + """ + self.__discriminator_value = None # type: str + + self.target = target + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DialogDelegationStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_management.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_management.py new file mode 100644 index 0000000..409a613 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_management.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.dialog_manager import DialogManager as DialogManager_786013c6 + from ask_smapi_model.v1.skill.manifest.dialog_delegation_strategy import DialogDelegationStrategy as DialogDelegationStrategy_123073a5 + + +class DialogManagement(object): + """ + Defines the dialog management configuration for the skill. + + + :param dialog_managers: List of dialog managers configured by the skill + :type dialog_managers: (optional) list[ask_smapi_model.v1.skill.manifest.dialog_manager.DialogManager] + :param session_start_delegation_strategy: + :type session_start_delegation_strategy: (optional) ask_smapi_model.v1.skill.manifest.dialog_delegation_strategy.DialogDelegationStrategy + + """ + deserialized_types = { + 'dialog_managers': 'list[ask_smapi_model.v1.skill.manifest.dialog_manager.DialogManager]', + 'session_start_delegation_strategy': 'ask_smapi_model.v1.skill.manifest.dialog_delegation_strategy.DialogDelegationStrategy' + } # type: Dict + + attribute_map = { + 'dialog_managers': 'dialogManagers', + 'session_start_delegation_strategy': 'sessionStartDelegationStrategy' + } # type: Dict + supports_multiple_types = False + + def __init__(self, dialog_managers=None, session_start_delegation_strategy=None): + # type: (Optional[List[DialogManager_786013c6]], Optional[DialogDelegationStrategy_123073a5]) -> None + """Defines the dialog management configuration for the skill. + + :param dialog_managers: List of dialog managers configured by the skill + :type dialog_managers: (optional) list[ask_smapi_model.v1.skill.manifest.dialog_manager.DialogManager] + :param session_start_delegation_strategy: + :type session_start_delegation_strategy: (optional) ask_smapi_model.v1.skill.manifest.dialog_delegation_strategy.DialogDelegationStrategy + """ + self.__discriminator_value = None # type: str + + self.dialog_managers = dialog_managers + self.session_start_delegation_strategy = session_start_delegation_strategy + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DialogManagement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_manager.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_manager.py new file mode 100644 index 0000000..f41213e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/dialog_manager.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DialogManager(object): + """ + Individual dialog manager defined for the skill. + + + :param object_type: Type of DialogManager. + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | AMAZON.Conversations: :py:class:`ask_smapi_model.v1.skill.manifest.amazon_conversations_dialog_manager.AMAZONConversationsDialogManager` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'AMAZON.Conversations': 'ask_smapi_model.v1.skill.manifest.amazon_conversations_dialog_manager.AMAZONConversationsDialogManager' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """Individual dialog manager defined for the skill. + + :param object_type: Type of DialogManager. + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DialogManager): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py index be27740..fc25207 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/distribution_mode.py @@ -31,11 +31,10 @@ class DistributionMode(Enum): - Allowed enum values: [PRIVATE, PUBLIC, INTERNAL] + Allowed enum values: [PRIVATE, PUBLIC] """ PRIVATE = "PRIVATE" PUBLIC = "PUBLIC" - INTERNAL = "INTERNAL" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py index f1deee4..be23b0e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py @@ -31,238 +31,238 @@ class EventNameType(Enum): - Allowed enum values: [SKILL_ENABLED, SKILL_DISABLED, SKILL_PERMISSION_ACCEPTED, SKILL_PERMISSION_CHANGED, SKILL_ACCOUNT_LINKED, ITEMS_CREATED, ITEMS_UPDATED, ITEMS_DELETED, LIST_CREATED, LIST_UPDATED, LIST_DELETED, ALL_LISTS_CHANGED, REMINDER_STARTED, REMINDER_CREATED, REMINDER_UPDATED, REMINDER_DELETED, REMINDER_STATUS_CHANGED, AUDIO_ITEM_PLAYBACK_STARTED, AUDIO_ITEM_PLAYBACK_FINISHED, AUDIO_ITEM_PLAYBACK_STOPPED, AUDIO_ITEM_PLAYBACK_FAILED, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Legacy_ActivityManager_ActivityContextRemovedEvent, Legacy_ActivityManager_ActivityInterrupted, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_DismissCommand, Legacy_AlertsController_SnoozeCommand, Legacy_AudioPlayer_AudioStutter, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_AudioPlayer_PlaybackError, Legacy_AudioPlayer_PlaybackFinished, Legacy_AudioPlayer_PlaybackIdle, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_AudioPlayer_PlaybackPaused, Legacy_AudioPlayer_PlaybackResumed, Legacy_AudioPlayer_PlaybackStarted, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_AudioPlayer_PlaybackStutterStarted, Legacy_AudioPlayerGui_ButtonClickedEvent, Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_AuxController_DirectionChanged, Legacy_AuxController_EnabledStateChanged, Legacy_AuxController_InputActivityStateChanged, Legacy_AuxController_PluggedStateChanged, Legacy_BluetoothNetwork_CancelPairingMode, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_BluetoothNetwork_DeviceConnectedSuccess, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, Legacy_BluetoothNetwork_DevicePairFailure, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_BluetoothNetwork_DeviceUnpairFailure, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_DeviceNotification_DeleteNotificationFailed, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_DeviceNotification_NotificationEnteredBackground, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_NotificationStarted, Legacy_DeviceNotification_NotificationStopped, Legacy_DeviceNotification_NotificationSync, Legacy_DeviceNotification_SetNotificationFailed, Legacy_DeviceNotification_SetNotificationSucceeded, Legacy_EqualizerController_EqualizerChanged, Legacy_ExternalMediaPlayer_AuthorizationComplete, Legacy_ExternalMediaPlayer_Error, Legacy_ExternalMediaPlayer_Event, Legacy_ExternalMediaPlayer_Login, Legacy_ExternalMediaPlayer_Logout, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, Legacy_ExternalMediaPlayer_RequestToken, Legacy_FavoritesController_Error, Legacy_FavoritesController_Response, Legacy_GameEngine_GameInputEvent, Legacy_HomeAutoWifiController_DeviceReconnected, Legacy_HomeAutoWifiController_HttpNotified, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Legacy_HomeAutoWifiController_SsdpServiceTerminated, Legacy_ListModel_AddItemRequest, Legacy_ListModel_DeleteItemRequest, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_ListModel_GetPageByTokenRequest, Legacy_ListModel_ListStateUpdateRequest, Legacy_ListModel_UpdateItemRequest, Legacy_ListRenderer_GetListPageByOrdinal, Legacy_ListRenderer_GetListPageByToken, Legacy_ListRenderer_ListItemEvent, Legacy_MediaGrouping_GroupChangeNotificationEvent, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_MediaGrouping_GroupSyncEvent, Legacy_MediaPlayer_PlaybackError, Legacy_MediaPlayer_PlaybackFinished, Legacy_MediaPlayer_PlaybackIdle, Legacy_MediaPlayer_PlaybackNearlyFinished, Legacy_MediaPlayer_PlaybackPaused, Legacy_MediaPlayer_PlaybackResumed, Legacy_MediaPlayer_PlaybackStarted, Legacy_MediaPlayer_PlaybackStopped, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_MediaPlayer_SequenceModified, Legacy_MeetingClientController_Event, Legacy_Microphone_AudioRecording, Legacy_PhoneCallController_Event, Legacy_PlaybackController_ButtonCommand, Legacy_PlaybackController_LyricsViewedEvent, Legacy_PlaybackController_NextCommand, Legacy_PlaybackController_PauseCommand, Legacy_PlaybackController_PlayCommand, Legacy_PlaybackController_PreviousCommand, Legacy_PlaybackController_ToggleCommand, Legacy_PlaylistController_ErrorResponse, Legacy_PlaylistController_Response, Legacy_Presentation_PresentationDismissedEvent, Legacy_Presentation_PresentationUserEvent, Legacy_SconeRemoteControl_Next, Legacy_SconeRemoteControl_PlayPause, Legacy_SconeRemoteControl_Previous, Legacy_SconeRemoteControl_VolumeDown, Legacy_SconeRemoteControl_VolumeUp, Legacy_SipClient_Event, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, Legacy_Speaker_MuteChanged, Legacy_Speaker_VolumeChanged, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_SpeechSynthesizer_SpeechInterrupted, Legacy_SpeechSynthesizer_SpeechStarted, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Legacy_Spotify_Event, Legacy_System_UserInactivity, Legacy_UDPController_BroadcastResponse, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, LocalApplication_AlexaPlatformTestSpeechlet_Event, LocalApplication_AlexaVision_Event, LocalApplication_AlexaVoiceLayer_Event, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_Calendar_Event, LocalApplication_Closet_Event, LocalApplication_Communications_Event, LocalApplication_DeviceMessaging_Event, LocalApplication_DigitalDash_Event, LocalApplication_FireflyShopping_Event, LocalApplication_Gallery_Event, LocalApplication_HHOPhotos_Event, LocalApplication_HomeAutomationMedia_Event, LocalApplication_KnightContacts_Event, LocalApplication_KnightHome_Event, LocalApplication_KnightHomeThingsToTry_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_LocalVoiceUI_Event, LocalApplication_MShop_Event, LocalApplication_MShopPurchasing_Event, LocalApplication_NotificationsApp_Event, LocalApplication_Photos_Event, LocalApplication_Sentry_Event, LocalApplication_SipClient_Event, LocalApplication_SipUserAgent_Event, LocalApplication_todoRenderer_Event, LocalApplication_VideoExperienceService_Event, LocalApplication_WebVideoPlayer_Event, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Alexa_Camera_PhotoCaptureController_CaptureFailed, Alexa_Camera_PhotoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, Alexa_Camera_VideoCaptureController_CaptureFinished, Alexa_Camera_VideoCaptureController_CaptureStarted, Alexa_FileManager_UploadController_CancelUploadFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Alexa_FileManager_UploadController_UploadFailed, Alexa_FileManager_UploadController_UploadFinished, Alexa_FileManager_UploadController_UploadStarted, Alexa_Presentation_APL_LoadIndexListData, Alexa_Presentation_APL_RuntimeError, Alexa_Presentation_APL_UserEvent, Alexa_Presentation_HTML_Event, Alexa_Presentation_HTML_LifecycleStateChanged, Alexa_Presentation_PresentationDismissed, AudioPlayer_PlaybackFailed, AudioPlayer_PlaybackFinished, AudioPlayer_PlaybackNearlyFinished, AudioPlayer_PlaybackStarted, AudioPlayer_PlaybackStopped, CardRenderer_DisplayContentFinished, CardRenderer_DisplayContentStarted, CardRenderer_ReadContentFinished, CardRenderer_ReadContentStarted, CustomInterfaceController_EventsReceived, CustomInterfaceController_Expired, DeviceSetup_SetupCompleted, Display_ElementSelected, Display_UserEvent, FitnessSessionController_FitnessSessionEnded, FitnessSessionController_FitnessSessionError, FitnessSessionController_FitnessSessionPaused, FitnessSessionController_FitnessSessionResumed, FitnessSessionController_FitnessSessionStarted, GameEngine_InputHandlerEvent, Messaging_MessageReceived, MessagingController_UpdateConversationsStatus, MessagingController_UpdateMessagesStatusRequest, MessagingController_UpdateSendMessageStatusRequest, MessagingController_UploadConversations, PlaybackController_NextCommandIssued, PlaybackController_PauseCommandIssued, PlaybackController_PlayCommandIssued, PlaybackController_PreviousCommandIssued, EffectsController_RequestEffectChangeRequest, EffectsController_RequestGuiChangeRequest, EffectsController_StateReceiptChangeRequest, Alexa_Video_Xray_ShowDetailsSuccessful, Alexa_Video_Xray_ShowDetailsFailed] + Allowed enum values: [Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_ListModel_DeleteItemRequest, Legacy_MediaPlayer_SequenceModified, Legacy_PlaybackController_ButtonCommand, EffectsController_RequestEffectChangeRequest, Legacy_ExternalMediaPlayer_RequestToken, ITEMS_UPDATED, Alexa_Video_Xray_ShowDetailsSuccessful, PlaybackController_NextCommandIssued, Legacy_MediaPlayer_PlaybackFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, SKILL_DISABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, CustomInterfaceController_EventsReceived, Legacy_DeviceNotification_NotificationStarted, REMINDER_UPDATED, AUDIO_ITEM_PLAYBACK_STOPPED, Legacy_AuxController_InputActivityStateChanged, LocalApplication_MShopPurchasing_Event, Legacy_ExternalMediaPlayer_AuthorizationComplete, LocalApplication_HHOPhotos_Event, Alexa_Presentation_APL_UserEvent, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_BluetoothNetwork_DeviceUnpairFailure, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Alexa_FileManager_UploadController_UploadFailed, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_AudioPlayer_AudioStutter, Alexa_Camera_VideoCaptureController_CaptureStarted, Legacy_Speaker_MuteChanged, CardRenderer_DisplayContentFinished, Legacy_SpeechSynthesizer_SpeechStarted, AudioPlayer_PlaybackStopped, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, CardRenderer_DisplayContentStarted, LocalApplication_NotificationsApp_Event, AudioPlayer_PlaybackStarted, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_SetNotificationFailed, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_HomeAutoWifiController_HttpNotified, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, SKILL_ACCOUNT_LINKED, LIST_UPDATED, Legacy_DeviceNotification_NotificationSync, Legacy_SconeRemoteControl_VolumeDown, Legacy_MediaPlayer_PlaybackPaused, Legacy_Presentation_PresentationUserEvent, PlaybackController_PlayCommandIssued, Legacy_ListModel_UpdateItemRequest, Messaging_MessageReceived, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, AUDIO_ITEM_PLAYBACK_FAILED, LocalApplication_DeviceMessaging_Event, Alexa_Camera_PhotoCaptureController_CaptureFailed, Legacy_AudioPlayer_PlaybackIdle, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_AudioPlayer_PlaybackError, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_SpeechSynthesizer_SpeechInterrupted, PlaybackController_PreviousCommandIssued, Legacy_AudioPlayer_PlaybackFinished, Legacy_System_UserInactivity, Display_UserEvent, Legacy_PhoneCallController_Event, Legacy_DeviceNotification_SetNotificationSucceeded, LocalApplication_Photos_Event, LocalApplication_VideoExperienceService_Event, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_PlaybackController_PlayCommand, Legacy_PlaylistController_ErrorResponse, Legacy_SconeRemoteControl_VolumeUp, MessagingController_UpdateConversationsStatus, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, LocalApplication_Communications_Event, AUDIO_ITEM_PLAYBACK_STARTED, Legacy_BluetoothNetwork_DevicePairFailure, LIST_DELETED, Legacy_PlaybackController_ToggleCommand, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_MediaPlayer_PlaybackError, AudioPlayer_PlaybackFinished, Legacy_DeviceNotification_NotificationStopped, Legacy_SipClient_Event, Display_ElementSelected, LocalApplication_MShop_Event, Legacy_ListModel_AddItemRequest, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_MediaPlayer_PlaybackStopped, Legacy_AudioPlayerGui_ButtonClickedEvent, LocalApplication_AlexaVoiceLayer_Event, Legacy_PlaybackController_PreviousCommand, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_BluetoothNetwork_DeviceConnectedSuccess, LIST_CREATED, Legacy_ActivityManager_ActivityContextRemovedEvent, ALL_LISTS_CHANGED, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_MediaGrouping_GroupChangeNotificationEvent, LocalApplication_Sentry_Event, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, REMINDER_CREATED, Alexa_Presentation_HTML_Event, FitnessSessionController_FitnessSessionError, Legacy_SconeRemoteControl_Next, Alexa_Camera_VideoCaptureController_CaptureFinished, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_PlaybackController_PauseCommand, LocalApplication_AlexaVision_Event, LocalApplication_Closet_Event, Alexa_FileManager_UploadController_CancelUploadFailed, Legacy_MediaPlayer_PlaybackResumed, SKILL_PERMISSION_ACCEPTED, FitnessSessionController_FitnessSessionPaused, Legacy_AudioPlayer_PlaybackPaused, Alexa_Presentation_HTML_LifecycleStateChanged, LocalApplication_SipUserAgent_Event, Legacy_MediaPlayer_PlaybackStarted, REMINDER_STATUS_CHANGED, MessagingController_UploadConversations, ITEMS_DELETED, Legacy_AuxController_PluggedStateChanged, Legacy_AudioPlayer_PlaybackStarted, Alexa_FileManager_UploadController_UploadStarted, ITEMS_CREATED, Legacy_ExternalMediaPlayer_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_KnightContacts_Event, LocalApplication_Calendar_Event, Legacy_AlertsController_DismissCommand, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, LocalApplication_SipClient_Event, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_Speaker_VolumeChanged, CardRenderer_ReadContentFinished, LocalApplication_HomeAutomationMedia_Event, Legacy_BluetoothNetwork_CancelPairingMode, LocalApplication_DigitalDash_Event, CardRenderer_ReadContentStarted, Legacy_GameEngine_GameInputEvent, LocalApplication_LocalVoiceUI_Event, Legacy_Microphone_AudioRecording, LocalApplication_AlexaPlatformTestSpeechlet_Event, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Legacy_HomeAutoWifiController_DeviceReconnected, SKILL_ENABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, MessagingController_UpdateMessagesStatusRequest, REMINDER_STARTED, CustomInterfaceController_Expired, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_WebVideoPlayer_Event, Legacy_HomeAutoWifiController_SsdpServiceTerminated, LocalApplication_FireflyShopping_Event, Legacy_PlaybackController_NextCommand, LocalApplication_Gallery_Event, Alexa_Presentation_PresentationDismissed, EffectsController_StateReceiptChangeRequest, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, REMINDER_DELETED, GameEngine_InputHandlerEvent, Legacy_PlaylistController_Response, LocalApplication_KnightHome_Event, Legacy_ListRenderer_ListItemEvent, AudioPlayer_PlaybackFailed, LocalApplication_KnightHomeThingsToTry_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_ExternalMediaPlayer_Logout, Alexa_FileManager_UploadController_UploadFinished, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_SnoozeCommand, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_ListRenderer_GetListPageByToken, MessagingController_UpdateSendMessageStatusRequest, FitnessSessionController_FitnessSessionEnded, Alexa_Presentation_APL_RuntimeError, Legacy_ListRenderer_GetListPageByOrdinal, FitnessSessionController_FitnessSessionResumed, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Alexa_Video_Xray_ShowDetailsFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Legacy_SconeRemoteControl_PlayPause, Legacy_DeviceNotification_NotificationEnteredBackground, SKILL_PERMISSION_CHANGED, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PlaybackStutterStarted, AUDIO_ITEM_PLAYBACK_FINISHED, EffectsController_RequestGuiChangeRequest, FitnessSessionController_FitnessSessionStarted, Legacy_PlaybackController_LyricsViewedEvent, Legacy_ExternalMediaPlayer_Login, PlaybackController_PauseCommandIssued, Legacy_MediaPlayer_PlaybackIdle, Legacy_SconeRemoteControl_Previous, DeviceSetup_SetupCompleted, Legacy_MediaPlayer_PlaybackNearlyFinished, LocalApplication_todoRenderer_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Alexa_Presentation_APL_LoadIndexListData, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_AuxController_EnabledStateChanged, Legacy_FavoritesController_Response, Legacy_ListModel_ListStateUpdateRequest, Legacy_EqualizerController_EqualizerChanged, Legacy_MediaGrouping_GroupSyncEvent, Legacy_FavoritesController_Error, Legacy_ListModel_GetPageByTokenRequest, Legacy_ActivityManager_ActivityInterrupted, Legacy_MeetingClientController_Event, Legacy_Presentation_PresentationDismissedEvent, Legacy_Spotify_Event, Legacy_ExternalMediaPlayer_Error, Legacy_AuxController_DirectionChanged, AudioPlayer_PlaybackNearlyFinished, Alexa_Camera_PhotoCaptureController_CaptureFinished, Legacy_UDPController_BroadcastResponse, Legacy_AudioPlayer_PlaybackResumed, Legacy_DeviceNotification_DeleteNotificationFailed] """ - SKILL_ENABLED = "SKILL_ENABLED" - SKILL_DISABLED = "SKILL_DISABLED" - SKILL_PERMISSION_ACCEPTED = "SKILL_PERMISSION_ACCEPTED" - SKILL_PERMISSION_CHANGED = "SKILL_PERMISSION_CHANGED" - SKILL_ACCOUNT_LINKED = "SKILL_ACCOUNT_LINKED" - ITEMS_CREATED = "ITEMS_CREATED" + Legacy_AudioPlayerGui_LyricsViewedEvent = "Legacy.AudioPlayerGui.LyricsViewedEvent" + Legacy_ListModel_DeleteItemRequest = "Legacy.ListModel.DeleteItemRequest" + Legacy_MediaPlayer_SequenceModified = "Legacy.MediaPlayer.SequenceModified" + Legacy_PlaybackController_ButtonCommand = "Legacy.PlaybackController.ButtonCommand" + EffectsController_RequestEffectChangeRequest = "EffectsController.RequestEffectChangeRequest" + Legacy_ExternalMediaPlayer_RequestToken = "Legacy.ExternalMediaPlayer.RequestToken" ITEMS_UPDATED = "ITEMS_UPDATED" - ITEMS_DELETED = "ITEMS_DELETED" - LIST_CREATED = "LIST_CREATED" - LIST_UPDATED = "LIST_UPDATED" - LIST_DELETED = "LIST_DELETED" - ALL_LISTS_CHANGED = "ALL_LISTS_CHANGED" - REMINDER_STARTED = "REMINDER_STARTED" - REMINDER_CREATED = "REMINDER_CREATED" + Alexa_Video_Xray_ShowDetailsSuccessful = "Alexa.Video.Xray.ShowDetailsSuccessful" + PlaybackController_NextCommandIssued = "PlaybackController.NextCommandIssued" + Legacy_MediaPlayer_PlaybackFinished = "Legacy.MediaPlayer.PlaybackFinished" + Alexa_Camera_VideoCaptureController_CaptureFailed = "Alexa.Camera.VideoCaptureController.CaptureFailed" + SKILL_DISABLED = "SKILL_DISABLED" + Alexa_Camera_VideoCaptureController_CancelCaptureFailed = "Alexa.Camera.VideoCaptureController.CancelCaptureFailed" + CustomInterfaceController_EventsReceived = "CustomInterfaceController.EventsReceived" + Legacy_DeviceNotification_NotificationStarted = "Legacy.DeviceNotification.NotificationStarted" REMINDER_UPDATED = "REMINDER_UPDATED" - REMINDER_DELETED = "REMINDER_DELETED" - REMINDER_STATUS_CHANGED = "REMINDER_STATUS_CHANGED" - AUDIO_ITEM_PLAYBACK_STARTED = "AUDIO_ITEM_PLAYBACK_STARTED" - AUDIO_ITEM_PLAYBACK_FINISHED = "AUDIO_ITEM_PLAYBACK_FINISHED" AUDIO_ITEM_PLAYBACK_STOPPED = "AUDIO_ITEM_PLAYBACK_STOPPED" - AUDIO_ITEM_PLAYBACK_FAILED = "AUDIO_ITEM_PLAYBACK_FAILED" - SKILL_PROACTIVE_SUBSCRIPTION_CHANGED = "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED" - IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED = "IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED" - IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED = "IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED" + Legacy_AuxController_InputActivityStateChanged = "Legacy.AuxController.InputActivityStateChanged" + LocalApplication_MShopPurchasing_Event = "LocalApplication.MShopPurchasing.Event" + Legacy_ExternalMediaPlayer_AuthorizationComplete = "Legacy.ExternalMediaPlayer.AuthorizationComplete" + LocalApplication_HHOPhotos_Event = "LocalApplication.HHOPhotos.Event" + Alexa_Presentation_APL_UserEvent = "Alexa.Presentation.APL.UserEvent" + Legacy_AudioPlayer_PlaybackInterrupted = "Legacy.AudioPlayer.PlaybackInterrupted" + Legacy_BluetoothNetwork_DeviceUnpairFailure = "Legacy.BluetoothNetwork.DeviceUnpairFailure" IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED = "IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED" - Legacy_ActivityManager_ActivityContextRemovedEvent = "Legacy.ActivityManager.ActivityContextRemovedEvent" - Legacy_ActivityManager_ActivityInterrupted = "Legacy.ActivityManager.ActivityInterrupted" - Legacy_ActivityManager_FocusChanged = "Legacy.ActivityManager.FocusChanged" - Legacy_AlertsController_DismissCommand = "Legacy.AlertsController.DismissCommand" - Legacy_AlertsController_SnoozeCommand = "Legacy.AlertsController.SnoozeCommand" + Alexa_FileManager_UploadController_UploadFailed = "Alexa.FileManager.UploadController.UploadFailed" + Legacy_BluetoothNetwork_DeviceConnectedFailure = "Legacy.BluetoothNetwork.DeviceConnectedFailure" Legacy_AudioPlayer_AudioStutter = "Legacy.AudioPlayer.AudioStutter" - Legacy_AudioPlayer_InitialPlaybackProgressReport = "Legacy.AudioPlayer.InitialPlaybackProgressReport" - Legacy_AudioPlayer_Metadata = "Legacy.AudioPlayer.Metadata" + Alexa_Camera_VideoCaptureController_CaptureStarted = "Alexa.Camera.VideoCaptureController.CaptureStarted" + Legacy_Speaker_MuteChanged = "Legacy.Speaker.MuteChanged" + CardRenderer_DisplayContentFinished = "CardRenderer.DisplayContentFinished" + Legacy_SpeechSynthesizer_SpeechStarted = "Legacy.SpeechSynthesizer.SpeechStarted" + AudioPlayer_PlaybackStopped = "AudioPlayer.PlaybackStopped" + Legacy_SoftwareUpdate_CheckSoftwareUpdateReport = "Legacy.SoftwareUpdate.CheckSoftwareUpdateReport" + CardRenderer_DisplayContentStarted = "CardRenderer.DisplayContentStarted" + LocalApplication_NotificationsApp_Event = "LocalApplication.NotificationsApp.Event" + AudioPlayer_PlaybackStarted = "AudioPlayer.PlaybackStarted" + Legacy_DeviceNotification_NotificationEnteredForground = "Legacy.DeviceNotification.NotificationEnteredForground" + Legacy_DeviceNotification_SetNotificationFailed = "Legacy.DeviceNotification.SetNotificationFailed" Legacy_AudioPlayer_PeriodicPlaybackProgressReport = "Legacy.AudioPlayer.PeriodicPlaybackProgressReport" - Legacy_AudioPlayer_PlaybackError = "Legacy.AudioPlayer.PlaybackError" - Legacy_AudioPlayer_PlaybackFinished = "Legacy.AudioPlayer.PlaybackFinished" + Legacy_HomeAutoWifiController_HttpNotified = "Legacy.HomeAutoWifiController.HttpNotified" + Alexa_Camera_PhotoCaptureController_CancelCaptureFailed = "Alexa.Camera.PhotoCaptureController.CancelCaptureFailed" + SKILL_ACCOUNT_LINKED = "SKILL_ACCOUNT_LINKED" + LIST_UPDATED = "LIST_UPDATED" + Legacy_DeviceNotification_NotificationSync = "Legacy.DeviceNotification.NotificationSync" + Legacy_SconeRemoteControl_VolumeDown = "Legacy.SconeRemoteControl.VolumeDown" + Legacy_MediaPlayer_PlaybackPaused = "Legacy.MediaPlayer.PlaybackPaused" + Legacy_Presentation_PresentationUserEvent = "Legacy.Presentation.PresentationUserEvent" + PlaybackController_PlayCommandIssued = "PlaybackController.PlayCommandIssued" + Legacy_ListModel_UpdateItemRequest = "Legacy.ListModel.UpdateItemRequest" + Messaging_MessageReceived = "Messaging.MessageReceived" + Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport = "Legacy.SoftwareUpdate.InitiateSoftwareUpdateReport" + AUDIO_ITEM_PLAYBACK_FAILED = "AUDIO_ITEM_PLAYBACK_FAILED" + LocalApplication_DeviceMessaging_Event = "LocalApplication.DeviceMessaging.Event" + Alexa_Camera_PhotoCaptureController_CaptureFailed = "Alexa.Camera.PhotoCaptureController.CaptureFailed" Legacy_AudioPlayer_PlaybackIdle = "Legacy.AudioPlayer.PlaybackIdle" - Legacy_AudioPlayer_PlaybackInterrupted = "Legacy.AudioPlayer.PlaybackInterrupted" - Legacy_AudioPlayer_PlaybackNearlyFinished = "Legacy.AudioPlayer.PlaybackNearlyFinished" - Legacy_AudioPlayer_PlaybackPaused = "Legacy.AudioPlayer.PlaybackPaused" - Legacy_AudioPlayer_PlaybackResumed = "Legacy.AudioPlayer.PlaybackResumed" - Legacy_AudioPlayer_PlaybackStarted = "Legacy.AudioPlayer.PlaybackStarted" - Legacy_AudioPlayer_PlaybackStutterFinished = "Legacy.AudioPlayer.PlaybackStutterFinished" - Legacy_AudioPlayer_PlaybackStutterStarted = "Legacy.AudioPlayer.PlaybackStutterStarted" - Legacy_AudioPlayerGui_ButtonClickedEvent = "Legacy.AudioPlayerGui.ButtonClickedEvent" - Legacy_AudioPlayerGui_LyricsViewedEvent = "Legacy.AudioPlayerGui.LyricsViewedEvent" - Legacy_AuxController_DirectionChanged = "Legacy.AuxController.DirectionChanged" - Legacy_AuxController_EnabledStateChanged = "Legacy.AuxController.EnabledStateChanged" - Legacy_AuxController_InputActivityStateChanged = "Legacy.AuxController.InputActivityStateChanged" - Legacy_AuxController_PluggedStateChanged = "Legacy.AuxController.PluggedStateChanged" - Legacy_BluetoothNetwork_CancelPairingMode = "Legacy.BluetoothNetwork.CancelPairingMode" - Legacy_BluetoothNetwork_DeviceConnectedFailure = "Legacy.BluetoothNetwork.DeviceConnectedFailure" - Legacy_BluetoothNetwork_DeviceConnectedSuccess = "Legacy.BluetoothNetwork.DeviceConnectedSuccess" + Legacy_BluetoothNetwork_EnterPairingModeSuccess = "Legacy.BluetoothNetwork.EnterPairingModeSuccess" + Legacy_AudioPlayer_PlaybackError = "Legacy.AudioPlayer.PlaybackError" + Legacy_ListModel_GetPageByOrdinalRequest = "Legacy.ListModel.GetPageByOrdinalRequest" + Legacy_MediaGrouping_GroupChangeResponseEvent = "Legacy.MediaGrouping.GroupChangeResponseEvent" Legacy_BluetoothNetwork_DeviceDisconnectedFailure = "Legacy.BluetoothNetwork.DeviceDisconnectedFailure" + Legacy_BluetoothNetwork_EnterPairingModeFailure = "Legacy.BluetoothNetwork.EnterPairingModeFailure" + Legacy_SpeechSynthesizer_SpeechInterrupted = "Legacy.SpeechSynthesizer.SpeechInterrupted" + PlaybackController_PreviousCommandIssued = "PlaybackController.PreviousCommandIssued" + Legacy_AudioPlayer_PlaybackFinished = "Legacy.AudioPlayer.PlaybackFinished" + Legacy_System_UserInactivity = "Legacy.System.UserInactivity" + Display_UserEvent = "Display.UserEvent" + Legacy_PhoneCallController_Event = "Legacy.PhoneCallController.Event" + Legacy_DeviceNotification_SetNotificationSucceeded = "Legacy.DeviceNotification.SetNotificationSucceeded" + LocalApplication_Photos_Event = "LocalApplication.Photos.Event" + LocalApplication_VideoExperienceService_Event = "LocalApplication.VideoExperienceService.Event" + Legacy_ContentManager_ContentPlaybackTerminated = "Legacy.ContentManager.ContentPlaybackTerminated" + Legacy_PlaybackController_PlayCommand = "Legacy.PlaybackController.PlayCommand" + Legacy_PlaylistController_ErrorResponse = "Legacy.PlaylistController.ErrorResponse" + Legacy_SconeRemoteControl_VolumeUp = "Legacy.SconeRemoteControl.VolumeUp" + MessagingController_UpdateConversationsStatus = "MessagingController.UpdateConversationsStatus" Legacy_BluetoothNetwork_DeviceDisconnectedSuccess = "Legacy.BluetoothNetwork.DeviceDisconnectedSuccess" + LocalApplication_Communications_Event = "LocalApplication.Communications.Event" + AUDIO_ITEM_PLAYBACK_STARTED = "AUDIO_ITEM_PLAYBACK_STARTED" Legacy_BluetoothNetwork_DevicePairFailure = "Legacy.BluetoothNetwork.DevicePairFailure" + LIST_DELETED = "LIST_DELETED" + Legacy_PlaybackController_ToggleCommand = "Legacy.PlaybackController.ToggleCommand" Legacy_BluetoothNetwork_DevicePairSuccess = "Legacy.BluetoothNetwork.DevicePairSuccess" - Legacy_BluetoothNetwork_DeviceUnpairFailure = "Legacy.BluetoothNetwork.DeviceUnpairFailure" - Legacy_BluetoothNetwork_DeviceUnpairSuccess = "Legacy.BluetoothNetwork.DeviceUnpairSuccess" - Legacy_BluetoothNetwork_EnterPairingModeFailure = "Legacy.BluetoothNetwork.EnterPairingModeFailure" - Legacy_BluetoothNetwork_EnterPairingModeSuccess = "Legacy.BluetoothNetwork.EnterPairingModeSuccess" - Legacy_BluetoothNetwork_MediaControlFailure = "Legacy.BluetoothNetwork.MediaControlFailure" - Legacy_BluetoothNetwork_MediaControlSuccess = "Legacy.BluetoothNetwork.MediaControlSuccess" - Legacy_BluetoothNetwork_ScanDevicesReport = "Legacy.BluetoothNetwork.ScanDevicesReport" - Legacy_BluetoothNetwork_SetDeviceCategoriesFailed = "Legacy.BluetoothNetwork.SetDeviceCategoriesFailed" - Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded = "Legacy.BluetoothNetwork.SetDeviceCategoriesSucceeded" - Legacy_ContentManager_ContentPlaybackTerminated = "Legacy.ContentManager.ContentPlaybackTerminated" - Legacy_DeviceNotification_DeleteNotificationFailed = "Legacy.DeviceNotification.DeleteNotificationFailed" - Legacy_DeviceNotification_DeleteNotificationSucceeded = "Legacy.DeviceNotification.DeleteNotificationSucceeded" - Legacy_DeviceNotification_NotificationEnteredBackground = "Legacy.DeviceNotification.NotificationEnteredBackground" - Legacy_DeviceNotification_NotificationEnteredForground = "Legacy.DeviceNotification.NotificationEnteredForground" - Legacy_DeviceNotification_NotificationStarted = "Legacy.DeviceNotification.NotificationStarted" + Legacy_MediaPlayer_PlaybackError = "Legacy.MediaPlayer.PlaybackError" + AudioPlayer_PlaybackFinished = "AudioPlayer.PlaybackFinished" Legacy_DeviceNotification_NotificationStopped = "Legacy.DeviceNotification.NotificationStopped" - Legacy_DeviceNotification_NotificationSync = "Legacy.DeviceNotification.NotificationSync" - Legacy_DeviceNotification_SetNotificationFailed = "Legacy.DeviceNotification.SetNotificationFailed" - Legacy_DeviceNotification_SetNotificationSucceeded = "Legacy.DeviceNotification.SetNotificationSucceeded" - Legacy_EqualizerController_EqualizerChanged = "Legacy.EqualizerController.EqualizerChanged" - Legacy_ExternalMediaPlayer_AuthorizationComplete = "Legacy.ExternalMediaPlayer.AuthorizationComplete" - Legacy_ExternalMediaPlayer_Error = "Legacy.ExternalMediaPlayer.Error" - Legacy_ExternalMediaPlayer_Event = "Legacy.ExternalMediaPlayer.Event" - Legacy_ExternalMediaPlayer_Login = "Legacy.ExternalMediaPlayer.Login" - Legacy_ExternalMediaPlayer_Logout = "Legacy.ExternalMediaPlayer.Logout" - Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers = "Legacy.ExternalMediaPlayer.ReportDiscoveredPlayers" - Legacy_ExternalMediaPlayer_RequestToken = "Legacy.ExternalMediaPlayer.RequestToken" - Legacy_FavoritesController_Error = "Legacy.FavoritesController.Error" - Legacy_FavoritesController_Response = "Legacy.FavoritesController.Response" - Legacy_GameEngine_GameInputEvent = "Legacy.GameEngine.GameInputEvent" - Legacy_HomeAutoWifiController_DeviceReconnected = "Legacy.HomeAutoWifiController.DeviceReconnected" - Legacy_HomeAutoWifiController_HttpNotified = "Legacy.HomeAutoWifiController.HttpNotified" - Legacy_HomeAutoWifiController_SsdpDiscoveryFinished = "Legacy.HomeAutoWifiController.SsdpDiscoveryFinished" - Legacy_HomeAutoWifiController_SsdpServiceDiscovered = "Legacy.HomeAutoWifiController.SsdpServiceDiscovered" - Legacy_HomeAutoWifiController_SsdpServiceTerminated = "Legacy.HomeAutoWifiController.SsdpServiceTerminated" + Legacy_SipClient_Event = "Legacy.SipClient.Event" + Display_ElementSelected = "Display.ElementSelected" + LocalApplication_MShop_Event = "LocalApplication.MShop.Event" Legacy_ListModel_AddItemRequest = "Legacy.ListModel.AddItemRequest" - Legacy_ListModel_DeleteItemRequest = "Legacy.ListModel.DeleteItemRequest" - Legacy_ListModel_GetPageByOrdinalRequest = "Legacy.ListModel.GetPageByOrdinalRequest" - Legacy_ListModel_GetPageByTokenRequest = "Legacy.ListModel.GetPageByTokenRequest" - Legacy_ListModel_ListStateUpdateRequest = "Legacy.ListModel.ListStateUpdateRequest" - Legacy_ListModel_UpdateItemRequest = "Legacy.ListModel.UpdateItemRequest" - Legacy_ListRenderer_GetListPageByOrdinal = "Legacy.ListRenderer.GetListPageByOrdinal" - Legacy_ListRenderer_GetListPageByToken = "Legacy.ListRenderer.GetListPageByToken" - Legacy_ListRenderer_ListItemEvent = "Legacy.ListRenderer.ListItemEvent" - Legacy_MediaGrouping_GroupChangeNotificationEvent = "Legacy.MediaGrouping.GroupChangeNotificationEvent" - Legacy_MediaGrouping_GroupChangeResponseEvent = "Legacy.MediaGrouping.GroupChangeResponseEvent" - Legacy_MediaGrouping_GroupSyncEvent = "Legacy.MediaGrouping.GroupSyncEvent" - Legacy_MediaPlayer_PlaybackError = "Legacy.MediaPlayer.PlaybackError" - Legacy_MediaPlayer_PlaybackFinished = "Legacy.MediaPlayer.PlaybackFinished" - Legacy_MediaPlayer_PlaybackIdle = "Legacy.MediaPlayer.PlaybackIdle" - Legacy_MediaPlayer_PlaybackNearlyFinished = "Legacy.MediaPlayer.PlaybackNearlyFinished" - Legacy_MediaPlayer_PlaybackPaused = "Legacy.MediaPlayer.PlaybackPaused" - Legacy_MediaPlayer_PlaybackResumed = "Legacy.MediaPlayer.PlaybackResumed" - Legacy_MediaPlayer_PlaybackStarted = "Legacy.MediaPlayer.PlaybackStarted" + Legacy_BluetoothNetwork_ScanDevicesReport = "Legacy.BluetoothNetwork.ScanDevicesReport" Legacy_MediaPlayer_PlaybackStopped = "Legacy.MediaPlayer.PlaybackStopped" - Legacy_MediaPlayer_SequenceItemsRequested = "Legacy.MediaPlayer.SequenceItemsRequested" - Legacy_MediaPlayer_SequenceModified = "Legacy.MediaPlayer.SequenceModified" - Legacy_MeetingClientController_Event = "Legacy.MeetingClientController.Event" - Legacy_Microphone_AudioRecording = "Legacy.Microphone.AudioRecording" - Legacy_PhoneCallController_Event = "Legacy.PhoneCallController.Event" - Legacy_PlaybackController_ButtonCommand = "Legacy.PlaybackController.ButtonCommand" - Legacy_PlaybackController_LyricsViewedEvent = "Legacy.PlaybackController.LyricsViewedEvent" - Legacy_PlaybackController_NextCommand = "Legacy.PlaybackController.NextCommand" - Legacy_PlaybackController_PauseCommand = "Legacy.PlaybackController.PauseCommand" - Legacy_PlaybackController_PlayCommand = "Legacy.PlaybackController.PlayCommand" + Legacy_AudioPlayerGui_ButtonClickedEvent = "Legacy.AudioPlayerGui.ButtonClickedEvent" + LocalApplication_AlexaVoiceLayer_Event = "LocalApplication.AlexaVoiceLayer.Event" Legacy_PlaybackController_PreviousCommand = "Legacy.PlaybackController.PreviousCommand" - Legacy_PlaybackController_ToggleCommand = "Legacy.PlaybackController.ToggleCommand" - Legacy_PlaylistController_ErrorResponse = "Legacy.PlaylistController.ErrorResponse" - Legacy_PlaylistController_Response = "Legacy.PlaylistController.Response" - Legacy_Presentation_PresentationDismissedEvent = "Legacy.Presentation.PresentationDismissedEvent" - Legacy_Presentation_PresentationUserEvent = "Legacy.Presentation.PresentationUserEvent" + Legacy_AudioPlayer_InitialPlaybackProgressReport = "Legacy.AudioPlayer.InitialPlaybackProgressReport" + Legacy_BluetoothNetwork_DeviceConnectedSuccess = "Legacy.BluetoothNetwork.DeviceConnectedSuccess" + LIST_CREATED = "LIST_CREATED" + Legacy_ActivityManager_ActivityContextRemovedEvent = "Legacy.ActivityManager.ActivityContextRemovedEvent" + ALL_LISTS_CHANGED = "ALL_LISTS_CHANGED" + Legacy_AudioPlayer_PlaybackNearlyFinished = "Legacy.AudioPlayer.PlaybackNearlyFinished" + Legacy_MediaGrouping_GroupChangeNotificationEvent = "Legacy.MediaGrouping.GroupChangeNotificationEvent" + LocalApplication_Sentry_Event = "LocalApplication.Sentry.Event" + SKILL_PROACTIVE_SUBSCRIPTION_CHANGED = "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED" + REMINDER_CREATED = "REMINDER_CREATED" + Alexa_Presentation_HTML_Event = "Alexa.Presentation.HTML.Event" + FitnessSessionController_FitnessSessionError = "FitnessSessionController.FitnessSessionError" Legacy_SconeRemoteControl_Next = "Legacy.SconeRemoteControl.Next" - Legacy_SconeRemoteControl_PlayPause = "Legacy.SconeRemoteControl.PlayPause" - Legacy_SconeRemoteControl_Previous = "Legacy.SconeRemoteControl.Previous" - Legacy_SconeRemoteControl_VolumeDown = "Legacy.SconeRemoteControl.VolumeDown" - Legacy_SconeRemoteControl_VolumeUp = "Legacy.SconeRemoteControl.VolumeUp" - Legacy_SipClient_Event = "Legacy.SipClient.Event" - Legacy_SoftwareUpdate_CheckSoftwareUpdateReport = "Legacy.SoftwareUpdate.CheckSoftwareUpdateReport" - Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport = "Legacy.SoftwareUpdate.InitiateSoftwareUpdateReport" - Legacy_Speaker_MuteChanged = "Legacy.Speaker.MuteChanged" - Legacy_Speaker_VolumeChanged = "Legacy.Speaker.VolumeChanged" - Legacy_SpeechRecognizer_WakeWordChanged = "Legacy.SpeechRecognizer.WakeWordChanged" - Legacy_SpeechSynthesizer_SpeechFinished = "Legacy.SpeechSynthesizer.SpeechFinished" - Legacy_SpeechSynthesizer_SpeechInterrupted = "Legacy.SpeechSynthesizer.SpeechInterrupted" - Legacy_SpeechSynthesizer_SpeechStarted = "Legacy.SpeechSynthesizer.SpeechStarted" - Legacy_SpeechSynthesizer_SpeechSynthesizerError = "Legacy.SpeechSynthesizer.SpeechSynthesizerError" - Legacy_Spotify_Event = "Legacy.Spotify.Event" - Legacy_System_UserInactivity = "Legacy.System.UserInactivity" - Legacy_UDPController_BroadcastResponse = "Legacy.UDPController.BroadcastResponse" - LocalApplication_Alexa_Translation_LiveTranslation_Event = "LocalApplication.Alexa.Translation.LiveTranslation.Event" - LocalApplication_AlexaNotifications_Event = "LocalApplication.AlexaNotifications.Event" - LocalApplication_AlexaPlatformTestSpeechlet_Event = "LocalApplication.AlexaPlatformTestSpeechlet.Event" + Alexa_Camera_VideoCaptureController_CaptureFinished = "Alexa.Camera.VideoCaptureController.CaptureFinished" + Legacy_MediaPlayer_SequenceItemsRequested = "Legacy.MediaPlayer.SequenceItemsRequested" + Legacy_PlaybackController_PauseCommand = "Legacy.PlaybackController.PauseCommand" LocalApplication_AlexaVision_Event = "LocalApplication.AlexaVision.Event" - LocalApplication_AlexaVoiceLayer_Event = "LocalApplication.AlexaVoiceLayer.Event" - LocalApplication_AvaPhysicalShopping_Event = "LocalApplication.AvaPhysicalShopping.Event" - LocalApplication_Calendar_Event = "LocalApplication.Calendar.Event" LocalApplication_Closet_Event = "LocalApplication.Closet.Event" - LocalApplication_Communications_Event = "LocalApplication.Communications.Event" - LocalApplication_DeviceMessaging_Event = "LocalApplication.DeviceMessaging.Event" - LocalApplication_DigitalDash_Event = "LocalApplication.DigitalDash.Event" - LocalApplication_FireflyShopping_Event = "LocalApplication.FireflyShopping.Event" - LocalApplication_Gallery_Event = "LocalApplication.Gallery.Event" - LocalApplication_HHOPhotos_Event = "LocalApplication.HHOPhotos.Event" - LocalApplication_HomeAutomationMedia_Event = "LocalApplication.HomeAutomationMedia.Event" - LocalApplication_KnightContacts_Event = "LocalApplication.KnightContacts.Event" - LocalApplication_KnightHome_Event = "LocalApplication.KnightHome.Event" - LocalApplication_KnightHomeThingsToTry_Event = "LocalApplication.KnightHomeThingsToTry.Event" + Alexa_FileManager_UploadController_CancelUploadFailed = "Alexa.FileManager.UploadController.CancelUploadFailed" + Legacy_MediaPlayer_PlaybackResumed = "Legacy.MediaPlayer.PlaybackResumed" + SKILL_PERMISSION_ACCEPTED = "SKILL_PERMISSION_ACCEPTED" + FitnessSessionController_FitnessSessionPaused = "FitnessSessionController.FitnessSessionPaused" + Legacy_AudioPlayer_PlaybackPaused = "Legacy.AudioPlayer.PlaybackPaused" + Alexa_Presentation_HTML_LifecycleStateChanged = "Alexa.Presentation.HTML.LifecycleStateChanged" + LocalApplication_SipUserAgent_Event = "LocalApplication.SipUserAgent.Event" + Legacy_MediaPlayer_PlaybackStarted = "Legacy.MediaPlayer.PlaybackStarted" + REMINDER_STATUS_CHANGED = "REMINDER_STATUS_CHANGED" + MessagingController_UploadConversations = "MessagingController.UploadConversations" + ITEMS_DELETED = "ITEMS_DELETED" + Legacy_AuxController_PluggedStateChanged = "Legacy.AuxController.PluggedStateChanged" + Legacy_AudioPlayer_PlaybackStarted = "Legacy.AudioPlayer.PlaybackStarted" + Alexa_FileManager_UploadController_UploadStarted = "Alexa.FileManager.UploadController.UploadStarted" + ITEMS_CREATED = "ITEMS_CREATED" + Legacy_ExternalMediaPlayer_Event = "Legacy.ExternalMediaPlayer.Event" LocalApplication_LocalMediaPlayer_Event = "LocalApplication.LocalMediaPlayer.Event" - LocalApplication_LocalVoiceUI_Event = "LocalApplication.LocalVoiceUI.Event" - LocalApplication_MShop_Event = "LocalApplication.MShop.Event" - LocalApplication_MShopPurchasing_Event = "LocalApplication.MShopPurchasing.Event" - LocalApplication_NotificationsApp_Event = "LocalApplication.NotificationsApp.Event" - LocalApplication_Photos_Event = "LocalApplication.Photos.Event" - LocalApplication_Sentry_Event = "LocalApplication.Sentry.Event" + LocalApplication_KnightContacts_Event = "LocalApplication.KnightContacts.Event" + LocalApplication_Calendar_Event = "LocalApplication.Calendar.Event" + Legacy_AlertsController_DismissCommand = "Legacy.AlertsController.DismissCommand" + Legacy_AudioPlayer_PlaybackStutterFinished = "Legacy.AudioPlayer.PlaybackStutterFinished" + Legacy_SpeechSynthesizer_SpeechFinished = "Legacy.SpeechSynthesizer.SpeechFinished" + Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers = "Legacy.ExternalMediaPlayer.ReportDiscoveredPlayers" LocalApplication_SipClient_Event = "LocalApplication.SipClient.Event" - LocalApplication_SipUserAgent_Event = "LocalApplication.SipUserAgent.Event" - LocalApplication_todoRenderer_Event = "LocalApplication.todoRenderer.Event" - LocalApplication_VideoExperienceService_Event = "LocalApplication.VideoExperienceService.Event" - LocalApplication_WebVideoPlayer_Event = "LocalApplication.WebVideoPlayer.Event" - Alexa_Camera_PhotoCaptureController_CancelCaptureFailed = "Alexa.Camera.PhotoCaptureController.CancelCaptureFailed" + Legacy_BluetoothNetwork_DeviceUnpairSuccess = "Legacy.BluetoothNetwork.DeviceUnpairSuccess" + Legacy_Speaker_VolumeChanged = "Legacy.Speaker.VolumeChanged" + CardRenderer_ReadContentFinished = "CardRenderer.ReadContentFinished" + LocalApplication_HomeAutomationMedia_Event = "LocalApplication.HomeAutomationMedia.Event" + Legacy_BluetoothNetwork_CancelPairingMode = "Legacy.BluetoothNetwork.CancelPairingMode" + LocalApplication_DigitalDash_Event = "LocalApplication.DigitalDash.Event" + CardRenderer_ReadContentStarted = "CardRenderer.ReadContentStarted" + Legacy_GameEngine_GameInputEvent = "Legacy.GameEngine.GameInputEvent" + LocalApplication_LocalVoiceUI_Event = "LocalApplication.LocalVoiceUI.Event" + Legacy_Microphone_AudioRecording = "Legacy.Microphone.AudioRecording" + LocalApplication_AlexaPlatformTestSpeechlet_Event = "LocalApplication.AlexaPlatformTestSpeechlet.Event" + Legacy_HomeAutoWifiController_SsdpServiceDiscovered = "Legacy.HomeAutoWifiController.SsdpServiceDiscovered" Alexa_Camera_PhotoCaptureController_CancelCaptureFinished = "Alexa.Camera.PhotoCaptureController.CancelCaptureFinished" - Alexa_Camera_PhotoCaptureController_CaptureFailed = "Alexa.Camera.PhotoCaptureController.CaptureFailed" - Alexa_Camera_PhotoCaptureController_CaptureFinished = "Alexa.Camera.PhotoCaptureController.CaptureFinished" - Alexa_Camera_VideoCaptureController_CancelCaptureFailed = "Alexa.Camera.VideoCaptureController.CancelCaptureFailed" + Legacy_HomeAutoWifiController_DeviceReconnected = "Legacy.HomeAutoWifiController.DeviceReconnected" + SKILL_ENABLED = "SKILL_ENABLED" Alexa_Camera_VideoCaptureController_CancelCaptureFinished = "Alexa.Camera.VideoCaptureController.CancelCaptureFinished" - Alexa_Camera_VideoCaptureController_CaptureFailed = "Alexa.Camera.VideoCaptureController.CaptureFailed" - Alexa_Camera_VideoCaptureController_CaptureFinished = "Alexa.Camera.VideoCaptureController.CaptureFinished" - Alexa_Camera_VideoCaptureController_CaptureStarted = "Alexa.Camera.VideoCaptureController.CaptureStarted" - Alexa_FileManager_UploadController_CancelUploadFailed = "Alexa.FileManager.UploadController.CancelUploadFailed" - Alexa_FileManager_UploadController_CancelUploadFinished = "Alexa.FileManager.UploadController.CancelUploadFinished" - Alexa_FileManager_UploadController_UploadFailed = "Alexa.FileManager.UploadController.UploadFailed" - Alexa_FileManager_UploadController_UploadFinished = "Alexa.FileManager.UploadController.UploadFinished" - Alexa_FileManager_UploadController_UploadStarted = "Alexa.FileManager.UploadController.UploadStarted" - Alexa_Presentation_APL_LoadIndexListData = "Alexa.Presentation.APL.LoadIndexListData" - Alexa_Presentation_APL_RuntimeError = "Alexa.Presentation.APL.RuntimeError" - Alexa_Presentation_APL_UserEvent = "Alexa.Presentation.APL.UserEvent" - Alexa_Presentation_HTML_Event = "Alexa.Presentation.HTML.Event" - Alexa_Presentation_HTML_LifecycleStateChanged = "Alexa.Presentation.HTML.LifecycleStateChanged" + MessagingController_UpdateMessagesStatusRequest = "MessagingController.UpdateMessagesStatusRequest" + REMINDER_STARTED = "REMINDER_STARTED" + CustomInterfaceController_Expired = "CustomInterfaceController.Expired" + LocalApplication_AvaPhysicalShopping_Event = "LocalApplication.AvaPhysicalShopping.Event" + LocalApplication_WebVideoPlayer_Event = "LocalApplication.WebVideoPlayer.Event" + Legacy_HomeAutoWifiController_SsdpServiceTerminated = "Legacy.HomeAutoWifiController.SsdpServiceTerminated" + LocalApplication_FireflyShopping_Event = "LocalApplication.FireflyShopping.Event" + Legacy_PlaybackController_NextCommand = "Legacy.PlaybackController.NextCommand" + LocalApplication_Gallery_Event = "LocalApplication.Gallery.Event" Alexa_Presentation_PresentationDismissed = "Alexa.Presentation.PresentationDismissed" + EffectsController_StateReceiptChangeRequest = "EffectsController.StateReceiptChangeRequest" + LocalApplication_Alexa_Translation_LiveTranslation_Event = "LocalApplication.Alexa.Translation.LiveTranslation.Event" + LocalApplication_AlexaNotifications_Event = "LocalApplication.AlexaNotifications.Event" + REMINDER_DELETED = "REMINDER_DELETED" + GameEngine_InputHandlerEvent = "GameEngine.InputHandlerEvent" + Legacy_PlaylistController_Response = "Legacy.PlaylistController.Response" + LocalApplication_KnightHome_Event = "LocalApplication.KnightHome.Event" + Legacy_ListRenderer_ListItemEvent = "Legacy.ListRenderer.ListItemEvent" AudioPlayer_PlaybackFailed = "AudioPlayer.PlaybackFailed" - AudioPlayer_PlaybackFinished = "AudioPlayer.PlaybackFinished" - AudioPlayer_PlaybackNearlyFinished = "AudioPlayer.PlaybackNearlyFinished" - AudioPlayer_PlaybackStarted = "AudioPlayer.PlaybackStarted" - AudioPlayer_PlaybackStopped = "AudioPlayer.PlaybackStopped" - CardRenderer_DisplayContentFinished = "CardRenderer.DisplayContentFinished" - CardRenderer_DisplayContentStarted = "CardRenderer.DisplayContentStarted" - CardRenderer_ReadContentFinished = "CardRenderer.ReadContentFinished" - CardRenderer_ReadContentStarted = "CardRenderer.ReadContentStarted" - CustomInterfaceController_EventsReceived = "CustomInterfaceController.EventsReceived" - CustomInterfaceController_Expired = "CustomInterfaceController.Expired" - DeviceSetup_SetupCompleted = "DeviceSetup.SetupCompleted" - Display_ElementSelected = "Display.ElementSelected" - Display_UserEvent = "Display.UserEvent" + LocalApplication_KnightHomeThingsToTry_Event = "LocalApplication.KnightHomeThingsToTry.Event" + Legacy_BluetoothNetwork_SetDeviceCategoriesFailed = "Legacy.BluetoothNetwork.SetDeviceCategoriesFailed" + Legacy_ExternalMediaPlayer_Logout = "Legacy.ExternalMediaPlayer.Logout" + Alexa_FileManager_UploadController_UploadFinished = "Alexa.FileManager.UploadController.UploadFinished" + Legacy_ActivityManager_FocusChanged = "Legacy.ActivityManager.FocusChanged" + Legacy_AlertsController_SnoozeCommand = "Legacy.AlertsController.SnoozeCommand" + Legacy_SpeechRecognizer_WakeWordChanged = "Legacy.SpeechRecognizer.WakeWordChanged" + Legacy_ListRenderer_GetListPageByToken = "Legacy.ListRenderer.GetListPageByToken" + MessagingController_UpdateSendMessageStatusRequest = "MessagingController.UpdateSendMessageStatusRequest" FitnessSessionController_FitnessSessionEnded = "FitnessSessionController.FitnessSessionEnded" - FitnessSessionController_FitnessSessionError = "FitnessSessionController.FitnessSessionError" - FitnessSessionController_FitnessSessionPaused = "FitnessSessionController.FitnessSessionPaused" + Alexa_Presentation_APL_RuntimeError = "Alexa.Presentation.APL.RuntimeError" + Legacy_ListRenderer_GetListPageByOrdinal = "Legacy.ListRenderer.GetListPageByOrdinal" FitnessSessionController_FitnessSessionResumed = "FitnessSessionController.FitnessSessionResumed" + IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED = "IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED" + Legacy_DeviceNotification_DeleteNotificationSucceeded = "Legacy.DeviceNotification.DeleteNotificationSucceeded" + Legacy_SpeechSynthesizer_SpeechSynthesizerError = "Legacy.SpeechSynthesizer.SpeechSynthesizerError" + Alexa_Video_Xray_ShowDetailsFailed = "Alexa.Video.Xray.ShowDetailsFailed" + Alexa_FileManager_UploadController_CancelUploadFinished = "Alexa.FileManager.UploadController.CancelUploadFinished" + Legacy_SconeRemoteControl_PlayPause = "Legacy.SconeRemoteControl.PlayPause" + Legacy_DeviceNotification_NotificationEnteredBackground = "Legacy.DeviceNotification.NotificationEnteredBackground" + SKILL_PERMISSION_CHANGED = "SKILL_PERMISSION_CHANGED" + Legacy_AudioPlayer_Metadata = "Legacy.AudioPlayer.Metadata" + Legacy_AudioPlayer_PlaybackStutterStarted = "Legacy.AudioPlayer.PlaybackStutterStarted" + AUDIO_ITEM_PLAYBACK_FINISHED = "AUDIO_ITEM_PLAYBACK_FINISHED" + EffectsController_RequestGuiChangeRequest = "EffectsController.RequestGuiChangeRequest" FitnessSessionController_FitnessSessionStarted = "FitnessSessionController.FitnessSessionStarted" - GameEngine_InputHandlerEvent = "GameEngine.InputHandlerEvent" - Messaging_MessageReceived = "Messaging.MessageReceived" - MessagingController_UpdateConversationsStatus = "MessagingController.UpdateConversationsStatus" - MessagingController_UpdateMessagesStatusRequest = "MessagingController.UpdateMessagesStatusRequest" - MessagingController_UpdateSendMessageStatusRequest = "MessagingController.UpdateSendMessageStatusRequest" - MessagingController_UploadConversations = "MessagingController.UploadConversations" - PlaybackController_NextCommandIssued = "PlaybackController.NextCommandIssued" + Legacy_PlaybackController_LyricsViewedEvent = "Legacy.PlaybackController.LyricsViewedEvent" + Legacy_ExternalMediaPlayer_Login = "Legacy.ExternalMediaPlayer.Login" PlaybackController_PauseCommandIssued = "PlaybackController.PauseCommandIssued" - PlaybackController_PlayCommandIssued = "PlaybackController.PlayCommandIssued" - PlaybackController_PreviousCommandIssued = "PlaybackController.PreviousCommandIssued" - EffectsController_RequestEffectChangeRequest = "EffectsController.RequestEffectChangeRequest" - EffectsController_RequestGuiChangeRequest = "EffectsController.RequestGuiChangeRequest" - EffectsController_StateReceiptChangeRequest = "EffectsController.StateReceiptChangeRequest" - Alexa_Video_Xray_ShowDetailsSuccessful = "Alexa.Video.Xray.ShowDetailsSuccessful" - Alexa_Video_Xray_ShowDetailsFailed = "Alexa.Video.Xray.ShowDetailsFailed" + Legacy_MediaPlayer_PlaybackIdle = "Legacy.MediaPlayer.PlaybackIdle" + Legacy_SconeRemoteControl_Previous = "Legacy.SconeRemoteControl.Previous" + DeviceSetup_SetupCompleted = "DeviceSetup.SetupCompleted" + Legacy_MediaPlayer_PlaybackNearlyFinished = "Legacy.MediaPlayer.PlaybackNearlyFinished" + LocalApplication_todoRenderer_Event = "LocalApplication.todoRenderer.Event" + Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded = "Legacy.BluetoothNetwork.SetDeviceCategoriesSucceeded" + Legacy_BluetoothNetwork_MediaControlSuccess = "Legacy.BluetoothNetwork.MediaControlSuccess" + Legacy_HomeAutoWifiController_SsdpDiscoveryFinished = "Legacy.HomeAutoWifiController.SsdpDiscoveryFinished" + Alexa_Presentation_APL_LoadIndexListData = "Alexa.Presentation.APL.LoadIndexListData" + IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED = "IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED" + Legacy_BluetoothNetwork_MediaControlFailure = "Legacy.BluetoothNetwork.MediaControlFailure" + Legacy_AuxController_EnabledStateChanged = "Legacy.AuxController.EnabledStateChanged" + Legacy_FavoritesController_Response = "Legacy.FavoritesController.Response" + Legacy_ListModel_ListStateUpdateRequest = "Legacy.ListModel.ListStateUpdateRequest" + Legacy_EqualizerController_EqualizerChanged = "Legacy.EqualizerController.EqualizerChanged" + Legacy_MediaGrouping_GroupSyncEvent = "Legacy.MediaGrouping.GroupSyncEvent" + Legacy_FavoritesController_Error = "Legacy.FavoritesController.Error" + Legacy_ListModel_GetPageByTokenRequest = "Legacy.ListModel.GetPageByTokenRequest" + Legacy_ActivityManager_ActivityInterrupted = "Legacy.ActivityManager.ActivityInterrupted" + Legacy_MeetingClientController_Event = "Legacy.MeetingClientController.Event" + Legacy_Presentation_PresentationDismissedEvent = "Legacy.Presentation.PresentationDismissedEvent" + Legacy_Spotify_Event = "Legacy.Spotify.Event" + Legacy_ExternalMediaPlayer_Error = "Legacy.ExternalMediaPlayer.Error" + Legacy_AuxController_DirectionChanged = "Legacy.AuxController.DirectionChanged" + AudioPlayer_PlaybackNearlyFinished = "AudioPlayer.PlaybackNearlyFinished" + Alexa_Camera_PhotoCaptureController_CaptureFinished = "Alexa.Camera.PhotoCaptureController.CaptureFinished" + Legacy_UDPController_BroadcastResponse = "Legacy.UDPController.BroadcastResponse" + Legacy_AudioPlayer_PlaybackResumed = "Legacy.AudioPlayer.PlaybackResumed" + Legacy_DeviceNotification_DeleteNotificationFailed = "Legacy.DeviceNotification.DeleteNotificationFailed" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v0/links.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_initialization_request.py similarity index 75% rename from ask-smapi-model/ask_smapi_model/v0/links.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_initialization_request.py index b733249..c6be26f 100644 --- a/ask-smapi-model/ask_smapi_model/v0/links.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_initialization_request.py @@ -23,44 +23,43 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v0.link import Link as Link_c73169e4 -class Links(object): +class ExtensionInitializationRequest(object): """ - Links for the API navigation. + Represents a request to automatically initialize an extension by a runtime. - :param object_self: - :type object_self: (optional) ask_smapi_model.v0.link.Link - :param next: - :type next: (optional) ask_smapi_model.v0.link.Link + :param uri: The extension's URI. + :type uri: (optional) str + :param settings: Default initialization extension settings. + :type settings: (optional) object """ deserialized_types = { - 'object_self': 'ask_smapi_model.v0.link.Link', - 'next': 'ask_smapi_model.v0.link.Link' + 'uri': 'str', + 'settings': 'object' } # type: Dict attribute_map = { - 'object_self': 'self', - 'next': 'next' + 'uri': 'uri', + 'settings': 'settings' } # type: Dict supports_multiple_types = False - def __init__(self, object_self=None, next=None): - # type: (Optional[Link_c73169e4], Optional[Link_c73169e4]) -> None - """Links for the API navigation. + def __init__(self, uri=None, settings=None): + # type: (Optional[str], Optional[object]) -> None + """Represents a request to automatically initialize an extension by a runtime. - :param object_self: - :type object_self: (optional) ask_smapi_model.v0.link.Link - :param next: - :type next: (optional) ask_smapi_model.v0.link.Link + :param uri: The extension's URI. + :type uri: (optional) str + :param settings: Default initialization extension settings. + :type settings: (optional) object """ self.__discriminator_value = None # type: str - self.object_self = object_self - self.next = next + self.uri = uri + self.settings = settings def to_dict(self): # type: () -> Dict[str, object] @@ -105,7 +104,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Links): + if not isinstance(other, ExtensionInitializationRequest): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_request.py new file mode 100644 index 0000000..c62b42a --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/extension_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExtensionRequest(object): + """ + Represents a request for a runtime extension. Extensions are optional enhancements to a runtime that provide additional sources of data, commands, and event handlers. + + + :param uri: The extension's URI. + :type uri: (optional) str + + """ + deserialized_types = { + 'uri': 'str' + } # type: Dict + + attribute_map = { + 'uri': 'uri' + } # type: Dict + supports_multiple_types = False + + def __init__(self, uri=None): + # type: (Optional[str]) -> None + """Represents a request for a runtime extension. Extensions are optional enhancements to a runtime that provide additional sources of data, commands, and event handlers. + + :param uri: The extension's URI. + :type uri: (optional) str + """ + self.__discriminator_value = None # type: str + + self.uri = uri + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExtensionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py index 35a8ce5..5b46f0b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_apis.py @@ -28,10 +28,10 @@ class FlashBriefingApis(object): """ - Defines the structure for flash briefing api of the skill. + Defines the structure of flash briefing api in the skill manifest. - :param locales: Defines the structure for locale specific flash briefing api information. + :param locales: Object that contains <locale> objects for each supported locale. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info.LocalizedFlashBriefingInfo) """ @@ -46,9 +46,9 @@ class FlashBriefingApis(object): def __init__(self, locales=None): # type: (Optional[Dict[str, LocalizedFlashBriefingInfo_ff538220]]) -> None - """Defines the structure for flash briefing api of the skill. + """Defines the structure of flash briefing api in the skill manifest. - :param locales: Defines the structure for locale specific flash briefing api information. + :param locales: Object that contains <locale> objects for each supported locale. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info.LocalizedFlashBriefingInfo) """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py index 0f67a69..7658de5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_content_type.py @@ -27,15 +27,14 @@ class FlashBriefingContentType(Enum): """ - format of the feed content. + Format of the feed content. - Allowed enum values: [TEXT, AUDIO, AUDIO_AND_VIDEO] + Allowed enum values: [TEXT, AUDIO] """ TEXT = "TEXT" AUDIO = "AUDIO" - AUDIO_AND_VIDEO = "AUDIO_AND_VIDEO" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py index f7cbe00..4ddb281 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/flash_briefing_update_frequency.py @@ -31,12 +31,11 @@ class FlashBriefingUpdateFrequency(Enum): - Allowed enum values: [HOURLY, DAILY, WEEKLY, UNKNOWN] + Allowed enum values: [HOURLY, DAILY, WEEKLY] """ HOURLY = "HOURLY" DAILY = "DAILY" WEEKLY = "WEEKLY" - UNKNOWN = "UNKNOWN" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/friendly_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/friendly_name.py new file mode 100644 index 0000000..5a08055 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/friendly_name.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.localized_name import LocalizedName as LocalizedName_8700080 + + +class FriendlyName(object): + """ + Localized App name + + + :param default: Default app name + :type default: (optional) str + :param localized_names: Localized app names. + :type localized_names: (optional) list[ask_smapi_model.v1.skill.manifest.localized_name.LocalizedName] + + """ + deserialized_types = { + 'default': 'str', + 'localized_names': 'list[ask_smapi_model.v1.skill.manifest.localized_name.LocalizedName]' + } # type: Dict + + attribute_map = { + 'default': 'default', + 'localized_names': 'localizedNames' + } # type: Dict + supports_multiple_types = False + + def __init__(self, default=None, localized_names=None): + # type: (Optional[str], Optional[List[LocalizedName_8700080]]) -> None + """Localized App name + + :param default: Default app name + :type default: (optional) str + :param localized_names: Localized app names. + :type localized_names: (optional) list[ask_smapi_model.v1.skill.manifest.localized_name.LocalizedName] + """ + self.__discriminator_value = None # type: str + + self.default = default + self.localized_names = localized_names + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, FriendlyName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support_requirement.py similarity index 94% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support_requirement.py index 4bdea7b..4151819 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/gadget_support_requirement.py @@ -25,7 +25,7 @@ from datetime import datetime -class GadgetSupport(Enum): +class GadgetSupportRequirement(Enum): """ Specifies if gadget support is required/optional for this skill to work. @@ -55,7 +55,7 @@ def __repr__(self): def __eq__(self, other): # type: (Any) -> bool """Returns true if both objects are equal""" - if not isinstance(other, GadgetSupport): + if not isinstance(other, GadgetSupportRequirement): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py index 00eddba..ea26fc6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_interface.py @@ -23,9 +23,6 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.health_request import HealthRequest as HealthRequest_8ee2408a - from ask_smapi_model.v1.skill.manifest.localized_health_info import LocalizedHealthInfo as LocalizedHealthInfo_a37e772b - from ask_smapi_model.v1.skill.manifest.version import Version as Version_17871229 class HealthInterface(object): @@ -33,48 +30,34 @@ class HealthInterface(object): :param namespace: Name of the interface. :type namespace: (optional) str - :param version: - :type version: (optional) ask_smapi_model.v1.skill.manifest.version.Version - :param requests: Defines the details of requests that a health skill is capable of handling. - :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.health_request.HealthRequest] - :param locales: Defines the list for health skill locale specific publishing information in the skill manifest. - :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_health_info.LocalizedHealthInfo) + :param version: defines the version of skill interface. + :type version: (optional) str """ deserialized_types = { 'namespace': 'str', - 'version': 'ask_smapi_model.v1.skill.manifest.version.Version', - 'requests': 'list[ask_smapi_model.v1.skill.manifest.health_request.HealthRequest]', - 'locales': 'dict(str, ask_smapi_model.v1.skill.manifest.localized_health_info.LocalizedHealthInfo)' + 'version': 'str' } # type: Dict attribute_map = { 'namespace': 'namespace', - 'version': 'version', - 'requests': 'requests', - 'locales': 'locales' + 'version': 'version' } # type: Dict supports_multiple_types = False - def __init__(self, namespace=None, version=None, requests=None, locales=None): - # type: (Optional[str], Optional[Version_17871229], Optional[List[HealthRequest_8ee2408a]], Optional[Dict[str, LocalizedHealthInfo_a37e772b]]) -> None + def __init__(self, namespace=None, version=None): + # type: (Optional[str], Optional[str]) -> None """ :param namespace: Name of the interface. :type namespace: (optional) str - :param version: - :type version: (optional) ask_smapi_model.v1.skill.manifest.version.Version - :param requests: Defines the details of requests that a health skill is capable of handling. - :type requests: (optional) list[ask_smapi_model.v1.skill.manifest.health_request.HealthRequest] - :param locales: Defines the list for health skill locale specific publishing information in the skill manifest. - :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_health_info.LocalizedHealthInfo) + :param version: defines the version of skill interface. + :type version: (optional) str """ self.__discriminator_value = None # type: str self.namespace = namespace self.version = version - self.requests = requests - self.locales = locales def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py index 2025e18..14bacc7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py @@ -39,7 +39,7 @@ class Interface(object): | ALEXA_PRESENTATION_APL: :py:class:`ask_smapi_model.v1.skill.manifest.alexa_presentation_apl_interface.AlexaPresentationAplInterface`, | - | CUSTOM_INTERFACE: :py:class:`ask_smapi_model.v1.skill.manifest.custom_interface.CustomInterface`, + | APP_LINKS: :py:class:`ask_smapi_model.v1.skill.manifest.app_link_interface.AppLinkInterface`, | | ALEXA_PRESENTATION_HTML: :py:class:`ask_smapi_model.v1.skill.manifest.alexa_presentation_html_interface.AlexaPresentationHtmlInterface`, | @@ -47,6 +47,8 @@ class Interface(object): | | GAME_ENGINE: :py:class:`ask_smapi_model.v1.skill.manifest.game_engine_interface.GameEngineInterface`, | + | APP_LINKS_V2: :py:class:`ask_smapi_model.v1.skill.manifest.app_link_v2_interface.AppLinkV2Interface`, + | | RENDER_TEMPLATE: :py:class:`ask_smapi_model.v1.skill.manifest.display_interface.DisplayInterface`, | | GADGET_CONTROLLER: :py:class:`ask_smapi_model.v1.skill.manifest.gadget_controller_interface.GadgetControllerInterface`, @@ -65,10 +67,11 @@ class Interface(object): discriminator_value_class_map = { 'ALEXA_PRESENTATION_APL': 'ask_smapi_model.v1.skill.manifest.alexa_presentation_apl_interface.AlexaPresentationAplInterface', - 'CUSTOM_INTERFACE': 'ask_smapi_model.v1.skill.manifest.custom_interface.CustomInterface', + 'APP_LINKS': 'ask_smapi_model.v1.skill.manifest.app_link_interface.AppLinkInterface', 'ALEXA_PRESENTATION_HTML': 'ask_smapi_model.v1.skill.manifest.alexa_presentation_html_interface.AlexaPresentationHtmlInterface', 'AUDIO_PLAYER': 'ask_smapi_model.v1.skill.manifest.audio_interface.AudioInterface', 'GAME_ENGINE': 'ask_smapi_model.v1.skill.manifest.game_engine_interface.GameEngineInterface', + 'APP_LINKS_V2': 'ask_smapi_model.v1.skill.manifest.app_link_v2_interface.AppLinkV2Interface', 'RENDER_TEMPLATE': 'ask_smapi_model.v1.skill.manifest.display_interface.DisplayInterface', 'GADGET_CONTROLLER': 'ask_smapi_model.v1.skill.manifest.gadget_controller_interface.GadgetControllerInterface', 'VIDEO_APP': 'ask_smapi_model.v1.skill.manifest.video_app_interface.VideoAppInterface' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py new file mode 100644 index 0000000..ef5c01f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py @@ -0,0 +1,79 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class InterfaceType(Enum): + """ + Name of the interface. + + + + Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2] + """ + AUDIO_PLAYER = "AUDIO_PLAYER" + VIDEO_APP = "VIDEO_APP" + RENDER_TEMPLATE = "RENDER_TEMPLATE" + GAME_ENGINE = "GAME_ENGINE" + GADGET_CONTROLLER = "GADGET_CONTROLLER" + CAN_FULFILL_INTENT_REQUEST = "CAN_FULFILL_INTENT_REQUEST" + ALEXA_PRESENTATION_APL = "ALEXA_PRESENTATION_APL" + ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER = "ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER" + ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER = "ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER" + ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER = "ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER" + CUSTOM_INTERFACE = "CUSTOM_INTERFACE" + ALEXA_AUGMENTATION_EFFECTS_CONTROLLER = "ALEXA_AUGMENTATION_EFFECTS_CONTROLLER" + APP_LINKS = "APP_LINKS" + ALEXA_EXTENSION = "ALEXA_EXTENSION" + APP_LINKS_V2 = "APP_LINKS_V2" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, InterfaceType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py new file mode 100644 index 0000000..157a00a --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.localized_knowledge_information import LocalizedKnowledgeInformation as LocalizedKnowledgeInformation_59e51789 + + +class KnowledgeApis(object): + """ + defines the structure for the knowledge api of the skill. + + + :param locales: Defines the structure of locale specific knowledge information in the skill manifest. + :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation) + + """ + deserialized_types = { + 'locales': 'dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation)' + } # type: Dict + + attribute_map = { + 'locales': 'locales' + } # type: Dict + supports_multiple_types = False + + def __init__(self, locales=None): + # type: (Optional[Dict[str, LocalizedKnowledgeInformation_59e51789]]) -> None + """defines the structure for the knowledge api of the skill. + + :param locales: Defines the structure of locale specific knowledge information in the skill manifest. + :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation) + """ + self.__discriminator_value = None # type: str + + self.locales = locales + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, KnowledgeApis): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py index ea0c185..b6701cb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py @@ -30,7 +30,7 @@ class LambdaEndpoint(object): Contains the uri field. This sets the global default endpoint. - :param uri: Amazon Resource Name (ARN) of the skill's Lambda function or HTTPS URL. + :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str """ @@ -47,7 +47,7 @@ def __init__(self, uri=None): # type: (Optional[str]) -> None """Contains the uri field. This sets the global default endpoint. - :param uri: Amazon Resource Name (ARN) of the skill's Lambda function or HTTPS URL. + :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py new file mode 100644 index 0000000..5b72638 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.catalog_info import CatalogInfo as CatalogInfo_3fade9c6 + from ask_smapi_model.v1.skill.manifest.friendly_name import FriendlyName as FriendlyName_168112fe + + +class LinkedApplication(object): + """ + Applications associated with the skill. + + + :param catalog_info: + :type catalog_info: (optional) ask_smapi_model.v1.skill.manifest.catalog_info.CatalogInfo + :param custom_schemes: Supported schemes + :type custom_schemes: (optional) list[str] + :param domains: Supported domains + :type domains: (optional) list[str] + :param friendly_name: + :type friendly_name: (optional) ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName + + """ + deserialized_types = { + 'catalog_info': 'ask_smapi_model.v1.skill.manifest.catalog_info.CatalogInfo', + 'custom_schemes': 'list[str]', + 'domains': 'list[str]', + 'friendly_name': 'ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName' + } # type: Dict + + attribute_map = { + 'catalog_info': 'catalogInfo', + 'custom_schemes': 'customSchemes', + 'domains': 'domains', + 'friendly_name': 'friendlyName' + } # type: Dict + supports_multiple_types = False + + def __init__(self, catalog_info=None, custom_schemes=None, domains=None, friendly_name=None): + # type: (Optional[CatalogInfo_3fade9c6], Optional[List[object]], Optional[List[object]], Optional[FriendlyName_168112fe]) -> None + """Applications associated with the skill. + + :param catalog_info: + :type catalog_info: (optional) ask_smapi_model.v1.skill.manifest.catalog_info.CatalogInfo + :param custom_schemes: Supported schemes + :type custom_schemes: (optional) list[str] + :param domains: Supported domains + :type domains: (optional) list[str] + :param friendly_name: + :type friendly_name: (optional) ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName + """ + self.__discriminator_value = None # type: str + + self.catalog_info = catalog_info + self.custom_schemes = custom_schemes + self.domains = domains + self.friendly_name = friendly_name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LinkedApplication): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py index c928887..8330156 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_flash_briefing_info.py @@ -28,7 +28,7 @@ class LocalizedFlashBriefingInfo(object): """ - Defines the localized flash briefing api information. + Defines the structure of a localized flash briefing information. :param feeds: Defines the structure for a feed information in the skill manifest. @@ -50,7 +50,7 @@ class LocalizedFlashBriefingInfo(object): def __init__(self, feeds=None, custom_error_message=None): # type: (Optional[List[LocalizedFlashBriefingInfoItems_61b30981]], Optional[str]) -> None - """Defines the localized flash briefing api information. + """Defines the structure of a localized flash briefing information. :param feeds: Defines the structure for a feed information in the skill manifest. :type feeds: (optional) list[ask_smapi_model.v1.skill.manifest.localized_flash_briefing_info_items.LocalizedFlashBriefingInfoItems] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_knowledge_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_knowledge_information.py new file mode 100644 index 0000000..54409dd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_knowledge_information.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class LocalizedKnowledgeInformation(object): + """ + Defines the structure of localized knowledge information in the skill manifest. + + + :param answer_attribution: enables skill developers to prepend a custom message to all of their knowledge skill's answers, which can help inform end-users of the skill and data source answering their question. + :type answer_attribution: (optional) str + + """ + deserialized_types = { + 'answer_attribution': 'str' + } # type: Dict + + attribute_map = { + 'answer_attribution': 'answerAttribution' + } # type: Dict + supports_multiple_types = False + + def __init__(self, answer_attribution=None): + # type: (Optional[str]) -> None + """Defines the structure of localized knowledge information in the skill manifest. + + :param answer_attribution: enables skill developers to prepend a custom message to all of their knowledge skill's answers, which can help inform end-users of the skill and data source answering their question. + :type answer_attribution: (optional) str + """ + self.__discriminator_value = None # type: str + + self.answer_attribution = answer_attribution + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LocalizedKnowledgeInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py index 84410a8..5e90927 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_music_info.py @@ -35,7 +35,7 @@ class LocalizedMusicInfo(object): :param prompt_name: Name to be used when Alexa renders the music skill name. :type prompt_name: (optional) str - :param aliases: + :param aliases: Defines the structure of the music prompt name information in the skill manifest. :type aliases: (optional) list[ask_smapi_model.v1.skill.manifest.music_alias.MusicAlias] :param features: :type features: (optional) list[ask_smapi_model.v1.skill.manifest.music_feature.MusicFeature] @@ -64,7 +64,7 @@ def __init__(self, prompt_name=None, aliases=None, features=None, wordmark_logos :param prompt_name: Name to be used when Alexa renders the music skill name. :type prompt_name: (optional) str - :param aliases: + :param aliases: Defines the structure of the music prompt name information in the skill manifest. :type aliases: (optional) list[ask_smapi_model.v1.skill.manifest.music_alias.MusicAlias] :param features: :type features: (optional) list[ask_smapi_model.v1.skill.manifest.music_feature.MusicFeature] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_name.py similarity index 85% rename from ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_name.py index 4439202..8873d5d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/health_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/localized_name.py @@ -25,31 +25,40 @@ from datetime import datetime -class HealthRequest(object): +class LocalizedName(object): """ + Localized app name - :param name: Defines the name of request, each request has their own payload format. + + :param locale: locale + :type locale: (optional) str + :param name: app name :type name: (optional) str """ deserialized_types = { + 'locale': 'str', 'name': 'str' } # type: Dict attribute_map = { + 'locale': 'locale', 'name': 'name' } # type: Dict supports_multiple_types = False - def __init__(self, name=None): - # type: (Optional[str]) -> None - """ + def __init__(self, locale=None, name=None): + # type: (Optional[str], Optional[str]) -> None + """Localized app name - :param name: Defines the name of request, each request has their own payload format. + :param locale: locale + :type locale: (optional) str + :param name: app name :type name: (optional) str """ self.__discriminator_value = None # type: str + self.locale = locale self.name = name def to_dict(self): @@ -95,7 +104,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, HealthRequest): + if not isinstance(other, LocalizedName): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py index 969c1f7..f27e067 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_gadget_support.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.gadget_support import GadgetSupport as GadgetSupport_718b090a + from ask_smapi_model.v1.skill.manifest.gadget_support_requirement import GadgetSupportRequirement as GadgetSupportRequirement_59434a55 class ManifestGadgetSupport(object): @@ -32,7 +32,7 @@ class ManifestGadgetSupport(object): :param requirement: - :type requirement: (optional) ask_smapi_model.v1.skill.manifest.gadget_support.GadgetSupport + :type requirement: (optional) ask_smapi_model.v1.skill.manifest.gadget_support_requirement.GadgetSupportRequirement :param min_gadget_buttons: Minimum number of gadget buttons required. :type min_gadget_buttons: (optional) int :param max_gadget_buttons: Maximum number of gadget buttons required. @@ -44,7 +44,7 @@ class ManifestGadgetSupport(object): """ deserialized_types = { - 'requirement': 'ask_smapi_model.v1.skill.manifest.gadget_support.GadgetSupport', + 'requirement': 'ask_smapi_model.v1.skill.manifest.gadget_support_requirement.GadgetSupportRequirement', 'min_gadget_buttons': 'int', 'max_gadget_buttons': 'int', 'num_players_max': 'int', @@ -61,11 +61,11 @@ class ManifestGadgetSupport(object): supports_multiple_types = False def __init__(self, requirement=None, min_gadget_buttons=None, max_gadget_buttons=None, num_players_max=None, num_players_min=None): - # type: (Optional[GadgetSupport_718b090a], Optional[int], Optional[int], Optional[int], Optional[int]) -> None + # type: (Optional[GadgetSupportRequirement_59434a55], Optional[int], Optional[int], Optional[int], Optional[int]) -> None """Defines the structure for gadget buttons support in the skill manifest. :param requirement: - :type requirement: (optional) ask_smapi_model.v1.skill.manifest.gadget_support.GadgetSupport + :type requirement: (optional) ask_smapi_model.v1.skill.manifest.gadget_support_requirement.GadgetSupportRequirement :param min_gadget_buttons: Minimum number of gadget buttons required. :type min_gadget_buttons: (optional) int :param max_gadget_buttons: Maximum number of gadget buttons required. diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/stage.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_version.py similarity index 89% rename from ask-smapi-model/ask_smapi_model/v1/isp/stage.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_version.py index aff0121..77dcb5d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/stage.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/manifest_version.py @@ -25,16 +25,15 @@ from datetime import datetime -class Stage(Enum): +class ManifestVersion(Enum): """ - Stage of in-skill product. + Version of the skill manifest. - Allowed enum values: [development, live] + Allowed enum values: [_1_0] """ - development = "development" - live = "live" + _1_0 = "1.0" def to_dict(self): # type: () -> Dict[str, Any] @@ -55,7 +54,7 @@ def __repr__(self): def __eq__(self, other): # type: (Any) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Stage): + if not isinstance(other, ManifestVersion): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index e5f1877..5c6eede 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,40 +31,41 @@ class PermissionName(Enum): - Allowed enum values: [payments_autopay_consent, alexa_async_event_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_address_country_and_postal_code_read, alexa_devices_all_geolocation_read, alexa_health_profile_write, alexa_household_lists_read, alexa_household_lists_write, alexa_personality_explicit_read, alexa_personality_explicit_write, alexa_profile_name_read, alexa_profile_email_read, alexa_profile_mobile_number_read, alexa_profile_given_name_read, alexa_customer_id_read, alexa_person_id_read, alexa_raw_person_id_read, alexa_utterance_id_read, alexa_devices_all_notifications_write, alexa_devices_all_notifications_urgent_write, alexa_alerts_reminders_skill_readwrite, alexa_alerts_timers_skill_readwrite, alexa_skill_cds_monetization, alexa_music_cast, alexa_skill_products_entitlements, alexa_skill_proactive_enablement, alexa_authenticate_2_mandatory, alexa_authenticate_2_optional, alexa_user_experience_guidance_read, alexa_device_id_read, alexa_device_type_read] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read] """ - payments_autopay_consent = "payments:autopay_consent" - alexa_async_event_write = "alexa::async_event:write" - avs_distributed_audio = "avs::distributed_audio" - alexa_devices_all_address_full_read = "alexa::devices:all:address:full:read" - alexa_devices_all_address_country_and_postal_code_read = "alexa:devices:all:address:country_and_postal_code:read" - alexa_devices_all_geolocation_read = "alexa::devices:all:geolocation:read" - alexa_health_profile_write = "alexa::health:profile:write" - alexa_household_lists_read = "alexa::household:lists:read" - alexa_household_lists_write = "alexa::household:lists:write" + alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" - alexa_personality_explicit_write = "alexa::personality:explicit:write" - alexa_profile_name_read = "alexa::profile:name:read" - alexa_profile_email_read = "alexa::profile:email:read" + alexa_authenticate_2_mandatory = "alexa::authenticate:2:mandatory" + alexa_devices_all_address_country_and_postal_code_read = "alexa:devices:all:address:country_and_postal_code:read" alexa_profile_mobile_number_read = "alexa::profile:mobile_number:read" - alexa_profile_given_name_read = "alexa::profile:given_name:read" - alexa_customer_id_read = "alexa::customer_id:read" - alexa_person_id_read = "alexa::person_id:read" - alexa_raw_person_id_read = "alexa::raw_person_id:read" + alexa_async_event_write = "alexa::async_event:write" + alexa_device_type_read = "alexa::device_type:read" + alexa_skill_proactive_enablement = "alexa::skill:proactive_enablement" + alexa_personality_explicit_write = "alexa::personality:explicit:write" + alexa_household_lists_read = "alexa::household:lists:read" alexa_utterance_id_read = "alexa::utterance_id:read" + alexa_user_experience_guidance_read = "alexa::user_experience_guidance:read" alexa_devices_all_notifications_write = "alexa::devices:all:notifications:write" + avs_distributed_audio = "avs::distributed_audio" + alexa_devices_all_address_full_read = "alexa::devices:all:address:full:read" alexa_devices_all_notifications_urgent_write = "alexa::devices:all:notifications:urgent:write" - alexa_alerts_reminders_skill_readwrite = "alexa::alerts:reminders:skill:readwrite" + payments_autopay_consent = "payments:autopay_consent" alexa_alerts_timers_skill_readwrite = "alexa::alerts:timers:skill:readwrite" + alexa_customer_id_read = "alexa::customer_id:read" alexa_skill_cds_monetization = "alexa::skill:cds:monetization" alexa_music_cast = "alexa::music:cast" - alexa_skill_products_entitlements = "alexa::skill:products:entitlements" - alexa_skill_proactive_enablement = "alexa::skill:proactive_enablement" - alexa_authenticate_2_mandatory = "alexa::authenticate:2:mandatory" + alexa_profile_given_name_read = "alexa::profile:given_name:read" + alexa_alerts_reminders_skill_readwrite = "alexa::alerts:reminders:skill:readwrite" + alexa_household_lists_write = "alexa::household:lists:write" + alexa_profile_email_read = "alexa::profile:email:read" + alexa_profile_name_read = "alexa::profile:name:read" + alexa_devices_all_geolocation_read = "alexa::devices:all:geolocation:read" + alexa_raw_person_id_read = "alexa::raw_person_id:read" alexa_authenticate_2_optional = "alexa::authenticate:2:optional" - alexa_user_experience_guidance_read = "alexa::user_experience_guidance:read" - alexa_device_id_read = "alexa::device_id:read" - alexa_device_type_read = "alexa::device_type:read" + alexa_health_profile_write = "alexa::health:profile:write" + alexa_person_id_read = "alexa::person_id:read" + alexa_skill_products_entitlements = "alexa::skill:products:entitlements" + alexa_energy_devices_state_read = "alexa::energy:devices:state:read" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py index 9b5d303..bed8d52 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest.py @@ -25,9 +25,11 @@ from datetime import datetime from ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information import SkillManifestPublishingInformation as SkillManifestPublishingInformation_eef29c5e from ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance as SkillManifestPrivacyAndCompliance_5c8f839f + from ask_smapi_model.v1.skill.manifest.manifest_version import ManifestVersion as ManifestVersion_579912bc from ask_smapi_model.v1.skill.manifest.skill_manifest_apis import SkillManifestApis as SkillManifestApis_cbb83f8d from ask_smapi_model.v1.skill.manifest.permission_items import PermissionItems as PermissionItems_d3460cc from ask_smapi_model.v1.skill.manifest.skill_manifest_events import SkillManifestEvents as SkillManifestEvents_29025b4d + from ask_smapi_model.v1.skill.manifest.authorized_client import AuthorizedClient as AuthorizedClient_68a7f69e class SkillManifest(object): @@ -35,8 +37,8 @@ class SkillManifest(object): Defines the structure for a skill's metadata. - :param manifest_version: Version of the skill manifest. - :type manifest_version: (optional) str + :param manifest_version: + :type manifest_version: (optional) ask_smapi_model.v1.skill.manifest.manifest_version.ManifestVersion :param publishing_information: :type publishing_information: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information.SkillManifestPublishingInformation :param privacy_and_compliance: @@ -45,16 +47,19 @@ class SkillManifest(object): :type events: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_events.SkillManifestEvents :param permissions: Defines the structure for required permissions information in the skill manifest. :type permissions: (optional) list[ask_smapi_model.v1.skill.manifest.permission_items.PermissionItems] + :param authorized_clients: Defines a list of clients authorized for a skill. + :type authorized_clients: (optional) list[ask_smapi_model.v1.skill.manifest.authorized_client.AuthorizedClient] :param apis: :type apis: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_apis.SkillManifestApis """ deserialized_types = { - 'manifest_version': 'str', + 'manifest_version': 'ask_smapi_model.v1.skill.manifest.manifest_version.ManifestVersion', 'publishing_information': 'ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information.SkillManifestPublishingInformation', 'privacy_and_compliance': 'ask_smapi_model.v1.skill.manifest.skill_manifest_privacy_and_compliance.SkillManifestPrivacyAndCompliance', 'events': 'ask_smapi_model.v1.skill.manifest.skill_manifest_events.SkillManifestEvents', 'permissions': 'list[ask_smapi_model.v1.skill.manifest.permission_items.PermissionItems]', + 'authorized_clients': 'list[ask_smapi_model.v1.skill.manifest.authorized_client.AuthorizedClient]', 'apis': 'ask_smapi_model.v1.skill.manifest.skill_manifest_apis.SkillManifestApis' } # type: Dict @@ -64,16 +69,17 @@ class SkillManifest(object): 'privacy_and_compliance': 'privacyAndCompliance', 'events': 'events', 'permissions': 'permissions', + 'authorized_clients': 'authorizedClients', 'apis': 'apis' } # type: Dict supports_multiple_types = False - def __init__(self, manifest_version=None, publishing_information=None, privacy_and_compliance=None, events=None, permissions=None, apis=None): - # type: (Optional[str], Optional[SkillManifestPublishingInformation_eef29c5e], Optional[SkillManifestPrivacyAndCompliance_5c8f839f], Optional[SkillManifestEvents_29025b4d], Optional[List[PermissionItems_d3460cc]], Optional[SkillManifestApis_cbb83f8d]) -> None + def __init__(self, manifest_version=None, publishing_information=None, privacy_and_compliance=None, events=None, permissions=None, authorized_clients=None, apis=None): + # type: (Optional[ManifestVersion_579912bc], Optional[SkillManifestPublishingInformation_eef29c5e], Optional[SkillManifestPrivacyAndCompliance_5c8f839f], Optional[SkillManifestEvents_29025b4d], Optional[List[PermissionItems_d3460cc]], Optional[List[AuthorizedClient_68a7f69e]], Optional[SkillManifestApis_cbb83f8d]) -> None """Defines the structure for a skill's metadata. - :param manifest_version: Version of the skill manifest. - :type manifest_version: (optional) str + :param manifest_version: + :type manifest_version: (optional) ask_smapi_model.v1.skill.manifest.manifest_version.ManifestVersion :param publishing_information: :type publishing_information: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_publishing_information.SkillManifestPublishingInformation :param privacy_and_compliance: @@ -82,6 +88,8 @@ def __init__(self, manifest_version=None, publishing_information=None, privacy_a :type events: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_events.SkillManifestEvents :param permissions: Defines the structure for required permissions information in the skill manifest. :type permissions: (optional) list[ask_smapi_model.v1.skill.manifest.permission_items.PermissionItems] + :param authorized_clients: Defines a list of clients authorized for a skill. + :type authorized_clients: (optional) list[ask_smapi_model.v1.skill.manifest.authorized_client.AuthorizedClient] :param apis: :type apis: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_apis.SkillManifestApis """ @@ -92,6 +100,7 @@ def __init__(self, manifest_version=None, publishing_information=None, privacy_a self.privacy_and_compliance = privacy_and_compliance self.events = events self.permissions = permissions + self.authorized_clients = authorized_clients self.apis = apis def to_dict(self): diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py index 7d06dad..fceb638 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_apis.py @@ -24,13 +24,14 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.manifest.smart_home_apis import SmartHomeApis as SmartHomeApis_768def7d + from ask_smapi_model.v1.skill.manifest.demand_response_apis import DemandResponseApis as DemandResponseApis_d15fcaf7 from ask_smapi_model.v1.skill.manifest.music_apis import MusicApis as MusicApis_7489e85c from ask_smapi_model.v1.skill.manifest.alexa_for_business_apis import AlexaForBusinessApis as AlexaForBusinessApis_8e9dbc0 from ask_smapi_model.v1.skill.manifest.custom_apis import CustomApis as CustomApis_e197110a - from ask_smapi_model.v1.skill.manifest.health_apis import HealthApis as HealthApis_d9db5b60 from ask_smapi_model.v1.skill.manifest.house_hold_list import HouseHoldList as HouseHoldList_76371b75 from ask_smapi_model.v1.skill.manifest.video_apis import VideoApis as VideoApis_f912969c from ask_smapi_model.v1.skill.manifest.flash_briefing_apis import FlashBriefingApis as FlashBriefingApis_a7aeebab + from ask_smapi_model.v1.skill.manifest.knowledge_apis import KnowledgeApis as KnowledgeApis_966f57bc class SkillManifestApis(object): @@ -42,74 +43,81 @@ class SkillManifestApis(object): :type flash_briefing: (optional) ask_smapi_model.v1.skill.manifest.flash_briefing_apis.FlashBriefingApis :param custom: :type custom: (optional) ask_smapi_model.v1.skill.manifest.custom_apis.CustomApis + :param knowledge: + :type knowledge: (optional) ask_smapi_model.v1.skill.manifest.knowledge_apis.KnowledgeApis :param smart_home: :type smart_home: (optional) ask_smapi_model.v1.skill.manifest.smart_home_apis.SmartHomeApis :param video: :type video: (optional) ask_smapi_model.v1.skill.manifest.video_apis.VideoApis :param alexa_for_business: :type alexa_for_business: (optional) ask_smapi_model.v1.skill.manifest.alexa_for_business_apis.AlexaForBusinessApis - :param health: - :type health: (optional) ask_smapi_model.v1.skill.manifest.health_apis.HealthApis :param household_list: :type household_list: (optional) ask_smapi_model.v1.skill.manifest.house_hold_list.HouseHoldList :param music: :type music: (optional) ask_smapi_model.v1.skill.manifest.music_apis.MusicApis + :param demand_response: + :type demand_response: (optional) ask_smapi_model.v1.skill.manifest.demand_response_apis.DemandResponseApis """ deserialized_types = { 'flash_briefing': 'ask_smapi_model.v1.skill.manifest.flash_briefing_apis.FlashBriefingApis', 'custom': 'ask_smapi_model.v1.skill.manifest.custom_apis.CustomApis', + 'knowledge': 'ask_smapi_model.v1.skill.manifest.knowledge_apis.KnowledgeApis', 'smart_home': 'ask_smapi_model.v1.skill.manifest.smart_home_apis.SmartHomeApis', 'video': 'ask_smapi_model.v1.skill.manifest.video_apis.VideoApis', 'alexa_for_business': 'ask_smapi_model.v1.skill.manifest.alexa_for_business_apis.AlexaForBusinessApis', - 'health': 'ask_smapi_model.v1.skill.manifest.health_apis.HealthApis', 'household_list': 'ask_smapi_model.v1.skill.manifest.house_hold_list.HouseHoldList', - 'music': 'ask_smapi_model.v1.skill.manifest.music_apis.MusicApis' + 'music': 'ask_smapi_model.v1.skill.manifest.music_apis.MusicApis', + 'demand_response': 'ask_smapi_model.v1.skill.manifest.demand_response_apis.DemandResponseApis' } # type: Dict attribute_map = { 'flash_briefing': 'flashBriefing', 'custom': 'custom', + 'knowledge': 'knowledge', 'smart_home': 'smartHome', 'video': 'video', 'alexa_for_business': 'alexaForBusiness', - 'health': 'health', 'household_list': 'householdList', - 'music': 'music' + 'music': 'music', + 'demand_response': 'demandResponse' } # type: Dict supports_multiple_types = False - def __init__(self, flash_briefing=None, custom=None, smart_home=None, video=None, alexa_for_business=None, health=None, household_list=None, music=None): - # type: (Optional[FlashBriefingApis_a7aeebab], Optional[CustomApis_e197110a], Optional[SmartHomeApis_768def7d], Optional[VideoApis_f912969c], Optional[AlexaForBusinessApis_8e9dbc0], Optional[HealthApis_d9db5b60], Optional[HouseHoldList_76371b75], Optional[MusicApis_7489e85c]) -> None + def __init__(self, flash_briefing=None, custom=None, knowledge=None, smart_home=None, video=None, alexa_for_business=None, household_list=None, music=None, demand_response=None): + # type: (Optional[FlashBriefingApis_a7aeebab], Optional[CustomApis_e197110a], Optional[KnowledgeApis_966f57bc], Optional[SmartHomeApis_768def7d], Optional[VideoApis_f912969c], Optional[AlexaForBusinessApis_8e9dbc0], Optional[HouseHoldList_76371b75], Optional[MusicApis_7489e85c], Optional[DemandResponseApis_d15fcaf7]) -> None """Defines the structure for implemented apis information in the skill manifest. :param flash_briefing: :type flash_briefing: (optional) ask_smapi_model.v1.skill.manifest.flash_briefing_apis.FlashBriefingApis :param custom: :type custom: (optional) ask_smapi_model.v1.skill.manifest.custom_apis.CustomApis + :param knowledge: + :type knowledge: (optional) ask_smapi_model.v1.skill.manifest.knowledge_apis.KnowledgeApis :param smart_home: :type smart_home: (optional) ask_smapi_model.v1.skill.manifest.smart_home_apis.SmartHomeApis :param video: :type video: (optional) ask_smapi_model.v1.skill.manifest.video_apis.VideoApis :param alexa_for_business: :type alexa_for_business: (optional) ask_smapi_model.v1.skill.manifest.alexa_for_business_apis.AlexaForBusinessApis - :param health: - :type health: (optional) ask_smapi_model.v1.skill.manifest.health_apis.HealthApis :param household_list: :type household_list: (optional) ask_smapi_model.v1.skill.manifest.house_hold_list.HouseHoldList :param music: :type music: (optional) ask_smapi_model.v1.skill.manifest.music_apis.MusicApis + :param demand_response: + :type demand_response: (optional) ask_smapi_model.v1.skill.manifest.demand_response_apis.DemandResponseApis """ self.__discriminator_value = None # type: str self.flash_briefing = flash_briefing self.custom = custom + self.knowledge = knowledge self.smart_home = smart_home self.video = video self.alexa_for_business = alexa_for_business - self.health = health self.household_list = household_list self.music = music + self.demand_response = demand_response def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py index 3aa825e..f083b96 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py @@ -31,7 +31,7 @@ class SkillManifestPrivacyAndCompliance(object): Defines the structure for privacy & compliance information in the skill manifest. - :param locales: Defines the structure for locale specific privacy & compliance information in the skill manifest. + :param locales: Object that contains <locale> objects for each supported locale. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance.SkillManifestLocalizedPrivacyAndCompliance) :param allows_purchases: True if the skill allows users to make purchases or spend real money false otherwise. :type allows_purchases: (optional) bool @@ -72,7 +72,7 @@ def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, # type: (Optional[Dict[str, SkillManifestLocalizedPrivacyAndCompliance_ef86fcec]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None """Defines the structure for privacy & compliance information in the skill manifest. - :param locales: Defines the structure for locale specific privacy & compliance information in the skill manifest. + :param locales: Object that contains <locale> objects for each supported locale. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance.SkillManifestLocalizedPrivacyAndCompliance) :param allows_purchases: True if the skill allows users to make purchases or spend real money false otherwise. :type allows_purchases: (optional) bool diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py index 9201631..f28e83d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.automatic_distribution import AutomaticDistribution as AutomaticDistribution_a84fbfb2 from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation as SkillManifestLocalizedPublishingInformation_1e8ff5fd from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountries as DistributionCountries_33dc1fd4 from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as DistributionMode_7068bbf0 @@ -52,6 +53,8 @@ class SkillManifestPublishingInformation(object): :type category: (optional) str :param distribution_countries: Selected list of countries provided by the skill owner where Amazon can distribute the skill. :type distribution_countries: (optional) list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries] + :param automatic_distribution: + :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution """ deserialized_types = { @@ -63,7 +66,8 @@ class SkillManifestPublishingInformation(object): 'gadget_support': 'ask_smapi_model.v1.skill.manifest.manifest_gadget_support.ManifestGadgetSupport', 'testing_instructions': 'str', 'category': 'str', - 'distribution_countries': 'list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries]' + 'distribution_countries': 'list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries]', + 'automatic_distribution': 'ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution' } # type: Dict attribute_map = { @@ -75,12 +79,13 @@ class SkillManifestPublishingInformation(object): 'gadget_support': 'gadgetSupport', 'testing_instructions': 'testingInstructions', 'category': 'category', - 'distribution_countries': 'distributionCountries' + 'distribution_countries': 'distributionCountries', + 'automatic_distribution': 'automaticDistribution' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None): - # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]]) -> None + def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None, automatic_distribution=None): + # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]], Optional[AutomaticDistribution_a84fbfb2]) -> None """Defines the structure for publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. @@ -101,6 +106,8 @@ def __init__(self, name=None, description=None, locales=None, is_available_world :type category: (optional) str :param distribution_countries: Selected list of countries provided by the skill owner where Amazon can distribute the skill. :type distribution_countries: (optional) list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries] + :param automatic_distribution: + :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution """ self.__discriminator_value = None # type: str @@ -113,6 +120,7 @@ def __init__(self, name=None, description=None, locales=None, is_available_world self.testing_instructions = testing_instructions self.category = category self.distribution_countries = distribution_countries + self.automatic_distribution = automatic_distribution def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py index e1a01d6..c4c25dd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_apis.py @@ -24,13 +24,14 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.manifest.lambda_region import LambdaRegion as LambdaRegion_3e305f16 + from ask_smapi_model.v1.skill.manifest.supported_controls import SupportedControls as SupportedControls_f80ce036 from ask_smapi_model.v1.skill.manifest.smart_home_protocol import SmartHomeProtocol as SmartHomeProtocol_65bf853b from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 class SmartHomeApis(object): """ - Defines the structure for smart home api of the skill. + Defines the structure of smart home api of the skill. :param regions: Contains an array of the supported <region> Objects. @@ -39,24 +40,28 @@ class SmartHomeApis(object): :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint :param protocol_version: :type protocol_version: (optional) ask_smapi_model.v1.skill.manifest.smart_home_protocol.SmartHomeProtocol + :param supported_controls: + :type supported_controls: (optional) ask_smapi_model.v1.skill.manifest.supported_controls.SupportedControls """ deserialized_types = { 'regions': 'dict(str, ask_smapi_model.v1.skill.manifest.lambda_region.LambdaRegion)', 'endpoint': 'ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint', - 'protocol_version': 'ask_smapi_model.v1.skill.manifest.smart_home_protocol.SmartHomeProtocol' + 'protocol_version': 'ask_smapi_model.v1.skill.manifest.smart_home_protocol.SmartHomeProtocol', + 'supported_controls': 'ask_smapi_model.v1.skill.manifest.supported_controls.SupportedControls' } # type: Dict attribute_map = { 'regions': 'regions', 'endpoint': 'endpoint', - 'protocol_version': 'protocolVersion' + 'protocol_version': 'protocolVersion', + 'supported_controls': 'supportedControls' } # type: Dict supports_multiple_types = False - def __init__(self, regions=None, endpoint=None, protocol_version=None): - # type: (Optional[Dict[str, LambdaRegion_3e305f16]], Optional[LambdaEndpoint_87e61436], Optional[SmartHomeProtocol_65bf853b]) -> None - """Defines the structure for smart home api of the skill. + def __init__(self, regions=None, endpoint=None, protocol_version=None, supported_controls=None): + # type: (Optional[Dict[str, LambdaRegion_3e305f16]], Optional[LambdaEndpoint_87e61436], Optional[SmartHomeProtocol_65bf853b], Optional[SupportedControls_f80ce036]) -> None + """Defines the structure of smart home api of the skill. :param regions: Contains an array of the supported <region> Objects. :type regions: (optional) dict(str, ask_smapi_model.v1.skill.manifest.lambda_region.LambdaRegion) @@ -64,12 +69,15 @@ def __init__(self, regions=None, endpoint=None, protocol_version=None): :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint :param protocol_version: :type protocol_version: (optional) ask_smapi_model.v1.skill.manifest.smart_home_protocol.SmartHomeProtocol + :param supported_controls: + :type supported_controls: (optional) ask_smapi_model.v1.skill.manifest.supported_controls.SupportedControls """ self.__discriminator_value = None # type: str self.regions = regions self.endpoint = endpoint self.protocol_version = protocol_version + self.supported_controls = supported_controls def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py index 0185ce6..031a92c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/smart_home_protocol.py @@ -31,13 +31,12 @@ class SmartHomeProtocol(Enum): - Allowed enum values: [_1, _2, _2_5, _2_9, _3] + Allowed enum values: [_2, _2_0, _3, _3_0] """ - _1 = "1" _2 = "2" - _2_5 = "2.5" - _2_9 = "2.9" + _2_0 = "2.0" _3 = "3" + _3_0 = "3.0" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/source_language_for_locales.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/source_language_for_locales.py new file mode 100644 index 0000000..5b2d23d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/source_language_for_locales.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SourceLanguageForLocales(object): + """ + maps a language to a locale. During Automatic Skill Distribution, skill metadata and model of the source locale will be copied to other eligible locales of the same language. Eligible destination locales will be determined by the system. + + + :param language: two-letter string representing the language to distribute to. There must be at least one locale in publishingInformation.locales which has this language as the prefix. + :type language: (optional) str + :param source_locale: locale where the metadata and model will be copied from. This locale must already exist in the skill. + :type source_locale: (optional) str + + """ + deserialized_types = { + 'language': 'str', + 'source_locale': 'str' + } # type: Dict + + attribute_map = { + 'language': 'language', + 'source_locale': 'sourceLocale' + } # type: Dict + supports_multiple_types = False + + def __init__(self, language=None, source_locale=None): + # type: (Optional[str], Optional[str]) -> None + """maps a language to a locale. During Automatic Skill Distribution, skill metadata and model of the source locale will be copied to other eligible locales of the same language. Eligible destination locales will be determined by the system. + + :param language: two-letter string representing the language to distribute to. There must be at least one locale in publishingInformation.locales which has this language as the prefix. + :type language: (optional) str + :param source_locale: locale where the metadata and model will be copied from. This locale must already exist in the skill. + :type source_locale: (optional) str + """ + self.__discriminator_value = None # type: str + + self.language = language + self.source_locale = source_locale + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SourceLanguageForLocales): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls.py new file mode 100644 index 0000000..c9a2f21 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.supported_controls_type import SupportedControlsType as SupportedControlsType_98e28569 + + +class SupportedControls(object): + """ + (Optional) Contains the attributes specifying additional functionalities supported by the skill. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.supported_controls_type.SupportedControlsType + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.manifest.supported_controls_type.SupportedControlsType' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None): + # type: (Optional[SupportedControlsType_98e28569]) -> None + """(Optional) Contains the attributes specifying additional functionalities supported by the skill. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.supported_controls_type.SupportedControlsType + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SupportedControls): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls_type.py new file mode 100644 index 0000000..81f2b65 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/supported_controls_type.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SupportedControlsType(Enum): + """ + Type of the supported functionality. + + + + Allowed enum values: [REMOTE_VEHICLE_CONTROL] + """ + REMOTE_VEHICLE_CONTROL = "REMOTE_VEHICLE_CONTROL" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SupportedControlsType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py index 15ab88a..6e1fc70 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/version.py @@ -31,9 +31,9 @@ class Version(Enum): - Allowed enum values: [_1] + Allowed enum values: [_1_0] """ - _1 = "1" + _1_0 = "1.0" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py index bdb548b..cee3fed 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_apis_locale.py @@ -23,7 +23,9 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_smapi_model.v1.skill.manifest.video_catalog_info import VideoCatalogInfo as VideoCatalogInfo_2bd994e9 + from ask_smapi_model.v1.skill.manifest.video_prompt_name import VideoPromptName as VideoPromptName_d8845a65 + from ask_smapi_model.v1.skill.manifest.video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion as VideoFireTvCatalogIngestion_66ff327d + from ask_smapi_model.v1.skill.manifest.video_feature import VideoFeature as VideoFeature_d9ebf070 class VideoApisLocale(object): @@ -35,39 +37,53 @@ class VideoApisLocale(object): :type video_provider_targeting_names: (optional) list[str] :param video_provider_logo_uri: :type video_provider_logo_uri: (optional) str - :param catalog_information: - :type catalog_information: (optional) list[ask_smapi_model.v1.skill.manifest.video_catalog_info.VideoCatalogInfo] + :param fire_tv_catalog_ingestion: + :type fire_tv_catalog_ingestion: (optional) ask_smapi_model.v1.skill.manifest.video_fire_tv_catalog_ingestion.VideoFireTvCatalogIngestion + :param features: Defines the array of video features for this skill. + :type features: (optional) list[ask_smapi_model.v1.skill.manifest.video_feature.VideoFeature] + :param prompt_names: Name to use when Alexa renders the video skill name in a prompt to the user + :type prompt_names: (optional) list[ask_smapi_model.v1.skill.manifest.video_prompt_name.VideoPromptName] """ deserialized_types = { 'video_provider_targeting_names': 'list[str]', 'video_provider_logo_uri': 'str', - 'catalog_information': 'list[ask_smapi_model.v1.skill.manifest.video_catalog_info.VideoCatalogInfo]' + 'fire_tv_catalog_ingestion': 'ask_smapi_model.v1.skill.manifest.video_fire_tv_catalog_ingestion.VideoFireTvCatalogIngestion', + 'features': 'list[ask_smapi_model.v1.skill.manifest.video_feature.VideoFeature]', + 'prompt_names': 'list[ask_smapi_model.v1.skill.manifest.video_prompt_name.VideoPromptName]' } # type: Dict attribute_map = { 'video_provider_targeting_names': 'videoProviderTargetingNames', 'video_provider_logo_uri': 'videoProviderLogoUri', - 'catalog_information': 'catalogInformation' + 'fire_tv_catalog_ingestion': 'fireTvCatalogIngestion', + 'features': 'features', + 'prompt_names': 'promptNames' } # type: Dict supports_multiple_types = False - def __init__(self, video_provider_targeting_names=None, video_provider_logo_uri=None, catalog_information=None): - # type: (Optional[List[object]], Optional[str], Optional[List[VideoCatalogInfo_2bd994e9]]) -> None + def __init__(self, video_provider_targeting_names=None, video_provider_logo_uri=None, fire_tv_catalog_ingestion=None, features=None, prompt_names=None): + # type: (Optional[List[object]], Optional[str], Optional[VideoFireTvCatalogIngestion_66ff327d], Optional[List[VideoFeature_d9ebf070]], Optional[List[VideoPromptName_d8845a65]]) -> None """Defines the structure for localized video api information. :param video_provider_targeting_names: Defines the video provider's targeting name. :type video_provider_targeting_names: (optional) list[str] :param video_provider_logo_uri: :type video_provider_logo_uri: (optional) str - :param catalog_information: - :type catalog_information: (optional) list[ask_smapi_model.v1.skill.manifest.video_catalog_info.VideoCatalogInfo] + :param fire_tv_catalog_ingestion: + :type fire_tv_catalog_ingestion: (optional) ask_smapi_model.v1.skill.manifest.video_fire_tv_catalog_ingestion.VideoFireTvCatalogIngestion + :param features: Defines the array of video features for this skill. + :type features: (optional) list[ask_smapi_model.v1.skill.manifest.video_feature.VideoFeature] + :param prompt_names: Name to use when Alexa renders the video skill name in a prompt to the user + :type prompt_names: (optional) list[ask_smapi_model.v1.skill.manifest.video_prompt_name.VideoPromptName] """ self.__discriminator_value = None # type: str self.video_provider_targeting_names = video_provider_targeting_names self.video_provider_logo_uri = video_provider_logo_uri - self.catalog_information = catalog_information + self.fire_tv_catalog_ingestion = fire_tv_catalog_ingestion + self.features = features + self.prompt_names = prompt_names def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py new file mode 100644 index 0000000..2be5e4d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VideoFeature(object): + """ + A feature of an Alexa skill. + + + :param version: + :type version: (optional) str + :param name: + :type name: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``name`` variable. + + | VIDEO_VOICE_PROFILE: :py:class:`ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature`, + | + | VIDEO_WEB_PLAYER: :py:class:`ask_smapi_model.v1.skill.manifest.video_web_player_feature.VideoWebPlayerFeature` + + """ + deserialized_types = { + 'version': 'str', + 'name': 'str' + } # type: Dict + + attribute_map = { + 'version': 'version', + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'VIDEO_VOICE_PROFILE': 'ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature', + 'VIDEO_WEB_PLAYER': 'ask_smapi_model.v1.skill.manifest.video_web_player_feature.VideoWebPlayerFeature' + } + + json_discriminator_key = "name" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, version=None, name=None): + # type: (Optional[str], Optional[str]) -> None + """A feature of an Alexa skill. + + :param version: + :type version: (optional) str + :param name: + :type name: (optional) str + """ + self.__discriminator_value = None # type: str + + self.version = version + self.name = name + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VideoFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_fire_tv_catalog_ingestion.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_fire_tv_catalog_ingestion.py new file mode 100644 index 0000000..0eb5e79 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_fire_tv_catalog_ingestion.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VideoFireTvCatalogIngestion(object): + """ + + :param fire_tv_catalog_ingestion_source_id: + :type fire_tv_catalog_ingestion_source_id: (optional) str + :param is_fire_tv_catalog_ingestion_enabled: + :type is_fire_tv_catalog_ingestion_enabled: (optional) bool + + """ + deserialized_types = { + 'fire_tv_catalog_ingestion_source_id': 'str', + 'is_fire_tv_catalog_ingestion_enabled': 'bool' + } # type: Dict + + attribute_map = { + 'fire_tv_catalog_ingestion_source_id': 'fireTvCatalogIngestionSourceId', + 'is_fire_tv_catalog_ingestion_enabled': 'isFireTvCatalogIngestionEnabled' + } # type: Dict + supports_multiple_types = False + + def __init__(self, fire_tv_catalog_ingestion_source_id=None, is_fire_tv_catalog_ingestion_enabled=None): + # type: (Optional[str], Optional[bool]) -> None + """ + + :param fire_tv_catalog_ingestion_source_id: + :type fire_tv_catalog_ingestion_source_id: (optional) str + :param is_fire_tv_catalog_ingestion_enabled: + :type is_fire_tv_catalog_ingestion_enabled: (optional) bool + """ + self.__discriminator_value = None # type: str + + self.fire_tv_catalog_ingestion_source_id = fire_tv_catalog_ingestion_source_id + self.is_fire_tv_catalog_ingestion_enabled = is_fire_tv_catalog_ingestion_enabled + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VideoFireTvCatalogIngestion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name.py new file mode 100644 index 0000000..d3e1910 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.video_prompt_name_type import VideoPromptNameType as VideoPromptNameType_342c466 + + +class VideoPromptName(object): + """ + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.video_prompt_name_type.VideoPromptNameType + :param name: + :type name: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.manifest.video_prompt_name_type.VideoPromptNameType', + 'name': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, name=None): + # type: (Optional[VideoPromptNameType_342c466], Optional[str]) -> None + """ + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.manifest.video_prompt_name_type.VideoPromptNameType + :param name: + :type name: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.name = name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VideoPromptName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name_type.py new file mode 100644 index 0000000..51f78f9 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_prompt_name_type.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VideoPromptNameType(Enum): + """ + + + Allowed enum values: [Default] + """ + Default = "Default" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VideoPromptNameType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py index 2e193f1..0e283d1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_region.py @@ -24,7 +24,7 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.manifest.up_channel_items import UpChannelItems as UpChannelItems_408eea2d - from ask_smapi_model.v1.skill.manifest.lambda_endpoint import LambdaEndpoint as LambdaEndpoint_87e61436 + from ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint import SkillManifestEndpoint as SkillManifestEndpoint_b30bcc05 class VideoRegion(object): @@ -33,13 +33,13 @@ class VideoRegion(object): :param endpoint: - :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint + :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint :param upchannel: The channel through which the partner skill can communicate to Alexa. :type upchannel: (optional) list[ask_smapi_model.v1.skill.manifest.up_channel_items.UpChannelItems] """ deserialized_types = { - 'endpoint': 'ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint', + 'endpoint': 'ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint', 'upchannel': 'list[ask_smapi_model.v1.skill.manifest.up_channel_items.UpChannelItems]' } # type: Dict @@ -50,11 +50,11 @@ class VideoRegion(object): supports_multiple_types = False def __init__(self, endpoint=None, upchannel=None): - # type: (Optional[LambdaEndpoint_87e61436], Optional[List[UpChannelItems_408eea2d]]) -> None + # type: (Optional[SkillManifestEndpoint_b30bcc05], Optional[List[UpChannelItems_408eea2d]]) -> None """Defines the structure for endpoint information. :param endpoint: - :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.lambda_endpoint.LambdaEndpoint + :type endpoint: (optional) ask_smapi_model.v1.skill.manifest.skill_manifest_endpoint.SkillManifestEndpoint :param upchannel: The channel through which the partner skill can communicate to Alexa. :type upchannel: (optional) list[ask_smapi_model.v1.skill.manifest.up_channel_items.UpChannelItems] """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py new file mode 100644 index 0000000..eff0d1b --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.video_feature import VideoFeature + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VideoWebPlayerFeature(VideoFeature): + """ + Feature for allowing and supporting directives and CX for casting content to video web players. + + + :param version: + :type version: (optional) str + + """ + deserialized_types = { + 'version': 'str', + 'name': 'str' + } # type: Dict + + attribute_map = { + 'version': 'version', + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, version=None): + # type: (Optional[str], ) -> None + """Feature for allowing and supporting directives and CX for casting content to video web players. + + :param version: + :type version: (optional) str + """ + self.__discriminator_value = "VIDEO_WEB_PLAYER" # type: str + + self.name = self.__discriminator_value + super(VideoWebPlayerFeature, self).__init__(version=version, name=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VideoWebPlayerFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/voice_profile_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/voice_profile_feature.py new file mode 100644 index 0000000..191df33 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/voice_profile_feature.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.video_feature import VideoFeature + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VoiceProfileFeature(VideoFeature): + """ + Feature for allowing for querying for available partner voice profiles, linking Alexa Speaker ID profiles to partner speaker profiles, and sending partner speaker profiles in directives. + + + :param version: + :type version: (optional) str + + """ + deserialized_types = { + 'version': 'str', + 'name': 'str' + } # type: Dict + + attribute_map = { + 'version': 'version', + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, version=None): + # type: (Optional[str], ) -> None + """Feature for allowing for querying for available partner voice profiles, linking Alexa Speaker ID profiles to partner speaker profiles, and sending partner speaker profiles in directives. + + :param version: + :type version: (optional) str + """ + self.__discriminator_value = "VIDEO_VOICE_PROFILE" # type: str + + self.name = self.__discriminator_value + super(VoiceProfileFeature, self).__init__(version=version, name=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VoiceProfileFeature): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py index 91ece40..807e3f1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/skill_summary_apis.py @@ -29,7 +29,7 @@ class SkillSummaryApis(Enum): """ - Allowed enum values: [custom, smartHome, flashBriefing, video, music, householdList, health, alexaForBusiness] + Allowed enum values: [custom, smartHome, flashBriefing, video, music, householdList, health, alexaForBusiness, demandResponse] """ custom = "custom" smartHome = "smartHome" @@ -39,6 +39,7 @@ class SkillSummaryApis(Enum): householdList = "householdList" health = "health" alexaForBusiness = "alexaForBusiness" + demandResponse = "demandResponse" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py index a4be66e..943ab42 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/upload_response.py @@ -32,7 +32,7 @@ class UploadResponse(object): :param upload_url: The upload URL to upload a skill package. :type upload_url: (optional) str - :param expires_at: + :param expires_at: The expiration time of the URL :type expires_at: (optional) datetime """ @@ -53,7 +53,7 @@ def __init__(self, upload_url=None, expires_at=None): :param upload_url: The upload URL to upload a skill package. :type upload_url: (optional) str - :param expires_at: + :param expires_at: The expiration time of the URL :type expires_at: (optional) datetime """ self.__discriminator_value = None # type: str From d816dd73c55bcc2278fef0cec2c3ff7650e2867d Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 10 Jun 2021 19:48:38 +0000 Subject: [PATCH 014/111] Release 1.9.2. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 ++ .../ask_smapi_model/__version__.py | 2 +- .../interaction_model_attributes.py | 15 ++- .../v1/skill/invocations/skill_request.py | 4 +- .../v1/skill/manifest/__init__.py | 1 - .../amazon_conversations_dialog_manager.py | 4 +- .../skill/manifest/authorized_client_lwa.py | 16 ++- ...thorized_client_lwa_application_android.py | 22 +++- .../v1/skill/manifest/permission_name.py | 3 +- .../v1/skill/manifest/video_feature.py | 7 +- .../manifest/video_web_player_feature.py | 112 ------------------ .../invocations/invocation_response_status.py | 6 +- .../v2/skill/invocations/skill_request.py | 4 +- 13 files changed, 63 insertions(+), 141 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index f8b9f37..8baa5b7 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -173,3 +173,11 @@ This release contains the following changes : - General bug fixes and updates. - Model definition updates to support `AlexaCustomerFeedbackEvent.SkillReviewPublish `__ event notifications for skill developers in SMAPI. - Developers can subscribe to this `new event and get notified `__ whenever there is a customer-review published for their skills. + + +1.9.2 +^^^^^ + +This release contains the following changes : + +- general bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 9ecdef9..b1e8153 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.9.1' +__version__ = '1.9.2' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py index 90a6a9b..2924e65 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/interaction_model_attributes.py @@ -35,31 +35,38 @@ class InteractionModelAttributes(SkillAttributes): :type skill_id: (optional) str :param vendor_id: Unique identifier of vendor account to which this skill belongs. :type vendor_id: (optional) str + :param locale: Locale of interaction model. + :type locale: (optional) str """ deserialized_types = { 'skill_id': 'str', - 'vendor_id': 'str' + 'vendor_id': 'str', + 'locale': 'str' } # type: Dict attribute_map = { 'skill_id': 'skillId', - 'vendor_id': 'vendorId' + 'vendor_id': 'vendorId', + 'locale': 'locale' } # type: Dict supports_multiple_types = False - def __init__(self, skill_id=None, vendor_id=None): - # type: (Optional[str], Optional[str]) -> None + def __init__(self, skill_id=None, vendor_id=None, locale=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None """Represents a set of attributes specific to interaction model of an Alexa Skill. :param skill_id: Unique identifier of an Alexa skill. :type skill_id: (optional) str :param vendor_id: Unique identifier of vendor account to which this skill belongs. :type vendor_id: (optional) str + :param locale: Locale of interaction model. + :type locale: (optional) str """ self.__discriminator_value = None # type: str super(InteractionModelAttributes, self).__init__(skill_id=skill_id, vendor_id=vendor_id) + self.locale = locale def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py index df84dec..5132292 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/skill_request.py @@ -28,7 +28,7 @@ class SkillRequest(object): """ - :param body: ASK request body schema as defined in the public facing documentation (https://tiny.amazon.com/1h8keglep/deveamazpublsolualexalexdocs) + :param body: ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax) :type body: (optional) object """ @@ -45,7 +45,7 @@ def __init__(self, body=None): # type: (Optional[object]) -> None """ - :param body: ASK request body schema as defined in the public facing documentation (https://tiny.amazon.com/1h8keglep/deveamazpublsolualexalexdocs) + :param body: ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax) :type body: (optional) object """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 529b31b..9213a17 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -21,7 +21,6 @@ from .music_feature import MusicFeature from .dialog_delegation_strategy import DialogDelegationStrategy from .skill_manifest_endpoint import SkillManifestEndpoint -from .video_web_player_feature import VideoWebPlayerFeature from .authorized_client_lwa_application import AuthorizedClientLwaApplication from .extension_request import ExtensionRequest from .voice_profile_feature import VoiceProfileFeature diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py index 473ed29..bd9892c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/amazon_conversations_dialog_manager.py @@ -28,7 +28,7 @@ class AMAZONConversationsDialogManager(DialogManager): """ - The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. See https://w.amazon.com/bin/view/Digital/Alexa/ConversationalAI/Coltrane + The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. @@ -44,7 +44,7 @@ class AMAZONConversationsDialogManager(DialogManager): def __init__(self): # type: () -> None - """The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. See https://w.amazon.com/bin/view/Digital/Alexa/ConversationalAI/Coltrane + """The type of dialog manager: * AMAZON.Conversations - The Alexa Conversations (Coltrane) model for this skill. """ self.__discriminator_value = "AMAZON.Conversations" # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py index d49b8b4..bdcb200 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa.py @@ -24,6 +24,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.authorized_client_lwa_application import AuthorizedClientLwaApplication as AuthorizedClientLwaApplication_39c79ff0 class AuthorizedClientLwa(AuthorizedClient): @@ -33,27 +34,34 @@ class AuthorizedClientLwa(AuthorizedClient): :param authentication_provider: :type authentication_provider: (optional) str + :param applications: + :type applications: (optional) list[ask_smapi_model.v1.skill.manifest.authorized_client_lwa_application.AuthorizedClientLwaApplication] """ deserialized_types = { - 'authentication_provider': 'str' + 'authentication_provider': 'str', + 'applications': 'list[ask_smapi_model.v1.skill.manifest.authorized_client_lwa_application.AuthorizedClientLwaApplication]' } # type: Dict attribute_map = { - 'authentication_provider': 'authenticationProvider' + 'authentication_provider': 'authenticationProvider', + 'applications': 'applications' } # type: Dict supports_multiple_types = False - def __init__(self, authentication_provider=None): - # type: (Optional[str]) -> None + def __init__(self, authentication_provider=None, applications=None): + # type: (Optional[str], Optional[List[AuthorizedClientLwaApplication_39c79ff0]]) -> None """Defines client using Login With Amazon authentication provider, corresponds to LWA Security Profile. :param authentication_provider: :type authentication_provider: (optional) str + :param applications: + :type applications: (optional) list[ask_smapi_model.v1.skill.manifest.authorized_client_lwa_application.AuthorizedClientLwaApplication] """ self.__discriminator_value = None # type: str super(AuthorizedClientLwa, self).__init__(authentication_provider=authentication_provider) + self.applications = applications def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py index 7d67915..e78d2cb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/authorized_client_lwa_application_android.py @@ -33,27 +33,41 @@ class AuthorizedClientLwaApplicationAndroid(AuthorizedClientLwaApplication): :param object_type: :type object_type: (optional) str + :param app_store_app_id: + :type app_store_app_id: (optional) str + :param client_id: + :type client_id: (optional) str """ deserialized_types = { - 'object_type': 'str' + 'object_type': 'str', + 'app_store_app_id': 'str', + 'client_id': 'str' } # type: Dict attribute_map = { - 'object_type': 'type' + 'object_type': 'type', + 'app_store_app_id': 'appStoreAppId', + 'client_id': 'clientId' } # type: Dict supports_multiple_types = False - def __init__(self, object_type=None): - # type: (Optional[str]) -> None + def __init__(self, object_type=None, app_store_app_id=None, client_id=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None """Defines an android application for LWA authentication provider. :param object_type: :type object_type: (optional) str + :param app_store_app_id: + :type app_store_app_id: (optional) str + :param client_id: + :type client_id: (optional) str """ self.__discriminator_value = None # type: str super(AuthorizedClientLwaApplicationAndroid, self).__init__(object_type=object_type) + self.app_store_app_id = app_store_app_id + self.client_id = client_id def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 5c6eede..c1710c0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -66,6 +66,7 @@ class PermissionName(Enum): alexa_person_id_read = "alexa::person_id:read" alexa_skill_products_entitlements = "alexa::skill:products:entitlements" alexa_energy_devices_state_read = "alexa::energy:devices:state:read" + alexa_origin_ip_address_read = "alexa::origin_ip_address:read" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py index 2be5e4d..63f9c35 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_feature.py @@ -41,9 +41,7 @@ class VideoFeature(object): This is an abstract class. Use the following mapping, to figure out the model class to be instantiated, that sets ``name`` variable. - | VIDEO_VOICE_PROFILE: :py:class:`ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature`, - | - | VIDEO_WEB_PLAYER: :py:class:`ask_smapi_model.v1.skill.manifest.video_web_player_feature.VideoWebPlayerFeature` + | VIDEO_VOICE_PROFILE: :py:class:`ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature` """ deserialized_types = { @@ -58,8 +56,7 @@ class VideoFeature(object): supports_multiple_types = False discriminator_value_class_map = { - 'VIDEO_VOICE_PROFILE': 'ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature', - 'VIDEO_WEB_PLAYER': 'ask_smapi_model.v1.skill.manifest.video_web_player_feature.VideoWebPlayerFeature' + 'VIDEO_VOICE_PROFILE': 'ask_smapi_model.v1.skill.manifest.voice_profile_feature.VoiceProfileFeature' } json_discriminator_key = "name" diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py deleted file mode 100644 index eff0d1b..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/video_web_player_feature.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.manifest.video_feature import VideoFeature - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class VideoWebPlayerFeature(VideoFeature): - """ - Feature for allowing and supporting directives and CX for casting content to video web players. - - - :param version: - :type version: (optional) str - - """ - deserialized_types = { - 'version': 'str', - 'name': 'str' - } # type: Dict - - attribute_map = { - 'version': 'version', - 'name': 'name' - } # type: Dict - supports_multiple_types = False - - def __init__(self, version=None): - # type: (Optional[str], ) -> None - """Feature for allowing and supporting directives and CX for casting content to video web players. - - :param version: - :type version: (optional) str - """ - self.__discriminator_value = "VIDEO_WEB_PLAYER" # type: str - - self.name = self.__discriminator_value - super(VideoWebPlayerFeature, self).__init__(version=version, name=self.__discriminator_value) - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, VideoWebPlayerFeature): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py index 2267aae..3d6dd54 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/invocation_response_status.py @@ -27,13 +27,13 @@ class InvocationResponseStatus(Enum): """ - String that specifies the status of skill invocation. Possible values are \"SUCCEEDED\", and \"FAILED\". + String that specifies the status of skill invocation. Possible values are \"SUCCESSFUL\", and \"FAILED\". - Allowed enum values: [SUCCEEDED, FAILED] + Allowed enum values: [SUCCESSFUL, FAILED] """ - SUCCEEDED = "SUCCEEDED" + SUCCESSFUL = "SUCCESSFUL" FAILED = "FAILED" def to_dict(self): diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py index df84dec..5132292 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/skill_request.py @@ -28,7 +28,7 @@ class SkillRequest(object): """ - :param body: ASK request body schema as defined in the public facing documentation (https://tiny.amazon.com/1h8keglep/deveamazpublsolualexalexdocs) + :param body: ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax) :type body: (optional) object """ @@ -45,7 +45,7 @@ def __init__(self, body=None): # type: (Optional[object]) -> None """ - :param body: ASK request body schema as defined in the public facing documentation (https://tiny.amazon.com/1h8keglep/deveamazpublsolualexalexdocs) + :param body: ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax) :type body: (optional) object """ self.__discriminator_value = None # type: str From 714407a438666ad2f0e4a3507eb8d6a7c00de9bd Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Wed, 21 Jul 2021 14:55:13 +0000 Subject: [PATCH 015/111] Release 1.31.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 8 +++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../services/datastore/__init__.py | 16 +++++ .../ask_sdk_model/services/datastore/py.typed | 0 .../services/datastore/v1/__init__.py | 17 +++++ .../services/datastore/v1/py.typed | 0 .../services/datastore/v1/skill_stage.py | 67 +++++++++++++++++++ ask-sdk-model/ask_sdk_model/ui/reprompt.py | 16 +++-- 8 files changed, 121 insertions(+), 5 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index bac0418..6d030d3 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -389,3 +389,11 @@ This release contains the following changes : This release contains the following changes : - Adding missing definitions for APL 1.6. More information can be found `here `__. + + +1.31.0 +~~~~~~ + +This release includes the following: + +- Adding support for directives in Reprompt diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 166daa2..55b30f9 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.30.1' +__version__ = '1.31.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py new file mode 100644 index 0000000..57220ec --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py @@ -0,0 +1,16 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py new file mode 100644 index 0000000..4fc27dd --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .skill_stage import SkillStage diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py new file mode 100644 index 0000000..b929216 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SkillStage(Enum): + """ + the stage of the skill. + + + + Allowed enum values: [DEVELOPMENT, LIVE, CERTIFICATION] + """ + DEVELOPMENT = "DEVELOPMENT" + LIVE = "LIVE" + CERTIFICATION = "CERTIFICATION" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SkillStage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/ui/reprompt.py b/ask-sdk-model/ask_sdk_model/ui/reprompt.py index 5889dec..e9cacb9 100644 --- a/ask-sdk-model/ask_sdk_model/ui/reprompt.py +++ b/ask-sdk-model/ask_sdk_model/ui/reprompt.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_sdk_model.directive import Directive as Directive_e3e6b000 from ask_sdk_model.ui.output_speech import OutputSpeech as OutputSpeech_a070f8fb @@ -31,27 +32,34 @@ class Reprompt(object): :param output_speech: :type output_speech: (optional) ask_sdk_model.ui.output_speech.OutputSpeech + :param directives: + :type directives: (optional) list[ask_sdk_model.directive.Directive] """ deserialized_types = { - 'output_speech': 'ask_sdk_model.ui.output_speech.OutputSpeech' + 'output_speech': 'ask_sdk_model.ui.output_speech.OutputSpeech', + 'directives': 'list[ask_sdk_model.directive.Directive]' } # type: Dict attribute_map = { - 'output_speech': 'outputSpeech' + 'output_speech': 'outputSpeech', + 'directives': 'directives' } # type: Dict supports_multiple_types = False - def __init__(self, output_speech=None): - # type: (Optional[OutputSpeech_a070f8fb]) -> None + def __init__(self, output_speech=None, directives=None): + # type: (Optional[OutputSpeech_a070f8fb], Optional[List[Directive_e3e6b000]]) -> None """ :param output_speech: :type output_speech: (optional) ask_sdk_model.ui.output_speech.OutputSpeech + :param directives: + :type directives: (optional) list[ask_sdk_model.directive.Directive] """ self.__discriminator_value = None # type: str self.output_speech = output_speech + self.directives = directives def to_dict(self): # type: () -> Dict[str, object] From 08bac551470bacb9c04dcc900600eed57788c95f Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Wed, 21 Jul 2021 15:48:31 +0000 Subject: [PATCH 016/111] Release 1.31.1. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 9 +++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../services/datastore/__init__.py | 16 ----- .../ask_sdk_model/services/datastore/py.typed | 0 .../services/datastore/v1/__init__.py | 17 ----- .../services/datastore/v1/py.typed | 0 .../services/datastore/v1/skill_stage.py | 67 ------------------- 7 files changed, 10 insertions(+), 101 deletions(-) delete mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/__init__.py delete mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/py.typed delete mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py delete mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed delete mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 6d030d3..55a3865 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -397,3 +397,12 @@ This release contains the following changes : This release includes the following: - Adding support for directives in Reprompt + + +1.31.1 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions + diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 55b30f9..8d1db6e 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.31.0' +__version__ = '1.31.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py deleted file mode 100644 index 57220ec..0000000 --- a/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py deleted file mode 100644 index 4fc27dd..0000000 --- a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - -from .skill_stage import SkillStage diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py deleted file mode 100644 index b929216..0000000 --- a/ask-sdk-model/ask_sdk_model/services/datastore/v1/skill_stage.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class SkillStage(Enum): - """ - the stage of the skill. - - - - Allowed enum values: [DEVELOPMENT, LIVE, CERTIFICATION] - """ - DEVELOPMENT = "DEVELOPMENT" - LIVE = "LIVE" - CERTIFICATION = "CERTIFICATION" - - def to_dict(self): - # type: () -> Dict[str, Any] - """Returns the model properties as a dict""" - result = {self.name: self.value} - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.value) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (Any) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, SkillStage): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (Any) -> bool - """Returns true if both objects are not equal""" - return not self == other From b7499ed75f730df6037ccc42d0d8f8a2fd1621b6 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Wed, 21 Jul 2021 10:39:04 -0700 Subject: [PATCH 017/111] fix: version bump to fix release automation --- ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index b1e8153..1722948 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.9.2' +__version__ = '1.10.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From db7447a2077dd241c7d30df6ba3706d0070d6613 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Wed, 21 Jul 2021 17:48:53 +0000 Subject: [PATCH 018/111] Release 1.11.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 10 ++ .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 2 +- .../v1/skill/manifest/__init__.py | 2 + .../skill/manifest/automatic_cloned_locale.py | 109 +++++++++++++++++ .../locales_by_automatic_cloned_locale.py | 115 ++++++++++++++++++ .../skill_manifest_publishing_information.py | 16 ++- .../v1/skill/simulations/__init__.py | 2 + .../v1/skill/simulations/simulation.py | 109 +++++++++++++++++ .../v1/skill/simulations/simulation_type.py | 66 ++++++++++ .../simulations/simulations_api_request.py | 16 ++- .../v2/skill/simulations/__init__.py | 2 + .../v2/skill/simulations/simulation.py | 109 +++++++++++++++++ .../v2/skill/simulations/simulation_type.py | 66 ++++++++++ .../simulations/simulations_api_request.py | 16 ++- 15 files changed, 628 insertions(+), 14 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_cloned_locale.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/locales_by_automatic_cloned_locale.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation.py create mode 100644 ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 8baa5b7..6c34bdb 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -181,3 +181,13 @@ This release contains the following changes : This release contains the following changes : - general bug fixes and updates + + +1.11.0 +~~~~~~ + +This release contains the following changes : + +- Updating model definitions +- Added new model definitions for Simulation APIs +- Added new model definitions for AutomaticClonedLocale diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 1722948..098d764 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.10.0' +__version__ = '1.11.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 1467e38..cabc7d2 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -13304,7 +13304,7 @@ def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): # type: (str, str, SimulationsApiRequest_ae2e6503, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] """ Simulate executing a skill with the given id against a given stage. - This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. + This is an asynchronous API that simulates a skill execution in the Alexa eco-system given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API results in an error, the response will contain an error code and a description of the problem. The skill being simulated must belong to and be enabled by the user of this API. Concurrent requests per user is currently not supported. :param skill_id: (required) The skill ID. :type skill_id: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 9213a17..6af15f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -60,6 +60,7 @@ from .source_language_for_locales import SourceLanguageForLocales from .dialog_manager import DialogManager from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .automatic_cloned_locale import AutomaticClonedLocale from .distribution_countries import DistributionCountries from .skill_manifest_publishing_information import SkillManifestPublishingInformation from .gadget_support_requirement import GadgetSupportRequirement @@ -112,6 +113,7 @@ from .custom_localized_information import CustomLocalizedInformation from .video_prompt_name_type import VideoPromptNameType from .video_prompt_name import VideoPromptName +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale from .custom_task import CustomTask from .supported_controls_type import SupportedControlsType from .localized_music_info import LocalizedMusicInfo diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_cloned_locale.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_cloned_locale.py new file mode 100644 index 0000000..0e2b5aa --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/automatic_cloned_locale.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale as LocalesByAutomaticClonedLocale_4ad48a75 + + +class AutomaticClonedLocale(object): + """ + Defines the structure for Sync Locales in the skill manifest. This is an optional property and Sync Locales will be disabled if not set. + + + :param locales: List of language specific source locale to target locales mapping. + :type locales: (optional) list[ask_smapi_model.v1.skill.manifest.locales_by_automatic_cloned_locale.LocalesByAutomaticClonedLocale] + + """ + deserialized_types = { + 'locales': 'list[ask_smapi_model.v1.skill.manifest.locales_by_automatic_cloned_locale.LocalesByAutomaticClonedLocale]' + } # type: Dict + + attribute_map = { + 'locales': 'locales' + } # type: Dict + supports_multiple_types = False + + def __init__(self, locales=None): + # type: (Optional[List[LocalesByAutomaticClonedLocale_4ad48a75]]) -> None + """Defines the structure for Sync Locales in the skill manifest. This is an optional property and Sync Locales will be disabled if not set. + + :param locales: List of language specific source locale to target locales mapping. + :type locales: (optional) list[ask_smapi_model.v1.skill.manifest.locales_by_automatic_cloned_locale.LocalesByAutomaticClonedLocale] + """ + self.__discriminator_value = None # type: str + + self.locales = locales + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AutomaticClonedLocale): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/locales_by_automatic_cloned_locale.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/locales_by_automatic_cloned_locale.py new file mode 100644 index 0000000..b3f8b90 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/locales_by_automatic_cloned_locale.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class LocalesByAutomaticClonedLocale(object): + """ + maps source locale to list of target locales. Source and target locales should be with the same language. + + + :param source: Locale where the metadata and model will be copied from. For example: en-US. This locale must already exist in the skill. + :type source: (optional) str + :param targets: Optional. List of locales where the metadata and model will be copied to. All configuration of source locale will be copied, so target locales do not have to exist before. Defaults to all locales with the same language as the sourceLocale. + :type targets: (optional) list[str] + + """ + deserialized_types = { + 'source': 'str', + 'targets': 'list[str]' + } # type: Dict + + attribute_map = { + 'source': 'source', + 'targets': 'targets' + } # type: Dict + supports_multiple_types = False + + def __init__(self, source=None, targets=None): + # type: (Optional[str], Optional[List[object]]) -> None + """maps source locale to list of target locales. Source and target locales should be with the same language. + + :param source: Locale where the metadata and model will be copied from. For example: en-US. This locale must already exist in the skill. + :type source: (optional) str + :param targets: Optional. List of locales where the metadata and model will be copied to. All configuration of source locale will be copied, so target locales do not have to exist before. Defaults to all locales with the same language as the sourceLocale. + :type targets: (optional) list[str] + """ + self.__discriminator_value = None # type: str + + self.source = source + self.targets = targets + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LocalesByAutomaticClonedLocale): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py index f28e83d..a7d9c3c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py @@ -27,6 +27,7 @@ from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation as SkillManifestLocalizedPublishingInformation_1e8ff5fd from ask_smapi_model.v1.skill.manifest.distribution_countries import DistributionCountries as DistributionCountries_33dc1fd4 from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as DistributionMode_7068bbf0 + from ask_smapi_model.v1.skill.manifest.automatic_cloned_locale import AutomaticClonedLocale as AutomaticClonedLocale_4c2a4dc3 from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupport as ManifestGadgetSupport_2efdc899 @@ -55,6 +56,8 @@ class SkillManifestPublishingInformation(object): :type distribution_countries: (optional) list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries] :param automatic_distribution: :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution + :param automatic_cloned_locale: + :type automatic_cloned_locale: (optional) ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale """ deserialized_types = { @@ -67,7 +70,8 @@ class SkillManifestPublishingInformation(object): 'testing_instructions': 'str', 'category': 'str', 'distribution_countries': 'list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries]', - 'automatic_distribution': 'ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution' + 'automatic_distribution': 'ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution', + 'automatic_cloned_locale': 'ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale' } # type: Dict attribute_map = { @@ -80,12 +84,13 @@ class SkillManifestPublishingInformation(object): 'testing_instructions': 'testingInstructions', 'category': 'category', 'distribution_countries': 'distributionCountries', - 'automatic_distribution': 'automaticDistribution' + 'automatic_distribution': 'automaticDistribution', + 'automatic_cloned_locale': 'automaticClonedLocale' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None, automatic_distribution=None): - # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]], Optional[AutomaticDistribution_a84fbfb2]) -> None + def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None, automatic_distribution=None, automatic_cloned_locale=None): + # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]], Optional[AutomaticDistribution_a84fbfb2], Optional[AutomaticClonedLocale_4c2a4dc3]) -> None """Defines the structure for publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. @@ -108,6 +113,8 @@ def __init__(self, name=None, description=None, locales=None, is_available_world :type distribution_countries: (optional) list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries] :param automatic_distribution: :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution + :param automatic_cloned_locale: + :type automatic_cloned_locale: (optional) ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale """ self.__discriminator_value = None # type: str @@ -121,6 +128,7 @@ def __init__(self, name=None, description=None, locales=None, is_available_world self.category = category self.distribution_countries = distribution_countries self.automatic_distribution = automatic_distribution + self.automatic_cloned_locale = automatic_cloned_locale def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 6d117a7..1b585d2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -20,6 +20,7 @@ from .simulations_api_response import SimulationsApiResponse from .simulation_result import SimulationResult from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation_type import SimulationType from .alexa_execution_info import AlexaExecutionInfo from .device import Device from .invocation_request import InvocationRequest @@ -28,4 +29,5 @@ from .metrics import Metrics from .invocation_response import InvocationResponse from .invocation import Invocation +from .simulation import Simulation from .session_mode import SessionMode diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation.py new file mode 100644 index 0000000..275a84d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.simulations.simulation_type import SimulationType as SimulationType_e617dca5 + + +class Simulation(object): + """ + Simulation settings for the current simulation request. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.simulations.simulation_type.SimulationType + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.simulations.simulation_type.SimulationType' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None): + # type: (Optional[SimulationType_e617dca5]) -> None + """Simulation settings for the current simulation request. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.simulations.simulation_type.SimulationType + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Simulation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py new file mode 100644 index 0000000..d58e4df --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SimulationType(Enum): + """ + String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"DEFAULT\" is used to proceed with the default skill simulation behavior. \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. + + + + Allowed enum values: [DEFAULT, NFI_ISOLATED_SIMULATION] + """ + DEFAULT = "DEFAULT" + NFI_ISOLATED_SIMULATION = "NFI_ISOLATED_SIMULATION" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SimulationType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py index 3c4387b..076b74e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulations_api_request.py @@ -26,6 +26,7 @@ from ask_smapi_model.v1.skill.simulations.session import Session as Session_700bf076 from ask_smapi_model.v1.skill.simulations.device import Device as Device_88be9466 from ask_smapi_model.v1.skill.simulations.input import Input as Input_7307d1de + from ask_smapi_model.v1.skill.simulations.simulation import Simulation as Simulation_618c97c6 class SimulationsApiRequest(object): @@ -37,23 +38,27 @@ class SimulationsApiRequest(object): :type device: (optional) ask_smapi_model.v1.skill.simulations.device.Device :param session: :type session: (optional) ask_smapi_model.v1.skill.simulations.session.Session + :param simulation: + :type simulation: (optional) ask_smapi_model.v1.skill.simulations.simulation.Simulation """ deserialized_types = { 'input': 'ask_smapi_model.v1.skill.simulations.input.Input', 'device': 'ask_smapi_model.v1.skill.simulations.device.Device', - 'session': 'ask_smapi_model.v1.skill.simulations.session.Session' + 'session': 'ask_smapi_model.v1.skill.simulations.session.Session', + 'simulation': 'ask_smapi_model.v1.skill.simulations.simulation.Simulation' } # type: Dict attribute_map = { 'input': 'input', 'device': 'device', - 'session': 'session' + 'session': 'session', + 'simulation': 'simulation' } # type: Dict supports_multiple_types = False - def __init__(self, input=None, device=None, session=None): - # type: (Optional[Input_7307d1de], Optional[Device_88be9466], Optional[Session_700bf076]) -> None + def __init__(self, input=None, device=None, session=None, simulation=None): + # type: (Optional[Input_7307d1de], Optional[Device_88be9466], Optional[Session_700bf076], Optional[Simulation_618c97c6]) -> None """ :param input: @@ -62,12 +67,15 @@ def __init__(self, input=None, device=None, session=None): :type device: (optional) ask_smapi_model.v1.skill.simulations.device.Device :param session: :type session: (optional) ask_smapi_model.v1.skill.simulations.session.Session + :param simulation: + :type simulation: (optional) ask_smapi_model.v1.skill.simulations.simulation.Simulation """ self.__discriminator_value = None # type: str self.input = input self.device = device self.session = session + self.simulation = simulation def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index eb87051..250424f 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -25,12 +25,14 @@ from .simulation_result import SimulationResult from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation_type import SimulationType from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems from .alexa_execution_info import AlexaExecutionInfo from .device import Device from .alexa_response import AlexaResponse from .session import Session from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .simulation import Simulation from .skill_execution_info import SkillExecutionInfo from .session_mode import SessionMode from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation.py new file mode 100644 index 0000000..1affd6c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v2.skill.simulations.simulation_type import SimulationType as SimulationType_d7c182c4 + + +class Simulation(object): + """ + Simulation settings for the current simulation request. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v2.skill.simulations.simulation_type.SimulationType + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v2.skill.simulations.simulation_type.SimulationType' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None): + # type: (Optional[SimulationType_d7c182c4]) -> None + """Simulation settings for the current simulation request. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v2.skill.simulations.simulation_type.SimulationType + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Simulation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py new file mode 100644 index 0000000..d58e4df --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SimulationType(Enum): + """ + String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"DEFAULT\" is used to proceed with the default skill simulation behavior. \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. + + + + Allowed enum values: [DEFAULT, NFI_ISOLATED_SIMULATION] + """ + DEFAULT = "DEFAULT" + NFI_ISOLATED_SIMULATION = "NFI_ISOLATED_SIMULATION" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SimulationType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py index 93097a8..3309cf5 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulations_api_request.py @@ -25,6 +25,7 @@ from datetime import datetime from ask_smapi_model.v2.skill.simulations.device import Device as Device_6965067 from ask_smapi_model.v2.skill.simulations.input import Input as Input_87f09a1f + from ask_smapi_model.v2.skill.simulations.simulation import Simulation as Simulation_ee2cc2c7 from ask_smapi_model.v2.skill.simulations.session import Session as Session_d6e4b037 @@ -37,23 +38,27 @@ class SimulationsApiRequest(object): :type device: (optional) ask_smapi_model.v2.skill.simulations.device.Device :param session: :type session: (optional) ask_smapi_model.v2.skill.simulations.session.Session + :param simulation: + :type simulation: (optional) ask_smapi_model.v2.skill.simulations.simulation.Simulation """ deserialized_types = { 'input': 'ask_smapi_model.v2.skill.simulations.input.Input', 'device': 'ask_smapi_model.v2.skill.simulations.device.Device', - 'session': 'ask_smapi_model.v2.skill.simulations.session.Session' + 'session': 'ask_smapi_model.v2.skill.simulations.session.Session', + 'simulation': 'ask_smapi_model.v2.skill.simulations.simulation.Simulation' } # type: Dict attribute_map = { 'input': 'input', 'device': 'device', - 'session': 'session' + 'session': 'session', + 'simulation': 'simulation' } # type: Dict supports_multiple_types = False - def __init__(self, input=None, device=None, session=None): - # type: (Optional[Input_87f09a1f], Optional[Device_6965067], Optional[Session_d6e4b037]) -> None + def __init__(self, input=None, device=None, session=None, simulation=None): + # type: (Optional[Input_87f09a1f], Optional[Device_6965067], Optional[Session_d6e4b037], Optional[Simulation_ee2cc2c7]) -> None """ :param input: @@ -62,12 +67,15 @@ def __init__(self, input=None, device=None, session=None): :type device: (optional) ask_smapi_model.v2.skill.simulations.device.Device :param session: :type session: (optional) ask_smapi_model.v2.skill.simulations.session.Session + :param simulation: + :type simulation: (optional) ask_smapi_model.v2.skill.simulations.simulation.Simulation """ self.__discriminator_value = None # type: str self.input = input self.device = device self.session = session + self.simulation = simulation def to_dict(self): # type: () -> Dict[str, object] From c257534ebdaa7ea146011b9dfe8bd9494a8d1ee0 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Fri, 23 Jul 2021 20:59:52 +0000 Subject: [PATCH 019/111] Release 1.12.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 ++++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../v1/skill/alexa_hosted/hosted_skill_runtime.py | 5 +++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 6c34bdb..5d8b6db 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -191,3 +191,11 @@ This release contains the following changes : - Updating model definitions - Added new model definitions for Simulation APIs - Added new model definitions for AutomaticClonedLocale + + +1.12.0 +~~~~~~ + +This release contains the following changes : + +- Updating model definitions to support Node.js 12.x on Alexa Hosted Skills. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 098d764..df0b576 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.11.0' +__version__ = '1.12.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py index 4403669..36ceed1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py @@ -27,14 +27,15 @@ class HostedSkillRuntime(Enum): """ - Hosted skill lambda runtime; Node.js 10.x is deprecated by Hosted Skill service as of April 30, 2021. + Hosted skill lambda runtime; Node.js 10.x is deprecated by Hosted Skill service as of July 30, 2021. - Allowed enum values: [NODE_10_X, PYTHON_3_7] + Allowed enum values: [NODE_10_X, PYTHON_3_7, NODE_12_X] """ NODE_10_X = "NODE_10_X" PYTHON_3_7 = "PYTHON_3_7" + NODE_12_X = "NODE_12_X" def to_dict(self): # type: () -> Dict[str, Any] From a68f94b7a0e41f819595d6fe56e800403e8a4194 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 9 Aug 2021 23:51:39 +0000 Subject: [PATCH 020/111] Release 1.13.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 40 ++--- .../v1/skill/manifest/__init__.py | 10 ++ .../v1/skill/manifest/currency.py | 65 ++++++++ .../skill/manifest/custom_product_prompts.py | 115 ++++++++++++++ .../skill/manifest/free_trial_information.py | 108 ++++++++++++++ .../v1/skill/manifest/marketplace_pricing.py | 140 ++++++++++++++++++ .../v1/skill/manifest/offer_type.py | 66 +++++++++ .../skill/manifest/paid_skill_information.py | 116 +++++++++++++++ ...nifest_localized_publishing_information.py | 16 +- .../skill_manifest_publishing_information.py | 16 +- .../manifest/subscription_information.py | 109 ++++++++++++++ .../subscription_payment_frequency.py | 66 +++++++++ .../v1/skill/manifest/tax_information.py | 109 ++++++++++++++ .../manifest/tax_information_category.py | 71 +++++++++ 16 files changed, 1028 insertions(+), 29 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/currency.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_product_prompts.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/free_trial_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/marketplace_pricing.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/offer_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/paid_skill_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_payment_frequency.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information_category.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 5d8b6db..6c481cc 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -199,3 +199,11 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions to support Node.js 12.x on Alexa Hosted Skills. + + +1.13.0 +~~~~~~ + +This release contains the following changes : + +- Added models to support `Paid skills `__. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index df0b576..4d11350 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.12.0' +__version__ = '1.13.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index cabc7d2..1097ee9 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -304,7 +304,7 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): :type catalog_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -791,7 +791,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -1170,7 +1170,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param subscriber_id: Unique identifier of the subscriber. If this query parameter is provided, the list would be filtered by the owning subscriberId. :type subscriber_id: str @@ -3167,7 +3167,7 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3586,7 +3586,7 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) :type catalog_id: str :param version: (required) Version for interaction model. :type version: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3673,7 +3673,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3831,7 +3831,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4065,7 +4065,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): :param job_id: (required) The identifier for dynamic jobs. :type job_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4374,7 +4374,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4837,7 +4837,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): :param slot_type_id: (required) The identifier for a slot type. :type slot_type_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -5327,7 +5327,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param skill_id: The list of skillIds that you wish to get the summary for. A maximum of 10 skillIds can be specified to get the skill summary in single listSkills call. Please note that this parameter must not be used with 'nextToken' or/and 'maxResults' parameter. :type skill_id: list[str] @@ -7764,7 +7764,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -7988,7 +7988,7 @@ def get_utterance_data_v1(self, skill_id, stage, **kwargs): :type stage: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str @@ -8295,7 +8295,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s :type intent: str :param locale: The locale for the skill. e.g. en-GB, en-US, de-DE and etc. :type locale: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -9955,7 +9955,7 @@ def get_smarthome_capablity_evaluation_results_v1(self, skill_id, evaluation_id, :type skill_id: str :param evaluation_id: (required) A unique ID to identify each Smart Home capability evaluation. :type evaluation_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -10048,7 +10048,7 @@ def list_smarthome_capability_evaluations_v1(self, skill_id, stage, **kwargs): :type start_timestamp_from: datetime :param start_timestamp_to: The end of the start time to query evaluation result. :type start_timestamp_to: datetime - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -10217,7 +10217,7 @@ def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): :param skill_id: (required) The skill ID. :type skill_id: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -11165,7 +11165,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): :type stage: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -12147,7 +12147,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg :type locale: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str @@ -12858,7 +12858,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :param max_results: Maximum number of datapoints in a single result for a query :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 6af15f0..03ee74b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -25,12 +25,15 @@ from .extension_request import ExtensionRequest from .voice_profile_feature import VoiceProfileFeature from .ssl_certificate_type import SSLCertificateType +from .currency import Currency from .viewport_mode import ViewportMode from .skill_manifest_events import SkillManifestEvents from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest from .flash_briefing_content_type import FlashBriefingContentType +from .tax_information import TaxInformation from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance from .authorized_client_lwa import AuthorizedClientLwa +from .free_trial_information import FreeTrialInformation from .interface_type import InterfaceType from .music_apis import MusicApis from .distribution_mode import DistributionMode @@ -55,6 +58,8 @@ from .music_alias import MusicAlias from .video_feature import VideoFeature from .music_content_type import MusicContentType +from .subscription_information import SubscriptionInformation +from .subscription_payment_frequency import SubscriptionPaymentFrequency from .friendly_name import FriendlyName from .manifest_gadget_support import ManifestGadgetSupport from .source_language_for_locales import SourceLanguageForLocales @@ -64,6 +69,7 @@ from .distribution_countries import DistributionCountries from .skill_manifest_publishing_information import SkillManifestPublishingInformation from .gadget_support_requirement import GadgetSupportRequirement +from .tax_information_category import TaxInformationCategory from .video_app_interface import VideoAppInterface from .custom_apis import CustomApis from .flash_briefing_genre import FlashBriefingGenre @@ -88,6 +94,7 @@ from .manifest_version import ManifestVersion from .flash_briefing_apis import FlashBriefingApis from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .marketplace_pricing import MarketplacePricing from .permission_items import PermissionItems from .automatic_distribution import AutomaticDistribution from .authorized_client import AuthorizedClient @@ -95,6 +102,7 @@ from .audio_interface import AudioInterface from .smart_home_apis import SmartHomeApis from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .custom_product_prompts import CustomProductPrompts from .app_link_v2_interface import AppLinkV2Interface from .alexa_for_business_apis import AlexaForBusinessApis from .video_region import VideoRegion @@ -104,7 +112,9 @@ from .display_interface import DisplayInterface from .catalog_type import CatalogType from .music_content_name import MusicContentName +from .offer_type import OfferType from .localized_name import LocalizedName +from .paid_skill_information import PaidSkillInformation from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement from .display_interface_template_version import DisplayInterfaceTemplateVersion diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/currency.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/currency.py new file mode 100644 index 0000000..a78ff61 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/currency.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Currency(Enum): + """ + Currency to use for paid skill product. + + + + Allowed enum values: [USD] + """ + USD = "USD" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Currency): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_product_prompts.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_product_prompts.py new file mode 100644 index 0000000..b6fdade --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom_product_prompts.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CustomProductPrompts(object): + """ + Custom prompts used for paid skill product purchasing options. Supports Speech Synthesis Markup Language (SSML), which can be used to control pronunciation, intonation, timing, and emotion. + + + :param purchase_prompt_description: Description of the paid skill product heard before customer is prompted for purchase. + :type purchase_prompt_description: (optional) str + :param purchase_confirmation_description: Description of the paid skill product that displays when the paid skill is purchased. + :type purchase_confirmation_description: (optional) str + + """ + deserialized_types = { + 'purchase_prompt_description': 'str', + 'purchase_confirmation_description': 'str' + } # type: Dict + + attribute_map = { + 'purchase_prompt_description': 'purchasePromptDescription', + 'purchase_confirmation_description': 'purchaseConfirmationDescription' + } # type: Dict + supports_multiple_types = False + + def __init__(self, purchase_prompt_description=None, purchase_confirmation_description=None): + # type: (Optional[str], Optional[str]) -> None + """Custom prompts used for paid skill product purchasing options. Supports Speech Synthesis Markup Language (SSML), which can be used to control pronunciation, intonation, timing, and emotion. + + :param purchase_prompt_description: Description of the paid skill product heard before customer is prompted for purchase. + :type purchase_prompt_description: (optional) str + :param purchase_confirmation_description: Description of the paid skill product that displays when the paid skill is purchased. + :type purchase_confirmation_description: (optional) str + """ + self.__discriminator_value = None # type: str + + self.purchase_prompt_description = purchase_prompt_description + self.purchase_confirmation_description = purchase_confirmation_description + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CustomProductPrompts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/free_trial_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/free_trial_information.py new file mode 100644 index 0000000..9a99cc0 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/free_trial_information.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class FreeTrialInformation(object): + """ + Defines the structure for paid skill product free trial information. + + + :param free_trial_duration: Defines the free trial period for the paid skill product, in ISO_8601#Durations format. + :type free_trial_duration: (optional) str + + """ + deserialized_types = { + 'free_trial_duration': 'str' + } # type: Dict + + attribute_map = { + 'free_trial_duration': 'freeTrialDuration' + } # type: Dict + supports_multiple_types = False + + def __init__(self, free_trial_duration=None): + # type: (Optional[str]) -> None + """Defines the structure for paid skill product free trial information. + + :param free_trial_duration: Defines the free trial period for the paid skill product, in ISO_8601#Durations format. + :type free_trial_duration: (optional) str + """ + self.__discriminator_value = None # type: str + + self.free_trial_duration = free_trial_duration + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, FreeTrialInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/marketplace_pricing.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/marketplace_pricing.py new file mode 100644 index 0000000..74f2130 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/marketplace_pricing.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.free_trial_information import FreeTrialInformation as FreeTrialInformation_dd82f7a7 + from ask_smapi_model.v1.skill.manifest.currency import Currency as Currency_9d815c35 + from ask_smapi_model.v1.skill.manifest.subscription_information import SubscriptionInformation as SubscriptionInformation_8aecb324 + from ask_smapi_model.v1.skill.manifest.offer_type import OfferType as OfferType_c467d5fe + + +class MarketplacePricing(object): + """ + Paid skill product pricing information. + + + :param offer_type: + :type offer_type: (optional) ask_smapi_model.v1.skill.manifest.offer_type.OfferType + :param price: Defines the price of a paid skill product. The price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users. + :type price: (optional) float + :param currency: + :type currency: (optional) ask_smapi_model.v1.skill.manifest.currency.Currency + :param free_trial_information: + :type free_trial_information: (optional) ask_smapi_model.v1.skill.manifest.free_trial_information.FreeTrialInformation + :param subscription_information: + :type subscription_information: (optional) ask_smapi_model.v1.skill.manifest.subscription_information.SubscriptionInformation + + """ + deserialized_types = { + 'offer_type': 'ask_smapi_model.v1.skill.manifest.offer_type.OfferType', + 'price': 'float', + 'currency': 'ask_smapi_model.v1.skill.manifest.currency.Currency', + 'free_trial_information': 'ask_smapi_model.v1.skill.manifest.free_trial_information.FreeTrialInformation', + 'subscription_information': 'ask_smapi_model.v1.skill.manifest.subscription_information.SubscriptionInformation' + } # type: Dict + + attribute_map = { + 'offer_type': 'offerType', + 'price': 'price', + 'currency': 'currency', + 'free_trial_information': 'freeTrialInformation', + 'subscription_information': 'subscriptionInformation' + } # type: Dict + supports_multiple_types = False + + def __init__(self, offer_type=None, price=None, currency=None, free_trial_information=None, subscription_information=None): + # type: (Optional[OfferType_c467d5fe], Optional[float], Optional[Currency_9d815c35], Optional[FreeTrialInformation_dd82f7a7], Optional[SubscriptionInformation_8aecb324]) -> None + """Paid skill product pricing information. + + :param offer_type: + :type offer_type: (optional) ask_smapi_model.v1.skill.manifest.offer_type.OfferType + :param price: Defines the price of a paid skill product. The price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users. + :type price: (optional) float + :param currency: + :type currency: (optional) ask_smapi_model.v1.skill.manifest.currency.Currency + :param free_trial_information: + :type free_trial_information: (optional) ask_smapi_model.v1.skill.manifest.free_trial_information.FreeTrialInformation + :param subscription_information: + :type subscription_information: (optional) ask_smapi_model.v1.skill.manifest.subscription_information.SubscriptionInformation + """ + self.__discriminator_value = None # type: str + + self.offer_type = offer_type + self.price = price + self.currency = currency + self.free_trial_information = free_trial_information + self.subscription_information = subscription_information + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MarketplacePricing): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/offer_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/offer_type.py new file mode 100644 index 0000000..52f62db --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/offer_type.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class OfferType(Enum): + """ + The type of the offer. + + + + Allowed enum values: [SUBSCRIPTION, ENTITLEMENT] + """ + SUBSCRIPTION = "SUBSCRIPTION" + ENTITLEMENT = "ENTITLEMENT" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, OfferType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/paid_skill_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/paid_skill_information.py new file mode 100644 index 0000000..8fdf5d3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/paid_skill_information.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.tax_information import TaxInformation as TaxInformation_ff13e350 + + +class PaidSkillInformation(object): + """ + Defines the structure of the paid skill information of the skill. + + + :param pricing: Defines the structure for marketplace specific pricing information in the skill manifest + :type pricing: (optional) dict(str, list[ask_smapi_model.v1.skill.manifest.marketplace_pricing.MarketplacePricing]) + :param tax_information: + :type tax_information: (optional) ask_smapi_model.v1.skill.manifest.tax_information.TaxInformation + + """ + deserialized_types = { + 'pricing': 'dict(str, list[ask_smapi_model.v1.skill.manifest.marketplace_pricing.MarketplacePricing])', + 'tax_information': 'ask_smapi_model.v1.skill.manifest.tax_information.TaxInformation' + } # type: Dict + + attribute_map = { + 'pricing': 'pricing', + 'tax_information': 'taxInformation' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pricing=None, tax_information=None): + # type: (Optional[Dict[str, object]], Optional[TaxInformation_ff13e350]) -> None + """Defines the structure of the paid skill information of the skill. + + :param pricing: Defines the structure for marketplace specific pricing information in the skill manifest + :type pricing: (optional) dict(str, list[ask_smapi_model.v1.skill.manifest.marketplace_pricing.MarketplacePricing]) + :param tax_information: + :type tax_information: (optional) ask_smapi_model.v1.skill.manifest.tax_information.TaxInformation + """ + self.__discriminator_value = None # type: str + + self.pricing = pricing + self.tax_information = tax_information + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PaidSkillInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py index eb8234f..e82ef89 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_localized_publishing_information.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.custom_product_prompts import CustomProductPrompts as CustomProductPrompts_150953f5 class SkillManifestLocalizedPublishingInformation(object): @@ -46,6 +47,8 @@ class SkillManifestLocalizedPublishingInformation(object): :type example_phrases: (optional) list[str] :param keywords: Sample keyword phrases that describe the skill. :type keywords: (optional) list[str] + :param custom_product_prompts: + :type custom_product_prompts: (optional) ask_smapi_model.v1.skill.manifest.custom_product_prompts.CustomProductPrompts """ deserialized_types = { @@ -56,7 +59,8 @@ class SkillManifestLocalizedPublishingInformation(object): 'description': 'str', 'updates_description': 'str', 'example_phrases': 'list[str]', - 'keywords': 'list[str]' + 'keywords': 'list[str]', + 'custom_product_prompts': 'ask_smapi_model.v1.skill.manifest.custom_product_prompts.CustomProductPrompts' } # type: Dict attribute_map = { @@ -67,12 +71,13 @@ class SkillManifestLocalizedPublishingInformation(object): 'description': 'description', 'updates_description': 'updatesDescription', 'example_phrases': 'examplePhrases', - 'keywords': 'keywords' + 'keywords': 'keywords', + 'custom_product_prompts': 'customProductPrompts' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary=None, description=None, updates_description=None, example_phrases=None, keywords=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]]) -> None + def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary=None, description=None, updates_description=None, example_phrases=None, keywords=None, custom_product_prompts=None): + # type: (Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[List[object]], Optional[List[object]], Optional[CustomProductPrompts_150953f5]) -> None """Defines the structure for locale specific publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. @@ -91,6 +96,8 @@ def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary= :type example_phrases: (optional) list[str] :param keywords: Sample keyword phrases that describe the skill. :type keywords: (optional) list[str] + :param custom_product_prompts: + :type custom_product_prompts: (optional) ask_smapi_model.v1.skill.manifest.custom_product_prompts.CustomProductPrompts """ self.__discriminator_value = None # type: str @@ -102,6 +109,7 @@ def __init__(self, name=None, small_icon_uri=None, large_icon_uri=None, summary= self.updates_description = updates_description self.example_phrases = example_phrases self.keywords = keywords + self.custom_product_prompts = custom_product_prompts def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py index a7d9c3c..696940f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_publishing_information.py @@ -29,6 +29,7 @@ from ask_smapi_model.v1.skill.manifest.distribution_mode import DistributionMode as DistributionMode_7068bbf0 from ask_smapi_model.v1.skill.manifest.automatic_cloned_locale import AutomaticClonedLocale as AutomaticClonedLocale_4c2a4dc3 from ask_smapi_model.v1.skill.manifest.manifest_gadget_support import ManifestGadgetSupport as ManifestGadgetSupport_2efdc899 + from ask_smapi_model.v1.skill.manifest.paid_skill_information import PaidSkillInformation as PaidSkillInformation_bed165b1 class SkillManifestPublishingInformation(object): @@ -58,6 +59,8 @@ class SkillManifestPublishingInformation(object): :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution :param automatic_cloned_locale: :type automatic_cloned_locale: (optional) ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale + :param paid_skill_information: + :type paid_skill_information: (optional) ask_smapi_model.v1.skill.manifest.paid_skill_information.PaidSkillInformation """ deserialized_types = { @@ -71,7 +74,8 @@ class SkillManifestPublishingInformation(object): 'category': 'str', 'distribution_countries': 'list[ask_smapi_model.v1.skill.manifest.distribution_countries.DistributionCountries]', 'automatic_distribution': 'ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution', - 'automatic_cloned_locale': 'ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale' + 'automatic_cloned_locale': 'ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale', + 'paid_skill_information': 'ask_smapi_model.v1.skill.manifest.paid_skill_information.PaidSkillInformation' } # type: Dict attribute_map = { @@ -85,12 +89,13 @@ class SkillManifestPublishingInformation(object): 'category': 'category', 'distribution_countries': 'distributionCountries', 'automatic_distribution': 'automaticDistribution', - 'automatic_cloned_locale': 'automaticClonedLocale' + 'automatic_cloned_locale': 'automaticClonedLocale', + 'paid_skill_information': 'paidSkillInformation' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None, automatic_distribution=None, automatic_cloned_locale=None): - # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]], Optional[AutomaticDistribution_a84fbfb2], Optional[AutomaticClonedLocale_4c2a4dc3]) -> None + def __init__(self, name=None, description=None, locales=None, is_available_worldwide=None, distribution_mode=None, gadget_support=None, testing_instructions=None, category=None, distribution_countries=None, automatic_distribution=None, automatic_cloned_locale=None, paid_skill_information=None): + # type: (Optional[str], Optional[str], Optional[Dict[str, SkillManifestLocalizedPublishingInformation_1e8ff5fd]], Optional[bool], Optional[DistributionMode_7068bbf0], Optional[ManifestGadgetSupport_2efdc899], Optional[str], Optional[str], Optional[List[DistributionCountries_33dc1fd4]], Optional[AutomaticDistribution_a84fbfb2], Optional[AutomaticClonedLocale_4c2a4dc3], Optional[PaidSkillInformation_bed165b1]) -> None """Defines the structure for publishing information in the skill manifest. :param name: Name of the skill that is displayed to customers in the Alexa app. @@ -115,6 +120,8 @@ def __init__(self, name=None, description=None, locales=None, is_available_world :type automatic_distribution: (optional) ask_smapi_model.v1.skill.manifest.automatic_distribution.AutomaticDistribution :param automatic_cloned_locale: :type automatic_cloned_locale: (optional) ask_smapi_model.v1.skill.manifest.automatic_cloned_locale.AutomaticClonedLocale + :param paid_skill_information: + :type paid_skill_information: (optional) ask_smapi_model.v1.skill.manifest.paid_skill_information.PaidSkillInformation """ self.__discriminator_value = None # type: str @@ -129,6 +136,7 @@ def __init__(self, name=None, description=None, locales=None, is_available_world self.distribution_countries = distribution_countries self.automatic_distribution = automatic_distribution self.automatic_cloned_locale = automatic_cloned_locale + self.paid_skill_information = paid_skill_information def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_information.py new file mode 100644 index 0000000..cdc7a7c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_information.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.subscription_payment_frequency import SubscriptionPaymentFrequency as SubscriptionPaymentFrequency_5e9ea667 + + +class SubscriptionInformation(object): + """ + Defines the structure for paid skill product subscription information. + + + :param subscription_payment_frequency: + :type subscription_payment_frequency: (optional) ask_smapi_model.v1.skill.manifest.subscription_payment_frequency.SubscriptionPaymentFrequency + + """ + deserialized_types = { + 'subscription_payment_frequency': 'ask_smapi_model.v1.skill.manifest.subscription_payment_frequency.SubscriptionPaymentFrequency' + } # type: Dict + + attribute_map = { + 'subscription_payment_frequency': 'subscriptionPaymentFrequency' + } # type: Dict + supports_multiple_types = False + + def __init__(self, subscription_payment_frequency=None): + # type: (Optional[SubscriptionPaymentFrequency_5e9ea667]) -> None + """Defines the structure for paid skill product subscription information. + + :param subscription_payment_frequency: + :type subscription_payment_frequency: (optional) ask_smapi_model.v1.skill.manifest.subscription_payment_frequency.SubscriptionPaymentFrequency + """ + self.__discriminator_value = None # type: str + + self.subscription_payment_frequency = subscription_payment_frequency + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SubscriptionInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_payment_frequency.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_payment_frequency.py new file mode 100644 index 0000000..21b6522 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/subscription_payment_frequency.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SubscriptionPaymentFrequency(Enum): + """ + The frequency in which payments are collected for the subscription. + + + + Allowed enum values: [MONTHLY, YEARLY] + """ + MONTHLY = "MONTHLY" + YEARLY = "YEARLY" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SubscriptionPaymentFrequency): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information.py new file mode 100644 index 0000000..3634985 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.tax_information_category import TaxInformationCategory as TaxInformationCategory_1ae2aa8f + + +class TaxInformation(object): + """ + Defines the structure for paid skill product tax information. + + + :param category: + :type category: (optional) ask_smapi_model.v1.skill.manifest.tax_information_category.TaxInformationCategory + + """ + deserialized_types = { + 'category': 'ask_smapi_model.v1.skill.manifest.tax_information_category.TaxInformationCategory' + } # type: Dict + + attribute_map = { + 'category': 'category' + } # type: Dict + supports_multiple_types = False + + def __init__(self, category=None): + # type: (Optional[TaxInformationCategory_1ae2aa8f]) -> None + """Defines the structure for paid skill product tax information. + + :param category: + :type category: (optional) ask_smapi_model.v1.skill.manifest.tax_information_category.TaxInformationCategory + """ + self.__discriminator_value = None # type: str + + self.category = category + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TaxInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information_category.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information_category.py new file mode 100644 index 0000000..505ef07 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/tax_information_category.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TaxInformationCategory(Enum): + """ + The tax category that best describes the paid skill product. + + + + Allowed enum values: [SOFTWARE, STREAMING_AUDIO, STREAMING_RADIO, INFORMATION_SERVICES, VIDEO, PERIODICALS, NEWSPAPERS] + """ + SOFTWARE = "SOFTWARE" + STREAMING_AUDIO = "STREAMING_AUDIO" + STREAMING_RADIO = "STREAMING_RADIO" + INFORMATION_SERVICES = "INFORMATION_SERVICES" + VIDEO = "VIDEO" + PERIODICALS = "PERIODICALS" + NEWSPAPERS = "NEWSPAPERS" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TaxInformationCategory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other From 5fe31741584a650bb3974b1c3def67bba98d1dff Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Wed, 15 Sep 2021 16:12:43 -0700 Subject: [PATCH 021/111] Release 1.13.1. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 40 ++-- .../ask_smapi_model/v0/__init__.py | 2 +- .../ask_smapi_model/v0/catalog/__init__.py | 8 +- .../v0/catalog/upload/__init__.py | 18 +- .../development_events/subscriber/__init__.py | 12 +- .../subscription/__init__.py | 6 +- .../v0/event_schema/__init__.py | 14 +- .../ask_smapi_model/v1/__init__.py | 8 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 22 +- .../ask_smapi_model/v1/catalog/__init__.py | 2 +- .../v1/catalog/upload/__init__.py | 14 +- .../ask_smapi_model/v1/isp/__init__.py | 44 ++-- .../ask_smapi_model/v1/skill/__init__.py | 110 +++++----- .../v1/skill/account_linking/__init__.py | 6 +- .../v1/skill/alexa_hosted/__init__.py | 16 +- .../v1/skill/asr/annotation_sets/__init__.py | 12 +- .../v1/skill/asr/evaluations/__init__.py | 30 +-- .../v1/skill/beta_test/__init__.py | 2 +- .../v1/skill/beta_test/testers/__init__.py | 6 +- .../v1/skill/certification/__init__.py | 12 +- .../v1/skill/evaluations/__init__.py | 18 +- .../v1/skill/history/__init__.py | 16 +- .../v1/skill/interaction_model/__init__.py | 52 ++--- .../interaction_model/catalog/__init__.py | 10 +- .../conflict_detection/__init__.py | 12 +- .../skill/interaction_model/jobs/__init__.py | 34 +-- .../interaction_model/model_type/__init__.py | 16 +- .../type_version/__init__.py | 8 +- .../interaction_model/version/__init__.py | 14 +- .../v1/skill/invocations/__init__.py | 10 +- .../v1/skill/manifest/__init__.py | 196 +++++++++--------- .../v1/skill/manifest/custom/__init__.py | 4 +- .../v1/skill/metrics/__init__.py | 2 +- .../v1/skill/nlu/annotation_sets/__init__.py | 14 +- .../v1/skill/nlu/evaluations/__init__.py | 46 ++-- .../v1/skill/private/__init__.py | 4 +- .../v1/skill/simulations/__init__.py | 22 +- .../v1/skill/simulations/simulation_type.py | 2 +- .../v1/skill/validations/__init__.py | 2 +- .../v1/smart_home_evaluation/__init__.py | 30 +-- .../v1/vendor_management/__init__.py | 2 +- .../ask_smapi_model/v2/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 2 +- .../v2/skill/invocations/__init__.py | 4 +- .../v2/skill/simulations/__init__.py | 32 +-- .../v2/skill/simulations/simulation_type.py | 2 +- 48 files changed, 479 insertions(+), 471 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 6c481cc..5b85c1c 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -207,3 +207,11 @@ This release contains the following changes : This release contains the following changes : - Added models to support `Paid skills `__. + + +1.13.1 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions for maxResults and simulationType. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 4d11350..27e63f7 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.13.0' +__version__ = '1.13.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 1097ee9..cabc7d2 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -304,7 +304,7 @@ def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): :type catalog_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -791,7 +791,7 @@ def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -1170,7 +1170,7 @@ def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param subscriber_id: Unique identifier of the subscriber. If this query parameter is provided, the list would be filtered by the owning subscriberId. :type subscriber_id: str @@ -3167,7 +3167,7 @@ def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): :param catalog_id: (required) Provides a unique identifier of the catalog. :type catalog_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3586,7 +3586,7 @@ def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs) :type catalog_id: str :param version: (required) Version for interaction model. :type version: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3673,7 +3673,7 @@ def list_interaction_model_catalogs_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -3831,7 +3831,7 @@ def list_job_definitions_for_interaction_model_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4065,7 +4065,7 @@ def list_job_executions_for_interaction_model_v1(self, job_id, **kwargs): :param job_id: (required) The identifier for dynamic jobs. :type job_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4374,7 +4374,7 @@ def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): :param vendor_id: (required) The vendor ID. :type vendor_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -4837,7 +4837,7 @@ def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): :param slot_type_id: (required) The identifier for a slot type. :type slot_type_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -5327,7 +5327,7 @@ def list_skills_for_vendor_v1(self, vendor_id, **kwargs): :type vendor_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param skill_id: The list of skillIds that you wish to get the summary for. A maximum of 10 skillIds can be specified to get the skill summary in single listSkills call. Please note that this parameter must not be used with 'nextToken' or/and 'maxResults' parameter. :type skill_id: list[str] @@ -7764,7 +7764,7 @@ def get_certifications_list_v1(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -7988,7 +7988,7 @@ def get_utterance_data_v1(self, skill_id, stage, **kwargs): :type stage: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str @@ -8295,7 +8295,7 @@ def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, s :type intent: str :param locale: The locale for the skill. e.g. en-GB, en-US, de-DE and etc. :type locale: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -9955,7 +9955,7 @@ def get_smarthome_capablity_evaluation_results_v1(self, skill_id, evaluation_id, :type skill_id: str :param evaluation_id: (required) A unique ID to identify each Smart Home capability evaluation. :type evaluation_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -10048,7 +10048,7 @@ def list_smarthome_capability_evaluations_v1(self, skill_id, stage, **kwargs): :type start_timestamp_from: datetime :param start_timestamp_to: The end of the start time to query evaluation result. :type start_timestamp_to: datetime - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -10217,7 +10217,7 @@ def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): :param skill_id: (required) The skill ID. :type skill_id: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str @@ -11165,7 +11165,7 @@ def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): :type stage: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. @@ -12147,7 +12147,7 @@ def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwarg :type locale: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param sort_direction: Sets the sorting direction of the result items. When set to 'asc' these items are returned in ascending order of sortField value and when set to 'desc' these items are returned in descending order of sortField value. :type sort_direction: str @@ -12858,7 +12858,7 @@ def list_versions_for_skill_v1(self, skill_id, **kwargs): :type skill_id: str :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. :type next_token: str - :param max_results: Maximum number of datapoints in a single result for a query + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. :type max_results: int :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. diff --git a/ask-smapi-model/ask_smapi_model/v0/__init__.py b/ask-smapi-model/ask_smapi_model/v0/__init__.py index 7bf567d..a044fbc 100644 --- a/ask-smapi-model/ask_smapi_model/v0/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .bad_request_error import BadRequestError from .error import Error +from .bad_request_error import BadRequestError diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index 2369366..b4e5704 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .list_catalogs_response import ListCatalogsResponse -from .catalog_summary import CatalogSummary +from .create_catalog_request import CreateCatalogRequest from .catalog_type import CatalogType -from .catalog_details import CatalogDetails from .catalog_usage import CatalogUsage -from .create_catalog_request import CreateCatalogRequest +from .catalog_details import CatalogDetails +from .catalog_summary import CatalogSummary +from .list_catalogs_response import ListCatalogsResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index 5be33cb..b05be38 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .create_content_upload_request import CreateContentUploadRequest -from .get_content_upload_response import GetContentUploadResponse -from .presigned_upload_part import PresignedUploadPart +from .create_content_upload_response import CreateContentUploadResponse +from .ingestion_status import IngestionStatus from .file_upload_status import FileUploadStatus -from .content_upload_file_summary import ContentUploadFileSummary -from .list_uploads_response import ListUploadsResponse -from .upload_status import UploadStatus +from .presigned_upload_part import PresignedUploadPart from .complete_upload_request import CompleteUploadRequest from .content_upload_summary import ContentUploadSummary -from .ingestion_status import IngestionStatus -from .upload_ingestion_step import UploadIngestionStep from .pre_signed_url_item import PreSignedUrlItem -from .create_content_upload_response import CreateContentUploadResponse +from .list_uploads_response import ListUploadsResponse +from .create_content_upload_request import CreateContentUploadRequest +from .get_content_upload_response import GetContentUploadResponse +from .upload_status import UploadStatus +from .content_upload_file_summary import ContentUploadFileSummary from .ingestion_step_name import IngestionStepName +from .upload_ingestion_step import UploadIngestionStep diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index 1370998..d67b9c8 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .endpoint import Endpoint -from .update_subscriber_request import UpdateSubscriberRequest -from .endpoint_aws_authorization import EndpointAwsAuthorization -from .subscriber_status import SubscriberStatus from .subscriber_info import SubscriberInfo +from .endpoint_aws_authorization import EndpointAwsAuthorization +from .endpoint_authorization_type import EndpointAuthorizationType from .endpoint_authorization import EndpointAuthorization +from .list_subscribers_response import ListSubscribersResponse +from .endpoint import Endpoint from .create_subscriber_request import CreateSubscriberRequest -from .endpoint_authorization_type import EndpointAuthorizationType from .subscriber_summary import SubscriberSummary -from .list_subscribers_response import ListSubscribersResponse +from .update_subscriber_request import UpdateSubscriberRequest +from .subscriber_status import SubscriberStatus diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index 278ce20..d540133 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .subscription_info import SubscriptionInfo -from .update_subscription_request import UpdateSubscriptionRequest +from .event import Event from .list_subscriptions_response import ListSubscriptionsResponse +from .update_subscription_request import UpdateSubscriptionRequest from .subscription_summary import SubscriptionSummary -from .event import Event +from .subscription_info import SubscriptionInfo from .create_subscription_request import CreateSubscriptionRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index cf93445..79ce942 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .skill_attributes import SkillAttributes -from .actor_attributes import ActorAttributes -from .request_status import RequestStatus +from .skill_event_attributes import SkillEventAttributes from .subscription_attributes import SubscriptionAttributes -from .base_schema import BaseSchema +from .interaction_model_event_attributes import InteractionModelEventAttributes +from .actor_attributes import ActorAttributes +from .interaction_model_attributes import InteractionModelAttributes +from .skill_attributes import SkillAttributes from .skill_review_event_attributes import SkillReviewEventAttributes +from .request_status import RequestStatus from .skill_review_attributes import SkillReviewAttributes -from .skill_event_attributes import SkillEventAttributes -from .interaction_model_attributes import InteractionModelAttributes -from .interaction_model_event_attributes import InteractionModelEventAttributes +from .base_schema import BaseSchema diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index b889b8c..a1ae581 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .stage_type import StageType -from .bad_request_error import BadRequestError -from .error import Error from .link import Link -from .stage_v2_type import StageV2Type +from .error import Error +from .bad_request_error import BadRequestError from .links import Links +from .stage_type import StageType +from .stage_v2_type import StageV2Type diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 8032119..79cb980 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import +from .response_pagination_context import ResponsePaginationContext +from .client_filter import ClientFilter +from .operation_filter import OperationFilter +from .request_filters import RequestFilters +from .sort_direction import SortDirection +from .audit_logs_request import AuditLogsRequest from .client import Client -from .requester_filter import RequesterFilter from .sort_field import SortField from .resource import Resource +from .requester_filter import RequesterFilter +from .requester import Requester +from .operation import Operation from .request_pagination_context import RequestPaginationContext +from .audit_logs_response import AuditLogsResponse from .resource_filter import ResourceFilter -from .sort_direction import SortDirection -from .request_filters import RequestFilters -from .operation_filter import OperationFilter -from .audit_log import AuditLog -from .audit_logs_request import AuditLogsRequest -from .client_filter import ClientFilter from .resource_type_enum import ResourceTypeEnum -from .requester import Requester -from .response_pagination_context import ResponsePaginationContext -from .audit_logs_response import AuditLogsResponse -from .operation import Operation +from .audit_log import AuditLog diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py index cc9dfa7..8c5e896 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .create_content_upload_url_response import CreateContentUploadUrlResponse from .presigned_upload_part_items import PresignedUploadPartItems from .create_content_upload_url_request import CreateContentUploadUrlRequest -from .create_content_upload_url_response import CreateContentUploadUrlResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index e77f93a..7c7fc43 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .pre_signed_url import PreSignedUrl -from .get_content_upload_response import GetContentUploadResponse -from .catalog_upload_base import CatalogUploadBase +from .ingestion_status import IngestionStatus from .file_upload_status import FileUploadStatus -from .content_upload_file_summary import ContentUploadFileSummary +from .pre_signed_url import PreSignedUrl +from .pre_signed_url_item import PreSignedUrlItem from .location import Location +from .get_content_upload_response import GetContentUploadResponse from .upload_status import UploadStatus -from .ingestion_status import IngestionStatus -from .upload_ingestion_step import UploadIngestionStep -from .pre_signed_url_item import PreSignedUrlItem +from .content_upload_file_summary import ContentUploadFileSummary +from .catalog_upload_base import CatalogUploadBase from .ingestion_step_name import IngestionStepName +from .upload_ingestion_step import UploadIngestionStep diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 3640136..52d95a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .promotable_state import PromotableState +from .list_in_skill_product_response import ListInSkillProductResponse from .editable_state import EditableState +from .tax_information import TaxInformation from .in_skill_product_summary_response import InSkillProductSummaryResponse -from .update_in_skill_product_request import UpdateInSkillProductRequest -from .product_type import ProductType -from .currency import Currency +from .price_listing import PriceListing +from .privacy_and_compliance import PrivacyAndCompliance +from .publishing_information import PublishingInformation +from .localized_publishing_information import LocalizedPublishingInformation +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance +from .in_skill_product_summary import InSkillProductSummary +from .custom_product_prompts import CustomProductPrompts from .associated_skill_response import AssociatedSkillResponse -from .tax_information import TaxInformation +from .subscription_payment_frequency import SubscriptionPaymentFrequency from .summary_price_listing import SummaryPriceListing -from .localized_publishing_information import LocalizedPublishingInformation -from .promotable_state import PromotableState -from .in_skill_product_definition import InSkillProductDefinition -from .create_in_skill_product_request import CreateInSkillProductRequest from .subscription_information import SubscriptionInformation -from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .purchasable_state import PurchasableState from .product_response import ProductResponse -from .distribution_countries import DistributionCountries -from .in_skill_product_summary import InSkillProductSummary +from .isp_summary_links import IspSummaryLinks +from .create_in_skill_product_request import CreateInSkillProductRequest +from .product_type import ProductType from .tax_information_category import TaxInformationCategory -from .status import Status -from .price_listing import PriceListing -from .purchasable_state import PurchasableState -from .privacy_and_compliance import PrivacyAndCompliance -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance +from .currency import Currency +from .distribution_countries import DistributionCountries +from .in_skill_product_definition import InSkillProductDefinition from .summary_marketplace_pricing import SummaryMarketplacePricing -from .marketplace_pricing import MarketplacePricing -from .list_in_skill_product_response import ListInSkillProductResponse -from .custom_product_prompts import CustomProductPrompts -from .isp_summary_links import IspSummaryLinks from .list_in_skill_product import ListInSkillProduct -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .publishing_information import PublishingInformation +from .marketplace_pricing import MarketplacePricing +from .status import Status +from .update_in_skill_product_request import UpdateInSkillProductRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 9da8f2b..65e4f45 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import -from .agreement_type import AgreementType -from .clone_locale_stage_type import CloneLocaleStageType -from .update_skill_with_package_request import UpdateSkillWithPackageRequest -from .validation_feature import ValidationFeature -from .skill_status import SkillStatus -from .build_step_name import BuildStepName -from .response_status import ResponseStatus +from .version_submission_status import VersionSubmissionStatus +from .export_response import ExportResponse +from .hosted_skill_deployment_status import HostedSkillDeploymentStatus +from .instance import Instance +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus +from .image_attributes import ImageAttributes +from .validation_endpoint import ValidationEndpoint from .clone_locale_status import CloneLocaleStatus +from .clone_locale_request import CloneLocaleRequest +from .validation_data_types import ValidationDataTypes +from .validation_failure_reason import ValidationFailureReason +from .rollback_request_status_types import RollbackRequestStatusTypes +from .create_skill_with_package_request import CreateSkillWithPackageRequest +from .skill_messaging_credentials import SkillMessagingCredentials +from .withdraw_request import WithdrawRequest +from .resource_import_status import ResourceImportStatus +from .import_response_skill import ImportResponseSkill from .create_rollback_request import CreateRollbackRequest -from .ssl_certificate_payload import SSLCertificatePayload +from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest +from .rollback_request_status import RollbackRequestStatus from .clone_locale_status_response import CloneLocaleStatusResponse -from .build_step import BuildStep -from .publication_status import PublicationStatus from .skill_version import SkillVersion -from .standardized_error import StandardizedError -from .manifest_last_update_request import ManifestLastUpdateRequest -from .validation_details import ValidationDetails -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest -from .version_submission import VersionSubmission +from .skill_interaction_model_status import SkillInteractionModelStatus +from .create_rollback_response import CreateRollbackResponse +from .format import Format +from .skill_summary_apis import SkillSummaryApis +from .create_skill_response import CreateSkillResponse from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .image_attributes import ImageAttributes -from .validation_failure_type import ValidationFailureType +from .ssl_certificate_payload import SSLCertificatePayload +from .export_response_skill import ExportResponseSkill +from .skill_resources_enum import SkillResourcesEnum +from .action import Action +from .build_step_name import BuildStepName +from .validation_details import ValidationDetails from .reason import Reason -from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest -from .clone_locale_request_status import CloneLocaleRequestStatus -from .skill_summary import SkillSummary -from .publication_method import PublicationMethod +from .list_skill_response import ListSkillResponse +from .version_submission import VersionSubmission +from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest from .image_dimension import ImageDimension -from .create_skill_request import CreateSkillRequest -from .list_skill_versions_response import ListSkillVersionsResponse from .image_size import ImageSize -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus -from .rollback_request_status_types import RollbackRequestStatusTypes -from .import_response_skill import ImportResponseSkill -from .instance import Instance -from .skill_messaging_credentials import SkillMessagingCredentials -from .version_submission_status import VersionSubmissionStatus -from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .create_rollback_response import CreateRollbackResponse -from .status import Status +from .validation_failure_type import ValidationFailureType +from .validation_feature import ValidationFeature +from .hosted_skill_deployment_details import HostedSkillDeploymentDetails +from .list_skill_versions_response import ListSkillVersionsResponse +from .clone_locale_stage_type import CloneLocaleStageType from .regional_ssl_certificate import RegionalSSLCertificate +from .agreement_type import AgreementType +from .publication_method import PublicationMethod from .clone_locale_resource_status import CloneLocaleResourceStatus -from .import_response import ImportResponse -from .withdraw_request import WithdrawRequest -from .export_response_skill import ExportResponseSkill -from .build_details import BuildDetails -from .skill_interaction_model_status import SkillInteractionModelStatus -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .create_skill_response import CreateSkillResponse +from .image_size_unit import ImageSizeUnit +from .update_skill_with_package_request import UpdateSkillWithPackageRequest +from .skill_status import SkillStatus +from .build_step import BuildStep from .overwrite_mode import OverwriteMode -from .format import Format -from .upload_response import UploadResponse +from .response_status import ResponseStatus from .skill_credentials import SkillCredentials -from .skill_summary_apis import SkillSummaryApis -from .validation_failure_reason import ValidationFailureReason -from .export_response import ExportResponse -from .clone_locale_request import CloneLocaleRequest -from .list_skill_response import ListSkillResponse -from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .validation_endpoint import ValidationEndpoint +from .clone_locale_request_status import CloneLocaleRequestStatus +from .build_details import BuildDetails +from .manifest_last_update_request import ManifestLastUpdateRequest +from .skill_summary import SkillSummary +from .standardized_error import StandardizedError +from .publication_status import PublicationStatus +from .create_skill_request import CreateSkillRequest +from .status import Status from .manifest_status import ManifestStatus -from .action import Action -from .rollback_request_status import RollbackRequestStatus -from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .image_size_unit import ImageSizeUnit -from .validation_data_types import ValidationDataTypes -from .resource_import_status import ResourceImportStatus -from .skill_resources_enum import SkillResourcesEnum +from .import_response import ImportResponse +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .upload_response import UploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 2e44b41..71ed772 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .account_linking_response import AccountLinkingResponse +from .account_linking_type import AccountLinkingType +from .platform_type import PlatformType from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl from .account_linking_request_payload import AccountLinkingRequestPayload -from .account_linking_response import AccountLinkingResponse from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request import AccountLinkingRequest -from .account_linking_type import AccountLinkingType -from .platform_type import PlatformType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index 38ad2a1..e3b97e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_permission import HostedSkillPermission +from .hosted_skill_repository import HostedSkillRepository from .alexa_hosted_config import AlexaHostedConfig from .hosted_skill_permission_type import HostedSkillPermissionType +from .hosted_skill_info import HostedSkillInfo from .hosted_skill_repository_info import HostedSkillRepositoryInfo +from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList from .hosted_skill_runtime import HostedSkillRuntime -from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials -from .hosted_skill_info import HostedSkillInfo -from .hosted_skill_repository import HostedSkillRepository +from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosting_configuration import HostingConfiguration +from .hosted_skill_permission import HostedSkillPermission from .hosted_skill_metadata import HostedSkillMetadata -from .hosted_skill_region import HostedSkillRegion -from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest -from .hosting_configuration import HostingConfiguration -from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosted_skill_region import HostedSkillRegion +from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 18d830b..4ba2a07 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject -from .audio_asset import AudioAsset +from .annotation import Annotation from .pagination_context import PaginationContext -from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .audio_asset import AudioAsset from .annotation_set_items import AnnotationSetItems -from .annotation import Annotation +from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse +from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse -from .annotation_set_metadata import AnnotationSetMetadata from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse -from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject +from .annotation_set_metadata import AnnotationSetMetadata +from .annotation_with_audio_asset import AnnotationWithAudioAsset diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py index 9c2bfc3..5a53e9c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py @@ -14,22 +14,22 @@ # from __future__ import absolute_import -from .evaluation_items import EvaluationItems -from .evaluation_result_output import EvaluationResultOutput -from .error_object import ErrorObject -from .audio_asset import AudioAsset -from .pagination_context import PaginationContext -from .evaluation_status import EvaluationStatus -from .annotation_with_audio_asset import AnnotationWithAudioAsset -from .annotation import Annotation -from .list_asr_evaluations_response import ListAsrEvaluationsResponse -from .evaluation_metadata_result import EvaluationMetadataResult from .skill import Skill -from .evaluation_metadata import EvaluationMetadata -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject +from .metrics import Metrics +from .annotation import Annotation +from .pagination_context import PaginationContext from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .evaluation_result import EvaluationResult -from .evaluation_result_status import EvaluationResultStatus +from .audio_asset import AudioAsset +from .error_object import ErrorObject +from .evaluation_items import EvaluationItems +from .evaluation_metadata import EvaluationMetadata from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject +from .evaluation_result_output import EvaluationResultOutput +from .evaluation_result_status import EvaluationResultStatus from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse -from .metrics import Metrics +from .evaluation_metadata_result import EvaluationMetadataResult +from .evaluation_result import EvaluationResult +from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .evaluation_status import EvaluationStatus +from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject +from .annotation_with_audio_asset import AnnotationWithAudioAsset diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index d9cb328..9bd75c5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -15,6 +15,6 @@ from __future__ import absolute_import from .beta_test import BetaTest +from .test_body import TestBody from .update_beta_test_response import UpdateBetaTestResponse from .status import Status -from .test_body import TestBody diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index 228ba3f..08ba1f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .tester_with_details import TesterWithDetails -from .list_testers_response import ListTestersResponse from .tester import Tester -from .invitation_status import InvitationStatus from .testers_list import TestersList +from .invitation_status import InvitationStatus +from .list_testers_response import ListTestersResponse +from .tester_with_details import TesterWithDetails diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index 589b179..3ae1d87 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .distribution_info import DistributionInfo -from .review_tracking_info import ReviewTrackingInfo -from .certification_response import CertificationResponse from .certification_summary import CertificationSummary -from .review_tracking_info_summary import ReviewTrackingInfoSummary +from .certification_result import CertificationResult +from .review_tracking_info import ReviewTrackingInfo +from .estimation_update import EstimationUpdate from .list_certifications_response import ListCertificationsResponse +from .distribution_info import DistributionInfo from .certification_status import CertificationStatus from .publication_failure import PublicationFailure -from .estimation_update import EstimationUpdate -from .certification_result import CertificationResult +from .review_tracking_info_summary import ReviewTrackingInfoSummary +from .certification_response import CertificationResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index c69509c..c02469e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .profile_nlu_selected_intent import ProfileNluSelectedIntent -from .confirmation_status_type import ConfirmationStatusType -from .profile_nlu_request import ProfileNluRequest -from .dialog_act_type import DialogActType +from .intent import Intent +from .multi_turn import MultiTurn from .slot_resolutions import SlotResolutions -from .slot import Slot from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .profile_nlu_response import ProfileNluResponse -from .multi_turn import MultiTurn +from .profile_nlu_selected_intent import ProfileNluSelectedIntent +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .profile_nlu_request import ProfileNluRequest +from .slot import Slot +from .dialog_act_type import DialogActType +from .confirmation_status_type import ConfirmationStatusType from .dialog_act import DialogAct +from .profile_nlu_response import ProfileNluResponse from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 4a31e39..366b136 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import +from .intent import Intent +from .intent_requests import IntentRequests from .confidence import Confidence -from .intent_request import IntentRequest +from .sort_field_for_intent_request_type import SortFieldForIntentRequestType from .intent_request_locales import IntentRequestLocales -from .locale_in_query import LocaleInQuery -from .publication_status import PublicationStatus from .slot import Slot +from .interaction_type import InteractionType from .intent_confidence_bin import IntentConfidenceBin -from .intent_requests import IntentRequests -from .sort_field_for_intent_request_type import SortFieldForIntentRequestType -from .confidence_bin import ConfidenceBin +from .locale_in_query import LocaleInQuery from .dialog_act import DialogAct +from .confidence_bin import ConfidenceBin +from .intent_request import IntentRequest from .dialog_act_name import DialogActName -from .interaction_type import InteractionType -from .intent import Intent +from .publication_status import PublicationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index b2dc530..ba0a35d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import +from .intent import Intent +from .slot_type import SlotType from .dialog_prompts import DialogPrompts -from .prompt_items import PromptItems -from .has_entity_resolution_match import HasEntityResolutionMatch -from .multiple_values_config import MultipleValuesConfig -from .is_less_than import IsLessThan -from .is_not_in_set import IsNotInSet -from .dialog_intents import DialogIntents -from .interaction_model_schema import InteractionModelSchema -from .value_catalog import ValueCatalog -from .is_greater_than import IsGreaterThan +from .value_supplier import ValueSupplier +from .language_model import LanguageModel from .fallback_intent_sensitivity import FallbackIntentSensitivity -from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel -from .slot_definition import SlotDefinition -from .interaction_model_data import InteractionModelData -from .inline_value_supplier import InlineValueSupplier -from .dialog_intents_prompts import DialogIntentsPrompts from .is_less_than_or_equal_to import IsLessThanOrEqualTo -from .catalog_value_supplier import CatalogValueSupplier -from .slot_type import SlotType -from .model_configuration import ModelConfiguration +from .slot_definition import SlotDefinition +from .dialog import Dialog from .type_value import TypeValue -from .is_in_set import IsInSet +from .delegation_strategy_type import DelegationStrategyType +from .value_catalog import ValueCatalog +from .dialog_slot_items import DialogSlotItems +from .dialog_intents import DialogIntents +from .has_entity_resolution_match import HasEntityResolutionMatch +from .model_configuration import ModelConfiguration +from .slot_validation import SlotValidation +from .is_not_in_set import IsNotInSet from .is_in_duration import IsInDuration -from .is_not_in_duration import IsNotInDuration -from .value_supplier import ValueSupplier +from .is_in_set import IsInSet +from .catalog_value_supplier import CatalogValueSupplier +from .interaction_model_schema import InteractionModelSchema from .prompt_items_type import PromptItemsType -from .language_model import LanguageModel -from .dialog_slot_items import DialogSlotItems -from .dialog import Dialog from .prompt import Prompt +from .is_less_than import IsLessThan +from .multiple_values_config import MultipleValuesConfig from .type_value_object import TypeValueObject -from .slot_validation import SlotValidation -from .delegation_strategy_type import DelegationStrategyType -from .intent import Intent +from .prompt_items import PromptItems +from .dialog_intents_prompts import DialogIntentsPrompts +from .is_not_in_duration import IsNotInDuration +from .interaction_model_data import InteractionModelData +from .inline_value_supplier import InlineValueSupplier +from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo +from .is_greater_than import IsGreaterThan diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index 6416183..bd8b7ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .catalog_response import CatalogResponse -from .catalog_input import CatalogInput -from .catalog_definition_output import CatalogDefinitionOutput from .list_catalog_response import ListCatalogResponse from .update_request import UpdateRequest +from .catalog_response import CatalogResponse from .catalog_status_type import CatalogStatusType from .last_update_request import LastUpdateRequest -from .catalog_entity import CatalogEntity -from .catalog_item import CatalogItem from .catalog_status import CatalogStatus +from .catalog_definition_output import CatalogDefinitionOutput +from .catalog_input import CatalogInput from .definition_data import DefinitionData +from .catalog_item import CatalogItem +from .catalog_entity import CatalogEntity diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py index 66937db..fcf89a7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .get_conflicts_response_result import GetConflictsResponseResult +from .conflict_detection_job_status import ConflictDetectionJobStatus from .pagination_context import PaginationContext -from .conflict_result import ConflictResult -from .get_conflicts_response import GetConflictsResponse -from .conflict_intent_slot import ConflictIntentSlot -from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse from .conflict_intent import ConflictIntent -from .conflict_detection_job_status import ConflictDetectionJobStatus +from .get_conflicts_response_result import GetConflictsResponseResult from .paged_response import PagedResponse +from .conflict_intent_slot import ConflictIntentSlot +from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse +from .conflict_result import ConflictResult +from .get_conflicts_response import GetConflictsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index ad602b8..dd2828b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import +from .catalog import Catalog +from .resource_object import ResourceObject from .execution import Execution -from .trigger import Trigger -from .catalog_auto_refresh import CatalogAutoRefresh +from .job_api_pagination_context import JobAPIPaginationContext from .list_job_definitions_response import ListJobDefinitionsResponse +from .interaction_model import InteractionModel from .reference_version_update import ReferenceVersionUpdate -from .job_api_pagination_context import JobAPIPaginationContext -from .job_error_details import JobErrorDetails -from .update_job_status_request import UpdateJobStatusRequest -from .create_job_definition_response import CreateJobDefinitionResponse -from .job_definition_status import JobDefinitionStatus -from .validation_errors import ValidationErrors -from .get_executions_response import GetExecutionsResponse -from .catalog import Catalog -from .resource_object import ResourceObject +from .dynamic_update_error import DynamicUpdateError +from .execution_metadata import ExecutionMetadata +from .slot_type_reference import SlotTypeReference +from .create_job_definition_request import CreateJobDefinitionRequest from .job_definition import JobDefinition +from .validation_errors import ValidationErrors +from .job_definition_status import JobDefinitionStatus +from .update_job_status_request import UpdateJobStatusRequest from .job_definition_metadata import JobDefinitionMetadata -from .interaction_model import InteractionModel -from .scheduled import Scheduled -from .create_job_definition_request import CreateJobDefinitionRequest +from .job_error_details import JobErrorDetails from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete -from .slot_type_reference import SlotTypeReference -from .dynamic_update_error import DynamicUpdateError -from .execution_metadata import ExecutionMetadata +from .scheduled import Scheduled +from .catalog_auto_refresh import CatalogAutoRefresh +from .get_executions_response import GetExecutionsResponse +from .create_job_definition_response import CreateJobDefinitionResponse +from .trigger import Trigger diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 8b8d324..61927d4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .slot_type_response import SlotTypeResponse +from .slot_type_status_type import SlotTypeStatusType +from .list_slot_type_response import ListSlotTypeResponse from .error import Error +from .update_request import UpdateRequest from .warning import Warning -from .slot_type_item import SlotTypeItem +from .last_update_request import LastUpdateRequest +from .slot_type_definition_output import SlotTypeDefinitionOutput +from .slot_type_response_entity import SlotTypeResponseEntity from .slot_type_status import SlotTypeStatus +from .slot_type_response import SlotTypeResponse from .slot_type_update_definition import SlotTypeUpdateDefinition -from .slot_type_definition_output import SlotTypeDefinitionOutput -from .update_request import UpdateRequest -from .last_update_request import LastUpdateRequest -from .slot_type_status_type import SlotTypeStatusType from .slot_type_input import SlotTypeInput -from .list_slot_type_response import ListSlotTypeResponse -from .slot_type_response_entity import SlotTypeResponseEntity from .definition_data import DefinitionData +from .slot_type_item import SlotTypeItem diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index f853ff4..855c55f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .version_data_object import VersionDataObject from .version_data import VersionData -from .list_slot_type_version_response import ListSlotTypeVersionResponse -from .slot_type_update import SlotTypeUpdate -from .slot_type_update_object import SlotTypeUpdateObject +from .version_data_object import VersionDataObject from .value_supplier_object import ValueSupplierObject +from .slot_type_update import SlotTypeUpdate from .slot_type_version_data_object import SlotTypeVersionDataObject +from .slot_type_update_object import SlotTypeUpdateObject +from .list_slot_type_version_response import ListSlotTypeVersionResponse from .slot_type_version_item import SlotTypeVersionItem from .slot_type_version_data import SlotTypeVersionData diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 856a794..6f52391 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse -from .list_response import ListResponse from .version_data import VersionData -from .catalog_entity_version import CatalogEntityVersion -from .value_schema_name import ValueSchemaName -from .value_schema import ValueSchema -from .catalog_values import CatalogValues -from .links import Links +from .list_response import ListResponse +from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .catalog_update import CatalogUpdate from .catalog_version_data import CatalogVersionData +from .value_schema_name import ValueSchemaName +from .links import Links +from .catalog_values import CatalogValues from .version_items import VersionItems +from .catalog_entity_version import CatalogEntityVersion +from .value_schema import ValueSchema from .input_source import InputSource diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index dfe7888..9eeb384 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -15,12 +15,12 @@ from __future__ import absolute_import from .invocation_response_status import InvocationResponseStatus -from .end_point_regions import EndPointRegions -from .invoke_skill_response import InvokeSkillResponse -from .invocation_response_result import InvocationResponseResult -from .response import Response from .metrics import Metrics -from .invoke_skill_request import InvokeSkillRequest +from .invoke_skill_response import InvokeSkillResponse from .skill_request import SkillRequest +from .invoke_skill_request import InvokeSkillRequest from .request import Request +from .response import Response +from .invocation_response_result import InvocationResponseResult from .skill_execution_info import SkillExecutionInfo +from .end_point_regions import EndPointRegions diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 03ee74b..87f0724 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,119 +14,119 @@ # from __future__ import absolute_import -from .connections_payload import ConnectionsPayload -from .extension_initialization_request import ExtensionInitializationRequest -from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .music_feature import MusicFeature -from .dialog_delegation_strategy import DialogDelegationStrategy -from .skill_manifest_endpoint import SkillManifestEndpoint -from .authorized_client_lwa_application import AuthorizedClientLwaApplication -from .extension_request import ExtensionRequest -from .voice_profile_feature import VoiceProfileFeature -from .ssl_certificate_type import SSLCertificateType -from .currency import Currency -from .viewport_mode import ViewportMode -from .skill_manifest_events import SkillManifestEvents -from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest +from .automatic_distribution import AutomaticDistribution +from .house_hold_list import HouseHoldList +from .viewport_shape import ViewportShape +from .display_interface import DisplayInterface +from .interface_type import InterfaceType +from .custom_task import CustomTask +from .skill_manifest_publishing_information import SkillManifestPublishingInformation from .flash_briefing_content_type import FlashBriefingContentType -from .tax_information import TaxInformation +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid +from .viewport_specification import ViewportSpecification +from .localized_name import LocalizedName from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .authorized_client_lwa import AuthorizedClientLwa -from .free_trial_information import FreeTrialInformation -from .interface_type import InterfaceType -from .music_apis import MusicApis -from .distribution_mode import DistributionMode -from .custom_connections import CustomConnections -from .music_capability import MusicCapability -from .display_interface_apml_version import DisplayInterfaceApmlVersion -from .event_name import EventName -from .up_channel_items import UpChannelItems -from .house_hold_list import HouseHoldList from .music_interfaces import MusicInterfaces +from .skill_manifest_envelope import SkillManifestEnvelope +from .video_country_info import VideoCountryInfo +from .version import Version +from .distribution_mode import DistributionMode +from .viewport_mode import ViewportMode +from .music_apis import MusicApis +from .tax_information import TaxInformation +from .alexa_for_business_interface import AlexaForBusinessInterface +from .video_feature import VideoFeature +from .linked_application import LinkedApplication +from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency +from .app_link import AppLink from .permission_name import PermissionName -from .interface import Interface -from .health_interface import HealthInterface +from .smart_home_protocol import SmartHomeProtocol +from .music_content_name import MusicContentName +from .skill_manifest_apis import SkillManifestApis +from .demand_response_apis import DemandResponseApis +from .audio_interface import AudioInterface +from .dialog_management import DialogManagement from .region import Region -from .skill_manifest_envelope import SkillManifestEnvelope -from .supported_controls import SupportedControls +from .dialog_delegation_strategy import DialogDelegationStrategy +from .extension_initialization_request import ExtensionInitializationRequest +from .knowledge_apis import KnowledgeApis +from .skill_manifest_endpoint import SkillManifestEndpoint +from .custom_connections import CustomConnections +from .source_language_for_locales import SourceLanguageForLocales +from .interface import Interface +from .alexa_for_business_apis import AlexaForBusinessApis +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation +from .custom_product_prompts import CustomProductPrompts +from .event_publications import EventPublications +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .free_trial_information import FreeTrialInformation +from .automatic_cloned_locale import AutomaticClonedLocale +from .localized_music_info import LocalizedMusicInfo +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface from .app_link_interface import AppLinkInterface -from .skill_manifest_apis import SkillManifestApis +from .catalog_type import CatalogType +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .flash_briefing_genre import FlashBriefingGenre +from .app_link_v2_interface import AppLinkV2Interface +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .video_apis_locale import VideoApisLocale +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .paid_skill_information import PaidSkillInformation +from .ssl_certificate_type import SSLCertificateType +from .music_request import MusicRequest +from .video_catalog_info import VideoCatalogInfo +from .custom_apis import CustomApis +from .dialog_manager import DialogManager from .lambda_endpoint import LambdaEndpoint -from .viewport_specification import ViewportSpecification -from .catalog_info import CatalogInfo +from .music_feature import MusicFeature +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems from .music_alias import MusicAlias -from .video_feature import VideoFeature -from .music_content_type import MusicContentType +from .game_engine_interface import GameEngineInterface +from .up_channel_items import UpChannelItems +from .supported_controls_type import SupportedControlsType +from .gadget_support_requirement import GadgetSupportRequirement from .subscription_information import SubscriptionInformation -from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .offer_type import OfferType +from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest from .friendly_name import FriendlyName +from .health_interface import HealthInterface +from .authorized_client import AuthorizedClient +from .permission_items import PermissionItems from .manifest_gadget_support import ManifestGadgetSupport -from .source_language_for_locales import SourceLanguageForLocales -from .dialog_manager import DialogManager -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion -from .automatic_cloned_locale import AutomaticClonedLocale -from .distribution_countries import DistributionCountries -from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .gadget_support_requirement import GadgetSupportRequirement -from .tax_information_category import TaxInformationCategory -from .video_app_interface import VideoAppInterface -from .custom_apis import CustomApis -from .flash_briefing_genre import FlashBriefingGenre -from .linked_application import LinkedApplication -from .app_link import AppLink -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems -from .music_wordmark import MusicWordmark -from .knowledge_apis import KnowledgeApis -from .video_apis_locale import VideoApisLocale -from .alexa_for_business_interface import AlexaForBusinessInterface -from .game_engine_interface import GameEngineInterface -from .dialog_management import DialogManagement -from .gadget_controller_interface import GadgetControllerInterface -from .smart_home_protocol import SmartHomeProtocol -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .version import Version -from .music_request import MusicRequest -from .video_apis import VideoApis -from .lambda_region import LambdaRegion -from .video_country_info import VideoCountryInfo from .skill_manifest import SkillManifest -from .manifest_version import ManifestVersion -from .flash_briefing_apis import FlashBriefingApis -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .marketplace_pricing import MarketplacePricing -from .permission_items import PermissionItems -from .automatic_distribution import AutomaticDistribution -from .authorized_client import AuthorizedClient +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .music_capability import MusicCapability +from .extension_request import ExtensionRequest +from .music_wordmark import MusicWordmark +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement +from .authorized_client_lwa import AuthorizedClientLwa from .event_name_type import EventNameType -from .audio_interface import AudioInterface +from .video_prompt_name_type import VideoPromptNameType +from .voice_profile_feature import VoiceProfileFeature +from .tax_information_category import TaxInformationCategory from .smart_home_apis import SmartHomeApis -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName -from .custom_product_prompts import CustomProductPrompts -from .app_link_v2_interface import AppLinkV2Interface -from .alexa_for_business_apis import AlexaForBusinessApis +from .currency import Currency +from .flash_briefing_apis import FlashBriefingApis +from .catalog_info import CatalogInfo from .video_region import VideoRegion +from .gadget_controller_interface import GadgetControllerInterface +from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .distribution_countries import DistributionCountries +from .display_interface_apml_version import DisplayInterfaceApmlVersion from .localized_knowledge_information import LocalizedKnowledgeInformation -from .viewport_shape import ViewportShape -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .display_interface import DisplayInterface -from .catalog_type import CatalogType -from .music_content_name import MusicContentName -from .offer_type import OfferType -from .localized_name import LocalizedName -from .paid_skill_information import PaidSkillInformation -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid -from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .display_interface_template_version import DisplayInterfaceTemplateVersion -from .event_publications import EventPublications -from .demand_response_apis import DemandResponseApis from .custom_localized_information import CustomLocalizedInformation -from .video_prompt_name_type import VideoPromptNameType +from .lambda_region import LambdaRegion +from .marketplace_pricing import MarketplacePricing +from .supported_controls import SupportedControls +from .skill_manifest_events import SkillManifestEvents from .video_prompt_name import VideoPromptName -from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .custom_task import CustomTask -from .supported_controls_type import SupportedControlsType -from .localized_music_info import LocalizedMusicInfo -from .video_catalog_info import VideoCatalogInfo -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .event_name import EventName +from .music_content_type import MusicContentType +from .connections_payload import ConnectionsPayload +from .manifest_version import ManifestVersion +from .video_app_interface import VideoAppInterface +from .video_apis import VideoApis +from .display_interface_template_version import DisplayInterfaceTemplateVersion diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index b1eda5d..cf1c289 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .target_runtime import TargetRuntime +from .target_runtime_type import TargetRuntimeType from .target_runtime_device import TargetRuntimeDevice from .connection import Connection from .suppressed_interface import SuppressedInterface -from .target_runtime import TargetRuntime -from .target_runtime_type import TargetRuntimeType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index 104ab21..2a147c3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .skill_type import SkillType from .stage_for_metric import StageForMetric from .metric import Metric from .period import Period +from .skill_type import SkillType from .get_metric_data_response import GetMetricDataResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index 4b8e9f1..d80e7c8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest -from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse -from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse +from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest from .pagination_context import PaginationContext -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse +from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest +from .annotation_set import AnnotationSet +from .links import Links from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest from .annotation_set_entity import AnnotationSetEntity -from .links import Links -from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest -from .annotation_set import AnnotationSet +from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse +from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index 1bed7eb..0853395 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import -from .list_nlu_evaluations_response import ListNLUEvaluationsResponse +from .intent import Intent from .pagination_context import PaginationContext -from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse -from .results_status import ResultsStatus -from .results import Results -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .paged_results_response import PagedResultsResponse -from .expected_intent_slots_props import ExpectedIntentSlotsProps -from .evaluate_nlu_request import EvaluateNLURequest from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks -from .actual import Actual -from .test_case import TestCase -from .evaluation import Evaluation +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .resolutions_per_authority_value import ResolutionsPerAuthorityValue from .resolutions_per_authority import ResolutionsPerAuthority -from .status import Status +from .results import Results from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext -from .evaluation_entity import EvaluationEntity +from .slots_props import SlotsProps +from .get_nlu_evaluation_response import GetNLUEvaluationResponse +from .evaluation import Evaluation +from .evaluate_response import EvaluateResponse +from .paged_response import PagedResponse +from .list_nlu_evaluations_response import ListNLUEvaluationsResponse from .links import Links -from .inputs import Inputs +from .results_status import ResultsStatus +from .expected_intent_slots_props import ExpectedIntentSlotsProps +from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse +from .test_case import TestCase from .expected import Expected -from .confirmation_status import ConfirmationStatus -from .evaluation_inputs import EvaluationInputs -from .paged_response import PagedResponse -from .evaluate_response import EvaluateResponse -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .inputs import Inputs from .expected_intent import ExpectedIntent +from .evaluation_entity import EvaluationEntity +from .evaluation_inputs import EvaluationInputs from .resolutions import Resolutions -from .slots_props import SlotsProps -from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .evaluate_nlu_request import EvaluateNLURequest from .source import Source -from .intent import Intent +from .confirmation_status import ConfirmationStatus +from .paged_results_response import PagedResultsResponse +from .status import Status +from .actual import Actual diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index 378cafd..e6e9f1c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .accept_status import AcceptStatus -from .private_distribution_account import PrivateDistributionAccount from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse +from .private_distribution_account import PrivateDistributionAccount +from .accept_status import AcceptStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 1b585d2..615b9e7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .alexa_response_content import AlexaResponseContent -from .simulations_api_request import SimulationsApiRequest -from .input import Input +from .simulation import Simulation from .simulations_api_response import SimulationsApiResponse -from .simulation_result import SimulationResult -from .simulations_api_response_status import SimulationsApiResponseStatus -from .simulation_type import SimulationType +from .session_mode import SessionMode +from .metrics import Metrics from .alexa_execution_info import AlexaExecutionInfo +from .simulations_api_request import SimulationsApiRequest from .device import Device -from .invocation_request import InvocationRequest -from .alexa_response import AlexaResponse +from .simulation_type import SimulationType from .session import Session -from .metrics import Metrics from .invocation_response import InvocationResponse +from .invocation_request import InvocationRequest +from .input import Input +from .alexa_response_content import AlexaResponseContent +from .alexa_response import AlexaResponse +from .simulation_result import SimulationResult from .invocation import Invocation -from .simulation import Simulation -from .session_mode import SessionMode +from .simulations_api_response_status import SimulationsApiResponseStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py index d58e4df..cb98958 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/simulation_type.py @@ -27,7 +27,7 @@ class SimulationType(Enum): """ - String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"DEFAULT\" is used to proceed with the default skill simulation behavior. \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. + String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. This field is reserved for testing Name Free Interactions(NFI). Skills that are eligible to add NFI can only use this field. To learn more, visit https://developer.amazon.com/en-US/docs/alexa/custom-skills/understand-name-free-interaction-for-custom-skills.html diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index 315184b..c7ad187 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -16,8 +16,8 @@ from .validations_api_response_result import ValidationsApiResponseResult from .validations_api_request import ValidationsApiRequest +from .validations_api_response import ValidationsApiResponse from .validations_api_response_status import ValidationsApiResponseStatus from .response_validation_importance import ResponseValidationImportance from .response_validation_status import ResponseValidationStatus -from .validations_api_response import ValidationsApiResponse from .response_validation import ResponseValidation diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index 8e41a5a..b149f16 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .sh_capability_response import SHCapabilityResponse from .evaluation_object import EvaluationObject -from .stage import Stage -from .endpoint import Endpoint from .pagination_context import PaginationContext -from .capability_test_plan import CapabilityTestPlan -from .pagination_context_token import PaginationContextToken -from .sh_capability_error_code import SHCapabilityErrorCode -from .list_sh_test_plan_item import ListSHTestPlanItem -from .sh_evaluation_results_metric import SHEvaluationResultsMetric -from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .evaluation_entity_status import EvaluationEntityStatus from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse from .sh_capability_error import SHCapabilityError -from .sh_capability_directive import SHCapabilityDirective +from .sh_evaluation_results_metric import SHEvaluationResultsMetric from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .sh_capability_state import SHCapabilityState -from .test_case_result import TestCaseResult -from .test_case_result_status import TestCaseResultStatus from .paged_response import PagedResponse -from .evaluation_entity_status import EvaluationEntityStatus +from .test_case_result_status import TestCaseResultStatus +from .sh_capability_error_code import SHCapabilityErrorCode +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .endpoint import Endpoint from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse +from .sh_capability_response import SHCapabilityResponse from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse +from .list_sh_test_plan_item import ListSHTestPlanItem +from .stage import Stage +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .pagination_context_token import PaginationContextToken +from .test_case_result import TestCaseResult +from .sh_capability_directive import SHCapabilityDirective +from .sh_capability_state import SHCapabilityState +from .capability_test_plan import CapabilityTestPlan diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py index bca62c4..a0a7002 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .vendor import Vendor from .vendors import Vendors +from .vendor import Vendor diff --git a/ask-smapi-model/ask_smapi_model/v2/__init__.py b/ask-smapi-model/ask_smapi_model/v2/__init__.py index 7bf567d..a044fbc 100644 --- a/ask-smapi-model/ask_smapi_model/v2/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .bad_request_error import BadRequestError from .error import Error +from .bad_request_error import BadRequestError diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index 465ed34..38e71e2 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .invocation_request import InvocationRequest from .metrics import Metrics from .invocation_response import InvocationResponse +from .invocation_request import InvocationRequest from .invocation import Invocation diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index 9e94b54..c034f51 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .invocation_response_status import InvocationResponseStatus +from .skill_request import SkillRequest +from .invocation_response_result import InvocationResponseResult from .invocations_api_response import InvocationsApiResponse from .end_point_regions import EndPointRegions -from .invocation_response_result import InvocationResponseResult -from .skill_request import SkillRequest from .invocations_api_request import InvocationsApiRequest diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index 250424f..8c03b52 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -14,25 +14,25 @@ # from __future__ import absolute_import -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .alexa_response_content import AlexaResponseContent -from .confirmation_status_type import ConfirmationStatusType -from .simulations_api_request import SimulationsApiRequest -from .input import Input +from .simulation import Simulation +from .intent import Intent from .simulations_api_response import SimulationsApiResponse +from .session_mode import SessionMode +from .alexa_execution_info import AlexaExecutionInfo from .slot_resolutions import SlotResolutions -from .slot import Slot -from .simulation_result import SimulationResult from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .simulations_api_response_status import SimulationsApiResponseStatus -from .simulation_type import SimulationType -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .alexa_execution_info import AlexaExecutionInfo +from .simulations_api_request import SimulationsApiRequest +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems from .device import Device -from .alexa_response import AlexaResponse +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .simulation_type import SimulationType from .session import Session -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .simulation import Simulation +from .slot import Slot +from .confirmation_status_type import ConfirmationStatusType from .skill_execution_info import SkillExecutionInfo -from .session_mode import SessionMode -from .intent import Intent +from .input import Input +from .alexa_response_content import AlexaResponseContent +from .alexa_response import AlexaResponse +from .simulation_result import SimulationResult +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .simulations_api_response_status import SimulationsApiResponseStatus diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py index d58e4df..cb98958 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/simulation_type.py @@ -27,7 +27,7 @@ class SimulationType(Enum): """ - String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"DEFAULT\" is used to proceed with the default skill simulation behavior. \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. + String indicating the type of simulation request. Possible values are \"DEFAULT\" and \"NFI_ISOLATED_SIMULATION\". \"NFI_ISOLATED_SIMULATION\" is used to test the NFI(Name Free Interaction) enabled skills in isolation. This field is reserved for testing Name Free Interactions(NFI). Skills that are eligible to add NFI can only use this field. To learn more, visit https://developer.amazon.com/en-US/docs/alexa/custom-skills/understand-name-free-interaction-for-custom-skills.html From 9a29b6be679ce25880fd6a73603bd10bbfe464b4 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Tue, 26 Oct 2021 18:37:35 -0500 Subject: [PATCH 022/111] Release 1.32.0. For changelog, check CHANGELOG.rst (#18) Co-authored-by: Shreyas Govinda Raju --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__init__.py | 48 +++---- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 8 +- ask-sdk-model/ask_sdk_model/context.py | 16 ++- ask-sdk-model/ask_sdk_model/device.py | 4 +- .../ask_sdk_model/dialog/__init__.py | 14 +- .../dynamic_endpoints/__init__.py | 4 +- .../ask_sdk_model/er/dynamic/__init__.py | 2 +- .../events/skillevents/__init__.py | 14 +- .../interfaces/alexa/extension/__init__.py | 2 +- .../alexa/presentation/apl/__init__.py | 104 +++++++-------- .../apl/listoperations/__init__.py | 4 +- .../alexa/presentation/apla/__init__.py | 12 +- .../alexa/presentation/aplt/__init__.py | 22 ++-- .../alexa/presentation/html/__init__.py | 16 +-- .../amazonpay/model/request/__init__.py | 14 +- .../amazonpay/model/response/__init__.py | 8 +- .../interfaces/amazonpay/model/v1/__init__.py | 24 ++-- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 21 +++ .../interfaces/applink/app_link_interface.py | 106 +++++++++++++++ .../interfaces/applink/app_link_state.py | 123 ++++++++++++++++++ .../interfaces/applink/catalog_types.py | 66 ++++++++++ .../interfaces/applink/direct_launch.py | 115 ++++++++++++++++ .../ask_sdk_model/interfaces/applink/py.typed | 0 .../interfaces/applink/send_to_device.py | 100 ++++++++++++++ .../interfaces/audioplayer/__init__.py | 26 ++-- .../interfaces/connections/__init__.py | 6 +- .../connections/entities/__init__.py | 2 +- .../connections/requests/__init__.py | 6 +- .../interfaces/conversations/__init__.py | 2 +- .../custom_interface_controller/__init__.py | 14 +- .../interfaces/display/__init__.py | 38 +++--- .../interfaces/game_engine/__init__.py | 4 +- .../interfaces/geolocation/__init__.py | 12 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 4 +- .../interfaces/system_unit/unit.py | 8 +- .../interfaces/videoapp/__init__.py | 4 +- .../interfaces/viewport/__init__.py | 16 +-- .../interfaces/viewport/aplt/__init__.py | 4 +- .../interfaces/viewport/size/__init__.py | 2 +- .../ask_sdk_model/services/__init__.py | 14 +- .../services/device_address/__init__.py | 2 +- .../services/directive/__init__.py | 4 +- .../services/endpoint_enumeration/__init__.py | 4 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 12 +- .../services/list_management/__init__.py | 30 ++--- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 16 +-- .../services/proactive_events/__init__.py | 6 +- .../services/reminder_management/__init__.py | 36 ++--- .../services/timer_management/__init__.py | 22 ++-- .../ask_sdk_model/services/ups/__init__.py | 4 +- .../slu/entityresolution/__init__.py | 8 +- .../ask_sdk_model/supported_interfaces.py | 12 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 12 +- 61 files changed, 881 insertions(+), 328 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_interface.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_state.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/catalog_types.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/direct_launch.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/applink/send_to_device.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 55a3865..cbb8831 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -406,3 +406,9 @@ This release contains the following changes : - Updating model definitions +1.32.0 +^^^^^^ + +This release contains the following changes : + +- Models and support for `App Link Interfaces `__. diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index cf43196..9736b7c 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import -from .intent_request import IntentRequest -from .permission_status import PermissionStatus -from .simple_slot_value import SimpleSlotValue +from .intent import Intent +from .user import User from .list_slot_value import ListSlotValue -from .application import Application -from .permissions import Permissions +from .task import Task from .slot_confirmation_status import SlotConfirmationStatus +from .person import Person from .connection_completed import ConnectionCompleted -from .slot import Slot -from .task import Task -from .intent_confirmation_status import IntentConfirmationStatus -from .supported_interfaces import SupportedInterfaces -from .session_ended_error import SessionEndedError -from .status import Status -from .response import Response -from .directive import Directive from .device import Device -from .session_ended_reason import SessionEndedReason -from .user import User -from .scope import Scope -from .dialog_state import DialogState -from .slot_value import SlotValue +from .session_ended_error import SessionEndedError +from .simple_slot_value import SimpleSlotValue +from .supported_interfaces import SupportedInterfaces from .launch_request import LaunchRequest from .session import Session +from .request import Request +from .session_ended_reason import SessionEndedReason +from .slot import Slot +from .cause import Cause +from .response import Response from .session_resumed_request import SessionResumedRequest +from .slot_value import SlotValue +from .application import Application +from .session_ended_error_type import SessionEndedErrorType +from .dialog_state import DialogState +from .permission_status import PermissionStatus +from .intent_confirmation_status import IntentConfirmationStatus +from .context import Context from .response_envelope import ResponseEnvelope -from .request import Request +from .permissions import Permissions +from .directive import Directive from .session_ended_request import SessionEndedRequest -from .context import Context -from .person import Person -from .cause import Cause from .request_envelope import RequestEnvelope -from .session_ended_error_type import SessionEndedErrorType -from .intent import Intent +from .intent_request import IntentRequest +from .scope import Scope +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 8d1db6e..45c1c79 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.31.1' +__version__ = '1.32.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index f1586a4..56a13b8 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .grant_type import GrantType from .authorization_grant_request import AuthorizationGrantRequest -from .grant import Grant from .authorization_grant_body import AuthorizationGrantBody +from .grant import Grant +from .grant_type import GrantType diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index 93ed2be..31d082d 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .can_fulfill_slot import CanFulfillSlot -from .can_fulfill_intent import CanFulfillIntent -from .can_fulfill_intent_request import CanFulfillIntentRequest -from .can_fulfill_intent_values import CanFulfillIntentValues from .can_understand_slot_values import CanUnderstandSlotValues +from .can_fulfill_intent_request import CanFulfillIntentRequest +from .can_fulfill_intent import CanFulfillIntent from .can_fulfill_slot_values import CanFulfillSlotValues +from .can_fulfill_intent_values import CanFulfillIntentValues +from .can_fulfill_slot import CanFulfillSlot diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index b6ee8a8..391d104 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -29,6 +29,7 @@ from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451 from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState as AutomotiveState_2b614eea from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState as ExtensionsState_f02207d3 + from ask_sdk_model.interfaces.applink.app_link_state import AppLinkState as AppLinkState_370eda23 from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d from ask_sdk_model.interfaces.system.system_state import SystemState as SystemState_22fcb230 from ask_sdk_model.interfaces.display.display_state import DisplayState as DisplayState_726e4959 @@ -55,6 +56,8 @@ class Context(object): :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] :param extensions: Provides the current state for Extensions interface :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState + :param app_link: Provides the current state for app link capability. + :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState """ deserialized_types = { @@ -66,7 +69,8 @@ class Context(object): 'geolocation': 'ask_sdk_model.interfaces.geolocation.geolocation_state.GeolocationState', 'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState', 'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]', - 'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState' + 'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState', + 'app_link': 'ask_sdk_model.interfaces.applink.app_link_state.AppLinkState' } # type: Dict attribute_map = { @@ -78,12 +82,13 @@ class Context(object): 'geolocation': 'Geolocation', 'viewport': 'Viewport', 'viewports': 'Viewports', - 'extensions': 'Extensions' + 'extensions': 'Extensions', + 'app_link': 'AppLink' } # type: Dict supports_multiple_types = False - def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None): - # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3]) -> None + def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, app_link=None): + # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[AppLinkState_370eda23]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. @@ -104,6 +109,8 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] :param extensions: Provides the current state for Extensions interface :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState + :param app_link: Provides the current state for app link capability. + :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState """ self.__discriminator_value = None # type: str @@ -116,6 +123,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, self.viewport = viewport self.viewports = viewports self.extensions = extensions + self.app_link = app_link def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/device.py b/ask-sdk-model/ask_sdk_model/device.py index 94e7bc9..22d2a67 100644 --- a/ask-sdk-model/ask_sdk_model/device.py +++ b/ask-sdk-model/ask_sdk_model/device.py @@ -31,7 +31,7 @@ class Device(object): An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. - :param device_id: The deviceId property uniquely identifies the device. + :param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type device_id: (optional) str :param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface :type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces @@ -52,7 +52,7 @@ def __init__(self, device_id=None, supported_interfaces=None): # type: (Optional[str], Optional[SupportedInterfaces_8ec830f5]) -> None """An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. - :param device_id: The deviceId property uniquely identifies the device. + :param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type device_id: (optional) str :param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface :type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 8282e6e..00a9514 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .confirm_intent_directive import ConfirmIntentDirective +from .updated_request import UpdatedRequest from .delegate_directive import DelegateDirective -from .delegation_period import DelegationPeriod +from .delegate_request_directive import DelegateRequestDirective from .input_request import InputRequest -from .confirm_slot_directive import ConfirmSlotDirective from .elicit_slot_directive import ElicitSlotDirective -from .updated_request import UpdatedRequest from .input import Input +from .delegation_period import DelegationPeriod from .updated_input_request import UpdatedInputRequest -from .delegation_period_until import DelegationPeriodUntil -from .confirm_intent_directive import ConfirmIntentDirective -from .updated_intent_request import UpdatedIntentRequest -from .delegate_request_directive import DelegateRequestDirective from .dynamic_entities_directive import DynamicEntitiesDirective +from .confirm_slot_directive import ConfirmSlotDirective +from .updated_intent_request import UpdatedIntentRequest +from .delegation_period_until import DelegationPeriodUntil diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index b0f5f3c..da98eb0 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .base_response import BaseResponse from .success_response import SuccessResponse -from .failure_response import FailureResponse +from .base_response import BaseResponse from .request import Request +from .failure_response import FailureResponse diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index dda0d19..998c51b 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .entity_value_and_synonyms import EntityValueAndSynonyms from .update_behavior import UpdateBehavior +from .entity_value_and_synonyms import EntityValueAndSynonyms from .entity_list_item import EntityListItem from .entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index eedc6d6..2245580 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .permission_changed_request import PermissionChangedRequest -from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .account_linked_request import AccountLinkedRequest -from .permission_body import PermissionBody +from .permission import Permission +from .proactive_subscription_event import ProactiveSubscriptionEvent from .account_linked_body import AccountLinkedBody from .skill_enabled_request import SkillEnabledRequest +from .account_linked_request import AccountLinkedRequest from .skill_disabled_request import SkillDisabledRequest -from .proactive_subscription_event import ProactiveSubscriptionEvent -from .permission import Permission -from .permission_accepted_request import PermissionAcceptedRequest +from .permission_changed_request import PermissionChangedRequest +from .permission_body import PermissionBody +from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest +from .permission_accepted_request import PermissionAcceptedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py index 3334e5a..1dd324d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .extensions_state import ExtensionsState from .available_extension import AvailableExtension +from .extensions_state import ExtensionsState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index a06f153..a29f274 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,68 +14,68 @@ # from __future__ import absolute_import -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum -from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag -from .position import Position -from .idle_command import IdleCommand -from .open_url_command import OpenUrlCommand -from .user_event import UserEvent -from .list_runtime_error_reason import ListRuntimeErrorReason +from .select_command import SelectCommand +from .set_state_command import SetStateCommand +from .rendered_document_state import RenderedDocumentState from .play_media_command import PlayMediaCommand +from .update_index_list_data_directive import UpdateIndexListDataDirective +from .media_command_type import MediaCommandType +from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag +from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .component_entity import ComponentEntity +from .command import Command from .component_visible_on_screen import ComponentVisibleOnScreen +from .load_token_list_data_event import LoadTokenListDataEvent +from .list_runtime_error import ListRuntimeError +from .reinflate_command import ReinflateCommand from .render_document_directive import RenderDocumentDirective -from .runtime_error import RuntimeError +from .align import Align +from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags +from .sequential_command import SequentialCommand +from .send_token_list_data_directive import SendTokenListDataDirective +from .highlight_mode import HighlightMode +from .scroll_to_component_command import ScrollToComponentCommand +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag +from .animated_transform_property import AnimatedTransformProperty from .audio_track import AudioTrack -from .parallel_command import ParallelCommand -from .animated_opacity_property import AnimatedOpacityProperty -from .set_value_command import SetValueCommand from .scroll_command import ScrollCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .auto_page_command import AutoPageCommand -from .speak_item_command import SpeakItemCommand +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .control_media_command import ControlMediaCommand +from .scroll_to_index_command import ScrollToIndexCommand +from .set_page_command import SetPageCommand +from .skew_transform_property import SkewTransformProperty from .video_source import VideoSource -from .animate_item_repeat_mode import AnimateItemRepeatMode +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .auto_page_command import AutoPageCommand +from .send_event_command import SendEventCommand +from .runtime import Runtime +from .list_runtime_error_reason import ListRuntimeErrorReason +from .scale_transform_property import ScaleTransformProperty from .animated_property import AnimatedProperty -from .skew_transform_property import SkewTransformProperty -from .animated_transform_property import AnimatedTransformProperty -from .runtime_error_event import RuntimeErrorEvent from .animate_item_command import AnimateItemCommand -from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag -from .transform_property import TransformProperty -from .send_index_list_data_directive import SendIndexListDataDirective -from .select_command import SelectCommand -from .align import Align -from .highlight_mode import HighlightMode -from .sequential_command import SequentialCommand -from .runtime import Runtime -from .execute_commands_directive import ExecuteCommandsDirective -from .load_token_list_data_event import LoadTokenListDataEvent -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag +from .user_event import UserEvent +from .position import Position +from .runtime_error import RuntimeError +from .speak_item_command import SpeakItemCommand +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag +from .clear_focus_command import ClearFocusCommand +from .set_value_command import SetValueCommand from .move_transform_property import MoveTransformProperty +from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag from .finish_command import FinishCommand -from .clear_focus_command import ClearFocusCommand -from .component_entity import ComponentEntity -from .command import Command +from .runtime_error_event import RuntimeErrorEvent +from .idle_command import IdleCommand +from .load_index_list_data_event import LoadIndexListDataEvent from .set_focus_command import SetFocusCommand -from .control_media_command import ControlMediaCommand -from .list_runtime_error import ListRuntimeError -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .set_page_command import SetPageCommand -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum -from .send_token_list_data_directive import SendTokenListDataDirective -from .scale_transform_property import ScaleTransformProperty -from .send_event_command import SendEventCommand -from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .reinflate_command import ReinflateCommand -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag -from .set_state_command import SetStateCommand -from .rotate_transform_property import RotateTransformProperty -from .scroll_to_index_command import ScrollToIndexCommand -from .scroll_to_component_command import ScrollToComponentCommand from .speak_list_command import SpeakListCommand -from .media_command_type import MediaCommandType -from .rendered_document_state import RenderedDocumentState +from .parallel_command import ParallelCommand +from .animate_item_repeat_mode import AnimateItemRepeatMode +from .send_index_list_data_directive import SendIndexListDataDirective +from .execute_commands_directive import ExecuteCommandsDirective +from .animated_opacity_property import AnimatedOpacityProperty +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum from .component_state import ComponentState -from .load_index_list_data_event import LoadIndexListDataEvent +from .transform_property import TransformProperty +from .rotate_transform_property import RotateTransformProperty +from .open_url_command import OpenUrlCommand diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index 05fcaed..4e873d6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -16,7 +16,7 @@ from .insert_multiple_items_operation import InsertMultipleItemsOperation from .set_item_operation import SetItemOperation -from .insert_item_operation import InsertItemOperation from .delete_item_operation import DeleteItemOperation -from .delete_multiple_items_operation import DeleteMultipleItemsOperation +from .insert_item_operation import InsertItemOperation from .operation import Operation +from .delete_multiple_items_operation import DeleteMultipleItemsOperation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index f293d7b..3e99ce1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .render_error_reason import RenderErrorReason -from .render_document_directive import RenderDocumentDirective -from .runtime_error import RuntimeError +from .link_error_reason import LinkErrorReason from .audio_source_error_reason import AudioSourceErrorReason +from .render_document_directive import RenderDocumentDirective +from .link_runtime_error import LinkRuntimeError from .document_runtime_error import DocumentRuntimeError +from .runtime_error import RuntimeError from .document_error_reason import DocumentErrorReason -from .runtime_error_event import RuntimeErrorEvent from .render_runtime_error import RenderRuntimeError -from .link_error_reason import LinkErrorReason -from .link_runtime_error import LinkRuntimeError +from .runtime_error_event import RuntimeErrorEvent +from .render_error_reason import RenderErrorReason from .audio_source_runtime_error import AudioSourceRuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index 6031446..e9bee84 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .position import Position -from .idle_command import IdleCommand -from .user_event import UserEvent +from .command import Command from .render_document_directive import RenderDocumentDirective -from .parallel_command import ParallelCommand -from .set_value_command import SetValueCommand +from .sequential_command import SequentialCommand +from .target_profile import TargetProfile from .scroll_command import ScrollCommand +from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface +from .set_page_command import SetPageCommand from .auto_page_command import AutoPageCommand -from .target_profile import TargetProfile -from .sequential_command import SequentialCommand +from .send_event_command import SendEventCommand from .runtime import Runtime +from .user_event import UserEvent +from .position import Position +from .set_value_command import SetValueCommand +from .idle_command import IdleCommand +from .parallel_command import ParallelCommand from .execute_commands_directive import ExecuteCommandsDirective -from .command import Command -from .set_page_command import SetPageCommand -from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface -from .send_event_command import SendEventCommand diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index d212737..0c12b4d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .configuration import Configuration +from .runtime_error_reason import RuntimeErrorReason from .transformer_type import TransformerType -from .runtime_error import RuntimeError -from .handle_message_directive import HandleMessageDirective -from .transformer import Transformer +from .message_request import MessageRequest +from .runtime_error_request import RuntimeErrorRequest from .runtime import Runtime +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .start_request_method import StartRequestMethod from .start_request import StartRequest -from .message_request import MessageRequest -from .configuration import Configuration +from .transformer import Transformer +from .runtime_error import RuntimeError +from .handle_message_directive import HandleMessageDirective from .start_directive import StartDirective -from .runtime_error_reason import RuntimeErrorReason -from .runtime_error_request import RuntimeErrorRequest -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index b48336a..2d97e7e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .payment_action import PaymentAction -from .price import Price +from .billing_agreement_type import BillingAgreementType from .seller_order_attributes import SellerOrderAttributes -from .base_amazon_pay_entity import BaseAmazonPayEntity -from .authorize_attributes import AuthorizeAttributes -from .provider_attributes import ProviderAttributes -from .billing_agreement_attributes import BillingAgreementAttributes from .provider_credit import ProviderCredit +from .authorize_attributes import AuthorizeAttributes from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .billing_agreement_type import BillingAgreementType +from .billing_agreement_attributes import BillingAgreementAttributes +from .base_amazon_pay_entity import BaseAmazonPayEntity +from .payment_action import PaymentAction +from .provider_attributes import ProviderAttributes +from .price import Price diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 847b2e7..46705ef 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .price import Price -from .state import State from .authorization_details import AuthorizationDetails -from .billing_agreement_details import BillingAgreementDetails +from .destination import Destination from .authorization_status import AuthorizationStatus from .release_environment import ReleaseEnvironment -from .destination import Destination +from .billing_agreement_details import BillingAgreementDetails +from .state import State +from .price import Price diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index 3021353..e70d00f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .payment_action import PaymentAction -from .price import Price -from .state import State from .authorization_details import AuthorizationDetails -from .billing_agreement_details import BillingAgreementDetails -from .authorization_status import AuthorizationStatus -from .release_environment import ReleaseEnvironment -from .seller_order_attributes import SellerOrderAttributes from .destination import Destination -from .billing_agreement_status import BillingAgreementStatus -from .authorize_attributes import AuthorizeAttributes -from .provider_attributes import ProviderAttributes -from .billing_agreement_attributes import BillingAgreementAttributes +from .billing_agreement_type import BillingAgreementType +from .seller_order_attributes import SellerOrderAttributes from .provider_credit import ProviderCredit +from .authorize_attributes import AuthorizeAttributes +from .billing_agreement_status import BillingAgreementStatus from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .billing_agreement_type import BillingAgreementType +from .authorization_status import AuthorizationStatus +from .billing_agreement_attributes import BillingAgreementAttributes +from .release_environment import ReleaseEnvironment +from .payment_action import PaymentAction +from .billing_agreement_details import BillingAgreementDetails +from .provider_attributes import ProviderAttributes +from .state import State +from .price import Price diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f7ef1d0..f8fe460 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .charge_amazon_pay_result import ChargeAmazonPayResult from .setup_amazon_pay_result import SetupAmazonPayResult +from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index 3b79170..9aa15d0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .charge_amazon_pay_result import ChargeAmazonPayResult from .setup_amazon_pay_result import SetupAmazonPayResult +from .charge_amazon_pay_result import ChargeAmazonPayResult +from .setup_amazon_pay import SetupAmazonPay from .charge_amazon_pay import ChargeAmazonPay from .amazon_pay_error_response import AmazonPayErrorResponse -from .setup_amazon_pay import SetupAmazonPay diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py new file mode 100644 index 0000000..3878b28 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -0,0 +1,21 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .direct_launch import DirectLaunch +from .catalog_types import CatalogTypes +from .app_link_state import AppLinkState +from .app_link_interface import AppLinkInterface +from .send_to_device import SendToDevice diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_interface.py new file mode 100644 index 0000000..7551e50 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_interface.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AppLinkInterface(object): + """ + + :param version: + :type version: (optional) str + + """ + deserialized_types = { + 'version': 'str' + } # type: Dict + + attribute_map = { + 'version': 'version' + } # type: Dict + supports_multiple_types = False + + def __init__(self, version=None): + # type: (Optional[str]) -> None + """ + + :param version: + :type version: (optional) str + """ + self.__discriminator_value = None # type: str + + self.version = version + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AppLinkInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_state.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_state.py new file mode 100644 index 0000000..f8057dd --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/app_link_state.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.applink.send_to_device import SendToDevice as SendToDevice_cd5aa3cd + from ask_sdk_model.interfaces.applink.catalog_types import CatalogTypes as CatalogTypes_132af432 + from ask_sdk_model.interfaces.applink.direct_launch import DirectLaunch as DirectLaunch_66db2518 + + +class AppLinkState(object): + """ + + :param supported_catalog_types: + :type supported_catalog_types: (optional) list[ask_sdk_model.interfaces.applink.catalog_types.CatalogTypes] + :param direct_launch: + :type direct_launch: (optional) ask_sdk_model.interfaces.applink.direct_launch.DirectLaunch + :param send_to_device: + :type send_to_device: (optional) ask_sdk_model.interfaces.applink.send_to_device.SendToDevice + + """ + deserialized_types = { + 'supported_catalog_types': 'list[ask_sdk_model.interfaces.applink.catalog_types.CatalogTypes]', + 'direct_launch': 'ask_sdk_model.interfaces.applink.direct_launch.DirectLaunch', + 'send_to_device': 'ask_sdk_model.interfaces.applink.send_to_device.SendToDevice' + } # type: Dict + + attribute_map = { + 'supported_catalog_types': 'supportedCatalogTypes', + 'direct_launch': 'directLaunch', + 'send_to_device': 'sendToDevice' + } # type: Dict + supports_multiple_types = False + + def __init__(self, supported_catalog_types=None, direct_launch=None, send_to_device=None): + # type: (Optional[List[CatalogTypes_132af432]], Optional[DirectLaunch_66db2518], Optional[SendToDevice_cd5aa3cd]) -> None + """ + + :param supported_catalog_types: + :type supported_catalog_types: (optional) list[ask_sdk_model.interfaces.applink.catalog_types.CatalogTypes] + :param direct_launch: + :type direct_launch: (optional) ask_sdk_model.interfaces.applink.direct_launch.DirectLaunch + :param send_to_device: + :type send_to_device: (optional) ask_sdk_model.interfaces.applink.send_to_device.SendToDevice + """ + self.__discriminator_value = None # type: str + + self.supported_catalog_types = supported_catalog_types + self.direct_launch = direct_launch + self.send_to_device = send_to_device + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AppLinkState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/catalog_types.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/catalog_types.py new file mode 100644 index 0000000..6e8e1b8 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/catalog_types.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CatalogTypes(Enum): + """ + Accepted catalog types. + + + + Allowed enum values: [IOS_APP_STORE, GOOGLE_PLAY_STORE] + """ + IOS_APP_STORE = "IOS_APP_STORE" + GOOGLE_PLAY_STORE = "GOOGLE_PLAY_STORE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CatalogTypes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/direct_launch.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/direct_launch.py new file mode 100644 index 0000000..6ca6eea --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/direct_launch.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DirectLaunch(object): + """ + direct launch availability + + + :param ios_app_store: + :type ios_app_store: (optional) object + :param google_play_store: + :type google_play_store: (optional) object + + """ + deserialized_types = { + 'ios_app_store': 'object', + 'google_play_store': 'object' + } # type: Dict + + attribute_map = { + 'ios_app_store': 'IOS_APP_STORE', + 'google_play_store': 'GOOGLE_PLAY_STORE' + } # type: Dict + supports_multiple_types = False + + def __init__(self, ios_app_store=None, google_play_store=None): + # type: (Optional[object], Optional[object]) -> None + """direct launch availability + + :param ios_app_store: + :type ios_app_store: (optional) object + :param google_play_store: + :type google_play_store: (optional) object + """ + self.__discriminator_value = None # type: str + + self.ios_app_store = ios_app_store + self.google_play_store = google_play_store + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DirectLaunch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/applink/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/send_to_device.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/send_to_device.py new file mode 100644 index 0000000..4500c28 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/send_to_device.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SendToDevice(object): + """ + send to device availability + + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """send to device availability + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SendToDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index 565e699..fdad96d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -15,23 +15,23 @@ from __future__ import absolute_import from .audio_player_interface import AudioPlayerInterface -from .playback_finished_request import PlaybackFinishedRequest +from .audio_item import AudioItem +from .playback_stopped_request import PlaybackStoppedRequest +from .error import Error +from .playback_started_request import PlaybackStartedRequest +from .clear_behavior import ClearBehavior from .stop_directive import StopDirective +from .caption_data import CaptionData from .player_activity import PlayerActivity -from .error import Error from .clear_queue_directive import ClearQueueDirective from .stream import Stream -from .audio_player_state import AudioPlayerState -from .clear_behavior import ClearBehavior -from .playback_failed_request import PlaybackFailedRequest -from .playback_stopped_request import PlaybackStoppedRequest +from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest from .current_playback_state import CurrentPlaybackState -from .caption_data import CaptionData +from .play_behavior import PlayBehavior +from .playback_finished_request import PlaybackFinishedRequest +from .audio_item_metadata import AudioItemMetadata +from .caption_type import CaptionType +from .playback_failed_request import PlaybackFailedRequest from .play_directive import PlayDirective from .error_type import ErrorType -from .audio_item import AudioItem -from .caption_type import CaptionType -from .audio_item_metadata import AudioItemMetadata -from .play_behavior import PlayBehavior -from .playback_started_request import PlaybackStartedRequest -from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest +from .audio_player_state import AudioPlayerState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 1fdc949..602bf8d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .send_request_directive import SendRequestDirective from .connections_request import ConnectionsRequest -from .on_completion import OnCompletion -from .connections_status import ConnectionsStatus from .send_response_directive import SendResponseDirective -from .send_request_directive import SendRequestDirective +from .connections_status import ConnectionsStatus from .connections_response import ConnectionsResponse +from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py index b44176d..9d70532 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .base_entity import BaseEntity from .postal_address import PostalAddress from .restaurant import Restaurant +from .base_entity import BaseEntity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index 415bd57..6cc8008 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .print_pdf_request import PrintPDFRequest -from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest from .print_image_request import PrintImageRequest +from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest -from .base_request import BaseRequest +from .print_pdf_request import PrintPDFRequest from .print_web_page_request import PrintWebPageRequest +from .base_request import BaseRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py index 0691472..71f7d91 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .api_invocation_request import APIInvocationRequest from .api_request import APIRequest +from .api_invocation_request import APIInvocationRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index 7df9e34..b0405d8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .endpoint import Endpoint -from .header import Header -from .filter_match_action import FilterMatchAction from .events_received_request import EventsReceivedRequest -from .expired_request import ExpiredRequest -from .start_event_handler_directive import StartEventHandlerDirective -from .stop_event_handler_directive import StopEventHandlerDirective +from .event import Event from .send_directive_directive import SendDirectiveDirective +from .header import Header from .expiration import Expiration -from .event import Event +from .expired_request import ExpiredRequest from .event_filter import EventFilter +from .stop_event_handler_directive import StopEventHandlerDirective +from .filter_match_action import FilterMatchAction +from .endpoint import Endpoint +from .start_event_handler_directive import StartEventHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index 0a4f1b3..b7a61a0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import -from .text_content import TextContent -from .back_button_behavior import BackButtonBehavior -from .list_template2 import ListTemplate2 -from .text_field import TextField -from .hint import Hint -from .body_template7 import BodyTemplate7 -from .hint_directive import HintDirective -from .render_template_directive import RenderTemplateDirective -from .template import Template -from .list_item import ListItem -from .image_size import ImageSize -from .plain_text import PlainText -from .element_selected_request import ElementSelectedRequest from .list_template1 import ListTemplate1 -from .body_template1 import BodyTemplate1 -from .display_state import DisplayState from .body_template2 import BodyTemplate2 -from .rich_text import RichText -from .image import Image +from .element_selected_request import ElementSelectedRequest from .display_interface import DisplayInterface -from .plain_text_hint import PlainTextHint +from .plain_text import PlainText +from .body_template6 import BodyTemplate6 +from .body_template7 import BodyTemplate7 +from .display_state import DisplayState from .body_template3 import BodyTemplate3 +from .list_item import ListItem from .image_instance import ImageInstance -from .body_template6 import BodyTemplate6 +from .text_content import TextContent +from .plain_text_hint import PlainTextHint +from .render_template_directive import RenderTemplateDirective +from .image_size import ImageSize +from .hint_directive import HintDirective +from .template import Template +from .text_field import TextField +from .back_button_behavior import BackButtonBehavior +from .hint import Hint +from .list_template2 import ListTemplate2 +from .image import Image +from .body_template1 import BodyTemplate1 +from .rich_text import RichText diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index 35b5562..477f76e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .start_input_handler_directive import StartInputHandlerDirective -from .input_handler_event_request import InputHandlerEventRequest from .stop_input_handler_directive import StopInputHandlerDirective +from .input_handler_event_request import InputHandlerEventRequest +from .start_input_handler_directive import StartInputHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index 7f7b6cc..041c407 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import +from .location_services import LocationServices +from .altitude import Altitude +from .speed import Speed from .geolocation_state import GeolocationState -from .geolocation_interface import GeolocationInterface -from .status import Status +from .access import Access from .coordinate import Coordinate -from .speed import Speed from .heading import Heading -from .altitude import Altitude -from .location_services import LocationServices -from .access import Access +from .geolocation_interface import GeolocationInterface +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index 5d4e111..b7cdb09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .play_command_issued_request import PlayCommandIssuedRequest from .previous_command_issued_request import PreviousCommandIssuedRequest -from .next_command_issued_request import NextCommandIssuedRequest from .pause_command_issued_request import PauseCommandIssuedRequest +from .play_command_issued_request import PlayCommandIssuedRequest +from .next_command_issued_request import NextCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index 7bf5183..dee010d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error_cause import ErrorCause -from .exception_encountered_request import ExceptionEncounteredRequest from .error import Error +from .exception_encountered_request import ExceptionEncounteredRequest +from .error_cause import ErrorCause from .system_state import SystemState from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py index ce7be4a..5ee4721 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system_unit/unit.py @@ -30,9 +30,9 @@ class Unit(object): An object that represents a logical entity for organizing actors and resources that interact with Alexa systems. - :param unit_id: A string that represents unitId directed at skill level. Each skill gets a different directed identifier for same internal identifier. This is Skill enablement scoped identifier. This should be in format - amzn1.ask.unit.<skillDirectedId> + :param unit_id: A string that represents a unique identifier for the unit in the context of a request. The length of this identifier can vary, but is never more than 255 characters. Alexa generates this string only when a request made to your skill has a valid unit context. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type unit_id: (optional) str - :param persistent_unit_id: A string that represents a unitId directed using directedIdConfuser associated with the respective Organization's developer account. This identifier is directed at an Organization level. Same identifier is shared across Organization's backend systems (which invokes API), Skills owned by the organization and authorized 3P skills. This should be in format - amzn1.alexa.unit.did.<LWAConfuserDirectedId> + :param persistent_unit_id: A string that represents a unique identifier for the unit in the context of a request. The length of this identifier can vary, but is never more than 255 characters. Alexa generates this string only when the request made to your skill has a valid unit context. This is another unit identifier associated with an organization's developer account. Only registered Alexa for Residential and Alexa for Hospitality vendors can see the Read PersistentUnitId toggle in the Alexa skills developers console. This identifier is scoped to a vendor, therefore all skills that belong to particular vendor share this identifier, therefore it will stay the same regardless of skill enablement. :type persistent_unit_id: (optional) str """ @@ -51,9 +51,9 @@ def __init__(self, unit_id=None, persistent_unit_id=None): # type: (Optional[str], Optional[str]) -> None """An object that represents a logical entity for organizing actors and resources that interact with Alexa systems. - :param unit_id: A string that represents unitId directed at skill level. Each skill gets a different directed identifier for same internal identifier. This is Skill enablement scoped identifier. This should be in format - amzn1.ask.unit.<skillDirectedId> + :param unit_id: A string that represents a unique identifier for the unit in the context of a request. The length of this identifier can vary, but is never more than 255 characters. Alexa generates this string only when a request made to your skill has a valid unit context. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type unit_id: (optional) str - :param persistent_unit_id: A string that represents a unitId directed using directedIdConfuser associated with the respective Organization's developer account. This identifier is directed at an Organization level. Same identifier is shared across Organization's backend systems (which invokes API), Skills owned by the organization and authorized 3P skills. This should be in format - amzn1.alexa.unit.did.<LWAConfuserDirectedId> + :param persistent_unit_id: A string that represents a unique identifier for the unit in the context of a request. The length of this identifier can vary, but is never more than 255 characters. Alexa generates this string only when the request made to your skill has a valid unit context. This is another unit identifier associated with an organization's developer account. Only registered Alexa for Residential and Alexa for Hospitality vendors can see the Read PersistentUnitId toggle in the Alexa skills developers console. This identifier is scoped to a vendor, therefore all skills that belong to particular vendor share this identifier, therefore it will stay the same regardless of skill enablement. :type persistent_unit_id: (optional) str """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 024f05c..047d571 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .video_app_interface import VideoAppInterface from .metadata import Metadata -from .video_item import VideoItem from .launch_directive import LaunchDirective +from .video_item import VideoItem +from .video_app_interface import VideoAppInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index 0c47482..c14ca09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .dialog import Dialog +from .viewport_state import ViewportState +from .viewport_video import ViewportVideo +from .experience import Experience +from .mode import Mode +from .aplt_viewport_state import APLTViewportState from .presentation_type import PresentationType from .apl_viewport_state import APLViewportState -from .typed_viewport_state import TypedViewportState from .touch import Touch from .shape import Shape -from .mode import Mode -from .keyboard import Keyboard -from .aplt_viewport_state import APLTViewportState +from .typed_viewport_state import TypedViewportState from .viewport_state_video import ViewportStateVideo -from .viewport_state import ViewportState -from .experience import Experience -from .dialog import Dialog -from .viewport_video import ViewportVideo +from .keyboard import Keyboard diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py index 05753b9..04057d1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .character_format import CharacterFormat -from .viewport_profile import ViewportProfile from .inter_segment import InterSegment +from .viewport_profile import ViewportProfile +from .character_format import CharacterFormat diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index f616566..ab93696 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .discrete_viewport_size import DiscreteViewportSize from .continuous_viewport_size import ContinuousViewportSize from .viewport_size import ViewportSize -from .discrete_viewport_size import DiscreteViewportSize diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index 69ed786..de7f8b4 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import +from .api_client_request import ApiClientRequest +from .api_client_response import ApiClientResponse from .base_service_client import BaseServiceClient +from .api_client_message import ApiClientMessage +from .authentication_configuration import AuthenticationConfiguration +from .service_client_response import ServiceClientResponse from .api_response import ApiResponse -from .api_client_response import ApiClientResponse +from .api_configuration import ApiConfiguration +from .serializer import Serializer from .service_client_factory import ServiceClientFactory from .api_client import ApiClient -from .serializer import Serializer -from .api_configuration import ApiConfiguration -from .service_client_response import ServiceClientResponse from .service_exception import ServiceException -from .api_client_request import ApiClientRequest -from .api_client_message import ApiClientMessage -from .authentication_configuration import AuthenticationConfiguration diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index 0201e91..247e54a 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .short_address import ShortAddress from .address import Address from .error import Error from .device_address_service_client import DeviceAddressServiceClient -from .short_address import ShortAddress diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index cd76b42..e9c04ed 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .error import Error -from .speak_directive import SpeakDirective -from .directive_service_client import DirectiveServiceClient from .header import Header from .send_directive_request import SendDirectiveRequest +from .speak_directive import SpeakDirective from .directive import Directive +from .directive_service_client import DirectiveServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index 1b1fccf..a15da18 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .error import Error -from .endpoint_capability import EndpointCapability -from .endpoint_enumeration_response import EndpointEnumerationResponse from .endpoint_info import EndpointInfo +from .endpoint_enumeration_response import EndpointEnumerationResponse +from .endpoint_capability import EndpointCapability from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index d9f7217..ac7e5c1 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .animation_step import AnimationStep from .light_animation import LightAnimation -from .trigger_event_type import TriggerEventType from .set_light_parameters import SetLightParameters +from .animation_step import AnimationStep +from .trigger_event_type import TriggerEventType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index b77cd69..47c953f 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType +from .event import Event from .progress_recognizer import ProgressRecognizer -from .deviation_recognizer import DeviationRecognizer from .input_event import InputEvent +from .deviation_recognizer import DeviationRecognizer from .input_event_action_type import InputEventActionType -from .event_reporting_type import EventReportingType -from .pattern_recognizer import PatternRecognizer -from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType -from .input_handler_event import InputHandlerEvent from .recognizer import Recognizer -from .event import Event from .pattern import Pattern +from .event_reporting_type import EventReportingType +from .input_handler_event import InputHandlerEvent +from .pattern_recognizer import PatternRecognizer diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index 76789cc..5d335dc 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .forbidden_error import ForbiddenError -from .list_items_deleted_event_request import ListItemsDeletedEventRequest -from .list_body import ListBody +from .list_management_service_client import ListManagementServiceClient +from .list_item_body import ListItemBody from .error import Error -from .alexa_list_metadata import AlexaListMetadata +from .list_state import ListState from .list_created_event_request import ListCreatedEventRequest -from .list_management_service_client import ListManagementServiceClient from .list_items_created_event_request import ListItemsCreatedEventRequest +from .links import Links from .alexa_list_item import AlexaListItem -from .list_state import ListState -from .list_item_state import ListItemState -from .list_item_body import ListItemBody -from .list_updated_event_request import ListUpdatedEventRequest -from .update_list_request import UpdateListRequest -from .list_items_updated_event_request import ListItemsUpdatedEventRequest from .list_deleted_event_request import ListDeletedEventRequest -from .status import Status -from .create_list_request import CreateListRequest -from .links import Links from .alexa_list import AlexaList -from .create_list_item_request import CreateListItemRequest +from .list_body import ListBody +from .update_list_request import UpdateListRequest +from .list_updated_event_request import ListUpdatedEventRequest from .alexa_lists_metadata import AlexaListsMetadata +from .alexa_list_metadata import AlexaListMetadata +from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .create_list_request import CreateListRequest from .update_list_item_request import UpdateListItemRequest +from .create_list_item_request import CreateListItemRequest +from .list_item_state import ListItemState +from .status import Status +from .forbidden_error import ForbiddenError +from .list_items_deleted_event_request import ListItemsDeletedEventRequest diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index eda0327..6c5081b 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error -from .lwa_client import LwaClient -from .access_token_response import AccessTokenResponse from .access_token_request import AccessTokenRequest from .access_token import AccessToken +from .error import Error +from .access_token_response import AccessTokenResponse +from .lwa_client import LwaClient diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index 53aff1b..73becbb 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import +from .in_skill_product_transactions_response import InSkillProductTransactionsResponse +from .metadata import Metadata from .error import Error -from .product_type import ProductType -from .in_skill_products_response import InSkillProductsResponse -from .entitlement_reason import EntitlementReason +from .entitled_state import EntitledState from .transactions import Transactions -from .metadata import Metadata -from .status import Status from .purchasable_state import PurchasableState -from .in_skill_product_transactions_response import InSkillProductTransactionsResponse from .in_skill_product import InSkillProduct -from .monetization_service_client import MonetizationServiceClient from .purchase_mode import PurchaseMode -from .entitled_state import EntitledState +from .monetization_service_client import MonetizationServiceClient +from .product_type import ProductType from .result_set import ResultSet +from .entitlement_reason import EntitlementReason +from .in_skill_products_response import InSkillProductsResponse +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index b968548..fdf2847 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .event import Event from .error import Error -from .relevant_audience import RelevantAudience -from .relevant_audience_type import RelevantAudienceType from .create_proactive_event_request import CreateProactiveEventRequest from .skill_stage import SkillStage from .proactive_events_service_client import ProactiveEventsServiceClient -from .event import Event +from .relevant_audience import RelevantAudience +from .relevant_audience_type import RelevantAudienceType diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index 28fe407..ee13fb1 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import -from .reminder_deleted_event_request import ReminderDeletedEventRequest -from .reminder import Reminder -from .reminder_started_event_request import ReminderStartedEventRequest -from .error import Error -from .get_reminder_response import GetReminderResponse -from .alert_info import AlertInfo -from .trigger import Trigger -from .reminder_response import ReminderResponse -from .get_reminders_response import GetRemindersResponse +from .reminder_management_service_client import ReminderManagementServiceClient from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .recurrence_day import RecurrenceDay +from .event import Event from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest -from .recurrence_freq import RecurrenceFreq -from .spoken_text import SpokenText -from .alert_info_spoken_info import AlertInfoSpokenInfo -from .status import Status +from .error import Error +from .get_reminders_response import GetRemindersResponse +from .reminder_deleted_event_request import ReminderDeletedEventRequest +from .reminder_started_event_request import ReminderStartedEventRequest +from .reminder_request import ReminderRequest from .recurrence import Recurrence -from .recurrence_day import RecurrenceDay from .reminder_deleted_event import ReminderDeletedEvent +from .spoken_text import SpokenText +from .alert_info import AlertInfo +from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder_response import ReminderResponse from .push_notification_status import PushNotificationStatus from .trigger_type import TriggerType -from .reminder_created_event_request import ReminderCreatedEventRequest -from .reminder_request import ReminderRequest -from .event import Event from .push_notification import PushNotification -from .reminder_management_service_client import ReminderManagementServiceClient +from .alert_info_spoken_info import AlertInfoSpokenInfo +from .get_reminder_response import GetReminderResponse +from .recurrence_freq import RecurrenceFreq +from .status import Status +from .trigger import Trigger +from .reminder import Reminder diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index 46acb26..625f6e9 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import +from .timer_request import TimerRequest +from .text_to_announce import TextToAnnounce +from .task import Task from .error import Error +from .creation_behavior import CreationBehavior +from .notify_only_operation import NotifyOnlyOperation +from .announce_operation import AnnounceOperation from .notification_config import NotificationConfig +from .operation import Operation +from .timer_management_service_client import TimerManagementServiceClient from .timer_response import TimerResponse -from .timer_request import TimerRequest from .display_experience import DisplayExperience -from .task import Task +from .timers_response import TimersResponse from .launch_task_operation import LaunchTaskOperation -from .visibility import Visibility -from .status import Status from .triggering_behavior import TriggeringBehavior +from .visibility import Visibility from .text_to_confirm import TextToConfirm -from .creation_behavior import CreationBehavior -from .timer_management_service_client import TimerManagementServiceClient -from .announce_operation import AnnounceOperation -from .timers_response import TimersResponse -from .operation import Operation -from .text_to_announce import TextToAnnounce -from .notify_only_operation import NotifyOnlyOperation +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index c2e7973..028d2a1 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .ups_service_client import UpsServiceClient from .error import Error from .distance_units import DistanceUnits -from .error_code import ErrorCode -from .ups_service_client import UpsServiceClient from .phone_number import PhoneNumber from .temperature_unit import TemperatureUnit +from .error_code import ErrorCode diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index 7350cb8..c7a570c 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .resolution import Resolution -from .status import Status -from .status_code import StatusCode from .value_wrapper import ValueWrapper -from .value import Value +from .status_code import StatusCode from .resolutions import Resolutions +from .value import Value +from .resolution import Resolution +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/supported_interfaces.py b/ask-sdk-model/ask_sdk_model/supported_interfaces.py index e491370..f8c166c 100644 --- a/ask-sdk-model/ask_sdk_model/supported_interfaces.py +++ b/ask-sdk-model/ask_sdk_model/supported_interfaces.py @@ -28,6 +28,7 @@ from ask_sdk_model.interfaces.navigation.navigation_interface import NavigationInterface as NavigationInterface_aa96009b from ask_sdk_model.interfaces.audioplayer.audio_player_interface import AudioPlayerInterface as AudioPlayerInterface_24d2b051 from ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface import AlexaPresentationApltInterface as AlexaPresentationApltInterface_95b3be2b + from ask_sdk_model.interfaces.applink.app_link_interface import AppLinkInterface as AppLinkInterface_4aa78e23 from ask_sdk_model.interfaces.display.display_interface import DisplayInterface as DisplayInterface_c1477bd9 from ask_sdk_model.interfaces.videoapp.video_app_interface import VideoAppInterface as VideoAppInterface_f245c658 from ask_sdk_model.interfaces.geolocation.geolocation_interface import GeolocationInterface as GeolocationInterface_d5c5128d @@ -44,6 +45,8 @@ class SupportedInterfaces(object): :type alexa_presentation_aplt: (optional) ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface.AlexaPresentationApltInterface :param alexa_presentation_html: :type alexa_presentation_html: (optional) ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface.AlexaPresentationHtmlInterface + :param app_link: + :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_interface.AppLinkInterface :param audio_player: :type audio_player: (optional) ask_sdk_model.interfaces.audioplayer.audio_player_interface.AudioPlayerInterface :param display: @@ -60,6 +63,7 @@ class SupportedInterfaces(object): 'alexa_presentation_apl': 'ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface.AlexaPresentationAplInterface', 'alexa_presentation_aplt': 'ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface.AlexaPresentationApltInterface', 'alexa_presentation_html': 'ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface.AlexaPresentationHtmlInterface', + 'app_link': 'ask_sdk_model.interfaces.applink.app_link_interface.AppLinkInterface', 'audio_player': 'ask_sdk_model.interfaces.audioplayer.audio_player_interface.AudioPlayerInterface', 'display': 'ask_sdk_model.interfaces.display.display_interface.DisplayInterface', 'video_app': 'ask_sdk_model.interfaces.videoapp.video_app_interface.VideoAppInterface', @@ -71,6 +75,7 @@ class SupportedInterfaces(object): 'alexa_presentation_apl': 'Alexa.Presentation.APL', 'alexa_presentation_aplt': 'Alexa.Presentation.APLT', 'alexa_presentation_html': 'Alexa.Presentation.HTML', + 'app_link': 'AppLink', 'audio_player': 'AudioPlayer', 'display': 'Display', 'video_app': 'VideoApp', @@ -79,8 +84,8 @@ class SupportedInterfaces(object): } # type: Dict supports_multiple_types = False - def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, alexa_presentation_html=None, audio_player=None, display=None, video_app=None, geolocation=None, navigation=None): - # type: (Optional[AlexaPresentationAplInterface_58fc19ef], Optional[AlexaPresentationApltInterface_95b3be2b], Optional[AlexaPresentationHtmlInterface_b20f808f], Optional[AudioPlayerInterface_24d2b051], Optional[DisplayInterface_c1477bd9], Optional[VideoAppInterface_f245c658], Optional[GeolocationInterface_d5c5128d], Optional[NavigationInterface_aa96009b]) -> None + def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, alexa_presentation_html=None, app_link=None, audio_player=None, display=None, video_app=None, geolocation=None, navigation=None): + # type: (Optional[AlexaPresentationAplInterface_58fc19ef], Optional[AlexaPresentationApltInterface_95b3be2b], Optional[AlexaPresentationHtmlInterface_b20f808f], Optional[AppLinkInterface_4aa78e23], Optional[AudioPlayerInterface_24d2b051], Optional[DisplayInterface_c1477bd9], Optional[VideoAppInterface_f245c658], Optional[GeolocationInterface_d5c5128d], Optional[NavigationInterface_aa96009b]) -> None """An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. :param alexa_presentation_apl: @@ -89,6 +94,8 @@ def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, al :type alexa_presentation_aplt: (optional) ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface.AlexaPresentationApltInterface :param alexa_presentation_html: :type alexa_presentation_html: (optional) ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface.AlexaPresentationHtmlInterface + :param app_link: + :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_interface.AppLinkInterface :param audio_player: :type audio_player: (optional) ask_sdk_model.interfaces.audioplayer.audio_player_interface.AudioPlayerInterface :param display: @@ -105,6 +112,7 @@ def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, al self.alexa_presentation_apl = alexa_presentation_apl self.alexa_presentation_aplt = alexa_presentation_aplt self.alexa_presentation_html = alexa_presentation_html + self.app_link = app_link self.audio_player = audio_player self.display = display self.video_app = video_app diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index 1cd4d91..d1f172b 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .link_account_card import LinkAccountCard -from .plain_text_output_speech import PlainTextOutputSpeech -from .reprompt import Reprompt from .ssml_output_speech import SsmlOutputSpeech +from .plain_text_output_speech import PlainTextOutputSpeech +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard from .standard_card import StandardCard from .output_speech import OutputSpeech -from .image import Image +from .simple_card import SimpleCard +from .reprompt import Reprompt from .card import Card +from .link_account_card import LinkAccountCard from .play_behavior import PlayBehavior -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard -from .simple_card import SimpleCard +from .image import Image From 5a7b1baea10339e06d52552777d5cd802534fe88 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Tue, 26 Oct 2021 19:17:33 -0500 Subject: [PATCH 023/111] Release 1.14.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 7 ++ .../ask_smapi_model/__version__.py | 5 +- .../v1/skill/manifest/__init__.py | 7 ++ .../manifest/android_common_intent_name.py | 69 +++++++++++ .../skill/manifest/android_custom_intent.py | 115 +++++++++++++++++ .../v1/skill/manifest/app_link.py | 31 ++++- .../v1/skill/manifest/catalog_name.py | 64 ++++++++++ .../ios_app_store_common_scheme_name.py | 66 ++++++++++ .../manifest/linked_android_common_intent.py | 117 ++++++++++++++++++ .../v1/skill/manifest/linked_application.py | 16 ++- .../skill/manifest/linked_common_schemes.py | 117 ++++++++++++++++++ .../manifest/play_store_common_scheme_name.py | 66 ++++++++++ 12 files changed, 669 insertions(+), 11 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_common_intent_name.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_custom_intent.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_name.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/ios_app_store_common_scheme_name.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_android_common_intent.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_common_schemes.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/play_store_common_scheme_name.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 5b85c1c..3fa39ba 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -215,3 +215,10 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions for maxResults and simulationType. + +1.14.0 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions for `App link interfaces `__. diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 27e63f7..877b965 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,9 +14,8 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.13.1' +__version__ = '1.14.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' -__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi'] - +__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi'] \ No newline at end of file diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 87f0724..aaaf7b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -66,14 +66,17 @@ from .app_link_interface import AppLinkInterface from .catalog_type import CatalogType from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .linked_common_schemes import LinkedCommonSchemes from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager from .flash_briefing_genre import FlashBriefingGenre from .app_link_v2_interface import AppLinkV2Interface +from .linked_android_common_intent import LinkedAndroidCommonIntent from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .subscription_payment_frequency import SubscriptionPaymentFrequency from .video_apis_locale import VideoApisLocale from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName from .paid_skill_information import PaidSkillInformation +from .android_custom_intent import AndroidCustomIntent from .ssl_certificate_type import SSLCertificateType from .music_request import MusicRequest from .video_catalog_info import VideoCatalogInfo @@ -91,6 +94,7 @@ from .offer_type import OfferType from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest from .friendly_name import FriendlyName +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName from .health_interface import HealthInterface from .authorized_client import AuthorizedClient from .permission_items import PermissionItems @@ -103,10 +107,12 @@ from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement from .authorized_client_lwa import AuthorizedClientLwa +from .play_store_common_scheme_name import PlayStoreCommonSchemeName from .event_name_type import EventNameType from .video_prompt_name_type import VideoPromptNameType from .voice_profile_feature import VoiceProfileFeature from .tax_information_category import TaxInformationCategory +from .catalog_name import CatalogName from .smart_home_apis import SmartHomeApis from .currency import Currency from .flash_briefing_apis import FlashBriefingApis @@ -130,3 +136,4 @@ from .video_app_interface import VideoAppInterface from .video_apis import VideoApis from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .android_common_intent_name import AndroidCommonIntentName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_common_intent_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_common_intent_name.py new file mode 100644 index 0000000..45de54f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_common_intent_name.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AndroidCommonIntentName(Enum): + """ + Supported android common intent. Each of the value maps to a common intent defined in https://developer.android.com/guide/components/intents-common. + + + + Allowed enum values: [SHOW_IN_MAP, ADD_CALENDAR_EVENT, PLAY_MEDIA, START_PHONE_CALL, OPEN_SETTINGS] + """ + SHOW_IN_MAP = "SHOW_IN_MAP" + ADD_CALENDAR_EVENT = "ADD_CALENDAR_EVENT" + PLAY_MEDIA = "PLAY_MEDIA" + START_PHONE_CALL = "START_PHONE_CALL" + OPEN_SETTINGS = "OPEN_SETTINGS" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AndroidCommonIntentName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_custom_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_custom_intent.py new file mode 100644 index 0000000..5a7f13f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/android_custom_intent.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AndroidCustomIntent(object): + """ + Android custom intent + + + :param component: android component name + :type component: (optional) str + :param action: android intent action + :type action: (optional) str + + """ + deserialized_types = { + 'component': 'str', + 'action': 'str' + } # type: Dict + + attribute_map = { + 'component': 'component', + 'action': 'action' + } # type: Dict + supports_multiple_types = False + + def __init__(self, component=None, action=None): + # type: (Optional[str], Optional[str]) -> None + """Android custom intent + + :param component: android component name + :type component: (optional) str + :param action: android intent action + :type action: (optional) str + """ + self.__discriminator_value = None # type: str + + self.component = component + self.action = action + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AndroidCustomIntent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py index 416159e..e31885d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/app_link.py @@ -23,6 +23,8 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.linked_android_common_intent import LinkedAndroidCommonIntent as LinkedAndroidCommonIntent_f1721a22 + from ask_smapi_model.v1.skill.manifest.linked_common_schemes import LinkedCommonSchemes as LinkedCommonSchemes_14e98c23 from ask_smapi_model.v1.skill.manifest.linked_application import LinkedApplication as LinkedApplication_85efe66c @@ -33,27 +35,48 @@ class AppLink(object): :param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface. :type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication] + :param linked_web_domains: Allow developer to decalre their skill to link to the declared web domains. + :type linked_web_domains: (optional) list[str] + :param linked_android_common_intents: Allow developer to declare their skill to link to the speicified android common intents. + :type linked_android_common_intents: (optional) list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent] + :param linked_common_schemes: + :type linked_common_schemes: (optional) ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes """ deserialized_types = { - 'linked_applications': 'list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]' + 'linked_applications': 'list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication]', + 'linked_web_domains': 'list[str]', + 'linked_android_common_intents': 'list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent]', + 'linked_common_schemes': 'ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes' } # type: Dict attribute_map = { - 'linked_applications': 'linkedApplications' + 'linked_applications': 'linkedApplications', + 'linked_web_domains': 'linkedWebDomains', + 'linked_android_common_intents': 'linkedAndroidCommonIntents', + 'linked_common_schemes': 'linkedCommonSchemes' } # type: Dict supports_multiple_types = False - def __init__(self, linked_applications=None): - # type: (Optional[List[LinkedApplication_85efe66c]]) -> None + def __init__(self, linked_applications=None, linked_web_domains=None, linked_android_common_intents=None, linked_common_schemes=None): + # type: (Optional[List[LinkedApplication_85efe66c]], Optional[List[object]], Optional[List[LinkedAndroidCommonIntent_f1721a22]], Optional[LinkedCommonSchemes_14e98c23]) -> None """Details required for app linking use cases. :param linked_applications: Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface. :type linked_applications: (optional) list[ask_smapi_model.v1.skill.manifest.linked_application.LinkedApplication] + :param linked_web_domains: Allow developer to decalre their skill to link to the declared web domains. + :type linked_web_domains: (optional) list[str] + :param linked_android_common_intents: Allow developer to declare their skill to link to the speicified android common intents. + :type linked_android_common_intents: (optional) list[ask_smapi_model.v1.skill.manifest.linked_android_common_intent.LinkedAndroidCommonIntent] + :param linked_common_schemes: + :type linked_common_schemes: (optional) ask_smapi_model.v1.skill.manifest.linked_common_schemes.LinkedCommonSchemes """ self.__discriminator_value = None # type: str self.linked_applications = linked_applications + self.linked_web_domains = linked_web_domains + self.linked_android_common_intents = linked_android_common_intents + self.linked_common_schemes = linked_common_schemes def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_name.py new file mode 100644 index 0000000..025775e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/catalog_name.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CatalogName(Enum): + """ + + + Allowed enum values: [IOS_APP_STORE, GOOGLE_PLAY_STORE] + """ + IOS_APP_STORE = "IOS_APP_STORE" + GOOGLE_PLAY_STORE = "GOOGLE_PLAY_STORE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CatalogName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ios_app_store_common_scheme_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ios_app_store_common_scheme_name.py new file mode 100644 index 0000000..bb92941 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/ios_app_store_common_scheme_name.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class IOSAppStoreCommonSchemeName(Enum): + """ + supported common schemes for IOS_APP_STORE. MAPS is for \"maps:\" and TEL is for \"tel:\". + + + + Allowed enum values: [MAPS, TEL] + """ + MAPS = "MAPS" + TEL = "TEL" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, IOSAppStoreCommonSchemeName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_android_common_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_android_common_intent.py new file mode 100644 index 0000000..36356fd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_android_common_intent.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.android_common_intent_name import AndroidCommonIntentName as AndroidCommonIntentName_101c89f6 + from ask_smapi_model.v1.skill.manifest.catalog_name import CatalogName as CatalogName_f3573200 + + +class LinkedAndroidCommonIntent(object): + """ + Android common intents associated with the skill + + + :param intent_name: + :type intent_name: (optional) ask_smapi_model.v1.skill.manifest.android_common_intent_name.AndroidCommonIntentName + :param catalog_type: + :type catalog_type: (optional) ask_smapi_model.v1.skill.manifest.catalog_name.CatalogName + + """ + deserialized_types = { + 'intent_name': 'ask_smapi_model.v1.skill.manifest.android_common_intent_name.AndroidCommonIntentName', + 'catalog_type': 'ask_smapi_model.v1.skill.manifest.catalog_name.CatalogName' + } # type: Dict + + attribute_map = { + 'intent_name': 'intentName', + 'catalog_type': 'catalogType' + } # type: Dict + supports_multiple_types = False + + def __init__(self, intent_name=None, catalog_type=None): + # type: (Optional[AndroidCommonIntentName_101c89f6], Optional[CatalogName_f3573200]) -> None + """Android common intents associated with the skill + + :param intent_name: + :type intent_name: (optional) ask_smapi_model.v1.skill.manifest.android_common_intent_name.AndroidCommonIntentName + :param catalog_type: + :type catalog_type: (optional) ask_smapi_model.v1.skill.manifest.catalog_name.CatalogName + """ + self.__discriminator_value = None # type: str + + self.intent_name = intent_name + self.catalog_type = catalog_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LinkedAndroidCommonIntent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py index 5b72638..cbc9798 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_application.py @@ -24,6 +24,7 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.manifest.catalog_info import CatalogInfo as CatalogInfo_3fade9c6 + from ask_smapi_model.v1.skill.manifest.android_custom_intent import AndroidCustomIntent as AndroidCustomIntent_f7a91c8f from ask_smapi_model.v1.skill.manifest.friendly_name import FriendlyName as FriendlyName_168112fe @@ -40,25 +41,29 @@ class LinkedApplication(object): :type domains: (optional) list[str] :param friendly_name: :type friendly_name: (optional) ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName + :param android_custom_intents: Supported android custom intent + :type android_custom_intents: (optional) list[ask_smapi_model.v1.skill.manifest.android_custom_intent.AndroidCustomIntent] """ deserialized_types = { 'catalog_info': 'ask_smapi_model.v1.skill.manifest.catalog_info.CatalogInfo', 'custom_schemes': 'list[str]', 'domains': 'list[str]', - 'friendly_name': 'ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName' + 'friendly_name': 'ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName', + 'android_custom_intents': 'list[ask_smapi_model.v1.skill.manifest.android_custom_intent.AndroidCustomIntent]' } # type: Dict attribute_map = { 'catalog_info': 'catalogInfo', 'custom_schemes': 'customSchemes', 'domains': 'domains', - 'friendly_name': 'friendlyName' + 'friendly_name': 'friendlyName', + 'android_custom_intents': 'androidCustomIntents' } # type: Dict supports_multiple_types = False - def __init__(self, catalog_info=None, custom_schemes=None, domains=None, friendly_name=None): - # type: (Optional[CatalogInfo_3fade9c6], Optional[List[object]], Optional[List[object]], Optional[FriendlyName_168112fe]) -> None + def __init__(self, catalog_info=None, custom_schemes=None, domains=None, friendly_name=None, android_custom_intents=None): + # type: (Optional[CatalogInfo_3fade9c6], Optional[List[object]], Optional[List[object]], Optional[FriendlyName_168112fe], Optional[List[AndroidCustomIntent_f7a91c8f]]) -> None """Applications associated with the skill. :param catalog_info: @@ -69,6 +74,8 @@ def __init__(self, catalog_info=None, custom_schemes=None, domains=None, friendl :type domains: (optional) list[str] :param friendly_name: :type friendly_name: (optional) ask_smapi_model.v1.skill.manifest.friendly_name.FriendlyName + :param android_custom_intents: Supported android custom intent + :type android_custom_intents: (optional) list[ask_smapi_model.v1.skill.manifest.android_custom_intent.AndroidCustomIntent] """ self.__discriminator_value = None # type: str @@ -76,6 +83,7 @@ def __init__(self, catalog_info=None, custom_schemes=None, domains=None, friendl self.custom_schemes = custom_schemes self.domains = domains self.friendly_name = friendly_name + self.android_custom_intents = android_custom_intents def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_common_schemes.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_common_schemes.py new file mode 100644 index 0000000..0d3327b --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/linked_common_schemes.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.manifest.ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName as IOSAppStoreCommonSchemeName_d8d4b3f2 + from ask_smapi_model.v1.skill.manifest.play_store_common_scheme_name import PlayStoreCommonSchemeName as PlayStoreCommonSchemeName_79baf61b + + +class LinkedCommonSchemes(object): + """ + Allow developer to declare their skill to link to the speicified common schemes + + + :param ios_app_store: + :type ios_app_store: (optional) list[ask_smapi_model.v1.skill.manifest.ios_app_store_common_scheme_name.IOSAppStoreCommonSchemeName] + :param google_play_store: + :type google_play_store: (optional) list[ask_smapi_model.v1.skill.manifest.play_store_common_scheme_name.PlayStoreCommonSchemeName] + + """ + deserialized_types = { + 'ios_app_store': 'list[ask_smapi_model.v1.skill.manifest.ios_app_store_common_scheme_name.IOSAppStoreCommonSchemeName]', + 'google_play_store': 'list[ask_smapi_model.v1.skill.manifest.play_store_common_scheme_name.PlayStoreCommonSchemeName]' + } # type: Dict + + attribute_map = { + 'ios_app_store': 'IOS_APP_STORE', + 'google_play_store': 'GOOGLE_PLAY_STORE' + } # type: Dict + supports_multiple_types = False + + def __init__(self, ios_app_store=None, google_play_store=None): + # type: (Optional[List[IOSAppStoreCommonSchemeName_d8d4b3f2]], Optional[List[PlayStoreCommonSchemeName_79baf61b]]) -> None + """Allow developer to declare their skill to link to the speicified common schemes + + :param ios_app_store: + :type ios_app_store: (optional) list[ask_smapi_model.v1.skill.manifest.ios_app_store_common_scheme_name.IOSAppStoreCommonSchemeName] + :param google_play_store: + :type google_play_store: (optional) list[ask_smapi_model.v1.skill.manifest.play_store_common_scheme_name.PlayStoreCommonSchemeName] + """ + self.__discriminator_value = None # type: str + + self.ios_app_store = ios_app_store + self.google_play_store = google_play_store + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LinkedCommonSchemes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/play_store_common_scheme_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/play_store_common_scheme_name.py new file mode 100644 index 0000000..55868be --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/play_store_common_scheme_name.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PlayStoreCommonSchemeName(Enum): + """ + supported common schemes for GOOGLE_PLAY_STORE. MAPS is for \"maps:\" and TEL is for \"tel:\". + + + + Allowed enum values: [MAPS, TEL] + """ + MAPS = "MAPS" + TEL = "TEL" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PlayStoreCommonSchemeName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other From 3a554ec24a74230e44a14d0bc6d7beb41236e184 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Tue, 16 Nov 2021 23:23:26 -0600 Subject: [PATCH 024/111] Release 1.32.1. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 7 +++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../services/reminder_management/__init__.py | 2 +- .../services/reminder_management/alert_info.py | 10 +++++----- .../{alert_info_spoken_info.py => spoken_info.py} | 4 ++-- 5 files changed, 16 insertions(+), 9 deletions(-) rename ask-sdk-model/ask_sdk_model/services/reminder_management/{alert_info_spoken_info.py => spoken_info.py} (97%) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index cbb8831..3e7d851 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -412,3 +412,10 @@ This release contains the following changes : This release contains the following changes : - Models and support for `App Link Interfaces `__. + +1.32.1 +^^^^^^ + +This release contains the following changes : + +- Updated model definitions for reminder_management diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 45c1c79..74c81b6 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.32.0' +__version__ = '1.32.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index ee13fb1..d7e68e7 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -16,6 +16,7 @@ from .reminder_management_service_client import ReminderManagementServiceClient from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .spoken_info import SpokenInfo from .recurrence_day import RecurrenceDay from .event import Event from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest @@ -33,7 +34,6 @@ from .push_notification_status import PushNotificationStatus from .trigger_type import TriggerType from .push_notification import PushNotification -from .alert_info_spoken_info import AlertInfoSpokenInfo from .get_reminder_response import GetReminderResponse from .recurrence_freq import RecurrenceFreq from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py index 454b340..df8c775 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.services.reminder_management.alert_info_spoken_info import AlertInfoSpokenInfo as AlertInfoSpokenInfo_3eafce07 + from ask_sdk_model.services.reminder_management.alert_info_spoken_info import SpokenInfo as SpokenInfo_e1d2a971 class AlertInfo(object): @@ -32,11 +32,11 @@ class AlertInfo(object): :param spoken_info: - :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo + :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo """ deserialized_types = { - 'spoken_info': 'ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo' + 'spoken_info': 'ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo' } # type: Dict attribute_map = { @@ -45,11 +45,11 @@ class AlertInfo(object): supports_multiple_types = False def __init__(self, spoken_info=None): - # type: (Optional[AlertInfoSpokenInfo_3eafce07]) -> None + # type: (Optional[SpokenInfo_e1d2a971]) -> None """Alert info for VUI / GUI :param spoken_info: - :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.AlertInfoSpokenInfo + :type spoken_info: (optional) ask_sdk_model.services.reminder_management.alert_info_spoken_info.SpokenInfo """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_info.py similarity index 97% rename from ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py rename to ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_info.py index 574289f..878205b 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info_spoken_info.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/spoken_info.py @@ -26,7 +26,7 @@ from ask_sdk_model.services.reminder_management.spoken_text import SpokenText as SpokenText_b927b411 -class AlertInfoSpokenInfo(object): +class SpokenInfo(object): """ Parameters for VUI presentation of the reminder @@ -98,7 +98,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, AlertInfoSpokenInfo): + if not isinstance(other, SpokenInfo): return False return self.__dict__ == other.__dict__ From 4ff008a4a056c90367ce59a097c791e0f372bf68 Mon Sep 17 00:00:00 2001 From: pranoti2 Date: Tue, 23 Nov 2021 13:38:25 -0800 Subject: [PATCH 025/111] Release 1.33.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 7 ++ ask-sdk-model/ask_sdk_model/__init__.py | 52 ++++----- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 4 +- ask-sdk-model/ask_sdk_model/device.py | 11 +- .../ask_sdk_model/dialog/__init__.py | 14 +-- .../dynamic_endpoints/__init__.py | 2 +- .../ask_sdk_model/er/dynamic/__init__.py | 2 +- .../events/skillevents/__init__.py | 14 +-- .../interfaces/alexa/extension/__init__.py | 2 +- .../alexa/presentation/apl/__init__.py | 102 +++++++++--------- .../apl/listoperations/__init__.py | 4 +- .../alexa/presentation/apla/__init__.py | 10 +- .../alexa/presentation/aplt/__init__.py | 24 ++--- .../alexa/presentation/html/__init__.py | 16 +-- .../amazonpay/model/request/__init__.py | 10 +- .../amazonpay/model/response/__init__.py | 8 +- .../interfaces/amazonpay/model/v1/__init__.py | 20 ++-- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 4 +- .../interfaces/audioplayer/__init__.py | 30 +++--- .../interfaces/connections/__init__.py | 4 +- .../connections/requests/__init__.py | 8 +- .../custom_interface_controller/__init__.py | 10 +- .../interfaces/display/__init__.py | 34 +++--- .../interfaces/game_engine/__init__.py | 2 +- .../interfaces/geolocation/__init__.py | 10 +- .../interfaces/monetization/v1/__init__.py | 2 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 2 +- .../interfaces/videoapp/__init__.py | 4 +- .../interfaces/viewport/__init__.py | 18 ++-- .../interfaces/viewport/apl/__init__.py | 2 +- .../interfaces/viewport/aplt/__init__.py | 4 +- .../interfaces/viewport/size/__init__.py | 2 +- .../ask_sdk_model/services/__init__.py | 12 +-- .../services/device_address/__init__.py | 4 +- .../services/directive/__init__.py | 4 +- .../services/endpoint_enumeration/__init__.py | 4 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 14 +-- .../services/list_management/__init__.py | 30 +++--- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 16 +-- .../services/proactive_events/__init__.py | 8 +- .../services/reminder_management/__init__.py | 36 +++---- .../services/skill_messaging/__init__.py | 4 +- .../services/timer_management/__init__.py | 24 ++--- .../ask_sdk_model/services/ups/__init__.py | 8 +- .../slu/entityresolution/__init__.py | 6 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 14 +-- 53 files changed, 331 insertions(+), 317 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 3e7d851..75a9852 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -419,3 +419,10 @@ This release contains the following changes : This release contains the following changes : - Updated model definitions for reminder_management + +1.33.0 +^^^^^^ + +This release contains the following changes : + +- Support persistent identifier for endpoint ID where the skill request is issued from. diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index 9736b7c..35672be 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import +from .session_ended_reason import SessionEndedReason +from .permissions import Permissions +from .launch_request import LaunchRequest from .intent import Intent -from .user import User -from .list_slot_value import ListSlotValue -from .task import Task -from .slot_confirmation_status import SlotConfirmationStatus -from .person import Person +from .scope import Scope +from .response_envelope import ResponseEnvelope from .connection_completed import ConnectionCompleted -from .device import Device -from .session_ended_error import SessionEndedError -from .simple_slot_value import SimpleSlotValue -from .supported_interfaces import SupportedInterfaces -from .launch_request import LaunchRequest -from .session import Session -from .request import Request -from .session_ended_reason import SessionEndedReason -from .slot import Slot -from .cause import Cause -from .response import Response from .session_resumed_request import SessionResumedRequest from .slot_value import SlotValue -from .application import Application -from .session_ended_error_type import SessionEndedErrorType -from .dialog_state import DialogState -from .permission_status import PermissionStatus -from .intent_confirmation_status import IntentConfirmationStatus -from .context import Context -from .response_envelope import ResponseEnvelope -from .permissions import Permissions +from .simple_slot_value import SimpleSlotValue +from .intent_request import IntentRequest from .directive import Directive from .session_ended_request import SessionEndedRequest from .request_envelope import RequestEnvelope -from .intent_request import IntentRequest -from .scope import Scope +from .response import Response +from .permission_status import PermissionStatus +from .dialog_state import DialogState +from .request import Request +from .intent_confirmation_status import IntentConfirmationStatus from .status import Status +from .session_ended_error_type import SessionEndedErrorType +from .user import User +from .session_ended_error import SessionEndedError +from .list_slot_value import ListSlotValue +from .application import Application +from .session import Session +from .context import Context +from .task import Task +from .person import Person +from .cause import Cause +from .device import Device +from .slot import Slot +from .slot_confirmation_status import SlotConfirmationStatus +from .supported_interfaces import SupportedInterfaces diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 74c81b6..1d3dd98 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.32.1' +__version__ = '1.33.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index 56a13b8..ea6a022 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .authorization_grant_request import AuthorizationGrantRequest -from .authorization_grant_body import AuthorizationGrantBody from .grant import Grant +from .authorization_grant_body import AuthorizationGrantBody +from .authorization_grant_request import AuthorizationGrantRequest from .grant_type import GrantType diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index 31d082d..f6ef4aa 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .can_understand_slot_values import CanUnderstandSlotValues from .can_fulfill_intent_request import CanFulfillIntentRequest from .can_fulfill_intent import CanFulfillIntent from .can_fulfill_slot_values import CanFulfillSlotValues -from .can_fulfill_intent_values import CanFulfillIntentValues from .can_fulfill_slot import CanFulfillSlot +from .can_fulfill_intent_values import CanFulfillIntentValues +from .can_understand_slot_values import CanUnderstandSlotValues diff --git a/ask-sdk-model/ask_sdk_model/device.py b/ask-sdk-model/ask_sdk_model/device.py index 22d2a67..bd6ed0b 100644 --- a/ask-sdk-model/ask_sdk_model/device.py +++ b/ask-sdk-model/ask_sdk_model/device.py @@ -33,33 +33,40 @@ class Device(object): :param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type device_id: (optional) str + :param persistent_endpoint_id: A persistent identifier for the Endpoint ID where the skill request is issued from. An endpoint represents an Alexa-connected Endpoint (like an Echo device, or an application) with which an Alexa customer can interact rather than a physical device, so it could represent applications on your fire TV or your Alexa phone app. The persistentEndpointId is a string that represents a unique identifier for the endpoint in the context of a request. It is in the Amazon Common Identifier format \"amzn1.alexa.endpoint.did.{id}\". This identifier space is scoped to a vendor, therefore it will stay the same regardless of skill enablement. + :type persistent_endpoint_id: (optional) str :param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface :type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces """ deserialized_types = { 'device_id': 'str', + 'persistent_endpoint_id': 'str', 'supported_interfaces': 'ask_sdk_model.supported_interfaces.SupportedInterfaces' } # type: Dict attribute_map = { 'device_id': 'deviceId', + 'persistent_endpoint_id': 'persistentEndpointId', 'supported_interfaces': 'supportedInterfaces' } # type: Dict supports_multiple_types = False - def __init__(self, device_id=None, supported_interfaces=None): - # type: (Optional[str], Optional[SupportedInterfaces_8ec830f5]) -> None + def __init__(self, device_id=None, persistent_endpoint_id=None, supported_interfaces=None): + # type: (Optional[str], Optional[str], Optional[SupportedInterfaces_8ec830f5]) -> None """An object providing information about the device used to send the request. The device object contains both deviceId and supportedInterfaces properties. The deviceId property uniquely identifies the device. The supportedInterfaces property lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. :param device_id: The deviceId property uniquely identifies the device. This identifier is scoped to a skill. Normally, disabling and re-enabling a skill generates a new identifier. :type device_id: (optional) str + :param persistent_endpoint_id: A persistent identifier for the Endpoint ID where the skill request is issued from. An endpoint represents an Alexa-connected Endpoint (like an Echo device, or an application) with which an Alexa customer can interact rather than a physical device, so it could represent applications on your fire TV or your Alexa phone app. The persistentEndpointId is a string that represents a unique identifier for the endpoint in the context of a request. It is in the Amazon Common Identifier format \"amzn1.alexa.endpoint.did.{id}\". This identifier space is scoped to a vendor, therefore it will stay the same regardless of skill enablement. + :type persistent_endpoint_id: (optional) str :param supported_interfaces: Lists each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface :type supported_interfaces: (optional) ask_sdk_model.supported_interfaces.SupportedInterfaces """ self.__discriminator_value = None # type: str self.device_id = device_id + self.persistent_endpoint_id = persistent_endpoint_id self.supported_interfaces = supported_interfaces def to_dict(self): diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 00a9514..28b36c7 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .confirm_intent_directive import ConfirmIntentDirective -from .updated_request import UpdatedRequest -from .delegate_directive import DelegateDirective -from .delegate_request_directive import DelegateRequestDirective -from .input_request import InputRequest -from .elicit_slot_directive import ElicitSlotDirective from .input import Input +from .input_request import InputRequest +from .delegate_request_directive import DelegateRequestDirective from .delegation_period import DelegationPeriod from .updated_input_request import UpdatedInputRequest -from .dynamic_entities_directive import DynamicEntitiesDirective from .confirm_slot_directive import ConfirmSlotDirective +from .delegate_directive import DelegateDirective from .updated_intent_request import UpdatedIntentRequest +from .dynamic_entities_directive import DynamicEntitiesDirective +from .updated_request import UpdatedRequest +from .elicit_slot_directive import ElicitSlotDirective +from .confirm_intent_directive import ConfirmIntentDirective from .delegation_period_until import DelegationPeriodUntil diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index da98eb0..ea038d6 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .success_response import SuccessResponse from .base_response import BaseResponse from .request import Request +from .success_response import SuccessResponse from .failure_response import FailureResponse diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index 998c51b..dda0d19 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .update_behavior import UpdateBehavior from .entity_value_and_synonyms import EntityValueAndSynonyms +from .update_behavior import UpdateBehavior from .entity_list_item import EntityListItem from .entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index 2245580..3f48ba3 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .permission import Permission +from .permission_changed_request import PermissionChangedRequest +from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest +from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody +from .permission_accepted_request import PermissionAcceptedRequest from .proactive_subscription_event import ProactiveSubscriptionEvent +from .permission import Permission +from .account_linked_request import AccountLinkedRequest from .account_linked_body import AccountLinkedBody +from .permission_body import PermissionBody from .skill_enabled_request import SkillEnabledRequest -from .account_linked_request import AccountLinkedRequest from .skill_disabled_request import SkillDisabledRequest -from .permission_changed_request import PermissionChangedRequest -from .permission_body import PermissionBody -from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest -from .permission_accepted_request import PermissionAcceptedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py index 1dd324d..3334e5a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .available_extension import AvailableExtension from .extensions_state import ExtensionsState +from .available_extension import AvailableExtension diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index a29f274..3a6dd0d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,68 +14,68 @@ # from __future__ import absolute_import -from .select_command import SelectCommand +from .auto_page_command import AutoPageCommand +from .animated_property import AnimatedProperty from .set_state_command import SetStateCommand -from .rendered_document_state import RenderedDocumentState -from .play_media_command import PlayMediaCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .media_command_type import MediaCommandType +from .scroll_to_component_command import ScrollToComponentCommand +from .video_source import VideoSource +from .align import Align +from .scroll_command import ScrollCommand +from .animated_transform_property import AnimatedTransformProperty +from .set_focus_command import SetFocusCommand from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag -from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum -from .component_entity import ComponentEntity -from .command import Command +from .send_event_command import SendEventCommand +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag from .component_visible_on_screen import ComponentVisibleOnScreen -from .load_token_list_data_event import LoadTokenListDataEvent -from .list_runtime_error import ListRuntimeError -from .reinflate_command import ReinflateCommand -from .render_document_directive import RenderDocumentDirective -from .align import Align from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags -from .sequential_command import SequentialCommand -from .send_token_list_data_directive import SendTokenListDataDirective -from .highlight_mode import HighlightMode -from .scroll_to_component_command import ScrollToComponentCommand -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .animated_transform_property import AnimatedTransformProperty -from .audio_track import AudioTrack -from .scroll_command import ScrollCommand -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag -from .control_media_command import ControlMediaCommand +from .runtime_error import RuntimeError +from .component_entity import ComponentEntity from .scroll_to_index_command import ScrollToIndexCommand -from .set_page_command import SetPageCommand +from .parallel_command import ParallelCommand +from .set_value_command import SetValueCommand +from .move_transform_property import MoveTransformProperty +from .animate_item_repeat_mode import AnimateItemRepeatMode +from .media_command_type import MediaCommandType +from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .control_media_command import ControlMediaCommand from .skew_transform_property import SkewTransformProperty -from .video_source import VideoSource from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .auto_page_command import AutoPageCommand -from .send_event_command import SendEventCommand -from .runtime import Runtime -from .list_runtime_error_reason import ListRuntimeErrorReason -from .scale_transform_property import ScaleTransformProperty -from .animated_property import AnimatedProperty -from .animate_item_command import AnimateItemCommand -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .user_event import UserEvent -from .position import Position -from .runtime_error import RuntimeError +from .audio_track import AudioTrack from .speak_item_command import SpeakItemCommand -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag -from .clear_focus_command import ClearFocusCommand -from .set_value_command import SetValueCommand -from .move_transform_property import MoveTransformProperty -from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag -from .finish_command import FinishCommand -from .runtime_error_event import RuntimeErrorEvent -from .idle_command import IdleCommand +from .send_token_list_data_directive import SendTokenListDataDirective from .load_index_list_data_event import LoadIndexListDataEvent -from .set_focus_command import SetFocusCommand -from .speak_list_command import SpeakListCommand -from .parallel_command import ParallelCommand -from .animate_item_repeat_mode import AnimateItemRepeatMode +from .component_state import ComponentState +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum from .send_index_list_data_directive import SendIndexListDataDirective +from .scale_transform_property import ScaleTransformProperty +from .position import Position +from .set_page_command import SetPageCommand +from .runtime import Runtime +from .highlight_mode import HighlightMode from .execute_commands_directive import ExecuteCommandsDirective from .animated_opacity_property import AnimatedOpacityProperty -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum -from .component_state import ComponentState from .transform_property import TransformProperty -from .rotate_transform_property import RotateTransformProperty +from .list_runtime_error import ListRuntimeError +from .speak_list_command import SpeakListCommand +from .clear_focus_command import ClearFocusCommand +from .reinflate_command import ReinflateCommand +from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag +from .load_token_list_data_event import LoadTokenListDataEvent +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag +from .command import Command +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag +from .sequential_command import SequentialCommand +from .animate_item_command import AnimateItemCommand +from .idle_command import IdleCommand +from .update_index_list_data_directive import UpdateIndexListDataDirective +from .select_command import SelectCommand +from .runtime_error_event import RuntimeErrorEvent +from .play_media_command import PlayMediaCommand +from .user_event import UserEvent +from .rendered_document_state import RenderedDocumentState +from .finish_command import FinishCommand +from .list_runtime_error_reason import ListRuntimeErrorReason +from .render_document_directive import RenderDocumentDirective from .open_url_command import OpenUrlCommand +from .rotate_transform_property import RotateTransformProperty diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index 4e873d6..d267d97 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -16,7 +16,7 @@ from .insert_multiple_items_operation import InsertMultipleItemsOperation from .set_item_operation import SetItemOperation +from .delete_multiple_items_operation import DeleteMultipleItemsOperation from .delete_item_operation import DeleteItemOperation -from .insert_item_operation import InsertItemOperation from .operation import Operation -from .delete_multiple_items_operation import DeleteMultipleItemsOperation +from .insert_item_operation import InsertItemOperation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index 3e99ce1..be213b4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .link_runtime_error import LinkRuntimeError from .link_error_reason import LinkErrorReason from .audio_source_error_reason import AudioSourceErrorReason -from .render_document_directive import RenderDocumentDirective -from .link_runtime_error import LinkRuntimeError -from .document_runtime_error import DocumentRuntimeError from .runtime_error import RuntimeError +from .render_error_reason import RenderErrorReason from .document_error_reason import DocumentErrorReason +from .document_runtime_error import DocumentRuntimeError +from .audio_source_runtime_error import AudioSourceRuntimeError from .render_runtime_error import RenderRuntimeError from .runtime_error_event import RuntimeErrorEvent -from .render_error_reason import RenderErrorReason -from .audio_source_runtime_error import AudioSourceRuntimeError +from .render_document_directive import RenderDocumentDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index e9bee84..e68310c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .command import Command -from .render_document_directive import RenderDocumentDirective -from .sequential_command import SequentialCommand -from .target_profile import TargetProfile -from .scroll_command import ScrollCommand -from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface -from .set_page_command import SetPageCommand from .auto_page_command import AutoPageCommand +from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface +from .scroll_command import ScrollCommand from .send_event_command import SendEventCommand -from .runtime import Runtime -from .user_event import UserEvent -from .position import Position -from .set_value_command import SetValueCommand -from .idle_command import IdleCommand from .parallel_command import ParallelCommand +from .set_value_command import SetValueCommand +from .target_profile import TargetProfile +from .position import Position +from .set_page_command import SetPageCommand +from .runtime import Runtime from .execute_commands_directive import ExecuteCommandsDirective +from .command import Command +from .sequential_command import SequentialCommand +from .idle_command import IdleCommand +from .user_event import UserEvent +from .render_document_directive import RenderDocumentDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index 0c12b4d..f3cecd6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .message_request import MessageRequest +from .start_request_method import StartRequestMethod +from .handle_message_directive import HandleMessageDirective +from .runtime_error import RuntimeError from .configuration import Configuration -from .runtime_error_reason import RuntimeErrorReason from .transformer_type import TransformerType -from .message_request import MessageRequest -from .runtime_error_request import RuntimeErrorRequest -from .runtime import Runtime from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .start_request_method import StartRequestMethod -from .start_request import StartRequest +from .runtime_error_reason import RuntimeErrorReason +from .runtime import Runtime from .transformer import Transformer -from .runtime_error import RuntimeError -from .handle_message_directive import HandleMessageDirective +from .runtime_error_request import RuntimeErrorRequest from .start_directive import StartDirective +from .start_request import StartRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index 2d97e7e..534564f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .billing_agreement_type import BillingAgreementType +from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes from .seller_order_attributes import SellerOrderAttributes -from .provider_credit import ProviderCredit from .authorize_attributes import AuthorizeAttributes -from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .billing_agreement_attributes import BillingAgreementAttributes -from .base_amazon_pay_entity import BaseAmazonPayEntity from .payment_action import PaymentAction +from .base_amazon_pay_entity import BaseAmazonPayEntity +from .billing_agreement_type import BillingAgreementType from .provider_attributes import ProviderAttributes from .price import Price +from .provider_credit import ProviderCredit +from .billing_agreement_attributes import BillingAgreementAttributes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 46705ef..452d2a1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .authorization_details import AuthorizationDetails -from .destination import Destination from .authorization_status import AuthorizationStatus -from .release_environment import ReleaseEnvironment -from .billing_agreement_details import BillingAgreementDetails from .state import State +from .billing_agreement_details import BillingAgreementDetails +from .release_environment import ReleaseEnvironment from .price import Price +from .authorization_details import AuthorizationDetails +from .destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index e70d00f..028ae91 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .authorization_details import AuthorizationDetails -from .destination import Destination -from .billing_agreement_type import BillingAgreementType -from .seller_order_attributes import SellerOrderAttributes -from .provider_credit import ProviderCredit -from .authorize_attributes import AuthorizeAttributes -from .billing_agreement_status import BillingAgreementStatus from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes from .authorization_status import AuthorizationStatus -from .billing_agreement_attributes import BillingAgreementAttributes -from .release_environment import ReleaseEnvironment +from .seller_order_attributes import SellerOrderAttributes +from .authorize_attributes import AuthorizeAttributes from .payment_action import PaymentAction +from .state import State from .billing_agreement_details import BillingAgreementDetails +from .billing_agreement_type import BillingAgreementType from .provider_attributes import ProviderAttributes -from .state import State +from .release_environment import ReleaseEnvironment from .price import Price +from .provider_credit import ProviderCredit +from .authorization_details import AuthorizationDetails +from .billing_agreement_attributes import BillingAgreementAttributes +from .destination import Destination +from .billing_agreement_status import BillingAgreementStatus diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f8fe460..f7ef1d0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult +from .setup_amazon_pay_result import SetupAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index 9aa15d0..f974661 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .setup_amazon_pay_result import SetupAmazonPayResult -from .charge_amazon_pay_result import ChargeAmazonPayResult from .setup_amazon_pay import SetupAmazonPay +from .charge_amazon_pay_result import ChargeAmazonPayResult from .charge_amazon_pay import ChargeAmazonPay +from .setup_amazon_pay_result import SetupAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py index 3878b28..a8db036 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .direct_launch import DirectLaunch -from .catalog_types import CatalogTypes -from .app_link_state import AppLinkState from .app_link_interface import AppLinkInterface +from .app_link_state import AppLinkState from .send_to_device import SendToDevice +from .catalog_types import CatalogTypes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index fdad96d..bf733df 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -14,24 +14,24 @@ # from __future__ import absolute_import -from .audio_player_interface import AudioPlayerInterface -from .audio_item import AudioItem -from .playback_stopped_request import PlaybackStoppedRequest -from .error import Error -from .playback_started_request import PlaybackStartedRequest -from .clear_behavior import ClearBehavior -from .stop_directive import StopDirective +from .audio_item_metadata import AudioItemMetadata +from .stream import Stream from .caption_data import CaptionData -from .player_activity import PlayerActivity from .clear_queue_directive import ClearQueueDirective -from .stream import Stream -from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest -from .current_playback_state import CurrentPlaybackState from .play_behavior import PlayBehavior -from .playback_finished_request import PlaybackFinishedRequest -from .audio_item_metadata import AudioItemMetadata +from .audio_player_state import AudioPlayerState +from .play_directive import PlayDirective +from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest +from .stop_directive import StopDirective +from .playback_stopped_request import PlaybackStoppedRequest from .caption_type import CaptionType +from .clear_behavior import ClearBehavior +from .player_activity import PlayerActivity +from .error import Error +from .audio_player_interface import AudioPlayerInterface from .playback_failed_request import PlaybackFailedRequest -from .play_directive import PlayDirective +from .current_playback_state import CurrentPlaybackState from .error_type import ErrorType -from .audio_player_state import AudioPlayerState +from .audio_item import AudioItem +from .playback_finished_request import PlaybackFinishedRequest +from .playback_started_request import PlaybackStartedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 602bf8d..481bd0c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .send_request_directive import SendRequestDirective +from .on_completion import OnCompletion from .connections_request import ConnectionsRequest from .send_response_directive import SendResponseDirective from .connections_status import ConnectionsStatus +from .send_request_directive import SendRequestDirective from .connections_response import ConnectionsResponse -from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index 6cc8008..d11db06 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .print_image_request import PrintImageRequest from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest -from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest -from .print_pdf_request import PrintPDFRequest -from .print_web_page_request import PrintWebPageRequest from .base_request import BaseRequest +from .print_web_page_request import PrintWebPageRequest +from .print_pdf_request import PrintPDFRequest +from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest +from .print_image_request import PrintImageRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index b0405d8..8b11efb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .events_received_request import EventsReceivedRequest -from .event import Event -from .send_directive_directive import SendDirectiveDirective from .header import Header +from .filter_match_action import FilterMatchAction +from .events_received_request import EventsReceivedRequest from .expiration import Expiration +from .stop_event_handler_directive import StopEventHandlerDirective from .expired_request import ExpiredRequest from .event_filter import EventFilter -from .stop_event_handler_directive import StopEventHandlerDirective -from .filter_match_action import FilterMatchAction +from .send_directive_directive import SendDirectiveDirective +from .event import Event from .endpoint import Endpoint from .start_event_handler_directive import StartEventHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index b7a61a0..320eb3c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import -from .list_template1 import ListTemplate1 -from .body_template2 import BodyTemplate2 -from .element_selected_request import ElementSelectedRequest -from .display_interface import DisplayInterface +from .list_template2 import ListTemplate2 +from .image import Image +from .text_content import TextContent +from .hint_directive import HintDirective from .plain_text import PlainText -from .body_template6 import BodyTemplate6 -from .body_template7 import BodyTemplate7 from .display_state import DisplayState -from .body_template3 import BodyTemplate3 -from .list_item import ListItem from .image_instance import ImageInstance -from .text_content import TextContent -from .plain_text_hint import PlainTextHint -from .render_template_directive import RenderTemplateDirective -from .image_size import ImageSize -from .hint_directive import HintDirective -from .template import Template from .text_field import TextField +from .body_template1 import BodyTemplate1 +from .image_size import ImageSize +from .body_template3 import BodyTemplate3 +from .body_template6 import BodyTemplate6 +from .display_interface import DisplayInterface from .back_button_behavior import BackButtonBehavior from .hint import Hint -from .list_template2 import ListTemplate2 -from .image import Image -from .body_template1 import BodyTemplate1 +from .list_template1 import ListTemplate1 +from .template import Template +from .list_item import ListItem +from .element_selected_request import ElementSelectedRequest +from .body_template7 import BodyTemplate7 +from .render_template_directive import RenderTemplateDirective +from .plain_text_hint import PlainTextHint from .rich_text import RichText +from .body_template2 import BodyTemplate2 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index 477f76e..a32c67f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -15,5 +15,5 @@ from __future__ import absolute_import from .stop_input_handler_directive import StopInputHandlerDirective -from .input_handler_event_request import InputHandlerEventRequest from .start_input_handler_directive import StartInputHandlerDirective +from .input_handler_event_request import InputHandlerEventRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index 041c407..d94ce6d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .location_services import LocationServices -from .altitude import Altitude -from .speed import Speed from .geolocation_state import GeolocationState -from .access import Access from .coordinate import Coordinate -from .heading import Heading +from .access import Access +from .speed import Speed from .geolocation_interface import GeolocationInterface from .status import Status +from .location_services import LocationServices +from .altitude import Altitude +from .heading import Heading diff --git a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py index eeccc69..37af460 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .purchase_result import PurchaseResult from .in_skill_product import InSkillProduct +from .purchase_result import PurchaseResult diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index b7cdb09..94b2efa 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .previous_command_issued_request import PreviousCommandIssuedRequest from .pause_command_issued_request import PauseCommandIssuedRequest -from .play_command_issued_request import PlayCommandIssuedRequest +from .previous_command_issued_request import PreviousCommandIssuedRequest from .next_command_issued_request import NextCommandIssuedRequest +from .play_command_issued_request import PlayCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index dee010d..764fba9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .error import Error -from .exception_encountered_request import ExceptionEncounteredRequest from .error_cause import ErrorCause +from .exception_encountered_request import ExceptionEncounteredRequest from .system_state import SystemState from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 047d571..3d8eec4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .metadata import Metadata -from .launch_directive import LaunchDirective from .video_item import VideoItem from .video_app_interface import VideoAppInterface +from .launch_directive import LaunchDirective +from .metadata import Metadata diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index c14ca09..4c45712 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .dialog import Dialog -from .viewport_state import ViewportState -from .viewport_video import ViewportVideo -from .experience import Experience -from .mode import Mode -from .aplt_viewport_state import APLTViewportState -from .presentation_type import PresentationType -from .apl_viewport_state import APLViewportState -from .touch import Touch from .shape import Shape from .typed_viewport_state import TypedViewportState +from .viewport_video import ViewportVideo from .viewport_state_video import ViewportStateVideo +from .experience import Experience +from .dialog import Dialog +from .touch import Touch from .keyboard import Keyboard +from .presentation_type import PresentationType +from .aplt_viewport_state import APLTViewportState +from .apl_viewport_state import APLViewportState +from .mode import Mode +from .viewport_state import ViewportState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py index b92f065..832b6a1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .current_configuration import CurrentConfiguration from .viewport_configuration import ViewportConfiguration +from .current_configuration import CurrentConfiguration diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py index 04057d1..05753b9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .inter_segment import InterSegment -from .viewport_profile import ViewportProfile from .character_format import CharacterFormat +from .viewport_profile import ViewportProfile +from .inter_segment import InterSegment diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index ab93696..815c03d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .discrete_viewport_size import DiscreteViewportSize from .continuous_viewport_size import ContinuousViewportSize +from .discrete_viewport_size import DiscreteViewportSize from .viewport_size import ViewportSize diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index de7f8b4..ceee2ba 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .api_client_request import ApiClientRequest from .api_client_response import ApiClientResponse -from .base_service_client import BaseServiceClient from .api_client_message import ApiClientMessage +from .service_client_factory import ServiceClientFactory from .authentication_configuration import AuthenticationConfiguration -from .service_client_response import ServiceClientResponse +from .api_client_request import ApiClientRequest +from .service_exception import ServiceException from .api_response import ApiResponse -from .api_configuration import ApiConfiguration +from .base_service_client import BaseServiceClient from .serializer import Serializer -from .service_client_factory import ServiceClientFactory from .api_client import ApiClient -from .service_exception import ServiceException +from .service_client_response import ServiceClientResponse +from .api_configuration import ApiConfiguration diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index 247e54a..c5a9912 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .short_address import ShortAddress from .address import Address -from .error import Error from .device_address_service_client import DeviceAddressServiceClient +from .short_address import ShortAddress +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index e9c04ed..571933a 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .error import Error from .header import Header -from .send_directive_request import SendDirectiveRequest from .speak_directive import SpeakDirective from .directive import Directive from .directive_service_client import DirectiveServiceClient +from .error import Error +from .send_directive_request import SendDirectiveRequest diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index a15da18..43208dc 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error from .endpoint_info import EndpointInfo +from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient +from .error import Error from .endpoint_enumeration_response import EndpointEnumerationResponse from .endpoint_capability import EndpointCapability -from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index ac7e5c1..2e5750b 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .light_animation import LightAnimation from .set_light_parameters import SetLightParameters -from .animation_step import AnimationStep +from .light_animation import LightAnimation from .trigger_event_type import TriggerEventType +from .animation_step import AnimationStep diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index 47c953f..7c2ae06 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType -from .event import Event -from .progress_recognizer import ProgressRecognizer -from .input_event import InputEvent -from .deviation_recognizer import DeviationRecognizer -from .input_event_action_type import InputEventActionType from .recognizer import Recognizer +from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType from .pattern import Pattern -from .event_reporting_type import EventReportingType +from .input_event_action_type import InputEventActionType +from .input_event import InputEvent from .input_handler_event import InputHandlerEvent from .pattern_recognizer import PatternRecognizer +from .event import Event +from .event_reporting_type import EventReportingType +from .deviation_recognizer import DeviationRecognizer +from .progress_recognizer import ProgressRecognizer diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index 5d335dc..7c6bdf9 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .list_management_service_client import ListManagementServiceClient from .list_item_body import ListItemBody -from .error import Error -from .list_state import ListState -from .list_created_event_request import ListCreatedEventRequest -from .list_items_created_event_request import ListItemsCreatedEventRequest -from .links import Links -from .alexa_list_item import AlexaListItem -from .list_deleted_event_request import ListDeletedEventRequest -from .alexa_list import AlexaList -from .list_body import ListBody +from .create_list_request import CreateListRequest from .update_list_request import UpdateListRequest from .list_updated_event_request import ListUpdatedEventRequest +from .list_management_service_client import ListManagementServiceClient +from .list_body import ListBody +from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .status import Status +from .list_state import ListState from .alexa_lists_metadata import AlexaListsMetadata from .alexa_list_metadata import AlexaListMetadata -from .list_items_updated_event_request import ListItemsUpdatedEventRequest -from .create_list_request import CreateListRequest +from .error import Error +from .list_item_state import ListItemState +from .list_created_event_request import ListCreatedEventRequest +from .list_deleted_event_request import ListDeletedEventRequest from .update_list_item_request import UpdateListItemRequest +from .links import Links +from .list_items_deleted_event_request import ListItemsDeletedEventRequest from .create_list_item_request import CreateListItemRequest -from .list_item_state import ListItemState -from .status import Status +from .alexa_list import AlexaList from .forbidden_error import ForbiddenError -from .list_items_deleted_event_request import ListItemsDeletedEventRequest +from .alexa_list_item import AlexaListItem +from .list_items_created_event_request import ListItemsCreatedEventRequest diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index 6c5081b..f91984f 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .access_token_request import AccessTokenRequest -from .access_token import AccessToken from .error import Error -from .access_token_response import AccessTokenResponse +from .access_token import AccessToken from .lwa_client import LwaClient +from .access_token_request import AccessTokenRequest +from .access_token_response import AccessTokenResponse diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index 73becbb..bae2263 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -15,16 +15,16 @@ from __future__ import absolute_import from .in_skill_product_transactions_response import InSkillProductTransactionsResponse -from .metadata import Metadata -from .error import Error -from .entitled_state import EntitledState -from .transactions import Transactions -from .purchasable_state import PurchasableState from .in_skill_product import InSkillProduct +from .status import Status from .purchase_mode import PurchaseMode +from .error import Error +from .transactions import Transactions from .monetization_service_client import MonetizationServiceClient +from .in_skill_products_response import InSkillProductsResponse +from .entitled_state import EntitledState +from .entitlement_reason import EntitlementReason +from .purchasable_state import PurchasableState +from .metadata import Metadata from .product_type import ProductType from .result_set import ResultSet -from .entitlement_reason import EntitlementReason -from .in_skill_products_response import InSkillProductsResponse -from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index fdf2847..717a4ff 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .event import Event +from .relevant_audience_type import RelevantAudienceType from .error import Error from .create_proactive_event_request import CreateProactiveEventRequest -from .skill_stage import SkillStage -from .proactive_events_service_client import ProactiveEventsServiceClient from .relevant_audience import RelevantAudience -from .relevant_audience_type import RelevantAudienceType +from .proactive_events_service_client import ProactiveEventsServiceClient +from .event import Event +from .skill_stage import SkillStage diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index d7e68e7..d5ef862 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import -from .reminder_management_service_client import ReminderManagementServiceClient -from .reminder_updated_event_request import ReminderUpdatedEventRequest -from .spoken_info import SpokenInfo -from .recurrence_day import RecurrenceDay -from .event import Event -from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest -from .error import Error from .get_reminders_response import GetRemindersResponse -from .reminder_deleted_event_request import ReminderDeletedEventRequest -from .reminder_started_event_request import ReminderStartedEventRequest -from .reminder_request import ReminderRequest -from .recurrence import Recurrence +from .reminder_created_event_request import ReminderCreatedEventRequest from .reminder_deleted_event import ReminderDeletedEvent from .spoken_text import SpokenText -from .alert_info import AlertInfo -from .reminder_created_event_request import ReminderCreatedEventRequest -from .reminder_response import ReminderResponse -from .push_notification_status import PushNotificationStatus from .trigger_type import TriggerType -from .push_notification import PushNotification -from .get_reminder_response import GetReminderResponse from .recurrence_freq import RecurrenceFreq +from .get_reminder_response import GetReminderResponse +from .alert_info import AlertInfo from .status import Status -from .trigger import Trigger +from .spoken_info import SpokenInfo +from .reminder_request import ReminderRequest +from .recurrence import Recurrence +from .error import Error +from .reminder_management_service_client import ReminderManagementServiceClient +from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest from .reminder import Reminder +from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .trigger import Trigger +from .reminder_started_event_request import ReminderStartedEventRequest +from .reminder_response import ReminderResponse +from .event import Event +from .push_notification import PushNotification +from .push_notification_status import PushNotificationStatus +from .reminder_deleted_event_request import ReminderDeletedEventRequest +from .recurrence_day import RecurrenceDay diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py index 5daa7ba..52a5939 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .error import Error -from .skill_messaging_service_client import SkillMessagingServiceClient from .send_skill_messaging_request import SendSkillMessagingRequest +from .skill_messaging_service_client import SkillMessagingServiceClient +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index 625f6e9..b43f2ad 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import -from .timer_request import TimerRequest -from .text_to_announce import TextToAnnounce -from .task import Task -from .error import Error -from .creation_behavior import CreationBehavior +from .timers_response import TimersResponse +from .text_to_confirm import TextToConfirm from .notify_only_operation import NotifyOnlyOperation from .announce_operation import AnnounceOperation -from .notification_config import NotificationConfig -from .operation import Operation -from .timer_management_service_client import TimerManagementServiceClient from .timer_response import TimerResponse -from .display_experience import DisplayExperience -from .timers_response import TimersResponse -from .launch_task_operation import LaunchTaskOperation from .triggering_behavior import TriggeringBehavior +from .text_to_announce import TextToAnnounce from .visibility import Visibility -from .text_to_confirm import TextToConfirm +from .notification_config import NotificationConfig +from .timer_request import TimerRequest +from .timer_management_service_client import TimerManagementServiceClient from .status import Status +from .error import Error +from .creation_behavior import CreationBehavior +from .task import Task +from .operation import Operation +from .display_experience import DisplayExperience +from .launch_task_operation import LaunchTaskOperation diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index 028d2a1..353dc6c 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .ups_service_client import UpsServiceClient -from .error import Error +from .error_code import ErrorCode from .distance_units import DistanceUnits -from .phone_number import PhoneNumber from .temperature_unit import TemperatureUnit -from .error_code import ErrorCode +from .phone_number import PhoneNumber +from .error import Error +from .ups_service_client import UpsServiceClient diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index c7a570c..5ac6821 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .value_wrapper import ValueWrapper -from .status_code import StatusCode from .resolutions import Resolutions +from .value_wrapper import ValueWrapper +from .status import Status from .value import Value +from .status_code import StatusCode from .resolution import Resolution -from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index d1f172b..5c1ec18 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .standard_card import StandardCard +from .image import Image from .ssml_output_speech import SsmlOutputSpeech +from .card import Card +from .play_behavior import PlayBehavior from .plain_text_output_speech import PlainTextOutputSpeech -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard -from .standard_card import StandardCard +from .link_account_card import LinkAccountCard from .output_speech import OutputSpeech -from .simple_card import SimpleCard from .reprompt import Reprompt -from .card import Card -from .link_account_card import LinkAccountCard -from .play_behavior import PlayBehavior -from .image import Image +from .simple_card import SimpleCard +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard From 85a629e9b7270a356c4f2fe428c475febd8c15b9 Mon Sep 17 00:00:00 2001 From: pranotipp <93741216+pranotipp@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:39:31 -0800 Subject: [PATCH 026/111] Release 1.33.1. For changelog, check CHANGELOG.rst * Release 1.33.1. For changelog, check CHANGELOG.rst * fix: add missing changelog.rst files Co-authored-by: pranoti2 --- ask-sdk-model/CHANGELOG.rst | 7 ++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/context.py | 16 ++- .../alexa/experimentation/__init__.py | 21 ++++ .../experimentation/experiment_assignment.py | 116 ++++++++++++++++++ .../experiment_trigger_response.py | 108 ++++++++++++++++ .../experimentation/experimentation_state.py | 107 ++++++++++++++++ .../interfaces/alexa/experimentation/py.typed | 0 .../alexa/experimentation/treatment.py | 107 ++++++++++++++++ .../alexa/experimentation/treatment_id.py | 66 ++++++++++ ask-sdk-model/ask_sdk_model/response.py | 16 ++- 11 files changed, 557 insertions(+), 9 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_trigger_response.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experimentation_state.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 75a9852..e6199fb 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -426,3 +426,10 @@ This release contains the following changes : This release contains the following changes : - Support persistent identifier for endpoint ID where the skill request is issued from. + +1.33.1 +^^^^^^ + +This release contains the following changes : + +- Support for A/B testing experimentation SPI for GA diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 1d3dd98..8ec9984 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.33.0' +__version__ = '1.33.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 391d104..3f7876c 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -28,6 +28,7 @@ from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState as TypedViewportState_c366f13e from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451 from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState as AutomotiveState_2b614eea + from ask_sdk_model.interfaces.alexa.experimentation.experimentation_state import ExperimentationState as ExperimentationState_37bb7c62 from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState as ExtensionsState_f02207d3 from ask_sdk_model.interfaces.applink.app_link_state import AppLinkState as AppLinkState_370eda23 from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d @@ -58,6 +59,8 @@ class Context(object): :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState :param app_link: Provides the current state for app link capability. :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState + :param experimentation: Provides the current experimentation state + :type experimentation: (optional) ask_sdk_model.interfaces.alexa.experimentation.experimentation_state.ExperimentationState """ deserialized_types = { @@ -70,7 +73,8 @@ class Context(object): 'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState', 'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]', 'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState', - 'app_link': 'ask_sdk_model.interfaces.applink.app_link_state.AppLinkState' + 'app_link': 'ask_sdk_model.interfaces.applink.app_link_state.AppLinkState', + 'experimentation': 'ask_sdk_model.interfaces.alexa.experimentation.experimentation_state.ExperimentationState' } # type: Dict attribute_map = { @@ -83,12 +87,13 @@ class Context(object): 'viewport': 'Viewport', 'viewports': 'Viewports', 'extensions': 'Extensions', - 'app_link': 'AppLink' + 'app_link': 'AppLink', + 'experimentation': 'Experimentation' } # type: Dict supports_multiple_types = False - def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, app_link=None): - # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[AppLinkState_370eda23]) -> None + def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, app_link=None, experimentation=None): + # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[AppLinkState_370eda23], Optional[ExperimentationState_37bb7c62]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. @@ -111,6 +116,8 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState :param app_link: Provides the current state for app link capability. :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState + :param experimentation: Provides the current experimentation state + :type experimentation: (optional) ask_sdk_model.interfaces.alexa.experimentation.experimentation_state.ExperimentationState """ self.__discriminator_value = None # type: str @@ -124,6 +131,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, self.viewports = viewports self.extensions = extensions self.app_link = app_link + self.experimentation = experimentation def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py new file mode 100644 index 0000000..447f73f --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py @@ -0,0 +1,21 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .experiment_assignment import ExperimentAssignment +from .treatment_id import TreatmentId +from .treatment import Treatment +from .experimentation_state import ExperimentationState +from .experiment_trigger_response import ExperimentTriggerResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py new file mode 100644 index 0000000..2300b02 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.experimentation.treatment import Treatment as Treatment_1f18fadd + + +class ExperimentAssignment(object): + """ + Represents the state of an active experiment's assignment + + + :param id: + :type id: (optional) str + :param treatment_id: + :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment + + """ + deserialized_types = { + 'id': 'str', + 'treatment_id': 'ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment' + } # type: Dict + + attribute_map = { + 'id': 'id', + 'treatment_id': 'treatmentId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None, treatment_id=None): + # type: (Optional[str], Optional[Treatment_1f18fadd]) -> None + """Represents the state of an active experiment's assignment + + :param id: + :type id: (optional) str + :param treatment_id: + :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment + """ + self.__discriminator_value = None # type: str + + self.id = id + self.treatment_id = treatment_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentAssignment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_trigger_response.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_trigger_response.py new file mode 100644 index 0000000..705c193 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_trigger_response.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExperimentTriggerResponse(object): + """ + Experiment trigger response from skill + + + :param triggered_experiments: Contains array of triggered experiment ids + :type triggered_experiments: (optional) list[str] + + """ + deserialized_types = { + 'triggered_experiments': 'list[str]' + } # type: Dict + + attribute_map = { + 'triggered_experiments': 'triggeredExperiments' + } # type: Dict + supports_multiple_types = False + + def __init__(self, triggered_experiments=None): + # type: (Optional[List[object]]) -> None + """Experiment trigger response from skill + + :param triggered_experiments: Contains array of triggered experiment ids + :type triggered_experiments: (optional) list[str] + """ + self.__discriminator_value = None # type: str + + self.triggered_experiments = triggered_experiments + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentTriggerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experimentation_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experimentation_state.py new file mode 100644 index 0000000..bb6fdcf --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experimentation_state.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.experimentation.experiment_assignment import ExperimentAssignment as ExperimentAssignment_7422d82e + + +class ExperimentationState(object): + """ + + :param active_experiments: + :type active_experiments: (optional) list[ask_sdk_model.interfaces.alexa.experimentation.experiment_assignment.ExperimentAssignment] + + """ + deserialized_types = { + 'active_experiments': 'list[ask_sdk_model.interfaces.alexa.experimentation.experiment_assignment.ExperimentAssignment]' + } # type: Dict + + attribute_map = { + 'active_experiments': 'activeExperiments' + } # type: Dict + supports_multiple_types = False + + def __init__(self, active_experiments=None): + # type: (Optional[List[ExperimentAssignment_7422d82e]]) -> None + """ + + :param active_experiments: + :type active_experiments: (optional) list[ask_sdk_model.interfaces.alexa.experimentation.experiment_assignment.ExperimentAssignment] + """ + self.__discriminator_value = None # type: str + + self.active_experiments = active_experiments + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentationState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py new file mode 100644 index 0000000..4798227 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.experimentation.treatment_id import TreatmentId as TreatmentId_29cc9e4c + + +class Treatment(object): + """ + + :param name: + :type name: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId + + """ + deserialized_types = { + 'name': 'ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId' + } # type: Dict + + attribute_map = { + 'name': 'name' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None): + # type: (Optional[TreatmentId_29cc9e4c]) -> None + """ + + :param name: + :type name: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId + """ + self.__discriminator_value = None # type: str + + self.name = name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Treatment): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py new file mode 100644 index 0000000..821e13a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TreatmentId(Enum): + """ + Name of the experiment treatment identifier + + + + Allowed enum values: [C, T1] + """ + C = "C" + T1 = "T1" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TreatmentId): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/response.py b/ask-sdk-model/ask_sdk_model/response.py index 3717716..9cbff4f 100644 --- a/ask-sdk-model/ask_sdk_model/response.py +++ b/ask-sdk-model/ask_sdk_model/response.py @@ -25,6 +25,7 @@ from datetime import datetime from ask_sdk_model.ui.reprompt import Reprompt as Reprompt_ffee6ea4 from ask_sdk_model.directive import Directive as Directive_e3e6b000 + from ask_sdk_model.interfaces.alexa.experimentation.experiment_trigger_response import ExperimentTriggerResponse as ExperimentTriggerResponse_5daea3f3 from ask_sdk_model.canfulfill.can_fulfill_intent import CanFulfillIntent as CanFulfillIntent_8d777e62 from ask_sdk_model.ui.output_speech import OutputSpeech as OutputSpeech_a070f8fb from ask_sdk_model.ui.card import Card as Card_3a03f3c4 @@ -47,6 +48,8 @@ class Response(object): :type should_end_session: (optional) bool :param can_fulfill_intent: :type can_fulfill_intent: (optional) ask_sdk_model.canfulfill.can_fulfill_intent.CanFulfillIntent + :param experimentation: Experiment trigger response from skill + :type experimentation: (optional) ask_sdk_model.interfaces.alexa.experimentation.experiment_trigger_response.ExperimentTriggerResponse """ deserialized_types = { @@ -56,7 +59,8 @@ class Response(object): 'directives': 'list[ask_sdk_model.directive.Directive]', 'api_response': 'object', 'should_end_session': 'bool', - 'can_fulfill_intent': 'ask_sdk_model.canfulfill.can_fulfill_intent.CanFulfillIntent' + 'can_fulfill_intent': 'ask_sdk_model.canfulfill.can_fulfill_intent.CanFulfillIntent', + 'experimentation': 'ask_sdk_model.interfaces.alexa.experimentation.experiment_trigger_response.ExperimentTriggerResponse' } # type: Dict attribute_map = { @@ -66,12 +70,13 @@ class Response(object): 'directives': 'directives', 'api_response': 'apiResponse', 'should_end_session': 'shouldEndSession', - 'can_fulfill_intent': 'canFulfillIntent' + 'can_fulfill_intent': 'canFulfillIntent', + 'experimentation': 'experimentation' } # type: Dict supports_multiple_types = False - def __init__(self, output_speech=None, card=None, reprompt=None, directives=None, api_response=None, should_end_session=None, can_fulfill_intent=None): - # type: (Optional[OutputSpeech_a070f8fb], Optional[Card_3a03f3c4], Optional[Reprompt_ffee6ea4], Optional[List[Directive_e3e6b000]], Optional[object], Optional[bool], Optional[CanFulfillIntent_8d777e62]) -> None + def __init__(self, output_speech=None, card=None, reprompt=None, directives=None, api_response=None, should_end_session=None, can_fulfill_intent=None, experimentation=None): + # type: (Optional[OutputSpeech_a070f8fb], Optional[Card_3a03f3c4], Optional[Reprompt_ffee6ea4], Optional[List[Directive_e3e6b000]], Optional[object], Optional[bool], Optional[CanFulfillIntent_8d777e62], Optional[ExperimentTriggerResponse_5daea3f3]) -> None """ :param output_speech: @@ -88,6 +93,8 @@ def __init__(self, output_speech=None, card=None, reprompt=None, directives=None :type should_end_session: (optional) bool :param can_fulfill_intent: :type can_fulfill_intent: (optional) ask_sdk_model.canfulfill.can_fulfill_intent.CanFulfillIntent + :param experimentation: Experiment trigger response from skill + :type experimentation: (optional) ask_sdk_model.interfaces.alexa.experimentation.experiment_trigger_response.ExperimentTriggerResponse """ self.__discriminator_value = None # type: str @@ -98,6 +105,7 @@ def __init__(self, output_speech=None, card=None, reprompt=None, directives=None self.api_response = api_response self.should_end_session = should_end_session self.can_fulfill_intent = can_fulfill_intent + self.experimentation = experimentation def to_dict(self): # type: () -> Dict[str, object] From 69b6255afe8539753f78cfeb2fe75b15423a4876 Mon Sep 17 00:00:00 2001 From: pranotipp <93741216+pranotipp@users.noreply.github.com> Date: Thu, 27 Jan 2022 19:46:30 -0800 Subject: [PATCH 027/111] Release 1.14.1. For changelog, check CHANGELOG.rst (#23) * Release 1.14.1. For changelog, check CHANGELOG.rst * fix the change log for 1.14.1 release Co-authored-by: pranoti2 --- ask-smapi-model/CHANGELOG.rst | 7 + .../ask_smapi_model/__version__.py | 4 +- .../skill_management_service_client.py | 1032 +++++++++++++++++ .../ask_smapi_model/v0/catalog/__init__.py | 6 +- .../v0/catalog/upload/__init__.py | 16 +- .../development_events/subscriber/__init__.py | 8 +- .../subscription/__init__.py | 8 +- .../v0/event_schema/__init__.py | 12 +- .../alexa_development_event/__init__.py | 2 +- .../ask_smapi_model/v1/__init__.py | 8 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 18 +- .../ask_smapi_model/v1/catalog/__init__.py | 2 +- .../v1/catalog/upload/__init__.py | 12 +- .../ask_smapi_model/v1/isp/__init__.py | 44 +- .../ask_smapi_model/v1/skill/__init__.py | 110 +- .../v1/skill/account_linking/__init__.py | 4 +- .../v1/skill/alexa_hosted/__init__.py | 18 +- .../v1/skill/asr/annotation_sets/__init__.py | 16 +- .../v1/skill/asr/evaluations/__init__.py | 24 +- .../v1/skill/beta_test/__init__.py | 4 +- .../v1/skill/beta_test/testers/__init__.py | 6 +- .../v1/skill/build_step_name.py | 6 +- .../v1/skill/certification/__init__.py | 12 +- .../v1/skill/evaluations/__init__.py | 18 +- .../v1/skill/experiment/__init__.py | 52 + .../experiment/create_experiment_input.py | 145 +++ .../experiment/create_experiment_request.py | 109 ++ .../v1/skill/experiment/destination_state.py | 68 ++ .../v1/skill/experiment/experiment_history.py | 122 ++ .../experiment/experiment_information.py | 176 +++ .../experiment_last_state_transition.py | 147 +++ .../experiment/experiment_stopped_reason.py | 66 ++ .../v1/skill/experiment/experiment_summary.py | 131 +++ .../v1/skill/experiment/experiment_trigger.py | 108 ++ .../v1/skill/experiment/experiment_type.py | 65 ++ ...et_customer_treatment_override_response.py | 116 ++ ...get_experiment_metric_snapshot_response.py | 124 ++ .../experiment/get_experiment_response.py | 117 ++ .../get_experiment_state_response.py | 109 ++ ...st_experiment_metric_snapshots_response.py | 117 ++ .../experiment/list_experiments_response.py | 117 ++ .../manage_experiment_state_request.py | 117 ++ .../v1/skill/experiment/metric.py | 124 ++ .../experiment/metric_change_direction.py | 66 ++ .../skill/experiment/metric_configuration.py | 124 ++ .../v1/skill/experiment/metric_snapshot.py | 122 ++ .../experiment/metric_snapshot_status.py | 66 ++ .../v1/skill/experiment/metric_type.py | 66 ++ .../v1/skill/experiment/metric_values.py | 143 +++ .../v1/skill/experiment/pagination_context.py | 108 ++ .../v1/skill/experiment/py.typed | 0 ...set_customer_treatment_override_request.py | 109 ++ .../v1/skill/experiment/source_state.py | 67 ++ .../v1/skill/experiment/state.py | 71 ++ .../experiment/state_transition_error.py | 116 ++ .../experiment/state_transition_error_type.py | 65 ++ .../experiment/state_transition_status.py | 67 ++ .../v1/skill/experiment/target_state.py | 67 ++ .../v1/skill/experiment/treatment_id.py | 66 ++ .../experiment/update_experiment_input.py | 130 +++ .../experiment/update_experiment_request.py | 109 ++ .../experiment/update_exposure_request.py | 108 ++ .../v1/skill/history/__init__.py | 18 +- .../v1/skill/interaction_model/__init__.py | 50 +- .../interaction_model/catalog/__init__.py | 14 +- .../conflict_detection/__init__.py | 8 +- .../skill/interaction_model/jobs/__init__.py | 32 +- .../interaction_model/model_type/__init__.py | 18 +- .../type_version/__init__.py | 8 +- .../interaction_model/version/__init__.py | 10 +- .../v1/skill/invocations/__init__.py | 12 +- .../v1/skill/manifest/__init__.py | 210 ++-- .../v1/skill/manifest/custom/__init__.py | 6 +- .../v1/skill/manifest/permission_name.py | 3 +- .../v1/skill/metrics/__init__.py | 6 +- .../v1/skill/nlu/annotation_sets/__init__.py | 14 +- .../v1/skill/nlu/evaluations/__init__.py | 50 +- .../v1/skill/private/__init__.py | 2 +- .../v1/skill/publication/__init__.py | 2 +- .../v1/skill/simulations/__init__.py | 24 +- .../v1/skill/validations/__init__.py | 8 +- .../v1/smart_home_evaluation/__init__.py | 34 +- .../v1/vendor_management/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 2 +- .../v2/skill/invocations/__init__.py | 4 +- .../v2/skill/simulations/__init__.py | 30 +- 86 files changed, 5303 insertions(+), 461 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_input.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/destination_state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_history.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_information.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_last_state_transition.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_stopped_reason.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_summary.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_trigger.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_customer_treatment_override_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_metric_snapshot_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_state_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiment_metric_snapshots_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiments_response.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/manage_experiment_state_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_change_direction.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_configuration.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot_status.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_values.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/pagination_context.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/set_customer_treatment_override_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/source_state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error_type.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_status.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/target_state.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/treatment_id.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_input.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_request.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_exposure_request.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 3fa39ba..01dbf09 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -222,3 +222,10 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions for `App link interfaces `__. + +1.14.1 +^^^^^^ + +This release contains the following changes : + +- Enable TSB APL Extension in skill manifest diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 877b965..238e0d8 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,8 +14,8 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.0' +__version__ = '1.14.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' -__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi'] \ No newline at end of file +__keywords__ = ['SMAPI SDK', 'ASK SDK', 'Alexa Skills Kit', 'Alexa', 'Models', 'Smapi'] diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index cabc7d2..315ed65 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -38,6 +38,7 @@ from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as GetConflictsResponse_502eb394 from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject as UpdateAsrAnnotationSetPropertiesRequestObject_946da673 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as HostedSkillRepositoryCredentialsList_d39d5fdf + from ask_smapi_model.v1.skill.experiment.update_exposure_request import UpdateExposureRequest as UpdateExposureRequest_ce52ce53 from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as CloneLocaleStatusResponse_8b6e06ed from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatus as CatalogStatus_c70ba222 from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequest as InvokeSkillRequest_8cf8aff9 @@ -56,6 +57,7 @@ from ask_smapi_model.v1.skill.interaction_model.version.catalog_version_data import CatalogVersionData as CatalogVersionData_86156352 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_metadata import HostedSkillMetadata as HostedSkillMetadata_b8976dfb from ask_smapi_model.v1.skill.beta_test.test_body import TestBody as TestBody_65065c26 + from ask_smapi_model.v1.skill.experiment.set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest as SetCustomerTreatmentOverrideRequest_94022e79 from ask_smapi_model.v1.skill.manifest.skill_manifest_envelope import SkillManifestEnvelope as SkillManifestEnvelope_fc0e823b from ask_smapi_model.v0.development_events.subscription.create_subscription_request import CreateSubscriptionRequest as CreateSubscriptionRequest_1931508e from ask_smapi_model.v1.skill.skill_credentials import SkillCredentials as SkillCredentials_a0f29ab1 @@ -71,12 +73,14 @@ from ask_smapi_model.v1.skill.create_skill_with_package_request import CreateSkillWithPackageRequest as CreateSkillWithPackageRequest_cd7f22be from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_update import SlotTypeUpdate as SlotTypeUpdate_ae01835f from ask_smapi_model.v2.skill.invocations.invocations_api_request import InvocationsApiRequest as InvocationsApiRequest_a422fa08 + from ask_smapi_model.v1.skill.experiment.list_experiments_response import ListExperimentsResponse as ListExperimentsResponse_c5b07ecb from ask_smapi_model.v1.smart_home_evaluation.list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse as ListSHCapabilityEvaluationsResponse_e6fe49d5 from ask_smapi_model.v2.error import Error as Error_ea6c1a5a from ask_smapi_model.v1.isp.in_skill_product_summary_response import InSkillProductSummaryResponse as InSkillProductSummaryResponse_32ba64d7 from ask_smapi_model.v0.bad_request_error import BadRequestError as BadRequestError_a8ac8b44 from ask_smapi_model.v0.catalog.upload.create_content_upload_response import CreateContentUploadResponse as CreateContentUploadResponse_75cd6715 from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequest as SimulationsApiRequest_606eed02 + from ask_smapi_model.v1.skill.experiment.get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse as GetCustomerTreatmentOverrideResponse_f64f689f from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as DialogActName_df8326d6 from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse as ListPrivateDistributionAccountsResponse_8783420d from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as SSLCertificatePayload_97891902 @@ -132,11 +136,13 @@ from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatus as SlotTypeStatus_a293ebfc from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionData as VersionData_faa770c8 from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponse as ListAsrEvaluationsResponse_ef8cd586 + from ask_smapi_model.v1.skill.experiment.update_experiment_request import UpdateExperimentRequest as UpdateExperimentRequest_d8449813 from ask_smapi_model.v1.isp.product_response import ProductResponse as ProductResponse_b388eec4 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest as HostedSkillRepositoryCredentialsRequest_79a1c791 from ask_smapi_model.v1.skill.nlu.annotation_sets.get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse as GetNLUAnnotationSetPropertiesResponse_731f20d3 from ask_smapi_model.v1.skill.nlu.annotation_sets.list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse as ListNLUAnnotationSetsResponse_5b1b0b6a from ask_smapi_model.v1.skill.account_linking.account_linking_response import AccountLinkingResponse as AccountLinkingResponse_b1f92882 + from ask_smapi_model.v1.skill.experiment.manage_experiment_state_request import ManageExperimentStateRequest as ManageExperimentStateRequest_c31e7ea0 from ask_smapi_model.v1.skill.interaction_model.model_type.list_slot_type_response import ListSlotTypeResponse as ListSlotTypeResponse_b426c805 from ask_smapi_model.v1.skill.evaluations.profile_nlu_request import ProfileNluRequest as ProfileNluRequest_501c0d87 from ask_smapi_model.v1.skill.interaction_model.catalog.list_catalog_response import ListCatalogResponse as ListCatalogResponse_bc059ec9 @@ -155,6 +161,7 @@ from ask_smapi_model.v1.skill.history.interaction_type import InteractionType as InteractionType_80494a05 from ask_smapi_model.v1.skill.nlu.evaluations.evaluate_nlu_request import EvaluateNLURequest as EvaluateNLURequest_7a358f6a from ask_smapi_model.v1.isp.list_in_skill_product_response import ListInSkillProductResponse as ListInSkillProductResponse_505e7307 + from ask_smapi_model.v1.skill.experiment.get_experiment_state_response import GetExperimentStateResponse as GetExperimentStateResponse_5152b250 from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequest as UpdateJobStatusRequest_f2d8379d from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequest as AccountLinkingRequest_cac174e from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload as UpdateAsrAnnotationSetContentsPayload_df3c6c8c @@ -165,11 +172,13 @@ from ask_smapi_model.v1.skill.rollback_request_status import RollbackRequestStatus as RollbackRequestStatus_71665366 from ask_smapi_model.v0.catalog.create_catalog_request import CreateCatalogRequest as CreateCatalogRequest_f3cdf8bb from ask_smapi_model.v1.skill.interaction_model.catalog.update_request import UpdateRequest as UpdateRequest_12e0eebe + from ask_smapi_model.v1.skill.experiment.get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse as GetExperimentMetricSnapshotResponse_b6905a35 from ask_smapi_model.v0.catalog.catalog_details import CatalogDetails as CatalogDetails_912693fa from ask_smapi_model.v1.skill.nlu.annotation_sets.create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest as CreateNLUAnnotationSetRequest_16b1430c from ask_smapi_model.v1.skill.create_rollback_request import CreateRollbackRequest as CreateRollbackRequest_e7747a32 from ask_smapi_model.v1.catalog.upload.catalog_upload_base import CatalogUploadBase as CatalogUploadBase_d7febd7 from ask_smapi_model.v1.skill.certification.certification_response import CertificationResponse as CertificationResponse_97fdaad + from ask_smapi_model.v1.skill.experiment.get_experiment_response import GetExperimentResponse as GetExperimentResponse_fcd92c35 from ask_smapi_model.v1.skill.export_response import ExportResponse as ExportResponse_b235e7bd from ask_smapi_model.v0.catalog.upload.create_content_upload_request import CreateContentUploadRequest as CreateContentUploadRequest_bf7790d3 from ask_smapi_model.v0.error import Error as Error_d660d58 @@ -186,6 +195,8 @@ from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as LocaleInQuery_6526a92e from ask_smapi_model.v1.skill.beta_test.update_beta_test_response import UpdateBetaTestResponse as UpdateBetaTestResponse_84abf38 from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as GetExecutionsResponse_1b1a1680 + from ask_smapi_model.v1.skill.experiment.list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse as ListExperimentMetricSnapshotsResponse_bb18308b + from ask_smapi_model.v1.skill.experiment.create_experiment_request import CreateExperimentRequest as CreateExperimentRequest_abced22d from ask_smapi_model.v1.bad_request_error import BadRequestError as BadRequestError_f854b05 @@ -7977,6 +7988,1027 @@ def delete_skill_v1(self, skill_id, **kwargs): return None + def delete_experiment_v1(self, skill_id, experiment_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Deletes an existing experiment for a skill. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "delete_experiment_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="DELETE", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + + def update_exposure_v1(self, skill_id, experiment_id, update_exposure_request, **kwargs): + # type: (str, str, UpdateExposureRequest_ce52ce53, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Updates the exposure of an experiment that is in CREATED or RUNNING state. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param update_exposure_request: (required) Defines the request body for updating the exposure percentage of a running experiment. + :type update_exposure_request: ask_smapi_model.v1.skill.experiment.update_exposure_request.UpdateExposureRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "update_exposure_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + # verify the required parameter 'update_exposure_request' is set + if ('update_exposure_request' not in params) or (params['update_exposure_request'] is None): + raise ValueError( + "Missing the required parameter `update_exposure_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/exposurePercentage' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'update_exposure_request' in params: + body_params = params['update_exposure_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + + def get_experiment_v1(self, skill_id, experiment_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, GetExperimentResponse_fcd92c35, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Retrieves an existing experiment for a skill. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, GetExperimentResponse_fcd92c35, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "get_experiment_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.get_experiment_response.GetExperimentResponse", status_code=200, message="Returned skill experiment.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.get_experiment_response.GetExperimentResponse") + + if full_response: + return api_response + return api_response.body + + + def list_experiment_metric_snapshots_v1(self, skill_id, experiment_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentMetricSnapshotsResponse_bb18308b] + """ + Gets a list of all metric snapshots associated with this experiment id. The metric snapshots represent the metric data available for a time range. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: int + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentMetricSnapshotsResponse_bb18308b] + """ + operation_name = "list_experiment_metric_snapshots_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/metricSnapshots' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.list_experiment_metric_snapshots_response.ListExperimentMetricSnapshotsResponse", status_code=200, message="Returned experiment metric snapshots.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.list_experiment_metric_snapshots_response.ListExperimentMetricSnapshotsResponse") + + if full_response: + return api_response + return api_response.body + + + def get_experiment_metric_snapshot_v1(self, skill_id, experiment_id, metric_snapshot_id, **kwargs): + # type: (str, str, str, **Any) -> Union[ApiResponse, object, GetExperimentMetricSnapshotResponse_b6905a35, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Gets a list of all metric data associated with this experiment's metric snapshot. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param metric_snapshot_id: (required) Identifies the experiment metric snapshot in a skill experiment. The metric snapshot represents metric data for a date range. + :type metric_snapshot_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, GetExperimentMetricSnapshotResponse_b6905a35, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "get_experiment_metric_snapshot_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + # verify the required parameter 'metric_snapshot_id' is set + if ('metric_snapshot_id' not in params) or (params['metric_snapshot_id'] is None): + raise ValueError( + "Missing the required parameter `metric_snapshot_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/metricSnapshots/{metricSnapshotId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + if 'metric_snapshot_id' in params: + path_params['metricSnapshotId'] = params['metric_snapshot_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.get_experiment_metric_snapshot_response.GetExperimentMetricSnapshotResponse", status_code=200, message="Returned experiment metric data.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.get_experiment_metric_snapshot_response.GetExperimentMetricSnapshotResponse") + + if full_response: + return api_response + return api_response.body + + + def update_experiment_v1(self, skill_id, experiment_id, update_experiment_request, **kwargs): + # type: (str, str, UpdateExperimentRequest_d8449813, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Updates an existing experiment for a skill. Can only be called while the experiment is in CREATED state. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param update_experiment_request: (required) Defines the request body for updating an experiment. + :type update_experiment_request: ask_smapi_model.v1.skill.experiment.update_experiment_request.UpdateExperimentRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "update_experiment_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + # verify the required parameter 'update_experiment_request' is set + if ('update_experiment_request' not in params) or (params['update_experiment_request'] is None): + raise ValueError( + "Missing the required parameter `update_experiment_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/properties' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'update_experiment_request' in params: + body_params = params['update_experiment_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + + def get_experiment_state_v1(self, skill_id, experiment_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, GetExperimentStateResponse_5152b250, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Retrieves the current state of the experiment. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, GetExperimentStateResponse_5152b250, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "get_experiment_state_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/state' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.get_experiment_state_response.GetExperimentStateResponse", status_code=200, message="Returned skill experiment state.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.get_experiment_state_response.GetExperimentStateResponse") + + if full_response: + return api_response + return api_response.body + + + def manage_experiment_state_v1(self, skill_id, experiment_id, manage_experiment_state_request, **kwargs): + # type: (str, str, ManageExperimentStateRequest_c31e7ea0, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Requests an action on the experiment to move it to the targetState. Acceptable targetState values are: * `ENABLED`: Experiment configurations are deployed and customer overrides are enabled. Actual experiment has not started yet but customers with overrides set to T1 will see the T1 behavior. Initial state must be CREATED. * `RUNNING`: Starts the experiment with the configured exposure. Skill customers selected to be in the experiment will start contributing to the metric data. Initial state must be CREATED or ENABLED. * `STOPPED`: Stops the experiment by removing the experiment configurations. All customer treatment overrides are removed. Initial state must be ENABLED or RUNNING. Final state for ENDPOINT_BASED experiments, no further action is taken by ASK. It is expected that the skill builder updates their endpoint code to make T1 the default live behavior. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param manage_experiment_state_request: (required) Defines the request body for performing an experiment action to move it to a target state. + :type manage_experiment_state_request: ask_smapi_model.v1.skill.experiment.manage_experiment_state_request.ManageExperimentStateRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "manage_experiment_state_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + # verify the required parameter 'manage_experiment_state_request' is set + if ('manage_experiment_state_request' not in params) or (params['manage_experiment_state_request'] is None): + raise ValueError( + "Missing the required parameter `manage_experiment_state_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/state' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'manage_experiment_state_request' in params: + body_params = params['manage_experiment_state_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=202, message="Accepted; Returns a URL to track the experiment state in 'Location' header.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + + def get_customer_treatment_override_v1(self, skill_id, experiment_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, GetCustomerTreatmentOverrideResponse_f64f689f, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Retrieves the current user's customer treatment override for an existing A/B Test experiment. The current user must be under the same skill vendor of the requested skill id to have access to the resource. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, GetCustomerTreatmentOverrideResponse_f64f689f, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "get_customer_treatment_override_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/treatmentOverrides/~current' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.get_customer_treatment_override_response.GetCustomerTreatmentOverrideResponse", status_code=200, message="Returned customer treatment override details.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.get_customer_treatment_override_response.GetCustomerTreatmentOverrideResponse") + + if full_response: + return api_response + return api_response.body + + + def set_customer_treatment_override_v1(self, skill_id, experiment_id, set_customer_treatment_override_request, **kwargs): + # type: (str, str, SetCustomerTreatmentOverrideRequest_94022e79, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Adds the requesting user's customer treatment override to an existing experiment. The current user must be under the same skill vendor of the requested skill id to have access to the resource. Only the current user can attempt to add the override of their own customer account to an experiment. Can only be called before the experiment is enabled. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param experiment_id: (required) Identifies the experiment in a skill. + :type experiment_id: str + :param set_customer_treatment_override_request: (required) Defines the request body for adding this customer's treatment override to an experiment. + :type set_customer_treatment_override_request: ask_smapi_model.v1.skill.experiment.set_customer_treatment_override_request.SetCustomerTreatmentOverrideRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "set_customer_treatment_override_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'experiment_id' is set + if ('experiment_id' not in params) or (params['experiment_id'] is None): + raise ValueError( + "Missing the required parameter `experiment_id` when calling `" + operation_name + "`") + # verify the required parameter 'set_customer_treatment_override_request' is set + if ('set_customer_treatment_override_request' not in params) or (params['set_customer_treatment_override_request'] is None): + raise ValueError( + "Missing the required parameter `set_customer_treatment_override_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments/{experimentId}/treatmentOverrides/~current' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + if 'experiment_id' in params: + path_params['experimentId'] = params['experiment_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'set_customer_treatment_override_request' in params: + body_params = params['set_customer_treatment_override_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="PUT", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + + def list_experiments_v1(self, skill_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentsResponse_c5b07ecb] + """ + Gets a list of all experiments associated with this skill id. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. + :type next_token: str + :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. + :type max_results: int + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentsResponse_c5b07ecb] + """ + operation_name = "list_experiments_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + + query_params = [] # type: List + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + + header_params = [] # type: List + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.experiment.list_experiments_response.ListExperimentsResponse", status_code=200, message="Returned skill experiments.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_smapi_model.v1.skill.experiment.list_experiments_response.ListExperimentsResponse") + + if full_response: + return api_response + return api_response.body + + + def create_experiment_v1(self, skill_id, create_experiment_request, **kwargs): + # type: (str, CreateExperimentRequest_abced22d, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + Create a new experiment for a skill. + + :param skill_id: (required) The skill ID. + :type skill_id: str + :param create_experiment_request: (required) Defines the request body for creating an experiment. + :type create_experiment_request: ask_smapi_model.v1.skill.experiment.create_experiment_request.CreateExperimentRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] + """ + operation_name = "create_experiment_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'skill_id' is set + if ('skill_id' not in params) or (params['skill_id'] is None): + raise ValueError( + "Missing the required parameter `skill_id` when calling `" + operation_name + "`") + # verify the required parameter 'create_experiment_request' is set + if ('create_experiment_request' not in params) or (params['create_experiment_request'] is None): + raise ValueError( + "Missing the required parameter `create_experiment_request` when calling `" + operation_name + "`") + + resource_path = '/v1/skills/{skillId}/experiments' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'skill_id' in params: + path_params['skillId'] = params['skill_id'] + + query_params = [] # type: List + + header_params = [] # type: List + + body_params = None + if 'create_experiment_request' in params: + body_params = params['create_experiment_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_from_refresh_token() + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=201, message="Experiment created. Returns the generated experiment identifier in 'Location' header.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) + error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + def get_utterance_data_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, IntentRequests_35db15c7] """ diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index b4e5704..773130f 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .create_catalog_request import CreateCatalogRequest -from .catalog_type import CatalogType from .catalog_usage import CatalogUsage -from .catalog_details import CatalogDetails -from .catalog_summary import CatalogSummary from .list_catalogs_response import ListCatalogsResponse +from .catalog_type import CatalogType +from .catalog_summary import CatalogSummary +from .catalog_details import CatalogDetails diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index b05be38..796b940 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .create_content_upload_response import CreateContentUploadResponse +from .get_content_upload_response import GetContentUploadResponse +from .list_uploads_response import ListUploadsResponse from .ingestion_status import IngestionStatus -from .file_upload_status import FileUploadStatus -from .presigned_upload_part import PresignedUploadPart from .complete_upload_request import CompleteUploadRequest from .content_upload_summary import ContentUploadSummary -from .pre_signed_url_item import PreSignedUrlItem -from .list_uploads_response import ListUploadsResponse from .create_content_upload_request import CreateContentUploadRequest -from .get_content_upload_response import GetContentUploadResponse -from .upload_status import UploadStatus -from .content_upload_file_summary import ContentUploadFileSummary from .ingestion_step_name import IngestionStepName +from .pre_signed_url_item import PreSignedUrlItem +from .content_upload_file_summary import ContentUploadFileSummary +from .file_upload_status import FileUploadStatus +from .presigned_upload_part import PresignedUploadPart from .upload_ingestion_step import UploadIngestionStep +from .upload_status import UploadStatus +from .create_content_upload_response import CreateContentUploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index d67b9c8..4f6410b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import +from .subscriber_summary import SubscriberSummary from .subscriber_info import SubscriberInfo from .endpoint_aws_authorization import EndpointAwsAuthorization +from .update_subscriber_request import UpdateSubscriberRequest from .endpoint_authorization_type import EndpointAuthorizationType +from .create_subscriber_request import CreateSubscriberRequest +from .subscriber_status import SubscriberStatus from .endpoint_authorization import EndpointAuthorization from .list_subscribers_response import ListSubscribersResponse from .endpoint import Endpoint -from .create_subscriber_request import CreateSubscriberRequest -from .subscriber_summary import SubscriberSummary -from .update_subscriber_request import UpdateSubscriberRequest -from .subscriber_status import SubscriberStatus diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index d540133..63bd4ab 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .event import Event -from .list_subscriptions_response import ListSubscriptionsResponse -from .update_subscription_request import UpdateSubscriptionRequest -from .subscription_summary import SubscriptionSummary from .subscription_info import SubscriptionInfo from .create_subscription_request import CreateSubscriptionRequest +from .subscription_summary import SubscriptionSummary +from .update_subscription_request import UpdateSubscriptionRequest +from .list_subscriptions_response import ListSubscriptionsResponse +from .event import Event diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index 79ce942..578e938 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .skill_event_attributes import SkillEventAttributes +from .base_schema import BaseSchema +from .skill_attributes import SkillAttributes from .subscription_attributes import SubscriptionAttributes -from .interaction_model_event_attributes import InteractionModelEventAttributes from .actor_attributes import ActorAttributes -from .interaction_model_attributes import InteractionModelAttributes -from .skill_attributes import SkillAttributes -from .skill_review_event_attributes import SkillReviewEventAttributes from .request_status import RequestStatus +from .interaction_model_event_attributes import InteractionModelEventAttributes +from .skill_review_event_attributes import SkillReviewEventAttributes +from .skill_event_attributes import SkillEventAttributes from .skill_review_attributes import SkillReviewAttributes -from .base_schema import BaseSchema +from .interaction_model_attributes import InteractionModelAttributes diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py index 6d608a5..1f26d6b 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .manifest_update import ManifestUpdate from .interaction_model_update import InteractionModelUpdate +from .manifest_update import ManifestUpdate from .skill_publish import SkillPublish from .skill_certification import SkillCertification diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index a1ae581..150e884 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .link import Link +from .stage_v2_type import StageV2Type +from .stage_type import StageType from .error import Error -from .bad_request_error import BadRequestError from .links import Links -from .stage_type import StageType -from .stage_v2_type import StageV2Type +from .link import Link +from .bad_request_error import BadRequestError diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 79cb980..174c838 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .response_pagination_context import ResponsePaginationContext from .client_filter import ClientFilter from .operation_filter import OperationFilter -from .request_filters import RequestFilters from .sort_direction import SortDirection -from .audit_logs_request import AuditLogsRequest from .client import Client -from .sort_field import SortField -from .resource import Resource -from .requester_filter import RequesterFilter -from .requester import Requester -from .operation import Operation +from .audit_log import AuditLog from .request_pagination_context import RequestPaginationContext +from .requester import Requester +from .requester_filter import RequesterFilter +from .response_pagination_context import ResponsePaginationContext +from .audit_logs_request import AuditLogsRequest from .audit_logs_response import AuditLogsResponse +from .request_filters import RequestFilters +from .resource import Resource +from .operation import Operation +from .sort_field import SortField from .resource_filter import ResourceFilter from .resource_type_enum import ResourceTypeEnum -from .audit_log import AuditLog diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py index 8c5e896..a051feb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .create_content_upload_url_request import CreateContentUploadUrlRequest from .create_content_upload_url_response import CreateContentUploadUrlResponse from .presigned_upload_part_items import PresignedUploadPartItems -from .create_content_upload_url_request import CreateContentUploadUrlRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index 7c7fc43..4798a9a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .get_content_upload_response import GetContentUploadResponse from .ingestion_status import IngestionStatus +from .ingestion_step_name import IngestionStepName +from .pre_signed_url_item import PreSignedUrlItem +from .content_upload_file_summary import ContentUploadFileSummary from .file_upload_status import FileUploadStatus from .pre_signed_url import PreSignedUrl -from .pre_signed_url_item import PreSignedUrlItem -from .location import Location -from .get_content_upload_response import GetContentUploadResponse +from .upload_ingestion_step import UploadIngestionStep from .upload_status import UploadStatus -from .content_upload_file_summary import ContentUploadFileSummary +from .location import Location from .catalog_upload_base import CatalogUploadBase -from .ingestion_step_name import IngestionStepName -from .upload_ingestion_step import UploadIngestionStep diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 52d95a8..d0e5108 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .promotable_state import PromotableState -from .list_in_skill_product_response import ListInSkillProductResponse -from .editable_state import EditableState -from .tax_information import TaxInformation -from .in_skill_product_summary_response import InSkillProductSummaryResponse -from .price_listing import PriceListing -from .privacy_and_compliance import PrivacyAndCompliance -from .publishing_information import PublishingInformation from .localized_publishing_information import LocalizedPublishingInformation -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance -from .in_skill_product_summary import InSkillProductSummary +from .list_in_skill_product import ListInSkillProduct from .custom_product_prompts import CustomProductPrompts +from .price_listing import PriceListing +from .distribution_countries import DistributionCountries +from .tax_information import TaxInformation +from .in_skill_product_definition import InSkillProductDefinition +from .update_in_skill_product_request import UpdateInSkillProductRequest +from .isp_summary_links import IspSummaryLinks from .associated_skill_response import AssociatedSkillResponse +from .status import Status +from .in_skill_product_summary import InSkillProductSummary +from .subscription_information import SubscriptionInformation +from .currency import Currency +from .marketplace_pricing import MarketplacePricing from .subscription_payment_frequency import SubscriptionPaymentFrequency from .summary_price_listing import SummaryPriceListing -from .subscription_information import SubscriptionInformation -from .purchasable_state import PurchasableState from .product_response import ProductResponse -from .isp_summary_links import IspSummaryLinks +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance from .create_in_skill_product_request import CreateInSkillProductRequest +from .list_in_skill_product_response import ListInSkillProductResponse +from .purchasable_state import PurchasableState +from .promotable_state import PromotableState +from .summary_marketplace_pricing import SummaryMarketplacePricing +from .editable_state import EditableState +from .privacy_and_compliance import PrivacyAndCompliance from .product_type import ProductType +from .publishing_information import PublishingInformation +from .in_skill_product_summary_response import InSkillProductSummaryResponse from .tax_information_category import TaxInformationCategory -from .currency import Currency -from .distribution_countries import DistributionCountries -from .in_skill_product_definition import InSkillProductDefinition -from .summary_marketplace_pricing import SummaryMarketplacePricing -from .list_in_skill_product import ListInSkillProduct -from .marketplace_pricing import MarketplacePricing -from .status import Status -from .update_in_skill_product_request import UpdateInSkillProductRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 65e4f45..5c14613 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import -from .version_submission_status import VersionSubmissionStatus -from .export_response import ExportResponse -from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .instance import Instance -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus -from .image_attributes import ImageAttributes -from .validation_endpoint import ValidationEndpoint -from .clone_locale_status import CloneLocaleStatus -from .clone_locale_request import CloneLocaleRequest -from .validation_data_types import ValidationDataTypes -from .validation_failure_reason import ValidationFailureReason from .rollback_request_status_types import RollbackRequestStatusTypes -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .skill_messaging_credentials import SkillMessagingCredentials -from .withdraw_request import WithdrawRequest -from .resource_import_status import ResourceImportStatus +from .list_skill_response import ListSkillResponse +from .image_attributes import ImageAttributes from .import_response_skill import ImportResponseSkill -from .create_rollback_request import CreateRollbackRequest -from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest +from .export_response_skill import ExportResponseSkill +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest from .rollback_request_status import RollbackRequestStatus -from .clone_locale_status_response import CloneLocaleStatusResponse -from .skill_version import SkillVersion -from .skill_interaction_model_status import SkillInteractionModelStatus -from .create_rollback_response import CreateRollbackResponse from .format import Format -from .skill_summary_apis import SkillSummaryApis -from .create_skill_response import CreateSkillResponse -from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .ssl_certificate_payload import SSLCertificatePayload -from .export_response_skill import ExportResponseSkill -from .skill_resources_enum import SkillResourcesEnum -from .action import Action -from .build_step_name import BuildStepName -from .validation_details import ValidationDetails -from .reason import Reason -from .list_skill_response import ListSkillResponse from .version_submission import VersionSubmission -from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .image_dimension import ImageDimension +from .skill_status import SkillStatus from .image_size import ImageSize -from .validation_failure_type import ValidationFailureType -from .validation_feature import ValidationFeature +from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest +from .create_skill_response import CreateSkillResponse from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .list_skill_versions_response import ListSkillVersionsResponse -from .clone_locale_stage_type import CloneLocaleStageType -from .regional_ssl_certificate import RegionalSSLCertificate -from .agreement_type import AgreementType -from .publication_method import PublicationMethod -from .clone_locale_resource_status import CloneLocaleResourceStatus -from .image_size_unit import ImageSizeUnit +from .overwrite_mode import OverwriteMode +from .image_dimension import ImageDimension +from .create_rollback_response import CreateRollbackResponse +from .skill_resources_enum import SkillResourcesEnum +from .import_response import ImportResponse from .update_skill_with_package_request import UpdateSkillWithPackageRequest -from .skill_status import SkillStatus +from .list_skill_versions_response import ListSkillVersionsResponse from .build_step import BuildStep -from .overwrite_mode import OverwriteMode -from .response_status import ResponseStatus -from .skill_credentials import SkillCredentials -from .clone_locale_request_status import CloneLocaleRequestStatus -from .build_details import BuildDetails +from .version_submission_status import VersionSubmissionStatus from .manifest_last_update_request import ManifestLastUpdateRequest -from .skill_summary import SkillSummary -from .standardized_error import StandardizedError -from .publication_status import PublicationStatus -from .create_skill_request import CreateSkillRequest +from .publication_method import PublicationMethod +from .action import Action +from .clone_locale_stage_type import CloneLocaleStageType from .status import Status +from .skill_interaction_model_status import SkillInteractionModelStatus +from .validation_endpoint import ValidationEndpoint +from .clone_locale_status import CloneLocaleStatus +from .publication_status import PublicationStatus +from .skill_summary import SkillSummary +from .create_rollback_request import CreateRollbackRequest +from .withdraw_request import WithdrawRequest +from .create_skill_with_package_request import CreateSkillWithPackageRequest from .manifest_status import ManifestStatus -from .import_response import ImportResponse -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .hosted_skill_deployment_status import HostedSkillDeploymentStatus +from .ssl_certificate_payload import SSLCertificatePayload +from .validation_details import ValidationDetails +from .agreement_type import AgreementType +from .skill_messaging_credentials import SkillMessagingCredentials +from .instance import Instance +from .validation_feature import ValidationFeature +from .validation_data_types import ValidationDataTypes from .upload_response import UploadResponse +from .create_skill_request import CreateSkillRequest +from .standardized_error import StandardizedError +from .reason import Reason +from .validation_failure_reason import ValidationFailureReason +from .clone_locale_request import CloneLocaleRequest +from .response_status import ResponseStatus +from .regional_ssl_certificate import RegionalSSLCertificate +from .build_details import BuildDetails +from .validation_failure_type import ValidationFailureType +from .skill_version import SkillVersion +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus +from .build_step_name import BuildStepName +from .clone_locale_status_response import CloneLocaleStatusResponse +from .interaction_model_last_update_request import InteractionModelLastUpdateRequest +from .skill_summary_apis import SkillSummaryApis +from .skill_credentials import SkillCredentials +from .clone_locale_request_status import CloneLocaleRequestStatus +from .image_size_unit import ImageSizeUnit +from .clone_locale_resource_status import CloneLocaleResourceStatus +from .export_response import ExportResponse +from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest +from .resource_import_status import ResourceImportStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 71ed772..a88ba5f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -15,9 +15,9 @@ from __future__ import absolute_import from .account_linking_response import AccountLinkingResponse -from .account_linking_type import AccountLinkingType from .platform_type import PlatformType from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl -from .account_linking_request_payload import AccountLinkingRequestPayload from .access_token_scheme_type import AccessTokenSchemeType +from .account_linking_type import AccountLinkingType from .account_linking_request import AccountLinkingRequest +from .account_linking_request_payload import AccountLinkingRequestPayload diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index e3b97e3..85ff419 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_repository import HostedSkillRepository +from .hosted_skill_info import HostedSkillInfo +from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest +from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials +from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosted_skill_runtime import HostedSkillRuntime +from .hosted_skill_metadata import HostedSkillMetadata from .alexa_hosted_config import AlexaHostedConfig from .hosted_skill_permission_type import HostedSkillPermissionType -from .hosted_skill_info import HostedSkillInfo -from .hosted_skill_repository_info import HostedSkillRepositoryInfo from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList -from .hosted_skill_runtime import HostedSkillRuntime -from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosted_skill_region import HostedSkillRegion from .hosting_configuration import HostingConfiguration from .hosted_skill_permission import HostedSkillPermission -from .hosted_skill_metadata import HostedSkillMetadata -from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest -from .hosted_skill_region import HostedSkillRegion -from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials +from .hosted_skill_repository import HostedSkillRepository +from .hosted_skill_repository_info import HostedSkillRepositoryInfo diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 4ba2a07..444634b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .annotation_set_metadata import AnnotationSetMetadata +from .annotation_set_items import AnnotationSetItems +from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .annotation import Annotation -from .pagination_context import PaginationContext from .audio_asset import AudioAsset -from .annotation_set_items import AnnotationSetItems -from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse -from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse -from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload -from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse +from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject +from .annotation_with_audio_asset import AnnotationWithAudioAsset from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject -from .annotation_set_metadata import AnnotationSetMetadata -from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload +from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py index 5a53e9c..9a8a0e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py @@ -14,22 +14,22 @@ # from __future__ import absolute_import -from .skill import Skill from .metrics import Metrics -from .annotation import Annotation -from .pagination_context import PaginationContext +from .evaluation_result_output import EvaluationResultOutput +from .evaluation_items import EvaluationItems +from .skill import Skill from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .audio_asset import AudioAsset +from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .annotation import Annotation +from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject from .error_object import ErrorObject -from .evaluation_items import EvaluationItems -from .evaluation_metadata import EvaluationMetadata -from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject -from .evaluation_result_output import EvaluationResultOutput from .evaluation_result_status import EvaluationResultStatus -from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse +from .audio_asset import AudioAsset from .evaluation_metadata_result import EvaluationMetadataResult +from .annotation_with_audio_asset import AnnotationWithAudioAsset from .evaluation_result import EvaluationResult -from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject +from .evaluation_metadata import EvaluationMetadata from .evaluation_status import EvaluationStatus -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject -from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index 9bd75c5..bddac34 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .beta_test import BetaTest from .test_body import TestBody -from .update_beta_test_response import UpdateBetaTestResponse +from .beta_test import BetaTest from .status import Status +from .update_beta_test_response import UpdateBetaTestResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index 08ba1f7..a25743c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .tester import Tester -from .testers_list import TestersList -from .invitation_status import InvitationStatus from .list_testers_response import ListTestersResponse +from .testers_list import TestersList +from .tester import Tester from .tester_with_details import TesterWithDetails +from .invitation_status import InvitationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py index 61d68ef..e44955d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/build_step_name.py @@ -27,15 +27,17 @@ class BuildStepName(Enum): """ - Name of the build step. Possible values - * `DIALOG_MODEL_BUILD` - Build status for dialog model. * `LANGUAGE_MODEL_QUICK_BUILD` - Build status for FST model. * `LANGUAGE_MODEL_FULL_BUILD` - Build status for statistical model. + Name of the build step. Possible values - * `DIALOG_MODEL_BUILD` - Build status for dialog model. * `LANGUAGE_MODEL_QUICK_BUILD` - Build status for FST model. * `LANGUAGE_MODEL_FULL_BUILD` - Build status for statistical model. * `ALEXA_CONVERSATIONS_QUICK_BUILD` - AlexaConversations LowFidelity model build status. * `ALEXA_CONVERSATIONS_FULL_BUILD` - AlexaConversations HighFidelity model build status. - Allowed enum values: [DIALOG_MODEL_BUILD, LANGUAGE_MODEL_QUICK_BUILD, LANGUAGE_MODEL_FULL_BUILD] + Allowed enum values: [DIALOG_MODEL_BUILD, LANGUAGE_MODEL_QUICK_BUILD, LANGUAGE_MODEL_FULL_BUILD, ALEXA_CONVERSATIONS_QUICK_BUILD, ALEXA_CONVERSATIONS_FULL_BUILD] """ DIALOG_MODEL_BUILD = "DIALOG_MODEL_BUILD" LANGUAGE_MODEL_QUICK_BUILD = "LANGUAGE_MODEL_QUICK_BUILD" LANGUAGE_MODEL_FULL_BUILD = "LANGUAGE_MODEL_FULL_BUILD" + ALEXA_CONVERSATIONS_QUICK_BUILD = "ALEXA_CONVERSATIONS_QUICK_BUILD" + ALEXA_CONVERSATIONS_FULL_BUILD = "ALEXA_CONVERSATIONS_FULL_BUILD" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index 3ae1d87..8253458 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .certification_summary import CertificationSummary -from .certification_result import CertificationResult -from .review_tracking_info import ReviewTrackingInfo +from .certification_response import CertificationResponse from .estimation_update import EstimationUpdate +from .review_tracking_info import ReviewTrackingInfo from .list_certifications_response import ListCertificationsResponse -from .distribution_info import DistributionInfo -from .certification_status import CertificationStatus from .publication_failure import PublicationFailure +from .certification_result import CertificationResult +from .certification_status import CertificationStatus from .review_tracking_info_summary import ReviewTrackingInfoSummary -from .certification_response import CertificationResponse +from .distribution_info import DistributionInfo +from .certification_summary import CertificationSummary diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index c02469e..87edd82 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .intent import Intent -from .multi_turn import MultiTurn -from .slot_resolutions import SlotResolutions -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .profile_nlu_selected_intent import ProfileNluSelectedIntent -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems +from .intent import Intent from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .profile_nlu_request import ProfileNluRequest -from .slot import Slot -from .dialog_act_type import DialogActType +from .slot_resolutions import SlotResolutions +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems from .confirmation_status_type import ConfirmationStatusType -from .dialog_act import DialogAct from .profile_nlu_response import ProfileNluResponse -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .dialog_act import DialogAct +from .dialog_act_type import DialogActType +from .multi_turn import MultiTurn +from .slot import Slot diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py new file mode 100644 index 0000000..87d5b4a --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest +from .experiment_trigger import ExperimentTrigger +from .experiment_summary import ExperimentSummary +from .treatment_id import TreatmentId +from .experiment_stopped_reason import ExperimentStoppedReason +from .state import State +from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse +from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse +from .manage_experiment_state_request import ManageExperimentStateRequest +from .metric_type import MetricType +from .state_transition_status import StateTransitionStatus +from .state_transition_error import StateTransitionError +from .update_experiment_request import UpdateExperimentRequest +from .get_experiment_state_response import GetExperimentStateResponse +from .list_experiments_response import ListExperimentsResponse +from .destination_state import DestinationState +from .experiment_history import ExperimentHistory +from .metric_snapshot import MetricSnapshot +from .update_exposure_request import UpdateExposureRequest +from .update_experiment_input import UpdateExperimentInput +from .experiment_information import ExperimentInformation +from .experiment_type import ExperimentType +from .experiment_last_state_transition import ExperimentLastStateTransition +from .metric_snapshot_status import MetricSnapshotStatus +from .metric_values import MetricValues +from .metric_change_direction import MetricChangeDirection +from .create_experiment_request import CreateExperimentRequest +from .metric_configuration import MetricConfiguration +from .metric import Metric +from .create_experiment_input import CreateExperimentInput +from .get_experiment_response import GetExperimentResponse +from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse +from .state_transition_error_type import StateTransitionErrorType +from .target_state import TargetState +from .source_state import SourceState +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_input.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_input.py new file mode 100644 index 0000000..dc1cf66 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_input.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.metric_configuration import MetricConfiguration as MetricConfiguration_7789320a + from ask_smapi_model.v1.skill.experiment.experiment_type import ExperimentType as ExperimentType_316e1574 + + +class CreateExperimentInput(object): + """ + Defines the Experiment body used for requesting an experiment creation. Only includes fields that are editable by the user. + + + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + + """ + deserialized_types = { + 'name': 'str', + 'description': 'str', + 'object_type': 'ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType', + 'planned_duration': 'str', + 'exposure_percentage': 'int', + 'metric_configurations': 'list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration]' + } # type: Dict + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'object_type': 'type', + 'planned_duration': 'plannedDuration', + 'exposure_percentage': 'exposurePercentage', + 'metric_configurations': 'metricConfigurations' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None, description=None, object_type=None, planned_duration=None, exposure_percentage=None, metric_configurations=None): + # type: (Optional[str], Optional[str], Optional[ExperimentType_316e1574], Optional[str], Optional[int], Optional[List[MetricConfiguration_7789320a]]) -> None + """Defines the Experiment body used for requesting an experiment creation. Only includes fields that are editable by the user. + + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + """ + self.__discriminator_value = None # type: str + + self.name = name + self.description = description + self.object_type = object_type + self.planned_duration = planned_duration + self.exposure_percentage = exposure_percentage + self.metric_configurations = metric_configurations + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CreateExperimentInput): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_request.py new file mode 100644 index 0000000..53c3194 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/create_experiment_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.create_experiment_input import CreateExperimentInput as CreateExperimentInput_700f0363 + + +class CreateExperimentRequest(object): + """ + Defines the request body for creating an experiment. + + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.create_experiment_input.CreateExperimentInput + + """ + deserialized_types = { + 'experiment': 'ask_smapi_model.v1.skill.experiment.create_experiment_input.CreateExperimentInput' + } # type: Dict + + attribute_map = { + 'experiment': 'experiment' + } # type: Dict + supports_multiple_types = False + + def __init__(self, experiment=None): + # type: (Optional[CreateExperimentInput_700f0363]) -> None + """Defines the request body for creating an experiment. + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.create_experiment_input.CreateExperimentInput + """ + self.__discriminator_value = None # type: str + + self.experiment = experiment + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CreateExperimentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/destination_state.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/destination_state.py new file mode 100644 index 0000000..500b5ab --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/destination_state.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DestinationState(Enum): + """ + These states are for recording the destination state from a transition action (Created, Pilot, Start, Stop) on the experiment. * `CREATED`: Result state for the 'Create' action. Experiment has been created. * `ENABLED`: Result state for the 'Pilot' action. Experiment configurations are deployed and customer overrides are activated. Actual experiment has not started yet. * `RUNNING`: Result state for the 'Start' action. Experiment has started with the configured exposure. Skill customers selected within the exposure are contributing to the metric data. * `STOPPED`: Result state for the 'Stop' action. Experiment has stopped and all experiment configurations have been removed. All customers will see the C behavior by default. + + + + Allowed enum values: [CREATED, ENABLED, RUNNING, STOPPED] + """ + CREATED = "CREATED" + ENABLED = "ENABLED" + RUNNING = "RUNNING" + STOPPED = "STOPPED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DestinationState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_history.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_history.py new file mode 100644 index 0000000..2b76bcb --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_history.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExperimentHistory(object): + """ + Defines historical properties of a skill experiment. + + + :param creation_time: + :type creation_time: (optional) datetime + :param start_time: + :type start_time: (optional) datetime + :param stopped_reason: The reason an experiment was stopped if experiment was stopped. + :type stopped_reason: (optional) str + + """ + deserialized_types = { + 'creation_time': 'datetime', + 'start_time': 'datetime', + 'stopped_reason': 'str' + } # type: Dict + + attribute_map = { + 'creation_time': 'creationTime', + 'start_time': 'startTime', + 'stopped_reason': 'stoppedReason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, creation_time=None, start_time=None, stopped_reason=None): + # type: (Optional[datetime], Optional[datetime], Optional[str]) -> None + """Defines historical properties of a skill experiment. + + :param creation_time: + :type creation_time: (optional) datetime + :param start_time: + :type start_time: (optional) datetime + :param stopped_reason: The reason an experiment was stopped if experiment was stopped. + :type stopped_reason: (optional) str + """ + self.__discriminator_value = None # type: str + + self.creation_time = creation_time + self.start_time = start_time + self.stopped_reason = stopped_reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentHistory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_information.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_information.py new file mode 100644 index 0000000..ce90e64 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_information.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.state import State as State_1d082829 + from ask_smapi_model.v1.skill.experiment.experiment_trigger import ExperimentTrigger as ExperimentTrigger_634bacae + from ask_smapi_model.v1.skill.experiment.metric_configuration import MetricConfiguration as MetricConfiguration_7789320a + from ask_smapi_model.v1.skill.experiment.experiment_type import ExperimentType as ExperimentType_316e1574 + from ask_smapi_model.v1.skill.experiment.experiment_history import ExperimentHistory as ExperimentHistory_4dc94b66 + + +class ExperimentInformation(object): + """ + Defines the full Experiment body which would contain all experiment details. + + + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param treatment_override_count: The number of overrides which currently exist for the experiment. + :type treatment_override_count: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. This is required by the system that collects metrics and generates the metric reports. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + :param history: + :type history: (optional) ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory + :param trigger: + :type trigger: (optional) ask_smapi_model.v1.skill.experiment.experiment_trigger.ExperimentTrigger + + """ + deserialized_types = { + 'name': 'str', + 'description': 'str', + 'object_type': 'ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType', + 'planned_duration': 'str', + 'exposure_percentage': 'int', + 'treatment_override_count': 'int', + 'metric_configurations': 'list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration]', + 'state': 'ask_smapi_model.v1.skill.experiment.state.State', + 'history': 'ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory', + 'trigger': 'ask_smapi_model.v1.skill.experiment.experiment_trigger.ExperimentTrigger' + } # type: Dict + + attribute_map = { + 'name': 'name', + 'description': 'description', + 'object_type': 'type', + 'planned_duration': 'plannedDuration', + 'exposure_percentage': 'exposurePercentage', + 'treatment_override_count': 'treatmentOverrideCount', + 'metric_configurations': 'metricConfigurations', + 'state': 'state', + 'history': 'history', + 'trigger': 'trigger' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None, description=None, object_type=None, planned_duration=None, exposure_percentage=None, treatment_override_count=None, metric_configurations=None, state=None, history=None, trigger=None): + # type: (Optional[str], Optional[str], Optional[ExperimentType_316e1574], Optional[str], Optional[int], Optional[int], Optional[List[MetricConfiguration_7789320a]], Optional[State_1d082829], Optional[ExperimentHistory_4dc94b66], Optional[ExperimentTrigger_634bacae]) -> None + """Defines the full Experiment body which would contain all experiment details. + + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.experiment_type.ExperimentType + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param treatment_override_count: The number of overrides which currently exist for the experiment. + :type treatment_override_count: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. This is required by the system that collects metrics and generates the metric reports. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + :param history: + :type history: (optional) ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory + :param trigger: + :type trigger: (optional) ask_smapi_model.v1.skill.experiment.experiment_trigger.ExperimentTrigger + """ + self.__discriminator_value = None # type: str + + self.name = name + self.description = description + self.object_type = object_type + self.planned_duration = planned_duration + self.exposure_percentage = exposure_percentage + self.treatment_override_count = treatment_override_count + self.metric_configurations = metric_configurations + self.state = state + self.history = history + self.trigger = trigger + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_last_state_transition.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_last_state_transition.py new file mode 100644 index 0000000..ed17141 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_last_state_transition.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.destination_state import DestinationState as DestinationState_8dc8c95c + from ask_smapi_model.v1.skill.experiment.state_transition_status import StateTransitionStatus as StateTransitionStatus_53bf1e4d + from ask_smapi_model.v1.skill.experiment.source_state import SourceState as SourceState_88a676e0 + from ask_smapi_model.v1.skill.experiment.state_transition_error import StateTransitionError as StateTransitionError_990ec079 + + +class ExperimentLastStateTransition(object): + """ + Defines the last state transition information for the experiment. + + + :param source_state: + :type source_state: (optional) ask_smapi_model.v1.skill.experiment.source_state.SourceState + :param target_state: + :type target_state: (optional) ask_smapi_model.v1.skill.experiment.destination_state.DestinationState + :param status: + :type status: (optional) ask_smapi_model.v1.skill.experiment.state_transition_status.StateTransitionStatus + :param start_time: + :type start_time: (optional) datetime + :param end_time: + :type end_time: (optional) datetime + :param errors: List of error objects which define what errors caused the state transition failure. + :type errors: (optional) list[ask_smapi_model.v1.skill.experiment.state_transition_error.StateTransitionError] + + """ + deserialized_types = { + 'source_state': 'ask_smapi_model.v1.skill.experiment.source_state.SourceState', + 'target_state': 'ask_smapi_model.v1.skill.experiment.destination_state.DestinationState', + 'status': 'ask_smapi_model.v1.skill.experiment.state_transition_status.StateTransitionStatus', + 'start_time': 'datetime', + 'end_time': 'datetime', + 'errors': 'list[ask_smapi_model.v1.skill.experiment.state_transition_error.StateTransitionError]' + } # type: Dict + + attribute_map = { + 'source_state': 'sourceState', + 'target_state': 'targetState', + 'status': 'status', + 'start_time': 'startTime', + 'end_time': 'endTime', + 'errors': 'errors' + } # type: Dict + supports_multiple_types = False + + def __init__(self, source_state=None, target_state=None, status=None, start_time=None, end_time=None, errors=None): + # type: (Optional[SourceState_88a676e0], Optional[DestinationState_8dc8c95c], Optional[StateTransitionStatus_53bf1e4d], Optional[datetime], Optional[datetime], Optional[List[StateTransitionError_990ec079]]) -> None + """Defines the last state transition information for the experiment. + + :param source_state: + :type source_state: (optional) ask_smapi_model.v1.skill.experiment.source_state.SourceState + :param target_state: + :type target_state: (optional) ask_smapi_model.v1.skill.experiment.destination_state.DestinationState + :param status: + :type status: (optional) ask_smapi_model.v1.skill.experiment.state_transition_status.StateTransitionStatus + :param start_time: + :type start_time: (optional) datetime + :param end_time: + :type end_time: (optional) datetime + :param errors: List of error objects which define what errors caused the state transition failure. + :type errors: (optional) list[ask_smapi_model.v1.skill.experiment.state_transition_error.StateTransitionError] + """ + self.__discriminator_value = None # type: str + + self.source_state = source_state + self.target_state = target_state + self.status = status + self.start_time = start_time + self.end_time = end_time + self.errors = errors + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentLastStateTransition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_stopped_reason.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_stopped_reason.py new file mode 100644 index 0000000..74cfb1c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_stopped_reason.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExperimentStoppedReason(Enum): + """ + The reason indicating why an exerpiment was stopped. If none is chosen then default to DEVELOPER_REQUEST. Only used when putting experiment into STOPPED state. + + + + Allowed enum values: [EXPERIMENT_SUCCESS, EXPERIMENT_ISSUE] + """ + EXPERIMENT_SUCCESS = "EXPERIMENT_SUCCESS" + EXPERIMENT_ISSUE = "EXPERIMENT_ISSUE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentStoppedReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_summary.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_summary.py new file mode 100644 index 0000000..fe59931 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_summary.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.state import State as State_1d082829 + from ask_smapi_model.v1.skill.experiment.experiment_history import ExperimentHistory as ExperimentHistory_4dc94b66 + + +class ExperimentSummary(object): + """ + Defines the shortened Experiment body which would contain a summary of experiment information. + + + :param experiment_id: Identifier for experiment within a skill. + :type experiment_id: (optional) str + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + :param experiment_history: + :type experiment_history: (optional) ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory + + """ + deserialized_types = { + 'experiment_id': 'str', + 'name': 'str', + 'state': 'ask_smapi_model.v1.skill.experiment.state.State', + 'experiment_history': 'ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory' + } # type: Dict + + attribute_map = { + 'experiment_id': 'experimentId', + 'name': 'name', + 'state': 'state', + 'experiment_history': 'experimentHistory' + } # type: Dict + supports_multiple_types = False + + def __init__(self, experiment_id=None, name=None, state=None, experiment_history=None): + # type: (Optional[str], Optional[str], Optional[State_1d082829], Optional[ExperimentHistory_4dc94b66]) -> None + """Defines the shortened Experiment body which would contain a summary of experiment information. + + :param experiment_id: Identifier for experiment within a skill. + :type experiment_id: (optional) str + :param name: Name that developer assigns to the experiment for easier identification. + :type name: (optional) str + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + :param experiment_history: + :type experiment_history: (optional) ask_smapi_model.v1.skill.experiment.experiment_history.ExperimentHistory + """ + self.__discriminator_value = None # type: str + + self.experiment_id = experiment_id + self.name = name + self.state = state + self.experiment_history = experiment_history + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_trigger.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_trigger.py new file mode 100644 index 0000000..01f74a8 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_trigger.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExperimentTrigger(object): + """ + Defines trigger properties of a skill experiment. + + + :param scheduled_end_time: + :type scheduled_end_time: (optional) datetime + + """ + deserialized_types = { + 'scheduled_end_time': 'datetime' + } # type: Dict + + attribute_map = { + 'scheduled_end_time': 'scheduledEndTime' + } # type: Dict + supports_multiple_types = False + + def __init__(self, scheduled_end_time=None): + # type: (Optional[datetime]) -> None + """Defines trigger properties of a skill experiment. + + :param scheduled_end_time: + :type scheduled_end_time: (optional) datetime + """ + self.__discriminator_value = None # type: str + + self.scheduled_end_time = scheduled_end_time + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_type.py new file mode 100644 index 0000000..7191e1c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/experiment_type.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ExperimentType(Enum): + """ + Type of the experiment which directly affects the skill version used for T1. C will always point to the skill version in the skill's LIVE stage regardless of experiment type. + + + + Allowed enum values: [ENDPOINT_BASED] + """ + ENDPOINT_BASED = "ENDPOINT_BASED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExperimentType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_customer_treatment_override_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_customer_treatment_override_response.py new file mode 100644 index 0000000..5454c93 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_customer_treatment_override_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.treatment_id import TreatmentId as TreatmentId_7e9594b2 + + +class GetCustomerTreatmentOverrideResponse(object): + """ + Defines the response body when this customer's treatment override information is requested. + + + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + :param treatment_override_count: The number of overrides which currently exist for the experiment. + :type treatment_override_count: (optional) int + + """ + deserialized_types = { + 'treatment_id': 'ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId', + 'treatment_override_count': 'int' + } # type: Dict + + attribute_map = { + 'treatment_id': 'treatmentId', + 'treatment_override_count': 'treatmentOverrideCount' + } # type: Dict + supports_multiple_types = False + + def __init__(self, treatment_id=None, treatment_override_count=None): + # type: (Optional[TreatmentId_7e9594b2], Optional[int]) -> None + """Defines the response body when this customer's treatment override information is requested. + + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + :param treatment_override_count: The number of overrides which currently exist for the experiment. + :type treatment_override_count: (optional) int + """ + self.__discriminator_value = None # type: str + + self.treatment_id = treatment_id + self.treatment_override_count = treatment_override_count + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetCustomerTreatmentOverrideResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_metric_snapshot_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_metric_snapshot_response.py new file mode 100644 index 0000000..1da9a7f --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_metric_snapshot_response.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.metric_snapshot_status import MetricSnapshotStatus as MetricSnapshotStatus_92a961cb + from ask_smapi_model.v1.skill.experiment.metric import Metric as Metric_9f5de3 + + +class GetExperimentMetricSnapshotResponse(object): + """ + Defines the response body for retrieving the experiment results. + + + :param status: + :type status: (optional) ask_smapi_model.v1.skill.experiment.metric_snapshot_status.MetricSnapshotStatus + :param status_reason: The reason why the metric snapshot status is unreliable. + :type status_reason: (optional) str + :param metrics: List of actual experiment metrics represented by a metric snapshot. + :type metrics: (optional) list[ask_smapi_model.v1.skill.experiment.metric.Metric] + + """ + deserialized_types = { + 'status': 'ask_smapi_model.v1.skill.experiment.metric_snapshot_status.MetricSnapshotStatus', + 'status_reason': 'str', + 'metrics': 'list[ask_smapi_model.v1.skill.experiment.metric.Metric]' + } # type: Dict + + attribute_map = { + 'status': 'status', + 'status_reason': 'statusReason', + 'metrics': 'metrics' + } # type: Dict + supports_multiple_types = False + + def __init__(self, status=None, status_reason=None, metrics=None): + # type: (Optional[MetricSnapshotStatus_92a961cb], Optional[str], Optional[List[Metric_9f5de3]]) -> None + """Defines the response body for retrieving the experiment results. + + :param status: + :type status: (optional) ask_smapi_model.v1.skill.experiment.metric_snapshot_status.MetricSnapshotStatus + :param status_reason: The reason why the metric snapshot status is unreliable. + :type status_reason: (optional) str + :param metrics: List of actual experiment metrics represented by a metric snapshot. + :type metrics: (optional) list[ask_smapi_model.v1.skill.experiment.metric.Metric] + """ + self.__discriminator_value = None # type: str + + self.status = status + self.status_reason = status_reason + self.metrics = metrics + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetExperimentMetricSnapshotResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_response.py new file mode 100644 index 0000000..5b7cc9c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.experiment_last_state_transition import ExperimentLastStateTransition as ExperimentLastStateTransition_f996ed1a + from ask_smapi_model.v1.skill.experiment.experiment_information import ExperimentInformation as ExperimentInformation_60aa8516 + + +class GetExperimentResponse(object): + """ + Defines the response body for retrieving an experiment. + + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.experiment_information.ExperimentInformation + :param last_state_transition: + :type last_state_transition: (optional) ask_smapi_model.v1.skill.experiment.experiment_last_state_transition.ExperimentLastStateTransition + + """ + deserialized_types = { + 'experiment': 'ask_smapi_model.v1.skill.experiment.experiment_information.ExperimentInformation', + 'last_state_transition': 'ask_smapi_model.v1.skill.experiment.experiment_last_state_transition.ExperimentLastStateTransition' + } # type: Dict + + attribute_map = { + 'experiment': 'experiment', + 'last_state_transition': 'lastStateTransition' + } # type: Dict + supports_multiple_types = False + + def __init__(self, experiment=None, last_state_transition=None): + # type: (Optional[ExperimentInformation_60aa8516], Optional[ExperimentLastStateTransition_f996ed1a]) -> None + """Defines the response body for retrieving an experiment. + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.experiment_information.ExperimentInformation + :param last_state_transition: + :type last_state_transition: (optional) ask_smapi_model.v1.skill.experiment.experiment_last_state_transition.ExperimentLastStateTransition + """ + self.__discriminator_value = None # type: str + + self.experiment = experiment + self.last_state_transition = last_state_transition + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetExperimentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_state_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_state_response.py new file mode 100644 index 0000000..4feb3b3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/get_experiment_state_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.state import State as State_1d082829 + + +class GetExperimentStateResponse(object): + """ + Defines the response body for retrieving the current experiment state. + + + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + + """ + deserialized_types = { + 'state': 'ask_smapi_model.v1.skill.experiment.state.State' + } # type: Dict + + attribute_map = { + 'state': 'state' + } # type: Dict + supports_multiple_types = False + + def __init__(self, state=None): + # type: (Optional[State_1d082829]) -> None + """Defines the response body for retrieving the current experiment state. + + :param state: + :type state: (optional) ask_smapi_model.v1.skill.experiment.state.State + """ + self.__discriminator_value = None # type: str + + self.state = state + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetExperimentStateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiment_metric_snapshots_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiment_metric_snapshots_response.py new file mode 100644 index 0000000..1dc8457 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiment_metric_snapshots_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.pagination_context import PaginationContext as PaginationContext_caf5a7fc + from ask_smapi_model.v1.skill.experiment.metric_snapshot import MetricSnapshot as MetricSnapshot_9f57f21a + + +class ListExperimentMetricSnapshotsResponse(object): + """ + Defines the response body for retrieving the experiment metric snapshots. + + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext + :param metric_snapshots: List of experiment metric snapshots. + :type metric_snapshots: (optional) list[ask_smapi_model.v1.skill.experiment.metric_snapshot.MetricSnapshot] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext', + 'metric_snapshots': 'list[ask_smapi_model.v1.skill.experiment.metric_snapshot.MetricSnapshot]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'metric_snapshots': 'metricSnapshots' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, metric_snapshots=None): + # type: (Optional[PaginationContext_caf5a7fc], Optional[List[MetricSnapshot_9f57f21a]]) -> None + """Defines the response body for retrieving the experiment metric snapshots. + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext + :param metric_snapshots: List of experiment metric snapshots. + :type metric_snapshots: (optional) list[ask_smapi_model.v1.skill.experiment.metric_snapshot.MetricSnapshot] + """ + self.__discriminator_value = None # type: str + + self.pagination_context = pagination_context + self.metric_snapshots = metric_snapshots + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListExperimentMetricSnapshotsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiments_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiments_response.py new file mode 100644 index 0000000..ecb3e10 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/list_experiments_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.pagination_context import PaginationContext as PaginationContext_caf5a7fc + from ask_smapi_model.v1.skill.experiment.experiment_summary import ExperimentSummary as ExperimentSummary_ac6f10a + + +class ListExperimentsResponse(object): + """ + Defines the response body for retrieving all the experiments of a skill. + + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext + :param experiments: List of experiments with select fields returned. + :type experiments: (optional) list[ask_smapi_model.v1.skill.experiment.experiment_summary.ExperimentSummary] + + """ + deserialized_types = { + 'pagination_context': 'ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext', + 'experiments': 'list[ask_smapi_model.v1.skill.experiment.experiment_summary.ExperimentSummary]' + } # type: Dict + + attribute_map = { + 'pagination_context': 'paginationContext', + 'experiments': 'experiments' + } # type: Dict + supports_multiple_types = False + + def __init__(self, pagination_context=None, experiments=None): + # type: (Optional[PaginationContext_caf5a7fc], Optional[List[ExperimentSummary_ac6f10a]]) -> None + """Defines the response body for retrieving all the experiments of a skill. + + :param pagination_context: + :type pagination_context: (optional) ask_smapi_model.v1.skill.experiment.pagination_context.PaginationContext + :param experiments: List of experiments with select fields returned. + :type experiments: (optional) list[ask_smapi_model.v1.skill.experiment.experiment_summary.ExperimentSummary] + """ + self.__discriminator_value = None # type: str + + self.pagination_context = pagination_context + self.experiments = experiments + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ListExperimentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/manage_experiment_state_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/manage_experiment_state_request.py new file mode 100644 index 0000000..b9ee070 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/manage_experiment_state_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.experiment_stopped_reason import ExperimentStoppedReason as ExperimentStoppedReason_13db0673 + from ask_smapi_model.v1.skill.experiment.target_state import TargetState as TargetState_bcd8bf20 + + +class ManageExperimentStateRequest(object): + """ + Defines the request body for performing an experiment action to move it to a target state. + + + :param target_state: + :type target_state: (optional) ask_smapi_model.v1.skill.experiment.target_state.TargetState + :param stopped_reason: + :type stopped_reason: (optional) ask_smapi_model.v1.skill.experiment.experiment_stopped_reason.ExperimentStoppedReason + + """ + deserialized_types = { + 'target_state': 'ask_smapi_model.v1.skill.experiment.target_state.TargetState', + 'stopped_reason': 'ask_smapi_model.v1.skill.experiment.experiment_stopped_reason.ExperimentStoppedReason' + } # type: Dict + + attribute_map = { + 'target_state': 'targetState', + 'stopped_reason': 'stoppedReason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, target_state=None, stopped_reason=None): + # type: (Optional[TargetState_bcd8bf20], Optional[ExperimentStoppedReason_13db0673]) -> None + """Defines the request body for performing an experiment action to move it to a target state. + + :param target_state: + :type target_state: (optional) ask_smapi_model.v1.skill.experiment.target_state.TargetState + :param stopped_reason: + :type stopped_reason: (optional) ask_smapi_model.v1.skill.experiment.experiment_stopped_reason.ExperimentStoppedReason + """ + self.__discriminator_value = None # type: str + + self.target_state = target_state + self.stopped_reason = stopped_reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ManageExperimentStateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric.py new file mode 100644 index 0000000..dadfb2e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.treatment_id import TreatmentId as TreatmentId_7e9594b2 + from ask_smapi_model.v1.skill.experiment.metric_values import MetricValues as MetricValues_681f475a + + +class Metric(object): + """ + Defines the metrics body. + + + :param name: Unique name that identifies experiment metric. + :type name: (optional) str + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + :param values: + :type values: (optional) ask_smapi_model.v1.skill.experiment.metric_values.MetricValues + + """ + deserialized_types = { + 'name': 'str', + 'treatment_id': 'ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId', + 'values': 'ask_smapi_model.v1.skill.experiment.metric_values.MetricValues' + } # type: Dict + + attribute_map = { + 'name': 'name', + 'treatment_id': 'treatmentId', + 'values': 'values' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None, treatment_id=None, values=None): + # type: (Optional[str], Optional[TreatmentId_7e9594b2], Optional[MetricValues_681f475a]) -> None + """Defines the metrics body. + + :param name: Unique name that identifies experiment metric. + :type name: (optional) str + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + :param values: + :type values: (optional) ask_smapi_model.v1.skill.experiment.metric_values.MetricValues + """ + self.__discriminator_value = None # type: str + + self.name = name + self.treatment_id = treatment_id + self.values = values + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Metric): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_change_direction.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_change_direction.py new file mode 100644 index 0000000..1683e51 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_change_direction.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class MetricChangeDirection(Enum): + """ + The direction that an experiment metric is expected to trend during the experiment. * `INCREASE` - An upward change in metric value. * `DECREASE` - A downward change in metric value. + + + + Allowed enum values: [INCREASE, DECREASE] + """ + INCREASE = "INCREASE" + DECREASE = "DECREASE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricChangeDirection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_configuration.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_configuration.py new file mode 100644 index 0000000..8e4d736 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_configuration.py @@ -0,0 +1,124 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.metric_change_direction import MetricChangeDirection as MetricChangeDirection_b2da5785 + from ask_smapi_model.v1.skill.experiment.metric_type import MetricType as MetricType_7b65055a + + +class MetricConfiguration(object): + """ + Configures the metrics that will be captured for the skill experiment. This is required by the system that collects metrics and generates the metric reports. + + + :param name: Unique name that identifies experiment metric. + :type name: (optional) str + :param metric_types: List of types that the metric has been assigned. + :type metric_types: (optional) list[ask_smapi_model.v1.skill.experiment.metric_type.MetricType] + :param expected_change: + :type expected_change: (optional) ask_smapi_model.v1.skill.experiment.metric_change_direction.MetricChangeDirection + + """ + deserialized_types = { + 'name': 'str', + 'metric_types': 'list[ask_smapi_model.v1.skill.experiment.metric_type.MetricType]', + 'expected_change': 'ask_smapi_model.v1.skill.experiment.metric_change_direction.MetricChangeDirection' + } # type: Dict + + attribute_map = { + 'name': 'name', + 'metric_types': 'metricTypes', + 'expected_change': 'expectedChange' + } # type: Dict + supports_multiple_types = False + + def __init__(self, name=None, metric_types=None, expected_change=None): + # type: (Optional[str], Optional[List[MetricType_7b65055a]], Optional[MetricChangeDirection_b2da5785]) -> None + """Configures the metrics that will be captured for the skill experiment. This is required by the system that collects metrics and generates the metric reports. + + :param name: Unique name that identifies experiment metric. + :type name: (optional) str + :param metric_types: List of types that the metric has been assigned. + :type metric_types: (optional) list[ask_smapi_model.v1.skill.experiment.metric_type.MetricType] + :param expected_change: + :type expected_change: (optional) ask_smapi_model.v1.skill.experiment.metric_change_direction.MetricChangeDirection + """ + self.__discriminator_value = None # type: str + + self.name = name + self.metric_types = metric_types + self.expected_change = expected_change + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot.py new file mode 100644 index 0000000..ba7e951 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class MetricSnapshot(object): + """ + Defines the metric snapshot body with supplemental metadata properties. + + + :param metric_snapshot_id: Identifies the experiment metric snapshot in a skill experiment. + :type metric_snapshot_id: (optional) str + :param start_date: The start date of the metric snapshot. + :type start_date: (optional) datetime + :param end_date: The end date of the metric snapshot. + :type end_date: (optional) datetime + + """ + deserialized_types = { + 'metric_snapshot_id': 'str', + 'start_date': 'datetime', + 'end_date': 'datetime' + } # type: Dict + + attribute_map = { + 'metric_snapshot_id': 'metricSnapshotId', + 'start_date': 'startDate', + 'end_date': 'endDate' + } # type: Dict + supports_multiple_types = False + + def __init__(self, metric_snapshot_id=None, start_date=None, end_date=None): + # type: (Optional[str], Optional[datetime], Optional[datetime]) -> None + """Defines the metric snapshot body with supplemental metadata properties. + + :param metric_snapshot_id: Identifies the experiment metric snapshot in a skill experiment. + :type metric_snapshot_id: (optional) str + :param start_date: The start date of the metric snapshot. + :type start_date: (optional) datetime + :param end_date: The end date of the metric snapshot. + :type end_date: (optional) datetime + """ + self.__discriminator_value = None # type: str + + self.metric_snapshot_id = metric_snapshot_id + self.start_date = start_date + self.end_date = end_date + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricSnapshot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot_status.py new file mode 100644 index 0000000..9f66eda --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_snapshot_status.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class MetricSnapshotStatus(Enum): + """ + The status of the metric snapshot, whether it's RELIABLE or UNRELIABLE. + + + + Allowed enum values: [RELIABLE, UNRELIABLE] + """ + RELIABLE = "RELIABLE" + UNRELIABLE = "UNRELIABLE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricSnapshotStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_type.py new file mode 100644 index 0000000..8586a19 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_type.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class MetricType(Enum): + """ + The metric types a specific metric can be assigned to. * `KEY` - Identified as a metric that should provide clear evidence of expected changes caused by the new treatment experience. * `GUARDRAIL` - Identified as a metric that would detect unexpected regressions caused by the new treatment experience. + + + + Allowed enum values: [KEY, GUARDRAIL] + """ + KEY = "KEY" + GUARDRAIL = "GUARDRAIL" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_values.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_values.py new file mode 100644 index 0000000..65ce215 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/metric_values.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class MetricValues(object): + """ + Defines the body of the metric result values. + + + :param mean: The mean (average) of each sample (T1 or C group). + :type mean: (optional) float + :param percent_diff: The relative percent difference between the mean of the T1 group and the mean of the C group. + :type percent_diff: (optional) float + :param confidence_interval_lower: The lower limit number of the confidence interval range. Confidence interval measures the probability that the mean falls within a range. + :type confidence_interval_lower: (optional) float + :param confidence_interval_upper: The upper limit number of the confidence interval range. + :type confidence_interval_upper: (optional) float + :param p_value: The probability that the difference between the two means (from T1 and C) is due to random sampling error. + :type p_value: (optional) float + :param user_count: Count of users in the treatment sample. + :type user_count: (optional) int + + """ + deserialized_types = { + 'mean': 'float', + 'percent_diff': 'float', + 'confidence_interval_lower': 'float', + 'confidence_interval_upper': 'float', + 'p_value': 'float', + 'user_count': 'int' + } # type: Dict + + attribute_map = { + 'mean': 'mean', + 'percent_diff': 'percentDiff', + 'confidence_interval_lower': 'confidenceIntervalLower', + 'confidence_interval_upper': 'confidenceIntervalUpper', + 'p_value': 'pValue', + 'user_count': 'userCount' + } # type: Dict + supports_multiple_types = False + + def __init__(self, mean=None, percent_diff=None, confidence_interval_lower=None, confidence_interval_upper=None, p_value=None, user_count=None): + # type: (Optional[float], Optional[float], Optional[float], Optional[float], Optional[float], Optional[int]) -> None + """Defines the body of the metric result values. + + :param mean: The mean (average) of each sample (T1 or C group). + :type mean: (optional) float + :param percent_diff: The relative percent difference between the mean of the T1 group and the mean of the C group. + :type percent_diff: (optional) float + :param confidence_interval_lower: The lower limit number of the confidence interval range. Confidence interval measures the probability that the mean falls within a range. + :type confidence_interval_lower: (optional) float + :param confidence_interval_upper: The upper limit number of the confidence interval range. + :type confidence_interval_upper: (optional) float + :param p_value: The probability that the difference between the two means (from T1 and C) is due to random sampling error. + :type p_value: (optional) float + :param user_count: Count of users in the treatment sample. + :type user_count: (optional) int + """ + self.__discriminator_value = None # type: str + + self.mean = mean + self.percent_diff = percent_diff + self.confidence_interval_lower = confidence_interval_lower + self.confidence_interval_upper = confidence_interval_upper + self.p_value = p_value + self.user_count = user_count + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, MetricValues): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/pagination_context.py new file mode 100644 index 0000000..5b38126 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/pagination_context.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PaginationContext(object): + """ + Defines the body that provides pagination-related properties in the operation response to indicate that additional paginated results are available. + + + :param next_token: Provided by server to retrieve the next set of paginated results. + :type next_token: (optional) str + + """ + deserialized_types = { + 'next_token': 'str' + } # type: Dict + + attribute_map = { + 'next_token': 'nextToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, next_token=None): + # type: (Optional[str]) -> None + """Defines the body that provides pagination-related properties in the operation response to indicate that additional paginated results are available. + + :param next_token: Provided by server to retrieve the next set of paginated results. + :type next_token: (optional) str + """ + self.__discriminator_value = None # type: str + + self.next_token = next_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PaginationContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/set_customer_treatment_override_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/set_customer_treatment_override_request.py new file mode 100644 index 0000000..22d5599 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/set_customer_treatment_override_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.treatment_id import TreatmentId as TreatmentId_7e9594b2 + + +class SetCustomerTreatmentOverrideRequest(object): + """ + Defines the request body for adding this customer's treatment override to an experiment. + + + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + + """ + deserialized_types = { + 'treatment_id': 'ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId' + } # type: Dict + + attribute_map = { + 'treatment_id': 'treatmentId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, treatment_id=None): + # type: (Optional[TreatmentId_7e9594b2]) -> None + """Defines the request body for adding this customer's treatment override to an experiment. + + :param treatment_id: + :type treatment_id: (optional) ask_smapi_model.v1.skill.experiment.treatment_id.TreatmentId + """ + self.__discriminator_value = None # type: str + + self.treatment_id = treatment_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SetCustomerTreatmentOverrideRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/source_state.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/source_state.py new file mode 100644 index 0000000..de48fbd --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/source_state.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class SourceState(Enum): + """ + These states are for recording the previous state from a transition action (Created, Pilot, Start, Stop) on the experiment. * `CREATED`: Result state for the 'Create' action. Experiment has been created. * `ENABLED`: Result state for the 'Pilot' action. Experiment configurations are deployed and customer overrides are activated. Actual experiment has not started yet. * `RUNNING`: Result state for the 'Start' action. Experiment has started with the configured exposure. Skill customers selected within the exposure are contributing to the metric data. + + + + Allowed enum values: [CREATED, ENABLED, RUNNING] + """ + CREATED = "CREATED" + ENABLED = "ENABLED" + RUNNING = "RUNNING" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, SourceState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state.py new file mode 100644 index 0000000..8345693 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class State(Enum): + """ + * `CREATED` - The experiment is successfully created but has not been enabled or started. * `ENABLING` - The experiment has initiated the transition to becoming \"ENABLED\". * `ENABLED` - The experiment configurations have been deployed but only customer treatment overrides set to T1 can view the T1 experience of a skill. No metrics are collected. * `RUNNING` - The experiment has started and a percentage of skill customers defined in the exposurePercentage will be entered into the experiment. Customers will randomly get assigned the T1 or C experience. Metric collection will begin. * `STOPPING` - The experiment has initated the transition to becoming \"STOPPED\". * `STOPPED` - The experiment has ended and all customers will experience the C behavior. Metrics will stop being collected. * `FAILED` - The experiment configurations have failed to deploy while enabling or starting the experiment. + + + + Allowed enum values: [CREATED, ENABLING, ENABLED, RUNNING, STOPPING, STOPPED, FAILED] + """ + CREATED = "CREATED" + ENABLING = "ENABLING" + ENABLED = "ENABLED" + RUNNING = "RUNNING" + STOPPING = "STOPPING" + STOPPED = "STOPPED" + FAILED = "FAILED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, State): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error.py new file mode 100644 index 0000000..af47eee --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.state_transition_error_type import StateTransitionErrorType as StateTransitionErrorType_84a26768 + + +class StateTransitionError(object): + """ + The errors which caused a state transition failure. + + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.state_transition_error_type.StateTransitionErrorType + :param message: The message associated with the state transition error. + :type message: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_smapi_model.v1.skill.experiment.state_transition_error_type.StateTransitionErrorType', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, message=None): + # type: (Optional[StateTransitionErrorType_84a26768], Optional[str]) -> None + """The errors which caused a state transition failure. + + :param object_type: + :type object_type: (optional) ask_smapi_model.v1.skill.experiment.state_transition_error_type.StateTransitionErrorType + :param message: The message associated with the state transition error. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, StateTransitionError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error_type.py new file mode 100644 index 0000000..fee382d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_error_type.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class StateTransitionErrorType(Enum): + """ + The error type which caused a state transition failure. + + + + Allowed enum values: [INELIGIBLITY] + """ + INELIGIBLITY = "INELIGIBLITY" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, StateTransitionErrorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_status.py new file mode 100644 index 0000000..5daa35d --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/state_transition_status.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class StateTransitionStatus(Enum): + """ + Status indiciating whether the state transiton was successful, in progress, or failed. + + + + Allowed enum values: [SUCCEEDED, IN_PROGRESS, FAILED] + """ + SUCCEEDED = "SUCCEEDED" + IN_PROGRESS = "IN_PROGRESS" + FAILED = "FAILED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, StateTransitionStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/target_state.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/target_state.py new file mode 100644 index 0000000..cc4f5b3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/target_state.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TargetState(Enum): + """ + These states are used to perform a transition action (Pilot, Start, Stop, Conclude) on the experiment. * `ENABLED`: Target state for the 'Pilot' action. Experiment configurations are deployed and customer overrides are activated. Actual experiment has not started yet. * `RUNNING`: Target state for the 'Start' action. Experiment has started with the configured exposure. Skill customers selected within the exposure are contributing to the metric data. * `STOPPED`: Target state for the 'Stop' action. Experiment has stopped and all experiment configurations have been removed. All customers will see the C behavior by default. + + + + Allowed enum values: [ENABLED, RUNNING, STOPPED] + """ + ENABLED = "ENABLED" + RUNNING = "RUNNING" + STOPPED = "STOPPED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TargetState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/treatment_id.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/treatment_id.py new file mode 100644 index 0000000..36a3312 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/treatment_id.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class TreatmentId(Enum): + """ + Treatment identifier for an experiment. * `C` - Control. The treatment that defines the existing skill experience. * `T1` - Treatment 1. The threatment that defines the experimental skill experience. + + + + Allowed enum values: [C, T1] + """ + C = "C" + T1 = "T1" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, TreatmentId): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_input.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_input.py new file mode 100644 index 0000000..4d1002c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_input.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.metric_configuration import MetricConfiguration as MetricConfiguration_7789320a + + +class UpdateExperimentInput(object): + """ + Defines the Experiment body used for requesting an experiment update. Only includes fields that are editable by the user. + + + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + + """ + deserialized_types = { + 'description': 'str', + 'planned_duration': 'str', + 'exposure_percentage': 'int', + 'metric_configurations': 'list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration]' + } # type: Dict + + attribute_map = { + 'description': 'description', + 'planned_duration': 'plannedDuration', + 'exposure_percentage': 'exposurePercentage', + 'metric_configurations': 'metricConfigurations' + } # type: Dict + supports_multiple_types = False + + def __init__(self, description=None, planned_duration=None, exposure_percentage=None, metric_configurations=None): + # type: (Optional[str], Optional[str], Optional[int], Optional[List[MetricConfiguration_7789320a]]) -> None + """Defines the Experiment body used for requesting an experiment update. Only includes fields that are editable by the user. + + :param description: Hypothesis that developer provides to describe the experiment's purpose. + :type description: (optional) str + :param planned_duration: The number of weeks the skill builder intends to run the experiment. Used for documentation purposes and by metric platform as a reference. Does not impact experiment execution. Format uses ISO-8601 representation of duration. (Example: 4 weeks = \"P4W\") + :type planned_duration: (optional) str + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + :param metric_configurations: List of metric configurations that determine which metrics are key/guardrail metrics and the expected metric direction. + :type metric_configurations: (optional) list[ask_smapi_model.v1.skill.experiment.metric_configuration.MetricConfiguration] + """ + self.__discriminator_value = None # type: str + + self.description = description + self.planned_duration = planned_duration + self.exposure_percentage = exposure_percentage + self.metric_configurations = metric_configurations + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UpdateExperimentInput): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_request.py new file mode 100644 index 0000000..1a648dc --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_experiment_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_smapi_model.v1.skill.experiment.update_experiment_input import UpdateExperimentInput as UpdateExperimentInput_2a15a389 + + +class UpdateExperimentRequest(object): + """ + Defines the request body for updating an experiment. + + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.update_experiment_input.UpdateExperimentInput + + """ + deserialized_types = { + 'experiment': 'ask_smapi_model.v1.skill.experiment.update_experiment_input.UpdateExperimentInput' + } # type: Dict + + attribute_map = { + 'experiment': 'experiment' + } # type: Dict + supports_multiple_types = False + + def __init__(self, experiment=None): + # type: (Optional[UpdateExperimentInput_2a15a389]) -> None + """Defines the request body for updating an experiment. + + :param experiment: + :type experiment: (optional) ask_smapi_model.v1.skill.experiment.update_experiment_input.UpdateExperimentInput + """ + self.__discriminator_value = None # type: str + + self.experiment = experiment + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UpdateExperimentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_exposure_request.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_exposure_request.py new file mode 100644 index 0000000..d3f86c3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/update_exposure_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class UpdateExposureRequest(object): + """ + Defines the request body for updating the exposure of an experiment. + + + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + + """ + deserialized_types = { + 'exposure_percentage': 'int' + } # type: Dict + + attribute_map = { + 'exposure_percentage': 'exposurePercentage' + } # type: Dict + supports_multiple_types = False + + def __init__(self, exposure_percentage=None): + # type: (Optional[int]) -> None + """Defines the request body for updating the exposure of an experiment. + + :param exposure_percentage: The percentage of unique customers that will be part of the skill experiment while the experiment is running. + :type exposure_percentage: (optional) int + """ + self.__discriminator_value = None # type: str + + self.exposure_percentage = exposure_percentage + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UpdateExposureRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 366b136..6a275c5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import +from .locale_in_query import LocaleInQuery from .intent import Intent -from .intent_requests import IntentRequests +from .intent_request import IntentRequest +from .interaction_type import InteractionType +from .publication_status import PublicationStatus from .confidence import Confidence from .sort_field_for_intent_request_type import SortFieldForIntentRequestType -from .intent_request_locales import IntentRequestLocales -from .slot import Slot -from .interaction_type import InteractionType -from .intent_confidence_bin import IntentConfidenceBin -from .locale_in_query import LocaleInQuery +from .intent_requests import IntentRequests +from .dialog_act_name import DialogActName from .dialog_act import DialogAct +from .slot import Slot from .confidence_bin import ConfidenceBin -from .intent_request import IntentRequest -from .dialog_act_name import DialogActName -from .publication_status import PublicationStatus +from .intent_confidence_bin import IntentConfidenceBin +from .intent_request_locales import IntentRequestLocales diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index ba0a35d..1bb9371 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import +from .prompt_items import PromptItems +from .multiple_values_config import MultipleValuesConfig +from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel +from .is_in_set import IsInSet +from .type_value_object import TypeValueObject from .intent import Intent -from .slot_type import SlotType +from .value_catalog import ValueCatalog from .dialog_prompts import DialogPrompts -from .value_supplier import ValueSupplier -from .language_model import LanguageModel -from .fallback_intent_sensitivity import FallbackIntentSensitivity -from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel +from .dialog_slot_items import DialogSlotItems from .is_less_than_or_equal_to import IsLessThanOrEqualTo -from .slot_definition import SlotDefinition -from .dialog import Dialog from .type_value import TypeValue -from .delegation_strategy_type import DelegationStrategyType -from .value_catalog import ValueCatalog -from .dialog_slot_items import DialogSlotItems -from .dialog_intents import DialogIntents -from .has_entity_resolution_match import HasEntityResolutionMatch -from .model_configuration import ModelConfiguration -from .slot_validation import SlotValidation +from .interaction_model_data import InteractionModelData from .is_not_in_set import IsNotInSet -from .is_in_duration import IsInDuration -from .is_in_set import IsInSet from .catalog_value_supplier import CatalogValueSupplier -from .interaction_model_schema import InteractionModelSchema -from .prompt_items_type import PromptItemsType -from .prompt import Prompt -from .is_less_than import IsLessThan -from .multiple_values_config import MultipleValuesConfig -from .type_value_object import TypeValueObject -from .prompt_items import PromptItems +from .dialog import Dialog +from .model_configuration import ModelConfiguration from .dialog_intents_prompts import DialogIntentsPrompts +from .delegation_strategy_type import DelegationStrategyType +from .dialog_intents import DialogIntents +from .slot_definition import SlotDefinition from .is_not_in_duration import IsNotInDuration -from .interaction_model_data import InteractionModelData -from .inline_value_supplier import InlineValueSupplier +from .prompt_items_type import PromptItemsType +from .interaction_model_schema import InteractionModelSchema +from .is_in_duration import IsInDuration +from .language_model import LanguageModel from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo +from .slot_validation import SlotValidation +from .has_entity_resolution_match import HasEntityResolutionMatch +from .slot_type import SlotType from .is_greater_than import IsGreaterThan +from .fallback_intent_sensitivity import FallbackIntentSensitivity +from .inline_value_supplier import InlineValueSupplier +from .value_supplier import ValueSupplier +from .is_less_than import IsLessThan +from .prompt import Prompt diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index bd8b7ff..e017ba8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .list_catalog_response import ListCatalogResponse -from .update_request import UpdateRequest -from .catalog_response import CatalogResponse -from .catalog_status_type import CatalogStatusType from .last_update_request import LastUpdateRequest +from .definition_data import DefinitionData +from .catalog_entity import CatalogEntity from .catalog_status import CatalogStatus from .catalog_definition_output import CatalogDefinitionOutput -from .catalog_input import CatalogInput -from .definition_data import DefinitionData from .catalog_item import CatalogItem -from .catalog_entity import CatalogEntity +from .update_request import UpdateRequest +from .catalog_status_type import CatalogStatusType +from .catalog_response import CatalogResponse +from .list_catalog_response import ListCatalogResponse +from .catalog_input import CatalogInput diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py index fcf89a7..d1a583a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py @@ -15,11 +15,11 @@ from __future__ import absolute_import from .conflict_detection_job_status import ConflictDetectionJobStatus -from .pagination_context import PaginationContext -from .conflict_intent import ConflictIntent from .get_conflicts_response_result import GetConflictsResponseResult -from .paged_response import PagedResponse +from .get_conflicts_response import GetConflictsResponse from .conflict_intent_slot import ConflictIntentSlot +from .conflict_intent import ConflictIntent from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse +from .paged_response import PagedResponse from .conflict_result import ConflictResult -from .get_conflicts_response import GetConflictsResponse +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index dd2828b..6f4b897 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .catalog import Catalog -from .resource_object import ResourceObject from .execution import Execution -from .job_api_pagination_context import JobAPIPaginationContext -from .list_job_definitions_response import ListJobDefinitionsResponse +from .get_executions_response import GetExecutionsResponse from .interaction_model import InteractionModel +from .list_job_definitions_response import ListJobDefinitionsResponse +from .job_api_pagination_context import JobAPIPaginationContext from .reference_version_update import ReferenceVersionUpdate -from .dynamic_update_error import DynamicUpdateError -from .execution_metadata import ExecutionMetadata -from .slot_type_reference import SlotTypeReference -from .create_job_definition_request import CreateJobDefinitionRequest -from .job_definition import JobDefinition -from .validation_errors import ValidationErrors +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete from .job_definition_status import JobDefinitionStatus -from .update_job_status_request import UpdateJobStatusRequest -from .job_definition_metadata import JobDefinitionMetadata +from .create_job_definition_response import CreateJobDefinitionResponse +from .dynamic_update_error import DynamicUpdateError +from .catalog import Catalog from .job_error_details import JobErrorDetails -from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete -from .scheduled import Scheduled from .catalog_auto_refresh import CatalogAutoRefresh -from .get_executions_response import GetExecutionsResponse -from .create_job_definition_response import CreateJobDefinitionResponse +from .create_job_definition_request import CreateJobDefinitionRequest +from .scheduled import Scheduled +from .job_definition_metadata import JobDefinitionMetadata +from .update_job_status_request import UpdateJobStatusRequest +from .slot_type_reference import SlotTypeReference from .trigger import Trigger +from .execution_metadata import ExecutionMetadata +from .job_definition import JobDefinition +from .validation_errors import ValidationErrors +from .resource_object import ResourceObject diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 61927d4..4a2db11 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import +from .slot_type_input import SlotTypeInput +from .slot_type_response_entity import SlotTypeResponseEntity +from .slot_type_definition_output import SlotTypeDefinitionOutput +from .last_update_request import LastUpdateRequest +from .definition_data import DefinitionData +from .warning import Warning from .slot_type_status_type import SlotTypeStatusType -from .list_slot_type_response import ListSlotTypeResponse +from .slot_type_update_definition import SlotTypeUpdateDefinition from .error import Error +from .slot_type_response import SlotTypeResponse +from .list_slot_type_response import ListSlotTypeResponse from .update_request import UpdateRequest -from .warning import Warning -from .last_update_request import LastUpdateRequest -from .slot_type_definition_output import SlotTypeDefinitionOutput -from .slot_type_response_entity import SlotTypeResponseEntity from .slot_type_status import SlotTypeStatus -from .slot_type_response import SlotTypeResponse -from .slot_type_update_definition import SlotTypeUpdateDefinition -from .slot_type_input import SlotTypeInput -from .definition_data import DefinitionData from .slot_type_item import SlotTypeItem diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index 855c55f..02ea0e9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import +from .list_slot_type_version_response import ListSlotTypeVersionResponse from .version_data import VersionData +from .slot_type_version_data import SlotTypeVersionData +from .slot_type_update_object import SlotTypeUpdateObject from .version_data_object import VersionDataObject +from .slot_type_version_item import SlotTypeVersionItem from .value_supplier_object import ValueSupplierObject from .slot_type_update import SlotTypeUpdate from .slot_type_version_data_object import SlotTypeVersionDataObject -from .slot_type_update_object import SlotTypeUpdateObject -from .list_slot_type_version_response import ListSlotTypeVersionResponse -from .slot_type_version_item import SlotTypeVersionItem -from .slot_type_version_data import SlotTypeVersionData diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 6f52391..2932db4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import +from .value_schema_name import ValueSchemaName from .version_data import VersionData -from .list_response import ListResponse -from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .catalog_update import CatalogUpdate +from .list_response import ListResponse +from .catalog_entity_version import CatalogEntityVersion +from .value_schema import ValueSchema from .catalog_version_data import CatalogVersionData -from .value_schema_name import ValueSchemaName from .links import Links +from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .catalog_values import CatalogValues from .version_items import VersionItems -from .catalog_entity_version import CatalogEntityVersion -from .value_schema import ValueSchema from .input_source import InputSource diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index 9eeb384..3d0f911 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .invocation_response_status import InvocationResponseStatus from .metrics import Metrics -from .invoke_skill_response import InvokeSkillResponse +from .end_point_regions import EndPointRegions +from .skill_execution_info import SkillExecutionInfo +from .invocation_response_status import InvocationResponseStatus +from .response import Response +from .request import Request from .skill_request import SkillRequest from .invoke_skill_request import InvokeSkillRequest -from .request import Request -from .response import Response from .invocation_response_result import InvocationResponseResult -from .skill_execution_info import SkillExecutionInfo -from .end_point_regions import EndPointRegions +from .invoke_skill_response import InvokeSkillResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index aaaf7b9..34182c9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,126 +14,126 @@ # from __future__ import absolute_import -from .automatic_distribution import AutomaticDistribution -from .house_hold_list import HouseHoldList -from .viewport_shape import ViewportShape -from .display_interface import DisplayInterface -from .interface_type import InterfaceType -from .custom_task import CustomTask -from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .flash_briefing_content_type import FlashBriefingContentType -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid from .viewport_specification import ViewportSpecification from .localized_name import LocalizedName -from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .music_interfaces import MusicInterfaces -from .skill_manifest_envelope import SkillManifestEnvelope -from .video_country_info import VideoCountryInfo -from .version import Version -from .distribution_mode import DistributionMode -from .viewport_mode import ViewportMode from .music_apis import MusicApis -from .tax_information import TaxInformation -from .alexa_for_business_interface import AlexaForBusinessInterface +from .skill_manifest_endpoint import SkillManifestEndpoint from .video_feature import VideoFeature -from .linked_application import LinkedApplication -from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .app_link import AppLink -from .permission_name import PermissionName -from .smart_home_protocol import SmartHomeProtocol -from .music_content_name import MusicContentName -from .skill_manifest_apis import SkillManifestApis -from .demand_response_apis import DemandResponseApis +from .manifest_gadget_support import ManifestGadgetSupport +from .display_interface_apml_version import DisplayInterfaceApmlVersion +from .android_custom_intent import AndroidCustomIntent +from .event_name import EventName +from .custom_product_prompts import CustomProductPrompts +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale +from .video_region import VideoRegion +from .event_publications import EventPublications from .audio_interface import AudioInterface -from .dialog_management import DialogManagement -from .region import Region -from .dialog_delegation_strategy import DialogDelegationStrategy +from .ssl_certificate_type import SSLCertificateType +from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .custom_task import CustomTask +from .linked_android_common_intent import LinkedAndroidCommonIntent +from .game_engine_interface import GameEngineInterface +from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency +from .linked_common_schemes import LinkedCommonSchemes +from .offer_type import OfferType +from .distribution_countries import DistributionCountries +from .authorized_client import AuthorizedClient +from .authorized_client_lwa import AuthorizedClientLwa +from .gadget_controller_interface import GadgetControllerInterface +from .catalog_info import CatalogInfo +from .tax_information import TaxInformation from .extension_initialization_request import ExtensionInitializationRequest +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .supported_controls_type import SupportedControlsType +from .flash_briefing_content_type import FlashBriefingContentType +from .free_trial_information import FreeTrialInformation +from .dialog_management import DialogManagement from .knowledge_apis import KnowledgeApis -from .skill_manifest_endpoint import SkillManifestEndpoint -from .custom_connections import CustomConnections -from .source_language_for_locales import SourceLanguageForLocales -from .interface import Interface from .alexa_for_business_apis import AlexaForBusinessApis -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .custom_product_prompts import CustomProductPrompts -from .event_publications import EventPublications -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .free_trial_information import FreeTrialInformation -from .automatic_cloned_locale import AutomaticClonedLocale -from .localized_music_info import LocalizedMusicInfo -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .app_link_interface import AppLinkInterface +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement +from .music_content_type import MusicContentType +from .connections_payload import ConnectionsPayload +from .distribution_mode import DistributionMode from .catalog_type import CatalogType -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion -from .linked_common_schemes import LinkedCommonSchemes -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .flash_briefing_genre import FlashBriefingGenre -from .app_link_v2_interface import AppLinkV2Interface -from .linked_android_common_intent import LinkedAndroidCommonIntent +from .version import Version +from .skill_manifest_events import SkillManifestEvents +from .custom_localized_information import CustomLocalizedInformation +from .viewport_mode import ViewportMode +from .skill_manifest_publishing_information import SkillManifestPublishingInformation +from .app_link_interface import AppLinkInterface +from .alexa_for_business_interface import AlexaForBusinessInterface from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .video_apis_locale import VideoApisLocale -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName -from .paid_skill_information import PaidSkillInformation -from .android_custom_intent import AndroidCustomIntent -from .ssl_certificate_type import SSLCertificateType -from .music_request import MusicRequest -from .video_catalog_info import VideoCatalogInfo -from .custom_apis import CustomApis -from .dialog_manager import DialogManager -from .lambda_endpoint import LambdaEndpoint -from .music_feature import MusicFeature -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .permission_name import PermissionName +from .subscription_information import SubscriptionInformation +from .linked_application import LinkedApplication +from .video_prompt_name import VideoPromptName +from .automatic_distribution import AutomaticDistribution from .music_alias import MusicAlias -from .game_engine_interface import GameEngineInterface -from .up_channel_items import UpChannelItems -from .supported_controls_type import SupportedControlsType +from .authorized_client_lwa_application import AuthorizedClientLwaApplication from .gadget_support_requirement import GadgetSupportRequirement -from .subscription_information import SubscriptionInformation -from .offer_type import OfferType +from .display_interface import DisplayInterface +from .currency import Currency +from .music_capability import MusicCapability +from .interface import Interface +from .music_interfaces import MusicInterfaces +from .dialog_manager import DialogManager +from .skill_manifest_apis import SkillManifestApis from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest -from .friendly_name import FriendlyName -from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .video_apis import VideoApis +from .smart_home_apis import SmartHomeApis +from .demand_response_apis import DemandResponseApis +from .marketplace_pricing import MarketplacePricing +from .subscription_payment_frequency import SubscriptionPaymentFrequency from .health_interface import HealthInterface -from .authorized_client import AuthorizedClient -from .permission_items import PermissionItems -from .manifest_gadget_support import ManifestGadgetSupport -from .skill_manifest import SkillManifest -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo -from .music_capability import MusicCapability -from .extension_request import ExtensionRequest -from .music_wordmark import MusicWordmark -from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .authorized_client_lwa import AuthorizedClientLwa -from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .house_hold_list import HouseHoldList +from .flash_briefing_genre import FlashBriefingGenre +from .lambda_endpoint import LambdaEndpoint +from .lambda_region import LambdaRegion +from .custom_apis import CustomApis +from .music_feature import MusicFeature +from .localized_music_info import LocalizedMusicInfo +from .region import Region +from .app_link_v2_interface import AppLinkV2Interface +from .android_common_intent_name import AndroidCommonIntentName +from .dialog_delegation_strategy import DialogDelegationStrategy +from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .viewport_shape import ViewportShape +from .video_apis_locale import VideoApisLocale +from .friendly_name import FriendlyName +from .localized_knowledge_information import LocalizedKnowledgeInformation +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .voice_profile_feature import VoiceProfileFeature +from .display_interface_template_version import DisplayInterfaceTemplateVersion from .event_name_type import EventNameType +from .skill_manifest import SkillManifest +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .video_app_interface import VideoAppInterface +from .smart_home_protocol import SmartHomeProtocol +from .skill_manifest_envelope import SkillManifestEnvelope +from .video_catalog_info import VideoCatalogInfo +from .interface_type import InterfaceType +from .app_link import AppLink from .video_prompt_name_type import VideoPromptNameType -from .voice_profile_feature import VoiceProfileFeature -from .tax_information_category import TaxInformationCategory -from .catalog_name import CatalogName -from .smart_home_apis import SmartHomeApis -from .currency import Currency -from .flash_briefing_apis import FlashBriefingApis -from .catalog_info import CatalogInfo -from .video_region import VideoRegion -from .gadget_controller_interface import GadgetControllerInterface -from .authorized_client_lwa_application import AuthorizedClientLwaApplication -from .distribution_countries import DistributionCountries -from .display_interface_apml_version import DisplayInterfaceApmlVersion -from .localized_knowledge_information import LocalizedKnowledgeInformation -from .custom_localized_information import CustomLocalizedInformation -from .lambda_region import LambdaRegion -from .marketplace_pricing import MarketplacePricing from .supported_controls import SupportedControls -from .skill_manifest_events import SkillManifestEvents -from .video_prompt_name import VideoPromptName -from .event_name import EventName -from .music_content_type import MusicContentType -from .connections_payload import ConnectionsPayload +from .music_content_name import MusicContentName +from .music_wordmark import MusicWordmark +from .up_channel_items import UpChannelItems +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid +from .paid_skill_information import PaidSkillInformation +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .video_country_info import VideoCountryInfo from .manifest_version import ManifestVersion -from .video_app_interface import VideoAppInterface -from .video_apis import VideoApis -from .display_interface_template_version import DisplayInterfaceTemplateVersion -from .android_common_intent_name import AndroidCommonIntentName +from .automatic_cloned_locale import AutomaticClonedLocale +from .source_language_for_locales import SourceLanguageForLocales +from .music_request import MusicRequest +from .permission_items import PermissionItems +from .flash_briefing_apis import FlashBriefingApis +from .extension_request import ExtensionRequest +from .custom_connections import CustomConnections +from .catalog_name import CatalogName +from .tax_information_category import TaxInformationCategory diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index cf1c289..492a78d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .target_runtime import TargetRuntime -from .target_runtime_type import TargetRuntimeType from .target_runtime_device import TargetRuntimeDevice -from .connection import Connection +from .target_runtime import TargetRuntime from .suppressed_interface import SuppressedInterface +from .connection import Connection +from .target_runtime_type import TargetRuntimeType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index c1710c0..1703fd8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -67,6 +67,7 @@ class PermissionName(Enum): alexa_skill_products_entitlements = "alexa::skill:products:entitlements" alexa_energy_devices_state_read = "alexa::energy:devices:state:read" alexa_origin_ip_address_read = "alexa::origin_ip_address:read" + alexa_devices_all_coarse_location_read = "alexa::devices:all:coarse_location:read" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index 2a147c3..f794854 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .stage_for_metric import StageForMetric -from .metric import Metric from .period import Period -from .skill_type import SkillType from .get_metric_data_response import GetMetricDataResponse +from .skill_type import SkillType +from .metric import Metric +from .stage_for_metric import StageForMetric diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index d80e7c8..9b2b995 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest -from .pagination_context import PaginationContext -from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest +from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse from .annotation_set import AnnotationSet -from .links import Links +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest -from .annotation_set_entity import AnnotationSetEntity from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse -from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse +from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest +from .links import Links +from .annotation_set_entity import AnnotationSetEntity +from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index 0853395..d16427d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import -from .intent import Intent -from .pagination_context import PaginationContext -from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .resolutions_per_authority_value import ResolutionsPerAuthorityValue -from .resolutions_per_authority import ResolutionsPerAuthority -from .results import Results -from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext -from .slots_props import SlotsProps -from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .evaluation import Evaluation -from .evaluate_response import EvaluateResponse -from .paged_response import PagedResponse +from .confirmation_status import ConfirmationStatus from .list_nlu_evaluations_response import ListNLUEvaluationsResponse -from .links import Links -from .results_status import ResultsStatus -from .expected_intent_slots_props import ExpectedIntentSlotsProps +from .resolutions_per_authority_value import ResolutionsPerAuthorityValue from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse -from .test_case import TestCase from .expected import Expected -from .inputs import Inputs -from .expected_intent import ExpectedIntent -from .evaluation_entity import EvaluationEntity -from .evaluation_inputs import EvaluationInputs +from .results_status import ResultsStatus +from .intent import Intent from .resolutions import Resolutions -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .evaluate_nlu_request import EvaluateNLURequest -from .source import Source -from .confirmation_status import ConfirmationStatus +from .test_case import TestCase from .paged_results_response import PagedResultsResponse +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .evaluation_entity import EvaluationEntity from .status import Status +from .evaluate_nlu_request import EvaluateNLURequest from .actual import Actual +from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext +from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks +from .get_nlu_evaluation_response import GetNLUEvaluationResponse +from .slots_props import SlotsProps +from .expected_intent import ExpectedIntent +from .evaluate_response import EvaluateResponse +from .evaluation_inputs import EvaluationInputs +from .links import Links +from .source import Source +from .inputs import Inputs +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .results import Results +from .paged_response import PagedResponse +from .resolutions_per_authority import ResolutionsPerAuthority +from .expected_intent_slots_props import ExpectedIntentSlotsProps +from .evaluation import Evaluation +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index e6e9f1c..454d68e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse from .private_distribution_account import PrivateDistributionAccount from .accept_status import AcceptStatus +from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py index 0bc1bfb..aa0b143 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .skill_publication_response import SkillPublicationResponse from .skill_publication_status import SkillPublicationStatus +from .skill_publication_response import SkillPublicationResponse from .publish_skill_request import PublishSkillRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 615b9e7..a001556 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .simulation import Simulation -from .simulations_api_response import SimulationsApiResponse -from .session_mode import SessionMode from .metrics import Metrics -from .alexa_execution_info import AlexaExecutionInfo -from .simulations_api_request import SimulationsApiRequest -from .device import Device -from .simulation_type import SimulationType -from .session import Session -from .invocation_response import InvocationResponse -from .invocation_request import InvocationRequest from .input import Input +from .alexa_execution_info import AlexaExecutionInfo from .alexa_response_content import AlexaResponseContent -from .alexa_response import AlexaResponse -from .simulation_result import SimulationResult from .invocation import Invocation +from .session_mode import SessionMode +from .alexa_response import AlexaResponse +from .simulations_api_response import SimulationsApiResponse +from .invocation_response import InvocationResponse +from .simulations_api_request import SimulationsApiRequest +from .invocation_request import InvocationRequest from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation import Simulation +from .session import Session +from .simulation_type import SimulationType +from .simulation_result import SimulationResult +from .device import Device diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index c7ad187..9255147 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .validations_api_response_result import ValidationsApiResponseResult +from .response_validation_importance import ResponseValidationImportance from .validations_api_request import ValidationsApiRequest -from .validations_api_response import ValidationsApiResponse +from .response_validation import ResponseValidation from .validations_api_response_status import ValidationsApiResponseStatus -from .response_validation_importance import ResponseValidationImportance from .response_validation_status import ResponseValidationStatus -from .response_validation import ResponseValidation +from .validations_api_response import ValidationsApiResponse +from .validations_api_response_result import ValidationsApiResponseResult diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index b149f16..8d074d0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .evaluation_object import EvaluationObject -from .pagination_context import PaginationContext -from .evaluation_entity_status import EvaluationEntityStatus -from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse -from .sh_capability_error import SHCapabilityError +from .sh_capability_state import SHCapabilityState +from .sh_capability_directive import SHCapabilityDirective from .sh_evaluation_results_metric import SHEvaluationResultsMetric -from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .paged_response import PagedResponse -from .test_case_result_status import TestCaseResultStatus +from .sh_capability_response import SHCapabilityResponse from .sh_capability_error_code import SHCapabilityErrorCode -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .endpoint import Endpoint +from .test_case_result_status import TestCaseResultStatus +from .pagination_context_token import PaginationContextToken from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse -from .sh_capability_response import SHCapabilityResponse -from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse from .list_sh_test_plan_item import ListSHTestPlanItem from .stage import Stage -from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse -from .pagination_context_token import PaginationContextToken -from .test_case_result import TestCaseResult -from .sh_capability_directive import SHCapabilityDirective -from .sh_capability_state import SHCapabilityState from .capability_test_plan import CapabilityTestPlan +from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse +from .evaluation_entity_status import EvaluationEntityStatus +from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse +from .evaluation_object import EvaluationObject +from .sh_capability_error import SHCapabilityError +from .test_case_result import TestCaseResult +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .paged_response import PagedResponse +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .endpoint import Endpoint +from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py index a0a7002..bca62c4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .vendors import Vendors from .vendor import Vendor +from .vendors import Vendors diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index 38e71e2..4d2bcf6 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -15,6 +15,6 @@ from __future__ import absolute_import from .metrics import Metrics +from .invocation import Invocation from .invocation_response import InvocationResponse from .invocation_request import InvocationRequest -from .invocation import Invocation diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index c034f51..0b46360 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .invocations_api_request import InvocationsApiRequest +from .end_point_regions import EndPointRegions from .invocation_response_status import InvocationResponseStatus from .skill_request import SkillRequest from .invocation_response_result import InvocationResponseResult from .invocations_api_response import InvocationsApiResponse -from .end_point_regions import EndPointRegions -from .invocations_api_request import InvocationsApiRequest diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index 8c03b52..32045ac 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -14,25 +14,25 @@ # from __future__ import absolute_import -from .simulation import Simulation +from .input import Input +from .alexa_execution_info import AlexaExecutionInfo from .intent import Intent -from .simulations_api_response import SimulationsApiResponse +from .alexa_response_content import AlexaResponseContent +from .skill_execution_info import SkillExecutionInfo +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .session_mode import SessionMode -from .alexa_execution_info import AlexaExecutionInfo -from .slot_resolutions import SlotResolutions -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .alexa_response import AlexaResponse +from .simulations_api_response import SimulationsApiResponse from .simulations_api_request import SimulationsApiRequest +from .simulations_api_response_status import SimulationsApiResponseStatus +from .slot_resolutions import SlotResolutions +from .simulation import Simulation from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .device import Device -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .simulation_type import SimulationType from .session import Session -from .slot import Slot from .confirmation_status_type import ConfirmationStatusType -from .skill_execution_info import SkillExecutionInfo -from .input import Input -from .alexa_response_content import AlexaResponseContent -from .alexa_response import AlexaResponse +from .simulation_type import SimulationType +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .simulation_result import SimulationResult -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .simulations_api_response_status import SimulationsApiResponseStatus +from .device import Device +from .slot import Slot From 05e5bfe93e9fbaf52cb644feeffb900ce1dd741e Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Tue, 8 Mar 2022 02:52:13 -0800 Subject: [PATCH 028/111] Release 1.34.0. For changelog, check CHANGELOG.rst Co-authored-by: Shreyas Govinda Raju --- ask-sdk-model/CHANGELOG.rst | 8 + ask-sdk-model/ask_sdk_model/__init__.py | 52 +++--- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 4 +- .../ask_sdk_model/dialog/__init__.py | 14 +- ask-sdk-model/ask_sdk_model/directive.py | 3 + .../dynamic_endpoints/__init__.py | 2 +- .../ask_sdk_model/er/dynamic/__init__.py | 2 +- .../events/skillevents/__init__.py | 14 +- .../alexa/experimentation/__init__.py | 3 +- .../experimentation/experiment_assignment.py | 10 +- .../alexa/experimentation/treatment_id.py | 2 +- .../interfaces/alexa/extension/__init__.py | 2 +- .../alexa/presentation/apl/__init__.py | 106 +++++------ .../alexa/presentation/apl/back_type.py | 67 +++++++ .../alexa/presentation/apl/command.py | 9 + .../alexa/presentation/apl/go_back_command.py | 151 ++++++++++++++++ .../presentation/apl/hide_overlay_command.py | 164 ++++++++++++++++++ .../apl/listoperations/__init__.py | 4 +- .../presentation/apl/show_overlay_command.py | 164 ++++++++++++++++++ .../alexa/presentation/apla/__init__.py | 10 +- .../alexa/presentation/aplt/__init__.py | 24 +-- .../alexa/presentation/html/__init__.py | 16 +- .../amazonpay/model/request/__init__.py | 10 +- .../amazonpay/model/response/__init__.py | 8 +- .../interfaces/amazonpay/model/v1/__init__.py | 20 +-- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 4 +- .../interfaces/audioplayer/__init__.py | 30 ++-- .../interfaces/connections/__init__.py | 4 +- .../connections/requests/__init__.py | 8 +- .../interfaces/conversations/__init__.py | 1 + .../reset_context_directive.py} | 23 ++- .../custom_interface_controller/__init__.py | 10 +- .../interfaces/display/__init__.py | 34 ++-- .../interfaces/game_engine/__init__.py | 2 +- .../interfaces/geolocation/__init__.py | 10 +- .../interfaces/monetization/v1/__init__.py | 2 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 2 +- .../interfaces/videoapp/__init__.py | 4 +- .../interfaces/viewport/__init__.py | 18 +- .../interfaces/viewport/apl/__init__.py | 2 +- .../interfaces/viewport/aplt/__init__.py | 4 +- .../interfaces/viewport/size/__init__.py | 2 +- .../ask_sdk_model/services/__init__.py | 12 +- .../services/device_address/__init__.py | 4 +- .../services/directive/__init__.py | 4 +- .../services/endpoint_enumeration/__init__.py | 4 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 14 +- .../services/list_management/__init__.py | 30 ++-- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 16 +- .../services/proactive_events/__init__.py | 8 +- .../services/reminder_management/__init__.py | 36 ++-- .../services/skill_messaging/__init__.py | 4 +- .../services/timer_management/__init__.py | 24 +-- .../ask_sdk_model/services/ups/__init__.py | 8 +- .../slu/entityresolution/__init__.py | 6 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 14 +- 63 files changed, 903 insertions(+), 336 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/back_type.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/go_back_command.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/hide_overlay_command.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/show_overlay_command.py rename ask-sdk-model/ask_sdk_model/interfaces/{alexa/experimentation/treatment.py => conversations/reset_context_directive.py} (79%) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index e6199fb..5c050cd 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -433,3 +433,11 @@ This release contains the following changes : This release contains the following changes : - Support for A/B testing experimentation SPI for GA + +1.34.0 +^^^^^^ + +This release contains the following changes : + +- Support for FTV and shopping skills +- Updated model definitions for experimentation SPIs diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index 35672be..9736b7c 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import -from .session_ended_reason import SessionEndedReason -from .permissions import Permissions -from .launch_request import LaunchRequest from .intent import Intent -from .scope import Scope -from .response_envelope import ResponseEnvelope +from .user import User +from .list_slot_value import ListSlotValue +from .task import Task +from .slot_confirmation_status import SlotConfirmationStatus +from .person import Person from .connection_completed import ConnectionCompleted +from .device import Device +from .session_ended_error import SessionEndedError +from .simple_slot_value import SimpleSlotValue +from .supported_interfaces import SupportedInterfaces +from .launch_request import LaunchRequest +from .session import Session +from .request import Request +from .session_ended_reason import SessionEndedReason +from .slot import Slot +from .cause import Cause +from .response import Response from .session_resumed_request import SessionResumedRequest from .slot_value import SlotValue -from .simple_slot_value import SimpleSlotValue -from .intent_request import IntentRequest +from .application import Application +from .session_ended_error_type import SessionEndedErrorType +from .dialog_state import DialogState +from .permission_status import PermissionStatus +from .intent_confirmation_status import IntentConfirmationStatus +from .context import Context +from .response_envelope import ResponseEnvelope +from .permissions import Permissions from .directive import Directive from .session_ended_request import SessionEndedRequest from .request_envelope import RequestEnvelope -from .response import Response -from .permission_status import PermissionStatus -from .dialog_state import DialogState -from .request import Request -from .intent_confirmation_status import IntentConfirmationStatus +from .intent_request import IntentRequest +from .scope import Scope from .status import Status -from .session_ended_error_type import SessionEndedErrorType -from .user import User -from .session_ended_error import SessionEndedError -from .list_slot_value import ListSlotValue -from .application import Application -from .session import Session -from .context import Context -from .task import Task -from .person import Person -from .cause import Cause -from .device import Device -from .slot import Slot -from .slot_confirmation_status import SlotConfirmationStatus -from .supported_interfaces import SupportedInterfaces diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 8ec9984..e9895ff 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.33.1' +__version__ = '1.34.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index ea6a022..56a13b8 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .grant import Grant -from .authorization_grant_body import AuthorizationGrantBody from .authorization_grant_request import AuthorizationGrantRequest +from .authorization_grant_body import AuthorizationGrantBody +from .grant import Grant from .grant_type import GrantType diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index f6ef4aa..31d082d 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .can_understand_slot_values import CanUnderstandSlotValues from .can_fulfill_intent_request import CanFulfillIntentRequest from .can_fulfill_intent import CanFulfillIntent from .can_fulfill_slot_values import CanFulfillSlotValues -from .can_fulfill_slot import CanFulfillSlot from .can_fulfill_intent_values import CanFulfillIntentValues -from .can_understand_slot_values import CanUnderstandSlotValues +from .can_fulfill_slot import CanFulfillSlot diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 28b36c7..00a9514 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .input import Input -from .input_request import InputRequest +from .confirm_intent_directive import ConfirmIntentDirective +from .updated_request import UpdatedRequest +from .delegate_directive import DelegateDirective from .delegate_request_directive import DelegateRequestDirective +from .input_request import InputRequest +from .elicit_slot_directive import ElicitSlotDirective +from .input import Input from .delegation_period import DelegationPeriod from .updated_input_request import UpdatedInputRequest +from .dynamic_entities_directive import DynamicEntitiesDirective from .confirm_slot_directive import ConfirmSlotDirective -from .delegate_directive import DelegateDirective from .updated_intent_request import UpdatedIntentRequest -from .dynamic_entities_directive import DynamicEntitiesDirective -from .updated_request import UpdatedRequest -from .elicit_slot_directive import ElicitSlotDirective -from .confirm_intent_directive import ConfirmIntentDirective from .delegation_period_until import DelegationPeriodUntil diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index c953d66..a81c852 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -75,6 +75,8 @@ class Directive(object): | | Display.RenderTemplate: :py:class:`ask_sdk_model.interfaces.display.render_template_directive.RenderTemplateDirective`, | + | Conversations.ResetContext: :py:class:`ask_sdk_model.interfaces.conversations.reset_context_directive.ResetContextDirective`, + | | Dialog.DelegateRequest: :py:class:`ask_sdk_model.dialog.delegate_request_directive.DelegateRequestDirective`, | | Hint: :py:class:`ask_sdk_model.interfaces.display.hint_directive.HintDirective`, @@ -133,6 +135,7 @@ class Directive(object): 'AudioPlayer.Play': 'ask_sdk_model.interfaces.audioplayer.play_directive.PlayDirective', 'Alexa.Presentation.APL.ExecuteCommands': 'ask_sdk_model.interfaces.alexa.presentation.apl.execute_commands_directive.ExecuteCommandsDirective', 'Display.RenderTemplate': 'ask_sdk_model.interfaces.display.render_template_directive.RenderTemplateDirective', + 'Conversations.ResetContext': 'ask_sdk_model.interfaces.conversations.reset_context_directive.ResetContextDirective', 'Dialog.DelegateRequest': 'ask_sdk_model.dialog.delegate_request_directive.DelegateRequestDirective', 'Hint': 'ask_sdk_model.interfaces.display.hint_directive.HintDirective', 'Connections.StartConnection': 'ask_sdk_model.interfaces.connections.v1.start_connection_directive.StartConnectionDirective', diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index ea038d6..da98eb0 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .success_response import SuccessResponse from .base_response import BaseResponse from .request import Request -from .success_response import SuccessResponse from .failure_response import FailureResponse diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index dda0d19..998c51b 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .entity_value_and_synonyms import EntityValueAndSynonyms from .update_behavior import UpdateBehavior +from .entity_value_and_synonyms import EntityValueAndSynonyms from .entity_list_item import EntityListItem from .entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index 3f48ba3..2245580 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .permission_changed_request import PermissionChangedRequest -from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest -from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .permission_accepted_request import PermissionAcceptedRequest -from .proactive_subscription_event import ProactiveSubscriptionEvent from .permission import Permission -from .account_linked_request import AccountLinkedRequest +from .proactive_subscription_event import ProactiveSubscriptionEvent from .account_linked_body import AccountLinkedBody -from .permission_body import PermissionBody from .skill_enabled_request import SkillEnabledRequest +from .account_linked_request import AccountLinkedRequest from .skill_disabled_request import SkillDisabledRequest +from .permission_changed_request import PermissionChangedRequest +from .permission_body import PermissionBody +from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody +from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest +from .permission_accepted_request import PermissionAcceptedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py index 447f73f..31f7be7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py @@ -14,8 +14,7 @@ # from __future__ import absolute_import +from .experiment_trigger_response import ExperimentTriggerResponse from .experiment_assignment import ExperimentAssignment from .treatment_id import TreatmentId -from .treatment import Treatment from .experimentation_state import ExperimentationState -from .experiment_trigger_response import ExperimentTriggerResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py index 2300b02..1f22c26 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/experiment_assignment.py @@ -23,7 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.experimentation.treatment import Treatment as Treatment_1f18fadd + from ask_sdk_model.interfaces.alexa.experimentation.treatment_id import TreatmentId as TreatmentId_29cc9e4c class ExperimentAssignment(object): @@ -34,12 +34,12 @@ class ExperimentAssignment(object): :param id: :type id: (optional) str :param treatment_id: - :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment + :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId """ deserialized_types = { 'id': 'str', - 'treatment_id': 'ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment' + 'treatment_id': 'ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId' } # type: Dict attribute_map = { @@ -49,13 +49,13 @@ class ExperimentAssignment(object): supports_multiple_types = False def __init__(self, id=None, treatment_id=None): - # type: (Optional[str], Optional[Treatment_1f18fadd]) -> None + # type: (Optional[str], Optional[TreatmentId_29cc9e4c]) -> None """Represents the state of an active experiment's assignment :param id: :type id: (optional) str :param treatment_id: - :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment.Treatment + :type treatment_id: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py index 821e13a..ffc10c3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment_id.py @@ -27,7 +27,7 @@ class TreatmentId(Enum): """ - Name of the experiment treatment identifier + Experiment treatment identifier diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py index 3334e5a..1dd324d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .extensions_state import ExtensionsState from .available_extension import AvailableExtension +from .extensions_state import ExtensionsState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index 3a6dd0d..36781cb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,68 +14,72 @@ # from __future__ import absolute_import -from .auto_page_command import AutoPageCommand -from .animated_property import AnimatedProperty +from .select_command import SelectCommand from .set_state_command import SetStateCommand -from .scroll_to_component_command import ScrollToComponentCommand -from .video_source import VideoSource -from .align import Align -from .scroll_command import ScrollCommand -from .animated_transform_property import AnimatedTransformProperty -from .set_focus_command import SetFocusCommand +from .hide_overlay_command import HideOverlayCommand +from .rendered_document_state import RenderedDocumentState +from .play_media_command import PlayMediaCommand +from .update_index_list_data_directive import UpdateIndexListDataDirective +from .media_command_type import MediaCommandType from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag -from .send_event_command import SendEventCommand -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag +from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .component_entity import ComponentEntity +from .command import Command from .component_visible_on_screen import ComponentVisibleOnScreen +from .load_token_list_data_event import LoadTokenListDataEvent +from .list_runtime_error import ListRuntimeError +from .reinflate_command import ReinflateCommand +from .render_document_directive import RenderDocumentDirective +from .align import Align from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags -from .runtime_error import RuntimeError -from .component_entity import ComponentEntity -from .scroll_to_index_command import ScrollToIndexCommand -from .parallel_command import ParallelCommand -from .set_value_command import SetValueCommand -from .move_transform_property import MoveTransformProperty -from .animate_item_repeat_mode import AnimateItemRepeatMode -from .media_command_type import MediaCommandType -from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .sequential_command import SequentialCommand +from .send_token_list_data_directive import SendTokenListDataDirective +from .highlight_mode import HighlightMode +from .scroll_to_component_command import ScrollToComponentCommand +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag +from .animated_transform_property import AnimatedTransformProperty +from .audio_track import AudioTrack +from .scroll_command import ScrollCommand +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag from .control_media_command import ControlMediaCommand +from .scroll_to_index_command import ScrollToIndexCommand +from .show_overlay_command import ShowOverlayCommand +from .set_page_command import SetPageCommand from .skew_transform_property import SkewTransformProperty +from .video_source import VideoSource +from .back_type import BackType from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .audio_track import AudioTrack +from .auto_page_command import AutoPageCommand +from .send_event_command import SendEventCommand +from .runtime import Runtime +from .list_runtime_error_reason import ListRuntimeErrorReason +from .scale_transform_property import ScaleTransformProperty +from .animated_property import AnimatedProperty +from .animate_item_command import AnimateItemCommand +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag +from .user_event import UserEvent +from .position import Position +from .runtime_error import RuntimeError from .speak_item_command import SpeakItemCommand -from .send_token_list_data_directive import SendTokenListDataDirective +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag +from .clear_focus_command import ClearFocusCommand +from .set_value_command import SetValueCommand +from .move_transform_property import MoveTransformProperty +from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag +from .finish_command import FinishCommand +from .runtime_error_event import RuntimeErrorEvent +from .idle_command import IdleCommand from .load_index_list_data_event import LoadIndexListDataEvent -from .component_state import ComponentState -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum +from .go_back_command import GoBackCommand +from .set_focus_command import SetFocusCommand +from .speak_list_command import SpeakListCommand +from .parallel_command import ParallelCommand +from .animate_item_repeat_mode import AnimateItemRepeatMode from .send_index_list_data_directive import SendIndexListDataDirective -from .scale_transform_property import ScaleTransformProperty -from .position import Position -from .set_page_command import SetPageCommand -from .runtime import Runtime -from .highlight_mode import HighlightMode from .execute_commands_directive import ExecuteCommandsDirective from .animated_opacity_property import AnimatedOpacityProperty +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum +from .component_state import ComponentState from .transform_property import TransformProperty -from .list_runtime_error import ListRuntimeError -from .speak_list_command import SpeakListCommand -from .clear_focus_command import ClearFocusCommand -from .reinflate_command import ReinflateCommand -from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag -from .load_token_list_data_event import LoadTokenListDataEvent -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .command import Command -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .sequential_command import SequentialCommand -from .animate_item_command import AnimateItemCommand -from .idle_command import IdleCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .select_command import SelectCommand -from .runtime_error_event import RuntimeErrorEvent -from .play_media_command import PlayMediaCommand -from .user_event import UserEvent -from .rendered_document_state import RenderedDocumentState -from .finish_command import FinishCommand -from .list_runtime_error_reason import ListRuntimeErrorReason -from .render_document_directive import RenderDocumentDirective -from .open_url_command import OpenUrlCommand from .rotate_transform_property import RotateTransformProperty +from .open_url_command import OpenUrlCommand diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/back_type.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/back_type.py new file mode 100644 index 0000000..69882c0 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/back_type.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class BackType(Enum): + """ + The type of back navigation to use. Defaults to count. + + + + Allowed enum values: [count, index, id] + """ + count = "count" + index = "index" + id = "id" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, BackType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py index 8790680..754d94d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/command.py @@ -59,6 +59,8 @@ class Command(object): | | PlayMedia: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.play_media_command.PlayMediaCommand`, | + | GoBack: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.go_back_command.GoBackCommand`, + | | Scroll: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.scroll_command.ScrollCommand`, | | Idle: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.idle_command.IdleCommand`, @@ -67,10 +69,14 @@ class Command(object): | | SendEvent: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.send_event_command.SendEventCommand`, | + | ShowOverlay: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.show_overlay_command.ShowOverlayCommand`, + | | SpeakList: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.speak_list_command.SpeakListCommand`, | | Select: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.select_command.SelectCommand`, | + | HideOverlay: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.hide_overlay_command.HideOverlayCommand`, + | | Sequential: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.sequential_command.SequentialCommand`, | | SetState: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.set_state_command.SetStateCommand`, @@ -119,12 +125,15 @@ class Command(object): 'Finish': 'ask_sdk_model.interfaces.alexa.presentation.apl.finish_command.FinishCommand', 'AutoPage': 'ask_sdk_model.interfaces.alexa.presentation.apl.auto_page_command.AutoPageCommand', 'PlayMedia': 'ask_sdk_model.interfaces.alexa.presentation.apl.play_media_command.PlayMediaCommand', + 'GoBack': 'ask_sdk_model.interfaces.alexa.presentation.apl.go_back_command.GoBackCommand', 'Scroll': 'ask_sdk_model.interfaces.alexa.presentation.apl.scroll_command.ScrollCommand', 'Idle': 'ask_sdk_model.interfaces.alexa.presentation.apl.idle_command.IdleCommand', 'AnimateItem': 'ask_sdk_model.interfaces.alexa.presentation.apl.animate_item_command.AnimateItemCommand', 'SendEvent': 'ask_sdk_model.interfaces.alexa.presentation.apl.send_event_command.SendEventCommand', + 'ShowOverlay': 'ask_sdk_model.interfaces.alexa.presentation.apl.show_overlay_command.ShowOverlayCommand', 'SpeakList': 'ask_sdk_model.interfaces.alexa.presentation.apl.speak_list_command.SpeakListCommand', 'Select': 'ask_sdk_model.interfaces.alexa.presentation.apl.select_command.SelectCommand', + 'HideOverlay': 'ask_sdk_model.interfaces.alexa.presentation.apl.hide_overlay_command.HideOverlayCommand', 'Sequential': 'ask_sdk_model.interfaces.alexa.presentation.apl.sequential_command.SequentialCommand', 'SetState': 'ask_sdk_model.interfaces.alexa.presentation.apl.set_state_command.SetStateCommand', 'SpeakItem': 'ask_sdk_model.interfaces.alexa.presentation.apl.speak_item_command.SpeakItemCommand', diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/go_back_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/go_back_command.py new file mode 100644 index 0000000..1155574 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/go_back_command.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apl.back_type import BackType as BackType_6caaf6d3 + + +class GoBackCommand(Command): + """ + GoBack command POJO for the backstack APL extension. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param back_type: + :type back_type: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.back_type.BackType + :param back_value: The value of go back command. + :type back_value: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool', + 'back_type': 'ask_sdk_model.interfaces.alexa.presentation.apl.back_type.BackType', + 'back_value': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when', + 'back_type': 'backType', + 'back_value': 'backValue' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, back_type=None, back_value=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[BackType_6caaf6d3], Optional[str]) -> None + """GoBack command POJO for the backstack APL extension. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param back_type: + :type back_type: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.back_type.BackType + :param back_value: The value of go back command. + :type back_value: (optional) str + """ + self.__discriminator_value = "GoBack" # type: str + + self.object_type = self.__discriminator_value + super(GoBackCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + self.back_type = back_type + self.back_value = back_value + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GoBackCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/hide_overlay_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/hide_overlay_command.py new file mode 100644 index 0000000..b02351f --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/hide_overlay_command.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class HideOverlayCommand(Command): + """ + HideOverlay Command used by television shopping skill. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param overlay_layout_id: The id of overlay Layout. + :type overlay_layout_id: (optional) str + :param underlying_layout_id: The id of underlying Layout. + :type underlying_layout_id: (optional) str + :param overlay_width: The overlay width. + :type overlay_width: (optional) str + :param duration: The duration of HideOverlay Command. + :type duration: (optional) int + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool', + 'overlay_layout_id': 'str', + 'underlying_layout_id': 'str', + 'overlay_width': 'str', + 'duration': 'int' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when', + 'overlay_layout_id': 'overlayLayoutId', + 'underlying_layout_id': 'underlyingLayoutId', + 'overlay_width': 'overlayWidth', + 'duration': 'duration' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, overlay_layout_id=None, underlying_layout_id=None, overlay_width=None, duration=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[str], Optional[str], Optional[int]) -> None + """HideOverlay Command used by television shopping skill. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param overlay_layout_id: The id of overlay Layout. + :type overlay_layout_id: (optional) str + :param underlying_layout_id: The id of underlying Layout. + :type underlying_layout_id: (optional) str + :param overlay_width: The overlay width. + :type overlay_width: (optional) str + :param duration: The duration of HideOverlay Command. + :type duration: (optional) int + """ + self.__discriminator_value = "HideOverlay" # type: str + + self.object_type = self.__discriminator_value + super(HideOverlayCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + self.overlay_layout_id = overlay_layout_id + self.underlying_layout_id = underlying_layout_id + self.overlay_width = overlay_width + self.duration = duration + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, HideOverlayCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index d267d97..4e873d6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -16,7 +16,7 @@ from .insert_multiple_items_operation import InsertMultipleItemsOperation from .set_item_operation import SetItemOperation -from .delete_multiple_items_operation import DeleteMultipleItemsOperation from .delete_item_operation import DeleteItemOperation -from .operation import Operation from .insert_item_operation import InsertItemOperation +from .operation import Operation +from .delete_multiple_items_operation import DeleteMultipleItemsOperation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/show_overlay_command.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/show_overlay_command.py new file mode 100644 index 0000000..9991c6c --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/show_overlay_command.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.apl.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ShowOverlayCommand(Command): + """ + ShowOverlay Command used by television shopping skill. + + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param overlay_layout_id: The id of overlay Layout. + :type overlay_layout_id: (optional) str + :param underlying_layout_id: The id of underlying Layout. + :type underlying_layout_id: (optional) str + :param overlay_width: The overlay width. + :type overlay_width: (optional) str + :param duration: The duration of ShowOverlay Command. + :type duration: (optional) int + + """ + deserialized_types = { + 'object_type': 'str', + 'delay': 'int', + 'description': 'str', + 'screen_lock': 'bool', + 'sequencer': 'str', + 'when': 'bool', + 'overlay_layout_id': 'str', + 'underlying_layout_id': 'str', + 'overlay_width': 'str', + 'duration': 'int' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'delay': 'delay', + 'description': 'description', + 'screen_lock': 'screenLock', + 'sequencer': 'sequencer', + 'when': 'when', + 'overlay_layout_id': 'overlayLayoutId', + 'underlying_layout_id': 'underlyingLayoutId', + 'overlay_width': 'overlayWidth', + 'duration': 'duration' + } # type: Dict + supports_multiple_types = False + + def __init__(self, delay=None, description=None, screen_lock=None, sequencer=None, when=None, overlay_layout_id=None, underlying_layout_id=None, overlay_width=None, duration=None): + # type: (Union[int, str, None], Optional[str], Optional[bool], Optional[str], Optional[bool], Optional[str], Optional[str], Optional[str], Optional[int]) -> None + """ShowOverlay Command used by television shopping skill. + + :param delay: The delay in milliseconds before this command starts executing; must be non-negative. Defaults to 0. + :type delay: (optional) int + :param description: A user-provided description of this command. + :type description: (optional) str + :param screen_lock: If true, disable the Interaction Timer. + :type screen_lock: (optional) bool + :param sequencer: Specify the sequencer that should execute this command. + :type sequencer: (optional) str + :param when: If false, the execution of the command is skipped. Defaults to true. + :type when: (optional) bool + :param overlay_layout_id: The id of overlay Layout. + :type overlay_layout_id: (optional) str + :param underlying_layout_id: The id of underlying Layout. + :type underlying_layout_id: (optional) str + :param overlay_width: The overlay width. + :type overlay_width: (optional) str + :param duration: The duration of ShowOverlay Command. + :type duration: (optional) int + """ + self.__discriminator_value = "ShowOverlay" # type: str + + self.object_type = self.__discriminator_value + super(ShowOverlayCommand, self).__init__(object_type=self.__discriminator_value, delay=delay, description=description, screen_lock=screen_lock, sequencer=sequencer, when=when) + self.overlay_layout_id = overlay_layout_id + self.underlying_layout_id = underlying_layout_id + self.overlay_width = overlay_width + self.duration = duration + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ShowOverlayCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index be213b4..3e99ce1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .link_runtime_error import LinkRuntimeError from .link_error_reason import LinkErrorReason from .audio_source_error_reason import AudioSourceErrorReason +from .render_document_directive import RenderDocumentDirective +from .link_runtime_error import LinkRuntimeError +from .document_runtime_error import DocumentRuntimeError from .runtime_error import RuntimeError -from .render_error_reason import RenderErrorReason from .document_error_reason import DocumentErrorReason -from .document_runtime_error import DocumentRuntimeError -from .audio_source_runtime_error import AudioSourceRuntimeError from .render_runtime_error import RenderRuntimeError from .runtime_error_event import RuntimeErrorEvent -from .render_document_directive import RenderDocumentDirective +from .render_error_reason import RenderErrorReason +from .audio_source_runtime_error import AudioSourceRuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index e68310c..e9bee84 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .auto_page_command import AutoPageCommand -from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface -from .scroll_command import ScrollCommand -from .send_event_command import SendEventCommand -from .parallel_command import ParallelCommand -from .set_value_command import SetValueCommand +from .command import Command +from .render_document_directive import RenderDocumentDirective +from .sequential_command import SequentialCommand from .target_profile import TargetProfile -from .position import Position +from .scroll_command import ScrollCommand +from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface from .set_page_command import SetPageCommand +from .auto_page_command import AutoPageCommand +from .send_event_command import SendEventCommand from .runtime import Runtime -from .execute_commands_directive import ExecuteCommandsDirective -from .command import Command -from .sequential_command import SequentialCommand -from .idle_command import IdleCommand from .user_event import UserEvent -from .render_document_directive import RenderDocumentDirective +from .position import Position +from .set_value_command import SetValueCommand +from .idle_command import IdleCommand +from .parallel_command import ParallelCommand +from .execute_commands_directive import ExecuteCommandsDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index f3cecd6..0c12b4d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .message_request import MessageRequest -from .start_request_method import StartRequestMethod -from .handle_message_directive import HandleMessageDirective -from .runtime_error import RuntimeError from .configuration import Configuration -from .transformer_type import TransformerType -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .runtime_error_reason import RuntimeErrorReason +from .transformer_type import TransformerType +from .message_request import MessageRequest +from .runtime_error_request import RuntimeErrorRequest from .runtime import Runtime +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .start_request_method import StartRequestMethod +from .start_request import StartRequest from .transformer import Transformer -from .runtime_error_request import RuntimeErrorRequest +from .runtime_error import RuntimeError +from .handle_message_directive import HandleMessageDirective from .start_directive import StartDirective -from .start_request import StartRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index 534564f..2d97e7e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .billing_agreement_type import BillingAgreementType from .seller_order_attributes import SellerOrderAttributes +from .provider_credit import ProviderCredit from .authorize_attributes import AuthorizeAttributes -from .payment_action import PaymentAction +from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .billing_agreement_attributes import BillingAgreementAttributes from .base_amazon_pay_entity import BaseAmazonPayEntity -from .billing_agreement_type import BillingAgreementType +from .payment_action import PaymentAction from .provider_attributes import ProviderAttributes from .price import Price -from .provider_credit import ProviderCredit -from .billing_agreement_attributes import BillingAgreementAttributes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 452d2a1..46705ef 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .authorization_details import AuthorizationDetails +from .destination import Destination from .authorization_status import AuthorizationStatus -from .state import State -from .billing_agreement_details import BillingAgreementDetails from .release_environment import ReleaseEnvironment +from .billing_agreement_details import BillingAgreementDetails +from .state import State from .price import Price -from .authorization_details import AuthorizationDetails -from .destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index 028ae91..e70d00f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .authorization_status import AuthorizationStatus +from .authorization_details import AuthorizationDetails +from .destination import Destination +from .billing_agreement_type import BillingAgreementType from .seller_order_attributes import SellerOrderAttributes +from .provider_credit import ProviderCredit from .authorize_attributes import AuthorizeAttributes +from .billing_agreement_status import BillingAgreementStatus +from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .authorization_status import AuthorizationStatus +from .billing_agreement_attributes import BillingAgreementAttributes +from .release_environment import ReleaseEnvironment from .payment_action import PaymentAction -from .state import State from .billing_agreement_details import BillingAgreementDetails -from .billing_agreement_type import BillingAgreementType from .provider_attributes import ProviderAttributes -from .release_environment import ReleaseEnvironment +from .state import State from .price import Price -from .provider_credit import ProviderCredit -from .authorization_details import AuthorizationDetails -from .billing_agreement_attributes import BillingAgreementAttributes -from .destination import Destination -from .billing_agreement_status import BillingAgreementStatus diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f7ef1d0..f8fe460 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .charge_amazon_pay_result import ChargeAmazonPayResult from .setup_amazon_pay_result import SetupAmazonPayResult +from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index f974661..9aa15d0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .setup_amazon_pay import SetupAmazonPay +from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult +from .setup_amazon_pay import SetupAmazonPay from .charge_amazon_pay import ChargeAmazonPay -from .setup_amazon_pay_result import SetupAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py index a8db036..3878b28 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .direct_launch import DirectLaunch -from .app_link_interface import AppLinkInterface +from .catalog_types import CatalogTypes from .app_link_state import AppLinkState +from .app_link_interface import AppLinkInterface from .send_to_device import SendToDevice -from .catalog_types import CatalogTypes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index bf733df..fdad96d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -14,24 +14,24 @@ # from __future__ import absolute_import -from .audio_item_metadata import AudioItemMetadata -from .stream import Stream +from .audio_player_interface import AudioPlayerInterface +from .audio_item import AudioItem +from .playback_stopped_request import PlaybackStoppedRequest +from .error import Error +from .playback_started_request import PlaybackStartedRequest +from .clear_behavior import ClearBehavior +from .stop_directive import StopDirective from .caption_data import CaptionData +from .player_activity import PlayerActivity from .clear_queue_directive import ClearQueueDirective -from .play_behavior import PlayBehavior -from .audio_player_state import AudioPlayerState -from .play_directive import PlayDirective +from .stream import Stream from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest -from .stop_directive import StopDirective -from .playback_stopped_request import PlaybackStoppedRequest +from .current_playback_state import CurrentPlaybackState +from .play_behavior import PlayBehavior +from .playback_finished_request import PlaybackFinishedRequest +from .audio_item_metadata import AudioItemMetadata from .caption_type import CaptionType -from .clear_behavior import ClearBehavior -from .player_activity import PlayerActivity -from .error import Error -from .audio_player_interface import AudioPlayerInterface from .playback_failed_request import PlaybackFailedRequest -from .current_playback_state import CurrentPlaybackState +from .play_directive import PlayDirective from .error_type import ErrorType -from .audio_item import AudioItem -from .playback_finished_request import PlaybackFinishedRequest -from .playback_started_request import PlaybackStartedRequest +from .audio_player_state import AudioPlayerState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 481bd0c..602bf8d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .on_completion import OnCompletion +from .send_request_directive import SendRequestDirective from .connections_request import ConnectionsRequest from .send_response_directive import SendResponseDirective from .connections_status import ConnectionsStatus -from .send_request_directive import SendRequestDirective from .connections_response import ConnectionsResponse +from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index d11db06..6cc8008 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .print_image_request import PrintImageRequest from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest -from .base_request import BaseRequest -from .print_web_page_request import PrintWebPageRequest -from .print_pdf_request import PrintPDFRequest from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest -from .print_image_request import PrintImageRequest +from .print_pdf_request import PrintPDFRequest +from .print_web_page_request import PrintWebPageRequest +from .base_request import BaseRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py index 71f7d91..f3fcaa1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py @@ -14,5 +14,6 @@ # from __future__ import absolute_import +from .reset_context_directive import ResetContextDirective from .api_request import APIRequest from .api_invocation_request import APIInvocationRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/reset_context_directive.py similarity index 79% rename from ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py rename to ask-sdk-model/ask_sdk_model/interfaces/conversations/reset_context_directive.py index 4798227..4bfafbe 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/treatment.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/reset_context_directive.py @@ -18,40 +18,37 @@ import six import typing from enum import Enum +from ask_sdk_model.directive import Directive if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime - from ask_sdk_model.interfaces.alexa.experimentation.treatment_id import TreatmentId as TreatmentId_29cc9e4c -class Treatment(object): +class ResetContextDirective(Directive): """ - :param name: - :type name: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId """ deserialized_types = { - 'name': 'ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId' + 'object_type': 'str' } # type: Dict attribute_map = { - 'name': 'name' + 'object_type': 'type' } # type: Dict supports_multiple_types = False - def __init__(self, name=None): - # type: (Optional[TreatmentId_29cc9e4c]) -> None + def __init__(self): + # type: () -> None """ - :param name: - :type name: (optional) ask_sdk_model.interfaces.alexa.experimentation.treatment_id.TreatmentId """ - self.__discriminator_value = None # type: str + self.__discriminator_value = "Conversations.ResetContext" # type: str - self.name = name + self.object_type = self.__discriminator_value + super(ResetContextDirective, self).__init__(object_type=self.__discriminator_value) def to_dict(self): # type: () -> Dict[str, object] @@ -96,7 +93,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, Treatment): + if not isinstance(other, ResetContextDirective): return False return self.__dict__ == other.__dict__ diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index 8b11efb..b0405d8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .header import Header -from .filter_match_action import FilterMatchAction from .events_received_request import EventsReceivedRequest +from .event import Event +from .send_directive_directive import SendDirectiveDirective +from .header import Header from .expiration import Expiration -from .stop_event_handler_directive import StopEventHandlerDirective from .expired_request import ExpiredRequest from .event_filter import EventFilter -from .send_directive_directive import SendDirectiveDirective -from .event import Event +from .stop_event_handler_directive import StopEventHandlerDirective +from .filter_match_action import FilterMatchAction from .endpoint import Endpoint from .start_event_handler_directive import StartEventHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index 320eb3c..b7a61a0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import -from .list_template2 import ListTemplate2 -from .image import Image -from .text_content import TextContent -from .hint_directive import HintDirective +from .list_template1 import ListTemplate1 +from .body_template2 import BodyTemplate2 +from .element_selected_request import ElementSelectedRequest +from .display_interface import DisplayInterface from .plain_text import PlainText +from .body_template6 import BodyTemplate6 +from .body_template7 import BodyTemplate7 from .display_state import DisplayState +from .body_template3 import BodyTemplate3 +from .list_item import ListItem from .image_instance import ImageInstance -from .text_field import TextField -from .body_template1 import BodyTemplate1 +from .text_content import TextContent +from .plain_text_hint import PlainTextHint +from .render_template_directive import RenderTemplateDirective from .image_size import ImageSize -from .body_template3 import BodyTemplate3 -from .body_template6 import BodyTemplate6 -from .display_interface import DisplayInterface +from .hint_directive import HintDirective +from .template import Template +from .text_field import TextField from .back_button_behavior import BackButtonBehavior from .hint import Hint -from .list_template1 import ListTemplate1 -from .template import Template -from .list_item import ListItem -from .element_selected_request import ElementSelectedRequest -from .body_template7 import BodyTemplate7 -from .render_template_directive import RenderTemplateDirective -from .plain_text_hint import PlainTextHint +from .list_template2 import ListTemplate2 +from .image import Image +from .body_template1 import BodyTemplate1 from .rich_text import RichText -from .body_template2 import BodyTemplate2 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index a32c67f..477f76e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -15,5 +15,5 @@ from __future__ import absolute_import from .stop_input_handler_directive import StopInputHandlerDirective -from .start_input_handler_directive import StartInputHandlerDirective from .input_handler_event_request import InputHandlerEventRequest +from .start_input_handler_directive import StartInputHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index d94ce6d..041c407 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import +from .location_services import LocationServices +from .altitude import Altitude +from .speed import Speed from .geolocation_state import GeolocationState -from .coordinate import Coordinate from .access import Access -from .speed import Speed +from .coordinate import Coordinate +from .heading import Heading from .geolocation_interface import GeolocationInterface from .status import Status -from .location_services import LocationServices -from .altitude import Altitude -from .heading import Heading diff --git a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py index 37af460..eeccc69 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/monetization/v1/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .in_skill_product import InSkillProduct from .purchase_result import PurchaseResult +from .in_skill_product import InSkillProduct diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index 94b2efa..b7cdb09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .pause_command_issued_request import PauseCommandIssuedRequest from .previous_command_issued_request import PreviousCommandIssuedRequest -from .next_command_issued_request import NextCommandIssuedRequest +from .pause_command_issued_request import PauseCommandIssuedRequest from .play_command_issued_request import PlayCommandIssuedRequest +from .next_command_issued_request import NextCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index 764fba9..dee010d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .error import Error -from .error_cause import ErrorCause from .exception_encountered_request import ExceptionEncounteredRequest +from .error_cause import ErrorCause from .system_state import SystemState from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 3d8eec4..047d571 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .metadata import Metadata +from .launch_directive import LaunchDirective from .video_item import VideoItem from .video_app_interface import VideoAppInterface -from .launch_directive import LaunchDirective -from .metadata import Metadata diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index 4c45712..c14ca09 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .shape import Shape -from .typed_viewport_state import TypedViewportState +from .dialog import Dialog +from .viewport_state import ViewportState from .viewport_video import ViewportVideo -from .viewport_state_video import ViewportStateVideo from .experience import Experience -from .dialog import Dialog -from .touch import Touch -from .keyboard import Keyboard -from .presentation_type import PresentationType +from .mode import Mode from .aplt_viewport_state import APLTViewportState +from .presentation_type import PresentationType from .apl_viewport_state import APLViewportState -from .mode import Mode -from .viewport_state import ViewportState +from .touch import Touch +from .shape import Shape +from .typed_viewport_state import TypedViewportState +from .viewport_state_video import ViewportStateVideo +from .keyboard import Keyboard diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py index 832b6a1..b92f065 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .viewport_configuration import ViewportConfiguration from .current_configuration import CurrentConfiguration +from .viewport_configuration import ViewportConfiguration diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py index 05753b9..04057d1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .character_format import CharacterFormat -from .viewport_profile import ViewportProfile from .inter_segment import InterSegment +from .viewport_profile import ViewportProfile +from .character_format import CharacterFormat diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index 815c03d..ab93696 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .continuous_viewport_size import ContinuousViewportSize from .discrete_viewport_size import DiscreteViewportSize +from .continuous_viewport_size import ContinuousViewportSize from .viewport_size import ViewportSize diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index ceee2ba..de7f8b4 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import +from .api_client_request import ApiClientRequest from .api_client_response import ApiClientResponse +from .base_service_client import BaseServiceClient from .api_client_message import ApiClientMessage -from .service_client_factory import ServiceClientFactory from .authentication_configuration import AuthenticationConfiguration -from .api_client_request import ApiClientRequest -from .service_exception import ServiceException +from .service_client_response import ServiceClientResponse from .api_response import ApiResponse -from .base_service_client import BaseServiceClient +from .api_configuration import ApiConfiguration from .serializer import Serializer +from .service_client_factory import ServiceClientFactory from .api_client import ApiClient -from .service_client_response import ServiceClientResponse -from .api_configuration import ApiConfiguration +from .service_exception import ServiceException diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index c5a9912..247e54a 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .address import Address -from .device_address_service_client import DeviceAddressServiceClient from .short_address import ShortAddress +from .address import Address from .error import Error +from .device_address_service_client import DeviceAddressServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index 571933a..e9c04ed 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .error import Error from .header import Header +from .send_directive_request import SendDirectiveRequest from .speak_directive import SpeakDirective from .directive import Directive from .directive_service_client import DirectiveServiceClient -from .error import Error -from .send_directive_request import SendDirectiveRequest diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index 43208dc..a15da18 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .endpoint_info import EndpointInfo -from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient from .error import Error +from .endpoint_info import EndpointInfo from .endpoint_enumeration_response import EndpointEnumerationResponse from .endpoint_capability import EndpointCapability +from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index 2e5750b..ac7e5c1 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .set_light_parameters import SetLightParameters from .light_animation import LightAnimation -from .trigger_event_type import TriggerEventType +from .set_light_parameters import SetLightParameters from .animation_step import AnimationStep +from .trigger_event_type import TriggerEventType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index 7c2ae06..47c953f 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .recognizer import Recognizer from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType -from .pattern import Pattern -from .input_event_action_type import InputEventActionType +from .event import Event +from .progress_recognizer import ProgressRecognizer from .input_event import InputEvent +from .deviation_recognizer import DeviationRecognizer +from .input_event_action_type import InputEventActionType +from .recognizer import Recognizer +from .pattern import Pattern +from .event_reporting_type import EventReportingType from .input_handler_event import InputHandlerEvent from .pattern_recognizer import PatternRecognizer -from .event import Event -from .event_reporting_type import EventReportingType -from .deviation_recognizer import DeviationRecognizer -from .progress_recognizer import ProgressRecognizer diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index 7c6bdf9..5d335dc 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import +from .list_management_service_client import ListManagementServiceClient from .list_item_body import ListItemBody -from .create_list_request import CreateListRequest +from .error import Error +from .list_state import ListState +from .list_created_event_request import ListCreatedEventRequest +from .list_items_created_event_request import ListItemsCreatedEventRequest +from .links import Links +from .alexa_list_item import AlexaListItem +from .list_deleted_event_request import ListDeletedEventRequest +from .alexa_list import AlexaList +from .list_body import ListBody from .update_list_request import UpdateListRequest from .list_updated_event_request import ListUpdatedEventRequest -from .list_management_service_client import ListManagementServiceClient -from .list_body import ListBody -from .list_items_updated_event_request import ListItemsUpdatedEventRequest -from .status import Status -from .list_state import ListState from .alexa_lists_metadata import AlexaListsMetadata from .alexa_list_metadata import AlexaListMetadata -from .error import Error -from .list_item_state import ListItemState -from .list_created_event_request import ListCreatedEventRequest -from .list_deleted_event_request import ListDeletedEventRequest +from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .create_list_request import CreateListRequest from .update_list_item_request import UpdateListItemRequest -from .links import Links -from .list_items_deleted_event_request import ListItemsDeletedEventRequest from .create_list_item_request import CreateListItemRequest -from .alexa_list import AlexaList +from .list_item_state import ListItemState +from .status import Status from .forbidden_error import ForbiddenError -from .alexa_list_item import AlexaListItem -from .list_items_created_event_request import ListItemsCreatedEventRequest +from .list_items_deleted_event_request import ListItemsDeletedEventRequest diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index f91984f..6c5081b 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error -from .access_token import AccessToken -from .lwa_client import LwaClient from .access_token_request import AccessTokenRequest +from .access_token import AccessToken +from .error import Error from .access_token_response import AccessTokenResponse +from .lwa_client import LwaClient diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index bae2263..73becbb 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -15,16 +15,16 @@ from __future__ import absolute_import from .in_skill_product_transactions_response import InSkillProductTransactionsResponse -from .in_skill_product import InSkillProduct -from .status import Status -from .purchase_mode import PurchaseMode +from .metadata import Metadata from .error import Error -from .transactions import Transactions -from .monetization_service_client import MonetizationServiceClient -from .in_skill_products_response import InSkillProductsResponse from .entitled_state import EntitledState -from .entitlement_reason import EntitlementReason +from .transactions import Transactions from .purchasable_state import PurchasableState -from .metadata import Metadata +from .in_skill_product import InSkillProduct +from .purchase_mode import PurchaseMode +from .monetization_service_client import MonetizationServiceClient from .product_type import ProductType from .result_set import ResultSet +from .entitlement_reason import EntitlementReason +from .in_skill_products_response import InSkillProductsResponse +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index 717a4ff..fdf2847 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .relevant_audience_type import RelevantAudienceType +from .event import Event from .error import Error from .create_proactive_event_request import CreateProactiveEventRequest -from .relevant_audience import RelevantAudience -from .proactive_events_service_client import ProactiveEventsServiceClient -from .event import Event from .skill_stage import SkillStage +from .proactive_events_service_client import ProactiveEventsServiceClient +from .relevant_audience import RelevantAudience +from .relevant_audience_type import RelevantAudienceType diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index d5ef862..d7e68e7 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import +from .reminder_management_service_client import ReminderManagementServiceClient +from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .spoken_info import SpokenInfo +from .recurrence_day import RecurrenceDay +from .event import Event +from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest +from .error import Error from .get_reminders_response import GetRemindersResponse -from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder_deleted_event_request import ReminderDeletedEventRequest +from .reminder_started_event_request import ReminderStartedEventRequest +from .reminder_request import ReminderRequest +from .recurrence import Recurrence from .reminder_deleted_event import ReminderDeletedEvent from .spoken_text import SpokenText +from .alert_info import AlertInfo +from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder_response import ReminderResponse +from .push_notification_status import PushNotificationStatus from .trigger_type import TriggerType -from .recurrence_freq import RecurrenceFreq +from .push_notification import PushNotification from .get_reminder_response import GetReminderResponse -from .alert_info import AlertInfo +from .recurrence_freq import RecurrenceFreq from .status import Status -from .spoken_info import SpokenInfo -from .reminder_request import ReminderRequest -from .recurrence import Recurrence -from .error import Error -from .reminder_management_service_client import ReminderManagementServiceClient -from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest -from .reminder import Reminder -from .reminder_updated_event_request import ReminderUpdatedEventRequest from .trigger import Trigger -from .reminder_started_event_request import ReminderStartedEventRequest -from .reminder_response import ReminderResponse -from .event import Event -from .push_notification import PushNotification -from .push_notification_status import PushNotificationStatus -from .reminder_deleted_event_request import ReminderDeletedEventRequest -from .recurrence_day import RecurrenceDay +from .reminder import Reminder diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py index 52a5939..5daa7ba 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .send_skill_messaging_request import SendSkillMessagingRequest -from .skill_messaging_service_client import SkillMessagingServiceClient from .error import Error +from .skill_messaging_service_client import SkillMessagingServiceClient +from .send_skill_messaging_request import SendSkillMessagingRequest diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index b43f2ad..625f6e9 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import -from .timers_response import TimersResponse -from .text_to_confirm import TextToConfirm -from .notify_only_operation import NotifyOnlyOperation -from .announce_operation import AnnounceOperation -from .timer_response import TimerResponse -from .triggering_behavior import TriggeringBehavior -from .text_to_announce import TextToAnnounce -from .visibility import Visibility -from .notification_config import NotificationConfig from .timer_request import TimerRequest -from .timer_management_service_client import TimerManagementServiceClient -from .status import Status +from .text_to_announce import TextToAnnounce +from .task import Task from .error import Error from .creation_behavior import CreationBehavior -from .task import Task +from .notify_only_operation import NotifyOnlyOperation +from .announce_operation import AnnounceOperation +from .notification_config import NotificationConfig from .operation import Operation +from .timer_management_service_client import TimerManagementServiceClient +from .timer_response import TimerResponse from .display_experience import DisplayExperience +from .timers_response import TimersResponse from .launch_task_operation import LaunchTaskOperation +from .triggering_behavior import TriggeringBehavior +from .visibility import Visibility +from .text_to_confirm import TextToConfirm +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index 353dc6c..028d2a1 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .error_code import ErrorCode +from .ups_service_client import UpsServiceClient +from .error import Error from .distance_units import DistanceUnits -from .temperature_unit import TemperatureUnit from .phone_number import PhoneNumber -from .error import Error -from .ups_service_client import UpsServiceClient +from .temperature_unit import TemperatureUnit +from .error_code import ErrorCode diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index 5ac6821..c7a570c 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .resolutions import Resolutions from .value_wrapper import ValueWrapper -from .status import Status -from .value import Value from .status_code import StatusCode +from .resolutions import Resolutions +from .value import Value from .resolution import Resolution +from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index 5c1ec18..d1f172b 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .standard_card import StandardCard -from .image import Image from .ssml_output_speech import SsmlOutputSpeech -from .card import Card -from .play_behavior import PlayBehavior from .plain_text_output_speech import PlainTextOutputSpeech -from .link_account_card import LinkAccountCard +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .standard_card import StandardCard from .output_speech import OutputSpeech -from .reprompt import Reprompt from .simple_card import SimpleCard -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .reprompt import Reprompt +from .card import Card +from .link_account_card import LinkAccountCard +from .play_behavior import PlayBehavior +from .image import Image From 0ab493acb81ce500e2d670315c5a973f6b179641 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Wed, 23 Mar 2022 13:37:17 -0700 Subject: [PATCH 029/111] Release 1.14.2. For changelog, check CHANGELOG.rst (#25) Co-authored-by: Shreyas Govinda Raju --- .../ask_smapi_model/v0/catalog/__init__.py | 6 +- .../v0/catalog/upload/__init__.py | 16 +- .../development_events/subscriber/__init__.py | 8 +- .../subscription/__init__.py | 8 +- .../v0/event_schema/__init__.py | 12 +- .../alexa_development_event/__init__.py | 2 +- .../ask_smapi_model/v1/__init__.py | 8 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 18 +- .../ask_smapi_model/v1/catalog/__init__.py | 2 +- .../v1/catalog/upload/__init__.py | 12 +- .../ask_smapi_model/v1/isp/__init__.py | 44 ++-- .../ask_smapi_model/v1/skill/__init__.py | 110 ++++----- .../v1/skill/account_linking/__init__.py | 4 +- .../v1/skill/alexa_hosted/__init__.py | 18 +- .../v1/skill/asr/annotation_sets/__init__.py | 16 +- .../v1/skill/asr/evaluations/__init__.py | 24 +- .../v1/skill/beta_test/__init__.py | 4 +- .../v1/skill/beta_test/testers/__init__.py | 6 +- .../v1/skill/certification/__init__.py | 12 +- .../v1/skill/evaluations/__init__.py | 18 +- .../v1/skill/experiment/__init__.py | 58 ++--- .../v1/skill/history/__init__.py | 18 +- .../v1/skill/interaction_model/__init__.py | 50 ++--- .../interaction_model/catalog/__init__.py | 14 +- .../conflict_detection/__init__.py | 8 +- .../skill/interaction_model/jobs/__init__.py | 32 +-- .../interaction_model/model_type/__init__.py | 18 +- .../type_version/__init__.py | 8 +- .../interaction_model/version/__init__.py | 10 +- .../v1/skill/invocations/__init__.py | 12 +- .../v1/skill/manifest/__init__.py | 211 +++++++++--------- .../v1/skill/manifest/custom/__init__.py | 6 +- .../v1/skill/manifest/knowledge_apis.py | 12 +- .../knowledge_apis_enablement_channel.py | 67 ++++++ .../v1/skill/manifest/permission_name.py | 3 +- .../v1/skill/metrics/__init__.py | 6 +- .../v1/skill/nlu/annotation_sets/__init__.py | 14 +- .../v1/skill/nlu/evaluations/__init__.py | 50 ++--- .../v1/skill/private/__init__.py | 2 +- .../v1/skill/publication/__init__.py | 2 +- .../v1/skill/simulations/__init__.py | 24 +- .../v1/skill/validations/__init__.py | 8 +- .../v1/smart_home_evaluation/__init__.py | 34 +-- .../v1/vendor_management/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 2 +- .../v2/skill/invocations/__init__.py | 4 +- .../v2/skill/simulations/__init__.py | 30 +-- 47 files changed, 565 insertions(+), 488 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis_enablement_channel.py diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index 773130f..b4e5704 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .create_catalog_request import CreateCatalogRequest -from .catalog_usage import CatalogUsage -from .list_catalogs_response import ListCatalogsResponse from .catalog_type import CatalogType -from .catalog_summary import CatalogSummary +from .catalog_usage import CatalogUsage from .catalog_details import CatalogDetails +from .catalog_summary import CatalogSummary +from .list_catalogs_response import ListCatalogsResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index 796b940..b05be38 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .get_content_upload_response import GetContentUploadResponse -from .list_uploads_response import ListUploadsResponse +from .create_content_upload_response import CreateContentUploadResponse from .ingestion_status import IngestionStatus +from .file_upload_status import FileUploadStatus +from .presigned_upload_part import PresignedUploadPart from .complete_upload_request import CompleteUploadRequest from .content_upload_summary import ContentUploadSummary -from .create_content_upload_request import CreateContentUploadRequest -from .ingestion_step_name import IngestionStepName from .pre_signed_url_item import PreSignedUrlItem +from .list_uploads_response import ListUploadsResponse +from .create_content_upload_request import CreateContentUploadRequest +from .get_content_upload_response import GetContentUploadResponse +from .upload_status import UploadStatus from .content_upload_file_summary import ContentUploadFileSummary -from .file_upload_status import FileUploadStatus -from .presigned_upload_part import PresignedUploadPart +from .ingestion_step_name import IngestionStepName from .upload_ingestion_step import UploadIngestionStep -from .upload_status import UploadStatus -from .create_content_upload_response import CreateContentUploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index 4f6410b..d67b9c8 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .subscriber_summary import SubscriberSummary from .subscriber_info import SubscriberInfo from .endpoint_aws_authorization import EndpointAwsAuthorization -from .update_subscriber_request import UpdateSubscriberRequest from .endpoint_authorization_type import EndpointAuthorizationType -from .create_subscriber_request import CreateSubscriberRequest -from .subscriber_status import SubscriberStatus from .endpoint_authorization import EndpointAuthorization from .list_subscribers_response import ListSubscribersResponse from .endpoint import Endpoint +from .create_subscriber_request import CreateSubscriberRequest +from .subscriber_summary import SubscriberSummary +from .update_subscriber_request import UpdateSubscriberRequest +from .subscriber_status import SubscriberStatus diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index 63bd4ab..d540133 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .event import Event +from .list_subscriptions_response import ListSubscriptionsResponse +from .update_subscription_request import UpdateSubscriptionRequest +from .subscription_summary import SubscriptionSummary from .subscription_info import SubscriptionInfo from .create_subscription_request import CreateSubscriptionRequest -from .subscription_summary import SubscriptionSummary -from .update_subscription_request import UpdateSubscriptionRequest -from .list_subscriptions_response import ListSubscriptionsResponse -from .event import Event diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index 578e938..79ce942 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .base_schema import BaseSchema -from .skill_attributes import SkillAttributes +from .skill_event_attributes import SkillEventAttributes from .subscription_attributes import SubscriptionAttributes -from .actor_attributes import ActorAttributes -from .request_status import RequestStatus from .interaction_model_event_attributes import InteractionModelEventAttributes +from .actor_attributes import ActorAttributes +from .interaction_model_attributes import InteractionModelAttributes +from .skill_attributes import SkillAttributes from .skill_review_event_attributes import SkillReviewEventAttributes -from .skill_event_attributes import SkillEventAttributes +from .request_status import RequestStatus from .skill_review_attributes import SkillReviewAttributes -from .interaction_model_attributes import InteractionModelAttributes +from .base_schema import BaseSchema diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py index 1f26d6b..6d608a5 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .interaction_model_update import InteractionModelUpdate from .manifest_update import ManifestUpdate +from .interaction_model_update import InteractionModelUpdate from .skill_publish import SkillPublish from .skill_certification import SkillCertification diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index 150e884..a1ae581 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .stage_v2_type import StageV2Type -from .stage_type import StageType -from .error import Error -from .links import Links from .link import Link +from .error import Error from .bad_request_error import BadRequestError +from .links import Links +from .stage_type import StageType +from .stage_v2_type import StageV2Type diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 174c838..79cb980 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import +from .response_pagination_context import ResponsePaginationContext from .client_filter import ClientFilter from .operation_filter import OperationFilter +from .request_filters import RequestFilters from .sort_direction import SortDirection -from .client import Client -from .audit_log import AuditLog -from .request_pagination_context import RequestPaginationContext -from .requester import Requester -from .requester_filter import RequesterFilter -from .response_pagination_context import ResponsePaginationContext from .audit_logs_request import AuditLogsRequest -from .audit_logs_response import AuditLogsResponse -from .request_filters import RequestFilters +from .client import Client +from .sort_field import SortField from .resource import Resource +from .requester_filter import RequesterFilter +from .requester import Requester from .operation import Operation -from .sort_field import SortField +from .request_pagination_context import RequestPaginationContext +from .audit_logs_response import AuditLogsResponse from .resource_filter import ResourceFilter from .resource_type_enum import ResourceTypeEnum +from .audit_log import AuditLog diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py index a051feb..8c5e896 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .create_content_upload_url_request import CreateContentUploadUrlRequest from .create_content_upload_url_response import CreateContentUploadUrlResponse from .presigned_upload_part_items import PresignedUploadPartItems +from .create_content_upload_url_request import CreateContentUploadUrlRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index 4798a9a..7c7fc43 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .get_content_upload_response import GetContentUploadResponse from .ingestion_status import IngestionStatus -from .ingestion_step_name import IngestionStepName -from .pre_signed_url_item import PreSignedUrlItem -from .content_upload_file_summary import ContentUploadFileSummary from .file_upload_status import FileUploadStatus from .pre_signed_url import PreSignedUrl -from .upload_ingestion_step import UploadIngestionStep -from .upload_status import UploadStatus +from .pre_signed_url_item import PreSignedUrlItem from .location import Location +from .get_content_upload_response import GetContentUploadResponse +from .upload_status import UploadStatus +from .content_upload_file_summary import ContentUploadFileSummary from .catalog_upload_base import CatalogUploadBase +from .ingestion_step_name import IngestionStepName +from .upload_ingestion_step import UploadIngestionStep diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index d0e5108..52d95a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .promotable_state import PromotableState +from .list_in_skill_product_response import ListInSkillProductResponse +from .editable_state import EditableState +from .tax_information import TaxInformation +from .in_skill_product_summary_response import InSkillProductSummaryResponse +from .price_listing import PriceListing +from .privacy_and_compliance import PrivacyAndCompliance +from .publishing_information import PublishingInformation from .localized_publishing_information import LocalizedPublishingInformation -from .list_in_skill_product import ListInSkillProduct +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance +from .in_skill_product_summary import InSkillProductSummary from .custom_product_prompts import CustomProductPrompts -from .price_listing import PriceListing -from .distribution_countries import DistributionCountries -from .tax_information import TaxInformation -from .in_skill_product_definition import InSkillProductDefinition -from .update_in_skill_product_request import UpdateInSkillProductRequest -from .isp_summary_links import IspSummaryLinks from .associated_skill_response import AssociatedSkillResponse -from .status import Status -from .in_skill_product_summary import InSkillProductSummary -from .subscription_information import SubscriptionInformation -from .currency import Currency -from .marketplace_pricing import MarketplacePricing from .subscription_payment_frequency import SubscriptionPaymentFrequency from .summary_price_listing import SummaryPriceListing +from .subscription_information import SubscriptionInformation +from .purchasable_state import PurchasableState from .product_response import ProductResponse -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance +from .isp_summary_links import IspSummaryLinks from .create_in_skill_product_request import CreateInSkillProductRequest -from .list_in_skill_product_response import ListInSkillProductResponse -from .purchasable_state import PurchasableState -from .promotable_state import PromotableState -from .summary_marketplace_pricing import SummaryMarketplacePricing -from .editable_state import EditableState -from .privacy_and_compliance import PrivacyAndCompliance from .product_type import ProductType -from .publishing_information import PublishingInformation -from .in_skill_product_summary_response import InSkillProductSummaryResponse from .tax_information_category import TaxInformationCategory +from .currency import Currency +from .distribution_countries import DistributionCountries +from .in_skill_product_definition import InSkillProductDefinition +from .summary_marketplace_pricing import SummaryMarketplacePricing +from .list_in_skill_product import ListInSkillProduct +from .marketplace_pricing import MarketplacePricing +from .status import Status +from .update_in_skill_product_request import UpdateInSkillProductRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 5c14613..65e4f45 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import -from .rollback_request_status_types import RollbackRequestStatusTypes -from .list_skill_response import ListSkillResponse +from .version_submission_status import VersionSubmissionStatus +from .export_response import ExportResponse +from .hosted_skill_deployment_status import HostedSkillDeploymentStatus +from .instance import Instance +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus from .image_attributes import ImageAttributes +from .validation_endpoint import ValidationEndpoint +from .clone_locale_status import CloneLocaleStatus +from .clone_locale_request import CloneLocaleRequest +from .validation_data_types import ValidationDataTypes +from .validation_failure_reason import ValidationFailureReason +from .rollback_request_status_types import RollbackRequestStatusTypes +from .create_skill_with_package_request import CreateSkillWithPackageRequest +from .skill_messaging_credentials import SkillMessagingCredentials +from .withdraw_request import WithdrawRequest +from .resource_import_status import ResourceImportStatus from .import_response_skill import ImportResponseSkill -from .export_response_skill import ExportResponseSkill -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .create_rollback_request import CreateRollbackRequest +from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest from .rollback_request_status import RollbackRequestStatus +from .clone_locale_status_response import CloneLocaleStatusResponse +from .skill_version import SkillVersion +from .skill_interaction_model_status import SkillInteractionModelStatus +from .create_rollback_response import CreateRollbackResponse from .format import Format +from .skill_summary_apis import SkillSummaryApis +from .create_skill_response import CreateSkillResponse +from .interaction_model_last_update_request import InteractionModelLastUpdateRequest +from .ssl_certificate_payload import SSLCertificatePayload +from .export_response_skill import ExportResponseSkill +from .skill_resources_enum import SkillResourcesEnum +from .action import Action +from .build_step_name import BuildStepName +from .validation_details import ValidationDetails +from .reason import Reason +from .list_skill_response import ListSkillResponse from .version_submission import VersionSubmission -from .skill_status import SkillStatus +from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest +from .image_dimension import ImageDimension from .image_size import ImageSize -from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest -from .create_skill_response import CreateSkillResponse +from .validation_failure_type import ValidationFailureType +from .validation_feature import ValidationFeature from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .overwrite_mode import OverwriteMode -from .image_dimension import ImageDimension -from .create_rollback_response import CreateRollbackResponse -from .skill_resources_enum import SkillResourcesEnum -from .import_response import ImportResponse -from .update_skill_with_package_request import UpdateSkillWithPackageRequest from .list_skill_versions_response import ListSkillVersionsResponse -from .build_step import BuildStep -from .version_submission_status import VersionSubmissionStatus -from .manifest_last_update_request import ManifestLastUpdateRequest -from .publication_method import PublicationMethod -from .action import Action from .clone_locale_stage_type import CloneLocaleStageType -from .status import Status -from .skill_interaction_model_status import SkillInteractionModelStatus -from .validation_endpoint import ValidationEndpoint -from .clone_locale_status import CloneLocaleStatus -from .publication_status import PublicationStatus -from .skill_summary import SkillSummary -from .create_rollback_request import CreateRollbackRequest -from .withdraw_request import WithdrawRequest -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .manifest_status import ManifestStatus -from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .ssl_certificate_payload import SSLCertificatePayload -from .validation_details import ValidationDetails +from .regional_ssl_certificate import RegionalSSLCertificate from .agreement_type import AgreementType -from .skill_messaging_credentials import SkillMessagingCredentials -from .instance import Instance -from .validation_feature import ValidationFeature -from .validation_data_types import ValidationDataTypes -from .upload_response import UploadResponse -from .create_skill_request import CreateSkillRequest -from .standardized_error import StandardizedError -from .reason import Reason -from .validation_failure_reason import ValidationFailureReason -from .clone_locale_request import CloneLocaleRequest +from .publication_method import PublicationMethod +from .clone_locale_resource_status import CloneLocaleResourceStatus +from .image_size_unit import ImageSizeUnit +from .update_skill_with_package_request import UpdateSkillWithPackageRequest +from .skill_status import SkillStatus +from .build_step import BuildStep +from .overwrite_mode import OverwriteMode from .response_status import ResponseStatus -from .regional_ssl_certificate import RegionalSSLCertificate -from .build_details import BuildDetails -from .validation_failure_type import ValidationFailureType -from .skill_version import SkillVersion -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus -from .build_step_name import BuildStepName -from .clone_locale_status_response import CloneLocaleStatusResponse -from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .skill_summary_apis import SkillSummaryApis from .skill_credentials import SkillCredentials from .clone_locale_request_status import CloneLocaleRequestStatus -from .image_size_unit import ImageSizeUnit -from .clone_locale_resource_status import CloneLocaleResourceStatus -from .export_response import ExportResponse -from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .resource_import_status import ResourceImportStatus +from .build_details import BuildDetails +from .manifest_last_update_request import ManifestLastUpdateRequest +from .skill_summary import SkillSummary +from .standardized_error import StandardizedError +from .publication_status import PublicationStatus +from .create_skill_request import CreateSkillRequest +from .status import Status +from .manifest_status import ManifestStatus +from .import_response import ImportResponse +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .upload_response import UploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index a88ba5f..71ed772 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -15,9 +15,9 @@ from __future__ import absolute_import from .account_linking_response import AccountLinkingResponse +from .account_linking_type import AccountLinkingType from .platform_type import PlatformType from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl +from .account_linking_request_payload import AccountLinkingRequestPayload from .access_token_scheme_type import AccessTokenSchemeType -from .account_linking_type import AccountLinkingType from .account_linking_request import AccountLinkingRequest -from .account_linking_request_payload import AccountLinkingRequestPayload diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index 85ff419..e3b97e3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_info import HostedSkillInfo -from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest -from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials -from .hosted_skill_permission_status import HostedSkillPermissionStatus -from .hosted_skill_runtime import HostedSkillRuntime -from .hosted_skill_metadata import HostedSkillMetadata +from .hosted_skill_repository import HostedSkillRepository from .alexa_hosted_config import AlexaHostedConfig from .hosted_skill_permission_type import HostedSkillPermissionType +from .hosted_skill_info import HostedSkillInfo +from .hosted_skill_repository_info import HostedSkillRepositoryInfo from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList -from .hosted_skill_region import HostedSkillRegion +from .hosted_skill_runtime import HostedSkillRuntime +from .hosted_skill_permission_status import HostedSkillPermissionStatus from .hosting_configuration import HostingConfiguration from .hosted_skill_permission import HostedSkillPermission -from .hosted_skill_repository import HostedSkillRepository -from .hosted_skill_repository_info import HostedSkillRepositoryInfo +from .hosted_skill_metadata import HostedSkillMetadata +from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest +from .hosted_skill_region import HostedSkillRegion +from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 444634b..4ba2a07 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .annotation_set_metadata import AnnotationSetMetadata -from .annotation_set_items import AnnotationSetItems -from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .annotation import Annotation +from .pagination_context import PaginationContext from .audio_asset import AudioAsset -from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse +from .annotation_set_items import AnnotationSetItems from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject -from .annotation_with_audio_asset import AnnotationWithAudioAsset -from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse -from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject +from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse +from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse -from .pagination_context import PaginationContext +from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse +from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject +from .annotation_set_metadata import AnnotationSetMetadata +from .annotation_with_audio_asset import AnnotationWithAudioAsset diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py index 9a8a0e3..5a53e9c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py @@ -14,22 +14,22 @@ # from __future__ import absolute_import -from .metrics import Metrics -from .evaluation_result_output import EvaluationResultOutput -from .evaluation_items import EvaluationItems from .skill import Skill -from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .metrics import Metrics from .annotation import Annotation -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject +from .pagination_context import PaginationContext +from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject +from .audio_asset import AudioAsset from .error_object import ErrorObject +from .evaluation_items import EvaluationItems +from .evaluation_metadata import EvaluationMetadata +from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject +from .evaluation_result_output import EvaluationResultOutput from .evaluation_result_status import EvaluationResultStatus -from .audio_asset import AudioAsset +from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse from .evaluation_metadata_result import EvaluationMetadataResult -from .annotation_with_audio_asset import AnnotationWithAudioAsset from .evaluation_result import EvaluationResult -from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject -from .evaluation_metadata import EvaluationMetadata +from .list_asr_evaluations_response import ListAsrEvaluationsResponse from .evaluation_status import EvaluationStatus -from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse -from .pagination_context import PaginationContext +from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject +from .annotation_with_audio_asset import AnnotationWithAudioAsset diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index bddac34..9bd75c5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .test_body import TestBody from .beta_test import BetaTest -from .status import Status +from .test_body import TestBody from .update_beta_test_response import UpdateBetaTestResponse +from .status import Status diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index a25743c..08ba1f7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .list_testers_response import ListTestersResponse -from .testers_list import TestersList from .tester import Tester -from .tester_with_details import TesterWithDetails +from .testers_list import TestersList from .invitation_status import InvitationStatus +from .list_testers_response import ListTestersResponse +from .tester_with_details import TesterWithDetails diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index 8253458..3ae1d87 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .certification_response import CertificationResponse -from .estimation_update import EstimationUpdate +from .certification_summary import CertificationSummary +from .certification_result import CertificationResult from .review_tracking_info import ReviewTrackingInfo +from .estimation_update import EstimationUpdate from .list_certifications_response import ListCertificationsResponse -from .publication_failure import PublicationFailure -from .certification_result import CertificationResult +from .distribution_info import DistributionInfo from .certification_status import CertificationStatus +from .publication_failure import PublicationFailure from .review_tracking_info_summary import ReviewTrackingInfoSummary -from .distribution_info import DistributionInfo -from .certification_summary import CertificationSummary +from .certification_response import CertificationResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index 87edd82..c02469e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .profile_nlu_selected_intent import ProfileNluSelectedIntent from .intent import Intent -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .profile_nlu_request import ProfileNluRequest +from .multi_turn import MultiTurn from .slot_resolutions import SlotResolutions +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .profile_nlu_selected_intent import ProfileNluSelectedIntent from .resolutions_per_authority_items import ResolutionsPerAuthorityItems +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .profile_nlu_request import ProfileNluRequest +from .slot import Slot +from .dialog_act_type import DialogActType from .confirmation_status_type import ConfirmationStatusType -from .profile_nlu_response import ProfileNluResponse -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .dialog_act import DialogAct -from .dialog_act_type import DialogActType -from .multi_turn import MultiTurn -from .slot import Slot +from .profile_nlu_response import ProfileNluResponse +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py index 87d5b4a..157c639 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py @@ -14,39 +14,39 @@ # from __future__ import absolute_import -from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest -from .experiment_trigger import ExperimentTrigger -from .experiment_summary import ExperimentSummary -from .treatment_id import TreatmentId -from .experiment_stopped_reason import ExperimentStoppedReason -from .state import State -from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse -from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse -from .manage_experiment_state_request import ManageExperimentStateRequest +from .destination_state import DestinationState +from .get_experiment_response import GetExperimentResponse +from .create_experiment_input import CreateExperimentInput +from .pagination_context import PaginationContext +from .metric_change_direction import MetricChangeDirection from .metric_type import MetricType -from .state_transition_status import StateTransitionStatus +from .metric_configuration import MetricConfiguration +from .treatment_id import TreatmentId from .state_transition_error import StateTransitionError -from .update_experiment_request import UpdateExperimentRequest +from .target_state import TargetState +from .metric_values import MetricValues +from .metric_snapshot_status import MetricSnapshotStatus from .get_experiment_state_response import GetExperimentStateResponse -from .list_experiments_response import ListExperimentsResponse -from .destination_state import DestinationState -from .experiment_history import ExperimentHistory -from .metric_snapshot import MetricSnapshot -from .update_exposure_request import UpdateExposureRequest from .update_experiment_input import UpdateExperimentInput -from .experiment_information import ExperimentInformation from .experiment_type import ExperimentType -from .experiment_last_state_transition import ExperimentLastStateTransition -from .metric_snapshot_status import MetricSnapshotStatus -from .metric_values import MetricValues -from .metric_change_direction import MetricChangeDirection -from .create_experiment_request import CreateExperimentRequest -from .metric_configuration import MetricConfiguration -from .metric import Metric -from .create_experiment_input import CreateExperimentInput -from .get_experiment_response import GetExperimentResponse +from .source_state import SourceState +from .experiment_stopped_reason import ExperimentStoppedReason +from .update_exposure_request import UpdateExposureRequest +from .experiment_information import ExperimentInformation +from .manage_experiment_state_request import ManageExperimentStateRequest from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse from .state_transition_error_type import StateTransitionErrorType -from .target_state import TargetState -from .source_state import SourceState -from .pagination_context import PaginationContext +from .experiment_summary import ExperimentSummary +from .metric import Metric +from .experiment_last_state_transition import ExperimentLastStateTransition +from .create_experiment_request import CreateExperimentRequest +from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest +from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse +from .list_experiments_response import ListExperimentsResponse +from .state_transition_status import StateTransitionStatus +from .metric_snapshot import MetricSnapshot +from .experiment_trigger import ExperimentTrigger +from .experiment_history import ExperimentHistory +from .update_experiment_request import UpdateExperimentRequest +from .state import State +from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 6a275c5..366b136 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .locale_in_query import LocaleInQuery from .intent import Intent -from .intent_request import IntentRequest -from .interaction_type import InteractionType -from .publication_status import PublicationStatus +from .intent_requests import IntentRequests from .confidence import Confidence from .sort_field_for_intent_request_type import SortFieldForIntentRequestType -from .intent_requests import IntentRequests -from .dialog_act_name import DialogActName -from .dialog_act import DialogAct +from .intent_request_locales import IntentRequestLocales from .slot import Slot -from .confidence_bin import ConfidenceBin +from .interaction_type import InteractionType from .intent_confidence_bin import IntentConfidenceBin -from .intent_request_locales import IntentRequestLocales +from .locale_in_query import LocaleInQuery +from .dialog_act import DialogAct +from .confidence_bin import ConfidenceBin +from .intent_request import IntentRequest +from .dialog_act_name import DialogActName +from .publication_status import PublicationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index 1bb9371..ba0a35d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import -from .prompt_items import PromptItems -from .multiple_values_config import MultipleValuesConfig -from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel -from .is_in_set import IsInSet -from .type_value_object import TypeValueObject from .intent import Intent -from .value_catalog import ValueCatalog +from .slot_type import SlotType from .dialog_prompts import DialogPrompts -from .dialog_slot_items import DialogSlotItems +from .value_supplier import ValueSupplier +from .language_model import LanguageModel +from .fallback_intent_sensitivity import FallbackIntentSensitivity +from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel from .is_less_than_or_equal_to import IsLessThanOrEqualTo +from .slot_definition import SlotDefinition +from .dialog import Dialog from .type_value import TypeValue -from .interaction_model_data import InteractionModelData +from .delegation_strategy_type import DelegationStrategyType +from .value_catalog import ValueCatalog +from .dialog_slot_items import DialogSlotItems +from .dialog_intents import DialogIntents +from .has_entity_resolution_match import HasEntityResolutionMatch +from .model_configuration import ModelConfiguration +from .slot_validation import SlotValidation from .is_not_in_set import IsNotInSet +from .is_in_duration import IsInDuration +from .is_in_set import IsInSet from .catalog_value_supplier import CatalogValueSupplier -from .dialog import Dialog -from .model_configuration import ModelConfiguration +from .interaction_model_schema import InteractionModelSchema +from .prompt_items_type import PromptItemsType +from .prompt import Prompt +from .is_less_than import IsLessThan +from .multiple_values_config import MultipleValuesConfig +from .type_value_object import TypeValueObject +from .prompt_items import PromptItems from .dialog_intents_prompts import DialogIntentsPrompts -from .delegation_strategy_type import DelegationStrategyType -from .dialog_intents import DialogIntents -from .slot_definition import SlotDefinition from .is_not_in_duration import IsNotInDuration -from .prompt_items_type import PromptItemsType -from .interaction_model_schema import InteractionModelSchema -from .is_in_duration import IsInDuration -from .language_model import LanguageModel +from .interaction_model_data import InteractionModelData +from .inline_value_supplier import InlineValueSupplier from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo -from .slot_validation import SlotValidation -from .has_entity_resolution_match import HasEntityResolutionMatch -from .slot_type import SlotType from .is_greater_than import IsGreaterThan -from .fallback_intent_sensitivity import FallbackIntentSensitivity -from .inline_value_supplier import InlineValueSupplier -from .value_supplier import ValueSupplier -from .is_less_than import IsLessThan -from .prompt import Prompt diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index e017ba8..bd8b7ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .list_catalog_response import ListCatalogResponse +from .update_request import UpdateRequest +from .catalog_response import CatalogResponse +from .catalog_status_type import CatalogStatusType from .last_update_request import LastUpdateRequest -from .definition_data import DefinitionData -from .catalog_entity import CatalogEntity from .catalog_status import CatalogStatus from .catalog_definition_output import CatalogDefinitionOutput -from .catalog_item import CatalogItem -from .update_request import UpdateRequest -from .catalog_status_type import CatalogStatusType -from .catalog_response import CatalogResponse -from .list_catalog_response import ListCatalogResponse from .catalog_input import CatalogInput +from .definition_data import DefinitionData +from .catalog_item import CatalogItem +from .catalog_entity import CatalogEntity diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py index d1a583a..fcf89a7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py @@ -15,11 +15,11 @@ from __future__ import absolute_import from .conflict_detection_job_status import ConflictDetectionJobStatus +from .pagination_context import PaginationContext +from .conflict_intent import ConflictIntent from .get_conflicts_response_result import GetConflictsResponseResult -from .get_conflicts_response import GetConflictsResponse +from .paged_response import PagedResponse from .conflict_intent_slot import ConflictIntentSlot -from .conflict_intent import ConflictIntent from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse -from .paged_response import PagedResponse from .conflict_result import ConflictResult -from .pagination_context import PaginationContext +from .get_conflicts_response import GetConflictsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index 6f4b897..dd2828b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import +from .catalog import Catalog +from .resource_object import ResourceObject from .execution import Execution -from .get_executions_response import GetExecutionsResponse -from .interaction_model import InteractionModel -from .list_job_definitions_response import ListJobDefinitionsResponse from .job_api_pagination_context import JobAPIPaginationContext +from .list_job_definitions_response import ListJobDefinitionsResponse +from .interaction_model import InteractionModel from .reference_version_update import ReferenceVersionUpdate -from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete -from .job_definition_status import JobDefinitionStatus -from .create_job_definition_response import CreateJobDefinitionResponse from .dynamic_update_error import DynamicUpdateError -from .catalog import Catalog -from .job_error_details import JobErrorDetails -from .catalog_auto_refresh import CatalogAutoRefresh -from .create_job_definition_request import CreateJobDefinitionRequest -from .scheduled import Scheduled -from .job_definition_metadata import JobDefinitionMetadata -from .update_job_status_request import UpdateJobStatusRequest -from .slot_type_reference import SlotTypeReference -from .trigger import Trigger from .execution_metadata import ExecutionMetadata +from .slot_type_reference import SlotTypeReference +from .create_job_definition_request import CreateJobDefinitionRequest from .job_definition import JobDefinition from .validation_errors import ValidationErrors -from .resource_object import ResourceObject +from .job_definition_status import JobDefinitionStatus +from .update_job_status_request import UpdateJobStatusRequest +from .job_definition_metadata import JobDefinitionMetadata +from .job_error_details import JobErrorDetails +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .scheduled import Scheduled +from .catalog_auto_refresh import CatalogAutoRefresh +from .get_executions_response import GetExecutionsResponse +from .create_job_definition_response import CreateJobDefinitionResponse +from .trigger import Trigger diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 4a2db11..61927d4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .slot_type_input import SlotTypeInput -from .slot_type_response_entity import SlotTypeResponseEntity -from .slot_type_definition_output import SlotTypeDefinitionOutput -from .last_update_request import LastUpdateRequest -from .definition_data import DefinitionData -from .warning import Warning from .slot_type_status_type import SlotTypeStatusType -from .slot_type_update_definition import SlotTypeUpdateDefinition -from .error import Error -from .slot_type_response import SlotTypeResponse from .list_slot_type_response import ListSlotTypeResponse +from .error import Error from .update_request import UpdateRequest +from .warning import Warning +from .last_update_request import LastUpdateRequest +from .slot_type_definition_output import SlotTypeDefinitionOutput +from .slot_type_response_entity import SlotTypeResponseEntity from .slot_type_status import SlotTypeStatus +from .slot_type_response import SlotTypeResponse +from .slot_type_update_definition import SlotTypeUpdateDefinition +from .slot_type_input import SlotTypeInput +from .definition_data import DefinitionData from .slot_type_item import SlotTypeItem diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index 02ea0e9..855c55f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .list_slot_type_version_response import ListSlotTypeVersionResponse from .version_data import VersionData -from .slot_type_version_data import SlotTypeVersionData -from .slot_type_update_object import SlotTypeUpdateObject from .version_data_object import VersionDataObject -from .slot_type_version_item import SlotTypeVersionItem from .value_supplier_object import ValueSupplierObject from .slot_type_update import SlotTypeUpdate from .slot_type_version_data_object import SlotTypeVersionDataObject +from .slot_type_update_object import SlotTypeUpdateObject +from .list_slot_type_version_response import ListSlotTypeVersionResponse +from .slot_type_version_item import SlotTypeVersionItem +from .slot_type_version_data import SlotTypeVersionData diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 2932db4..6f52391 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .value_schema_name import ValueSchemaName from .version_data import VersionData -from .catalog_update import CatalogUpdate from .list_response import ListResponse -from .catalog_entity_version import CatalogEntityVersion -from .value_schema import ValueSchema +from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse +from .catalog_update import CatalogUpdate from .catalog_version_data import CatalogVersionData +from .value_schema_name import ValueSchemaName from .links import Links -from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .catalog_values import CatalogValues from .version_items import VersionItems +from .catalog_entity_version import CatalogEntityVersion +from .value_schema import ValueSchema from .input_source import InputSource diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index 3d0f911..9eeb384 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .metrics import Metrics -from .end_point_regions import EndPointRegions -from .skill_execution_info import SkillExecutionInfo from .invocation_response_status import InvocationResponseStatus -from .response import Response -from .request import Request +from .metrics import Metrics +from .invoke_skill_response import InvokeSkillResponse from .skill_request import SkillRequest from .invoke_skill_request import InvokeSkillRequest +from .request import Request +from .response import Response from .invocation_response_result import InvocationResponseResult -from .invoke_skill_response import InvokeSkillResponse +from .skill_execution_info import SkillExecutionInfo +from .end_point_regions import EndPointRegions diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 34182c9..4d6b6a8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,126 +14,127 @@ # from __future__ import absolute_import +from .automatic_distribution import AutomaticDistribution +from .house_hold_list import HouseHoldList +from .viewport_shape import ViewportShape +from .display_interface import DisplayInterface +from .interface_type import InterfaceType +from .custom_task import CustomTask +from .skill_manifest_publishing_information import SkillManifestPublishingInformation +from .flash_briefing_content_type import FlashBriefingContentType +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid from .viewport_specification import ViewportSpecification from .localized_name import LocalizedName +from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .music_interfaces import MusicInterfaces +from .skill_manifest_envelope import SkillManifestEnvelope +from .video_country_info import VideoCountryInfo +from .version import Version +from .distribution_mode import DistributionMode +from .viewport_mode import ViewportMode from .music_apis import MusicApis -from .skill_manifest_endpoint import SkillManifestEndpoint +from .tax_information import TaxInformation +from .alexa_for_business_interface import AlexaForBusinessInterface from .video_feature import VideoFeature -from .manifest_gadget_support import ManifestGadgetSupport -from .display_interface_apml_version import DisplayInterfaceApmlVersion -from .android_custom_intent import AndroidCustomIntent -from .event_name import EventName -from .custom_product_prompts import CustomProductPrompts -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion -from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName -from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .video_region import VideoRegion -from .event_publications import EventPublications -from .audio_interface import AudioInterface -from .ssl_certificate_type import SSLCertificateType -from .play_store_common_scheme_name import PlayStoreCommonSchemeName -from .custom_task import CustomTask -from .linked_android_common_intent import LinkedAndroidCommonIntent -from .game_engine_interface import GameEngineInterface +from .linked_application import LinkedApplication from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .linked_common_schemes import LinkedCommonSchemes -from .offer_type import OfferType -from .distribution_countries import DistributionCountries -from .authorized_client import AuthorizedClient -from .authorized_client_lwa import AuthorizedClientLwa -from .gadget_controller_interface import GadgetControllerInterface -from .catalog_info import CatalogInfo -from .tax_information import TaxInformation -from .extension_initialization_request import ExtensionInitializationRequest -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo -from .supported_controls_type import SupportedControlsType -from .flash_briefing_content_type import FlashBriefingContentType -from .free_trial_information import FreeTrialInformation +from .app_link import AppLink +from .permission_name import PermissionName +from .smart_home_protocol import SmartHomeProtocol +from .music_content_name import MusicContentName +from .skill_manifest_apis import SkillManifestApis +from .demand_response_apis import DemandResponseApis +from .audio_interface import AudioInterface from .dialog_management import DialogManagement +from .region import Region +from .dialog_delegation_strategy import DialogDelegationStrategy +from .extension_initialization_request import ExtensionInitializationRequest from .knowledge_apis import KnowledgeApis +from .skill_manifest_endpoint import SkillManifestEndpoint +from .custom_connections import CustomConnections +from .source_language_for_locales import SourceLanguageForLocales +from .interface import Interface from .alexa_for_business_apis import AlexaForBusinessApis -from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .music_content_type import MusicContentType -from .connections_payload import ConnectionsPayload -from .distribution_mode import DistributionMode -from .catalog_type import CatalogType -from .version import Version -from .skill_manifest_events import SkillManifestEvents -from .custom_localized_information import CustomLocalizedInformation -from .viewport_mode import ViewportMode -from .skill_manifest_publishing_information import SkillManifestPublishingInformation +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation +from .custom_product_prompts import CustomProductPrompts +from .event_publications import EventPublications +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .free_trial_information import FreeTrialInformation +from .automatic_cloned_locale import AutomaticClonedLocale +from .localized_music_info import LocalizedMusicInfo +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface from .app_link_interface import AppLinkInterface -from .alexa_for_business_interface import AlexaForBusinessInterface +from .catalog_type import CatalogType +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .linked_common_schemes import LinkedCommonSchemes +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .flash_briefing_genre import FlashBriefingGenre +from .app_link_v2_interface import AppLinkV2Interface +from .linked_android_common_intent import LinkedAndroidCommonIntent from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .permission_name import PermissionName -from .subscription_information import SubscriptionInformation -from .linked_application import LinkedApplication -from .video_prompt_name import VideoPromptName -from .automatic_distribution import AutomaticDistribution -from .music_alias import MusicAlias -from .authorized_client_lwa_application import AuthorizedClientLwaApplication -from .gadget_support_requirement import GadgetSupportRequirement -from .display_interface import DisplayInterface -from .currency import Currency -from .music_capability import MusicCapability -from .interface import Interface -from .music_interfaces import MusicInterfaces -from .dialog_manager import DialogManager -from .skill_manifest_apis import SkillManifestApis -from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest -from .video_apis import VideoApis -from .smart_home_apis import SmartHomeApis -from .demand_response_apis import DemandResponseApis -from .marketplace_pricing import MarketplacePricing from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .health_interface import HealthInterface -from .house_hold_list import HouseHoldList -from .flash_briefing_genre import FlashBriefingGenre -from .lambda_endpoint import LambdaEndpoint -from .lambda_region import LambdaRegion +from .video_apis_locale import VideoApisLocale +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .paid_skill_information import PaidSkillInformation +from .android_custom_intent import AndroidCustomIntent +from .ssl_certificate_type import SSLCertificateType +from .music_request import MusicRequest +from .video_catalog_info import VideoCatalogInfo from .custom_apis import CustomApis +from .dialog_manager import DialogManager +from .lambda_endpoint import LambdaEndpoint from .music_feature import MusicFeature -from .localized_music_info import LocalizedMusicInfo -from .region import Region -from .app_link_v2_interface import AppLinkV2Interface -from .android_common_intent_name import AndroidCommonIntentName -from .dialog_delegation_strategy import DialogDelegationStrategy -from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .viewport_shape import ViewportShape -from .video_apis_locale import VideoApisLocale +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .music_alias import MusicAlias +from .game_engine_interface import GameEngineInterface +from .up_channel_items import UpChannelItems +from .supported_controls_type import SupportedControlsType +from .gadget_support_requirement import GadgetSupportRequirement +from .subscription_information import SubscriptionInformation +from .offer_type import OfferType +from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest from .friendly_name import FriendlyName -from .localized_knowledge_information import LocalizedKnowledgeInformation -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .voice_profile_feature import VoiceProfileFeature -from .display_interface_template_version import DisplayInterfaceTemplateVersion -from .event_name_type import EventNameType +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .health_interface import HealthInterface +from .authorized_client import AuthorizedClient +from .permission_items import PermissionItems +from .manifest_gadget_support import ManifestGadgetSupport from .skill_manifest import SkillManifest -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .video_app_interface import VideoAppInterface -from .smart_home_protocol import SmartHomeProtocol -from .skill_manifest_envelope import SkillManifestEnvelope -from .video_catalog_info import VideoCatalogInfo -from .interface_type import InterfaceType -from .app_link import AppLink +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .music_capability import MusicCapability +from .extension_request import ExtensionRequest +from .music_wordmark import MusicWordmark +from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement +from .authorized_client_lwa import AuthorizedClientLwa +from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .event_name_type import EventNameType from .video_prompt_name_type import VideoPromptNameType +from .voice_profile_feature import VoiceProfileFeature +from .tax_information_category import TaxInformationCategory +from .catalog_name import CatalogName +from .smart_home_apis import SmartHomeApis +from .currency import Currency +from .flash_briefing_apis import FlashBriefingApis +from .catalog_info import CatalogInfo +from .video_region import VideoRegion +from .gadget_controller_interface import GadgetControllerInterface +from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .distribution_countries import DistributionCountries +from .display_interface_apml_version import DisplayInterfaceApmlVersion +from .localized_knowledge_information import LocalizedKnowledgeInformation +from .custom_localized_information import CustomLocalizedInformation +from .lambda_region import LambdaRegion +from .marketplace_pricing import MarketplacePricing from .supported_controls import SupportedControls -from .music_content_name import MusicContentName -from .music_wordmark import MusicWordmark -from .up_channel_items import UpChannelItems -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid -from .paid_skill_information import PaidSkillInformation -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems -from .video_country_info import VideoCountryInfo +from .skill_manifest_events import SkillManifestEvents +from .video_prompt_name import VideoPromptName +from .event_name import EventName +from .music_content_type import MusicContentType +from .connections_payload import ConnectionsPayload from .manifest_version import ManifestVersion -from .automatic_cloned_locale import AutomaticClonedLocale -from .source_language_for_locales import SourceLanguageForLocales -from .music_request import MusicRequest -from .permission_items import PermissionItems -from .flash_briefing_apis import FlashBriefingApis -from .extension_request import ExtensionRequest -from .custom_connections import CustomConnections -from .catalog_name import CatalogName -from .tax_information_category import TaxInformationCategory +from .video_app_interface import VideoAppInterface +from .video_apis import VideoApis +from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .android_common_intent_name import AndroidCommonIntentName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index 492a78d..cf1c289 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .target_runtime_device import TargetRuntimeDevice from .target_runtime import TargetRuntime -from .suppressed_interface import SuppressedInterface -from .connection import Connection from .target_runtime_type import TargetRuntimeType +from .target_runtime_device import TargetRuntimeDevice +from .connection import Connection +from .suppressed_interface import SuppressedInterface diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py index 157a00a..85f55dd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis.py @@ -24,6 +24,7 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.manifest.localized_knowledge_information import LocalizedKnowledgeInformation as LocalizedKnowledgeInformation_59e51789 + from ask_smapi_model.v1.skill.manifest.knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel as KnowledgeApisEnablementChannel_f9390f08 class KnowledgeApis(object): @@ -31,28 +32,35 @@ class KnowledgeApis(object): defines the structure for the knowledge api of the skill. + :param enablement_channel: + :type enablement_channel: (optional) ask_smapi_model.v1.skill.manifest.knowledge_apis_enablement_channel.KnowledgeApisEnablementChannel :param locales: Defines the structure of locale specific knowledge information in the skill manifest. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation) """ deserialized_types = { + 'enablement_channel': 'ask_smapi_model.v1.skill.manifest.knowledge_apis_enablement_channel.KnowledgeApisEnablementChannel', 'locales': 'dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation)' } # type: Dict attribute_map = { + 'enablement_channel': 'enablementChannel', 'locales': 'locales' } # type: Dict supports_multiple_types = False - def __init__(self, locales=None): - # type: (Optional[Dict[str, LocalizedKnowledgeInformation_59e51789]]) -> None + def __init__(self, enablement_channel=None, locales=None): + # type: (Optional[KnowledgeApisEnablementChannel_f9390f08], Optional[Dict[str, LocalizedKnowledgeInformation_59e51789]]) -> None """defines the structure for the knowledge api of the skill. + :param enablement_channel: + :type enablement_channel: (optional) ask_smapi_model.v1.skill.manifest.knowledge_apis_enablement_channel.KnowledgeApisEnablementChannel :param locales: Defines the structure of locale specific knowledge information in the skill manifest. :type locales: (optional) dict(str, ask_smapi_model.v1.skill.manifest.localized_knowledge_information.LocalizedKnowledgeInformation) """ self.__discriminator_value = None # type: str + self.enablement_channel = enablement_channel self.locales = locales def to_dict(self): diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis_enablement_channel.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis_enablement_channel.py new file mode 100644 index 0000000..c9808fa --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/knowledge_apis_enablement_channel.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class KnowledgeApisEnablementChannel(Enum): + """ + Defines how the skill can be enabled by developers. values can be set to 'PUBLIC' (in Alexa Skill Store), 'ASP' (A4R/A4H vendor devices), or 'A4B' Public and ASP selections must have \"distributionMode\" = 'PUBLIC' and will only be eligible for distribution on personal or vendor (A4H/A4R or A4B) devices. + + + + Allowed enum values: [PUBLIC, ASP, A4B] + """ + PUBLIC = "PUBLIC" + ASP = "ASP" + A4B = "A4B" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, KnowledgeApisEnablementChannel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 1703fd8..156c2e1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -68,6 +68,7 @@ class PermissionName(Enum): alexa_energy_devices_state_read = "alexa::energy:devices:state:read" alexa_origin_ip_address_read = "alexa::origin_ip_address:read" alexa_devices_all_coarse_location_read = "alexa::devices:all:coarse_location:read" + alexa_devices_all_tokenized_geolocation_read = "alexa::devices:all:tokenized_geolocation:read" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index f794854..2a147c3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .stage_for_metric import StageForMetric +from .metric import Metric from .period import Period -from .get_metric_data_response import GetMetricDataResponse from .skill_type import SkillType -from .metric import Metric -from .stage_for_metric import StageForMetric +from .get_metric_data_response import GetMetricDataResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index 9b2b995..d80e7c8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse -from .annotation_set import AnnotationSet -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse -from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest -from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse +from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .pagination_context import PaginationContext from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest +from .annotation_set import AnnotationSet from .links import Links +from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest from .annotation_set_entity import AnnotationSetEntity -from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest -from .pagination_context import PaginationContext +from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse +from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index d16427d..0853395 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import -from .confirmation_status import ConfirmationStatus -from .list_nlu_evaluations_response import ListNLUEvaluationsResponse +from .intent import Intent +from .pagination_context import PaginationContext +from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .resolutions_per_authority import ResolutionsPerAuthority +from .results import Results +from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext +from .slots_props import SlotsProps +from .get_nlu_evaluation_response import GetNLUEvaluationResponse +from .evaluation import Evaluation +from .evaluate_response import EvaluateResponse +from .paged_response import PagedResponse +from .list_nlu_evaluations_response import ListNLUEvaluationsResponse +from .links import Links +from .results_status import ResultsStatus +from .expected_intent_slots_props import ExpectedIntentSlotsProps from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse +from .test_case import TestCase from .expected import Expected -from .results_status import ResultsStatus -from .intent import Intent +from .inputs import Inputs +from .expected_intent import ExpectedIntent +from .evaluation_entity import EvaluationEntity +from .evaluation_inputs import EvaluationInputs from .resolutions import Resolutions -from .test_case import TestCase -from .paged_results_response import PagedResultsResponse from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .evaluation_entity import EvaluationEntity -from .status import Status from .evaluate_nlu_request import EvaluateNLURequest -from .actual import Actual -from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext -from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks -from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .slots_props import SlotsProps -from .expected_intent import ExpectedIntent -from .evaluate_response import EvaluateResponse -from .evaluation_inputs import EvaluationInputs -from .links import Links from .source import Source -from .inputs import Inputs -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .results import Results -from .paged_response import PagedResponse -from .resolutions_per_authority import ResolutionsPerAuthority -from .expected_intent_slots_props import ExpectedIntentSlotsProps -from .evaluation import Evaluation -from .pagination_context import PaginationContext +from .confirmation_status import ConfirmationStatus +from .paged_results_response import PagedResultsResponse +from .status import Status +from .actual import Actual diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index 454d68e..e6e9f1c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse from .private_distribution_account import PrivateDistributionAccount from .accept_status import AcceptStatus -from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py index aa0b143..0bc1bfb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .skill_publication_status import SkillPublicationStatus from .skill_publication_response import SkillPublicationResponse +from .skill_publication_status import SkillPublicationStatus from .publish_skill_request import PublishSkillRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index a001556..615b9e7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import +from .simulation import Simulation +from .simulations_api_response import SimulationsApiResponse +from .session_mode import SessionMode from .metrics import Metrics -from .input import Input from .alexa_execution_info import AlexaExecutionInfo -from .alexa_response_content import AlexaResponseContent -from .invocation import Invocation -from .session_mode import SessionMode -from .alexa_response import AlexaResponse -from .simulations_api_response import SimulationsApiResponse -from .invocation_response import InvocationResponse from .simulations_api_request import SimulationsApiRequest -from .invocation_request import InvocationRequest -from .simulations_api_response_status import SimulationsApiResponseStatus -from .simulation import Simulation -from .session import Session +from .device import Device from .simulation_type import SimulationType +from .session import Session +from .invocation_response import InvocationResponse +from .invocation_request import InvocationRequest +from .input import Input +from .alexa_response_content import AlexaResponseContent +from .alexa_response import AlexaResponse from .simulation_result import SimulationResult -from .device import Device +from .invocation import Invocation +from .simulations_api_response_status import SimulationsApiResponseStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index 9255147..c7ad187 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .response_validation_importance import ResponseValidationImportance +from .validations_api_response_result import ValidationsApiResponseResult from .validations_api_request import ValidationsApiRequest -from .response_validation import ResponseValidation +from .validations_api_response import ValidationsApiResponse from .validations_api_response_status import ValidationsApiResponseStatus +from .response_validation_importance import ResponseValidationImportance from .response_validation_status import ResponseValidationStatus -from .validations_api_response import ValidationsApiResponse -from .validations_api_response_result import ValidationsApiResponseResult +from .response_validation import ResponseValidation diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index 8d074d0..b149f16 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .sh_capability_state import SHCapabilityState -from .sh_capability_directive import SHCapabilityDirective +from .evaluation_object import EvaluationObject +from .pagination_context import PaginationContext +from .evaluation_entity_status import EvaluationEntityStatus +from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse +from .sh_capability_error import SHCapabilityError from .sh_evaluation_results_metric import SHEvaluationResultsMetric -from .sh_capability_response import SHCapabilityResponse -from .sh_capability_error_code import SHCapabilityErrorCode +from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse +from .paged_response import PagedResponse from .test_case_result_status import TestCaseResultStatus -from .pagination_context_token import PaginationContextToken +from .sh_capability_error_code import SHCapabilityErrorCode +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .endpoint import Endpoint from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse +from .sh_capability_response import SHCapabilityResponse +from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse from .list_sh_test_plan_item import ListSHTestPlanItem from .stage import Stage -from .capability_test_plan import CapabilityTestPlan -from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse -from .evaluation_entity_status import EvaluationEntityStatus -from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse -from .evaluation_object import EvaluationObject -from .sh_capability_error import SHCapabilityError -from .test_case_result import TestCaseResult -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .paged_response import PagedResponse from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse -from .endpoint import Endpoint -from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .pagination_context import PaginationContext +from .pagination_context_token import PaginationContextToken +from .test_case_result import TestCaseResult +from .sh_capability_directive import SHCapabilityDirective +from .sh_capability_state import SHCapabilityState +from .capability_test_plan import CapabilityTestPlan diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py index bca62c4..a0a7002 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .vendor import Vendor from .vendors import Vendors +from .vendor import Vendor diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index 4d2bcf6..38e71e2 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -15,6 +15,6 @@ from __future__ import absolute_import from .metrics import Metrics -from .invocation import Invocation from .invocation_response import InvocationResponse from .invocation_request import InvocationRequest +from .invocation import Invocation diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index 0b46360..c034f51 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .invocations_api_request import InvocationsApiRequest -from .end_point_regions import EndPointRegions from .invocation_response_status import InvocationResponseStatus from .skill_request import SkillRequest from .invocation_response_result import InvocationResponseResult from .invocations_api_response import InvocationsApiResponse +from .end_point_regions import EndPointRegions +from .invocations_api_request import InvocationsApiRequest diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index 32045ac..8c03b52 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -14,25 +14,25 @@ # from __future__ import absolute_import -from .input import Input -from .alexa_execution_info import AlexaExecutionInfo +from .simulation import Simulation from .intent import Intent -from .alexa_response_content import AlexaResponseContent -from .skill_execution_info import SkillExecutionInfo -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .session_mode import SessionMode -from .alexa_response import AlexaResponse from .simulations_api_response import SimulationsApiResponse -from .simulations_api_request import SimulationsApiRequest -from .simulations_api_response_status import SimulationsApiResponseStatus +from .session_mode import SessionMode +from .alexa_execution_info import AlexaExecutionInfo from .slot_resolutions import SlotResolutions -from .simulation import Simulation +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .simulations_api_request import SimulationsApiRequest from .resolutions_per_authority_items import ResolutionsPerAuthorityItems +from .device import Device +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .simulation_type import SimulationType from .session import Session +from .slot import Slot from .confirmation_status_type import ConfirmationStatusType -from .simulation_type import SimulationType -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .skill_execution_info import SkillExecutionInfo +from .input import Input +from .alexa_response_content import AlexaResponseContent +from .alexa_response import AlexaResponse from .simulation_result import SimulationResult -from .device import Device -from .slot import Slot +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .simulations_api_response_status import SimulationsApiResponseStatus From 886b1c46417c0555f79a848edf6952120b1ee8d2 Mon Sep 17 00:00:00 2001 From: Shreyas Govinda Raju Date: Mon, 18 Apr 2022 13:36:22 -0700 Subject: [PATCH 030/111] Release 1.14.3. For changelog, check CHANGELOG.rst (#26) Co-authored-by: Shreyas Govinda Raju --- ask-smapi-model/CHANGELOG.rst | 15 +++++ .../ask_smapi_model/__version__.py | 2 +- .../v1/skill/manifest/__init__.py | 1 + .../v1/skill/manifest/lambda_endpoint.py | 16 +++-- .../manifest/lambda_ssl_certificate_type.py | 67 +++++++++++++++++++ 5 files changed, 96 insertions(+), 5 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_ssl_certificate_type.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 01dbf09..163b429 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -229,3 +229,18 @@ This release contains the following changes : This release contains the following changes : - Enable TSB APL Extension in skill manifest + +1.14.2 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions +- Added new model definitions for Knowledge APIs + +1.14.3 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions \ No newline at end of file diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 238e0d8..7585c0e 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.1' +__version__ = '1.14.3' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 4d6b6a8..c4a42f1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -79,6 +79,7 @@ from .android_custom_intent import AndroidCustomIntent from .ssl_certificate_type import SSLCertificateType from .music_request import MusicRequest +from .lambda_ssl_certificate_type import LambdaSSLCertificateType from .video_catalog_info import VideoCatalogInfo from .custom_apis import CustomApis from .dialog_manager import DialogManager diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py index b6701cb..6739904 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type import LambdaSSLCertificateType as LambdaSSLCertificateType_50ec1486 class LambdaEndpoint(object): @@ -32,27 +33,34 @@ class LambdaEndpoint(object): :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str + :param ssl_certificate_type: + :type ssl_certificate_type: (optional) ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type.LambdaSSLCertificateType """ deserialized_types = { - 'uri': 'str' + 'uri': 'str', + 'ssl_certificate_type': 'ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type.LambdaSSLCertificateType' } # type: Dict attribute_map = { - 'uri': 'uri' + 'uri': 'uri', + 'ssl_certificate_type': 'sslCertificateType' } # type: Dict supports_multiple_types = False - def __init__(self, uri=None): - # type: (Optional[str]) -> None + def __init__(self, uri=None, ssl_certificate_type=None): + # type: (Optional[str], Optional[LambdaSSLCertificateType_50ec1486]) -> None """Contains the uri field. This sets the global default endpoint. :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str + :param ssl_certificate_type: + :type ssl_certificate_type: (optional) ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type.LambdaSSLCertificateType """ self.__discriminator_value = None # type: str self.uri = uri + self.ssl_certificate_type = ssl_certificate_type def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_ssl_certificate_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_ssl_certificate_type.py new file mode 100644 index 0000000..b12b61e --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_ssl_certificate_type.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class LambdaSSLCertificateType(Enum): + """ + The SSL certificate type of the skill's HTTPS endpoint. Only valid for HTTPS endpoint not for AWS Lambda ARN. + + + + Allowed enum values: [SelfSigned, Wildcard, Trusted] + """ + SelfSigned = "SelfSigned" + Wildcard = "Wildcard" + Trusted = "Trusted" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, LambdaSSLCertificateType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other From 12d7c1f073485b37009e045a678a287d02a4a721 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 2 May 2022 18:33:39 +0000 Subject: [PATCH 031/111] Release 1.14.4. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 9 +- .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 11 +- .../ask_smapi_model/v0/__init__.py | 2 +- .../ask_smapi_model/v0/catalog/__init__.py | 8 +- .../v0/catalog/upload/__init__.py | 18 +- .../development_events/subscriber/__init__.py | 12 +- .../subscription/__init__.py | 6 +- .../v0/event_schema/__init__.py | 14 +- .../ask_smapi_model/v1/__init__.py | 8 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 22 +- .../ask_smapi_model/v1/catalog/__init__.py | 2 +- .../v1/catalog/upload/__init__.py | 14 +- .../ask_smapi_model/v1/isp/__init__.py | 44 ++-- .../ask_smapi_model/v1/skill/__init__.py | 110 ++++----- .../v1/skill/account_linking/__init__.py | 6 +- .../v1/skill/alexa_hosted/__init__.py | 16 +- .../v1/skill/asr/annotation_sets/__init__.py | 12 +- .../v1/skill/asr/evaluations/__init__.py | 30 +-- .../v1/skill/beta_test/__init__.py | 3 +- .../v1/skill/beta_test/testers/__init__.py | 6 +- .../beta_test/update_beta_test_response.py | 98 -------- .../v1/skill/certification/__init__.py | 12 +- .../v1/skill/evaluations/__init__.py | 18 +- .../v1/skill/experiment/__init__.py | 54 ++--- .../v1/skill/history/__init__.py | 16 +- .../v1/skill/interaction_model/__init__.py | 52 ++--- .../interaction_model/catalog/__init__.py | 10 +- .../conflict_detection/__init__.py | 12 +- .../skill/interaction_model/jobs/__init__.py | 34 +-- .../interaction_model/model_type/__init__.py | 16 +- .../type_version/__init__.py | 8 +- .../interaction_model/version/__init__.py | 14 +- .../v1/skill/invocations/__init__.py | 10 +- .../v1/skill/manifest/__init__.py | 212 +++++++++--------- .../v1/skill/manifest/custom/__init__.py | 4 +- .../v1/skill/manifest/event_name_type.py | 3 +- .../v1/skill/manifest/lambda_endpoint.py | 4 +- .../v1/skill/metrics/__init__.py | 2 +- .../v1/skill/nlu/annotation_sets/__init__.py | 14 +- .../v1/skill/nlu/evaluations/__init__.py | 46 ++-- .../v1/skill/private/__init__.py | 4 +- .../v1/skill/simulations/__init__.py | 22 +- .../v1/skill/validations/__init__.py | 2 +- .../v1/smart_home_evaluation/__init__.py | 30 +-- .../v1/vendor_management/__init__.py | 2 +- .../ask_smapi_model/v2/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 2 +- .../v2/skill/invocations/__init__.py | 4 +- .../v2/skill/simulations/__init__.py | 32 +-- 50 files changed, 501 insertions(+), 593 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 163b429..6ce262a 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -243,4 +243,11 @@ This release contains the following changes : This release contains the following changes : -- Updating model definitions \ No newline at end of file +- Updating model definitions + +1.14.4 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 7585c0e..6c579f4 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.3' +__version__ = '1.14.4' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 315ed65..f9fa7de 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -193,7 +193,6 @@ from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_response import SlotTypeResponse as SlotTypeResponse_1ca513dc from ask_smapi_model.v1.skill.nlu.evaluations.get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse as GetNLUEvaluationResultsResponse_5ca1fa54 from ask_smapi_model.v1.skill.history.locale_in_query import LocaleInQuery as LocaleInQuery_6526a92e - from ask_smapi_model.v1.skill.beta_test.update_beta_test_response import UpdateBetaTestResponse as UpdateBetaTestResponse_84abf38 from ask_smapi_model.v1.skill.interaction_model.jobs.get_executions_response import GetExecutionsResponse as GetExecutionsResponse_1b1a1680 from ask_smapi_model.v1.skill.experiment.list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse as ListExperimentMetricSnapshotsResponse_bb18308b from ask_smapi_model.v1.skill.experiment.create_experiment_request import CreateExperimentRequest as CreateExperimentRequest_abced22d @@ -7129,7 +7128,7 @@ def create_beta_test_v1(self, skill_id, **kwargs): return None def update_beta_test_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, UpdateBetaTestResponse_84abf38, BadRequestError_f854b05] + # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ Update beta test. Update a beta test for a given Alexa skill. @@ -7141,7 +7140,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): :param full_response: Boolean value to check if response should contain headers and status code information. This value had to be passed through keyword arguments, by default the parameter value is set to False. :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, UpdateBetaTestResponse_84abf38, BadRequestError_f854b05] + :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ operation_name = "update_beta_test_v1" params = locals() @@ -7181,7 +7180,7 @@ def update_beta_test_v1(self, skill_id, **kwargs): header_params.append(('Authorization', authorization_value)) error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.beta_test.update_beta_test_response.UpdateBetaTestResponse", status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) @@ -7198,12 +7197,12 @@ def update_beta_test_v1(self, skill_id, **kwargs): header_params=header_params, body=body_params, response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.beta_test.update_beta_test_response.UpdateBetaTestResponse") + response_type=None) if full_response: return api_response - return api_response.body + return None def start_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] diff --git a/ask-smapi-model/ask_smapi_model/v0/__init__.py b/ask-smapi-model/ask_smapi_model/v0/__init__.py index a044fbc..7bf567d 100644 --- a/ask-smapi-model/ask_smapi_model/v0/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .error import Error from .bad_request_error import BadRequestError +from .error import Error diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index b4e5704..2369366 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .create_catalog_request import CreateCatalogRequest +from .list_catalogs_response import ListCatalogsResponse +from .catalog_summary import CatalogSummary from .catalog_type import CatalogType -from .catalog_usage import CatalogUsage from .catalog_details import CatalogDetails -from .catalog_summary import CatalogSummary -from .list_catalogs_response import ListCatalogsResponse +from .catalog_usage import CatalogUsage +from .create_catalog_request import CreateCatalogRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index b05be38..5be33cb 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .create_content_upload_response import CreateContentUploadResponse -from .ingestion_status import IngestionStatus -from .file_upload_status import FileUploadStatus +from .create_content_upload_request import CreateContentUploadRequest +from .get_content_upload_response import GetContentUploadResponse from .presigned_upload_part import PresignedUploadPart +from .file_upload_status import FileUploadStatus +from .content_upload_file_summary import ContentUploadFileSummary +from .list_uploads_response import ListUploadsResponse +from .upload_status import UploadStatus from .complete_upload_request import CompleteUploadRequest from .content_upload_summary import ContentUploadSummary +from .ingestion_status import IngestionStatus +from .upload_ingestion_step import UploadIngestionStep from .pre_signed_url_item import PreSignedUrlItem -from .list_uploads_response import ListUploadsResponse -from .create_content_upload_request import CreateContentUploadRequest -from .get_content_upload_response import GetContentUploadResponse -from .upload_status import UploadStatus -from .content_upload_file_summary import ContentUploadFileSummary +from .create_content_upload_response import CreateContentUploadResponse from .ingestion_step_name import IngestionStepName -from .upload_ingestion_step import UploadIngestionStep diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index d67b9c8..1370998 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .subscriber_info import SubscriberInfo +from .endpoint import Endpoint +from .update_subscriber_request import UpdateSubscriberRequest from .endpoint_aws_authorization import EndpointAwsAuthorization -from .endpoint_authorization_type import EndpointAuthorizationType +from .subscriber_status import SubscriberStatus +from .subscriber_info import SubscriberInfo from .endpoint_authorization import EndpointAuthorization -from .list_subscribers_response import ListSubscribersResponse -from .endpoint import Endpoint from .create_subscriber_request import CreateSubscriberRequest +from .endpoint_authorization_type import EndpointAuthorizationType from .subscriber_summary import SubscriberSummary -from .update_subscriber_request import UpdateSubscriberRequest -from .subscriber_status import SubscriberStatus +from .list_subscribers_response import ListSubscribersResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index d540133..278ce20 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .event import Event -from .list_subscriptions_response import ListSubscriptionsResponse +from .subscription_info import SubscriptionInfo from .update_subscription_request import UpdateSubscriptionRequest +from .list_subscriptions_response import ListSubscriptionsResponse from .subscription_summary import SubscriptionSummary -from .subscription_info import SubscriptionInfo +from .event import Event from .create_subscription_request import CreateSubscriptionRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index 79ce942..cf93445 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .skill_event_attributes import SkillEventAttributes -from .subscription_attributes import SubscriptionAttributes -from .interaction_model_event_attributes import InteractionModelEventAttributes -from .actor_attributes import ActorAttributes -from .interaction_model_attributes import InteractionModelAttributes from .skill_attributes import SkillAttributes -from .skill_review_event_attributes import SkillReviewEventAttributes +from .actor_attributes import ActorAttributes from .request_status import RequestStatus -from .skill_review_attributes import SkillReviewAttributes +from .subscription_attributes import SubscriptionAttributes from .base_schema import BaseSchema +from .skill_review_event_attributes import SkillReviewEventAttributes +from .skill_review_attributes import SkillReviewAttributes +from .skill_event_attributes import SkillEventAttributes +from .interaction_model_attributes import InteractionModelAttributes +from .interaction_model_event_attributes import InteractionModelEventAttributes diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index a1ae581..b889b8c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .link import Link -from .error import Error -from .bad_request_error import BadRequestError -from .links import Links from .stage_type import StageType +from .bad_request_error import BadRequestError +from .error import Error +from .link import Link from .stage_v2_type import StageV2Type +from .links import Links diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 79cb980..8032119 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .response_pagination_context import ResponsePaginationContext -from .client_filter import ClientFilter -from .operation_filter import OperationFilter -from .request_filters import RequestFilters -from .sort_direction import SortDirection -from .audit_logs_request import AuditLogsRequest from .client import Client +from .requester_filter import RequesterFilter from .sort_field import SortField from .resource import Resource -from .requester_filter import RequesterFilter -from .requester import Requester -from .operation import Operation from .request_pagination_context import RequestPaginationContext -from .audit_logs_response import AuditLogsResponse from .resource_filter import ResourceFilter -from .resource_type_enum import ResourceTypeEnum +from .sort_direction import SortDirection +from .request_filters import RequestFilters +from .operation_filter import OperationFilter from .audit_log import AuditLog +from .audit_logs_request import AuditLogsRequest +from .client_filter import ClientFilter +from .resource_type_enum import ResourceTypeEnum +from .requester import Requester +from .response_pagination_context import ResponsePaginationContext +from .audit_logs_response import AuditLogsResponse +from .operation import Operation diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py index 8c5e896..cc9dfa7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .create_content_upload_url_response import CreateContentUploadUrlResponse from .presigned_upload_part_items import PresignedUploadPartItems from .create_content_upload_url_request import CreateContentUploadUrlRequest +from .create_content_upload_url_response import CreateContentUploadUrlResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index 7c7fc43..e77f93a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .ingestion_status import IngestionStatus -from .file_upload_status import FileUploadStatus from .pre_signed_url import PreSignedUrl -from .pre_signed_url_item import PreSignedUrlItem -from .location import Location from .get_content_upload_response import GetContentUploadResponse -from .upload_status import UploadStatus -from .content_upload_file_summary import ContentUploadFileSummary from .catalog_upload_base import CatalogUploadBase -from .ingestion_step_name import IngestionStepName +from .file_upload_status import FileUploadStatus +from .content_upload_file_summary import ContentUploadFileSummary +from .location import Location +from .upload_status import UploadStatus +from .ingestion_status import IngestionStatus from .upload_ingestion_step import UploadIngestionStep +from .pre_signed_url_item import PreSignedUrlItem +from .ingestion_step_name import IngestionStepName diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 52d95a8..3640136 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .promotable_state import PromotableState -from .list_in_skill_product_response import ListInSkillProductResponse from .editable_state import EditableState -from .tax_information import TaxInformation from .in_skill_product_summary_response import InSkillProductSummaryResponse -from .price_listing import PriceListing -from .privacy_and_compliance import PrivacyAndCompliance -from .publishing_information import PublishingInformation -from .localized_publishing_information import LocalizedPublishingInformation -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance -from .in_skill_product_summary import InSkillProductSummary -from .custom_product_prompts import CustomProductPrompts +from .update_in_skill_product_request import UpdateInSkillProductRequest +from .product_type import ProductType +from .currency import Currency from .associated_skill_response import AssociatedSkillResponse -from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .tax_information import TaxInformation from .summary_price_listing import SummaryPriceListing +from .localized_publishing_information import LocalizedPublishingInformation +from .promotable_state import PromotableState +from .in_skill_product_definition import InSkillProductDefinition +from .create_in_skill_product_request import CreateInSkillProductRequest from .subscription_information import SubscriptionInformation -from .purchasable_state import PurchasableState +from .subscription_payment_frequency import SubscriptionPaymentFrequency from .product_response import ProductResponse -from .isp_summary_links import IspSummaryLinks -from .create_in_skill_product_request import CreateInSkillProductRequest -from .product_type import ProductType -from .tax_information_category import TaxInformationCategory -from .currency import Currency from .distribution_countries import DistributionCountries -from .in_skill_product_definition import InSkillProductDefinition +from .in_skill_product_summary import InSkillProductSummary +from .tax_information_category import TaxInformationCategory +from .status import Status +from .price_listing import PriceListing +from .purchasable_state import PurchasableState +from .privacy_and_compliance import PrivacyAndCompliance +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance from .summary_marketplace_pricing import SummaryMarketplacePricing -from .list_in_skill_product import ListInSkillProduct from .marketplace_pricing import MarketplacePricing -from .status import Status -from .update_in_skill_product_request import UpdateInSkillProductRequest +from .list_in_skill_product_response import ListInSkillProductResponse +from .custom_product_prompts import CustomProductPrompts +from .isp_summary_links import IspSummaryLinks +from .list_in_skill_product import ListInSkillProduct +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .publishing_information import PublishingInformation diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 65e4f45..9da8f2b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import -from .version_submission_status import VersionSubmissionStatus -from .export_response import ExportResponse -from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .instance import Instance -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus -from .image_attributes import ImageAttributes -from .validation_endpoint import ValidationEndpoint +from .agreement_type import AgreementType +from .clone_locale_stage_type import CloneLocaleStageType +from .update_skill_with_package_request import UpdateSkillWithPackageRequest +from .validation_feature import ValidationFeature +from .skill_status import SkillStatus +from .build_step_name import BuildStepName +from .response_status import ResponseStatus from .clone_locale_status import CloneLocaleStatus -from .clone_locale_request import CloneLocaleRequest -from .validation_data_types import ValidationDataTypes -from .validation_failure_reason import ValidationFailureReason -from .rollback_request_status_types import RollbackRequestStatusTypes -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .skill_messaging_credentials import SkillMessagingCredentials -from .withdraw_request import WithdrawRequest -from .resource_import_status import ResourceImportStatus -from .import_response_skill import ImportResponseSkill from .create_rollback_request import CreateRollbackRequest -from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest -from .rollback_request_status import RollbackRequestStatus +from .ssl_certificate_payload import SSLCertificatePayload from .clone_locale_status_response import CloneLocaleStatusResponse +from .build_step import BuildStep +from .publication_status import PublicationStatus from .skill_version import SkillVersion -from .skill_interaction_model_status import SkillInteractionModelStatus -from .create_rollback_response import CreateRollbackResponse -from .format import Format -from .skill_summary_apis import SkillSummaryApis -from .create_skill_response import CreateSkillResponse -from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .ssl_certificate_payload import SSLCertificatePayload -from .export_response_skill import ExportResponseSkill -from .skill_resources_enum import SkillResourcesEnum -from .action import Action -from .build_step_name import BuildStepName +from .standardized_error import StandardizedError +from .manifest_last_update_request import ManifestLastUpdateRequest from .validation_details import ValidationDetails -from .reason import Reason -from .list_skill_response import ListSkillResponse +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest from .version_submission import VersionSubmission -from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .image_dimension import ImageDimension -from .image_size import ImageSize +from .interaction_model_last_update_request import InteractionModelLastUpdateRequest +from .image_attributes import ImageAttributes from .validation_failure_type import ValidationFailureType -from .validation_feature import ValidationFeature -from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .list_skill_versions_response import ListSkillVersionsResponse -from .clone_locale_stage_type import CloneLocaleStageType -from .regional_ssl_certificate import RegionalSSLCertificate -from .agreement_type import AgreementType -from .publication_method import PublicationMethod -from .clone_locale_resource_status import CloneLocaleResourceStatus -from .image_size_unit import ImageSizeUnit -from .update_skill_with_package_request import UpdateSkillWithPackageRequest -from .skill_status import SkillStatus -from .build_step import BuildStep -from .overwrite_mode import OverwriteMode -from .response_status import ResponseStatus -from .skill_credentials import SkillCredentials +from .reason import Reason +from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest from .clone_locale_request_status import CloneLocaleRequestStatus -from .build_details import BuildDetails -from .manifest_last_update_request import ManifestLastUpdateRequest from .skill_summary import SkillSummary -from .standardized_error import StandardizedError -from .publication_status import PublicationStatus +from .publication_method import PublicationMethod +from .image_dimension import ImageDimension from .create_skill_request import CreateSkillRequest +from .list_skill_versions_response import ListSkillVersionsResponse +from .image_size import ImageSize +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus +from .rollback_request_status_types import RollbackRequestStatusTypes +from .import_response_skill import ImportResponseSkill +from .instance import Instance +from .skill_messaging_credentials import SkillMessagingCredentials +from .version_submission_status import VersionSubmissionStatus +from .hosted_skill_deployment_status import HostedSkillDeploymentStatus +from .create_rollback_response import CreateRollbackResponse from .status import Status -from .manifest_status import ManifestStatus +from .regional_ssl_certificate import RegionalSSLCertificate +from .clone_locale_resource_status import CloneLocaleResourceStatus from .import_response import ImportResponse -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .withdraw_request import WithdrawRequest +from .export_response_skill import ExportResponseSkill +from .build_details import BuildDetails +from .skill_interaction_model_status import SkillInteractionModelStatus +from .create_skill_with_package_request import CreateSkillWithPackageRequest +from .create_skill_response import CreateSkillResponse +from .overwrite_mode import OverwriteMode +from .format import Format from .upload_response import UploadResponse +from .skill_credentials import SkillCredentials +from .skill_summary_apis import SkillSummaryApis +from .validation_failure_reason import ValidationFailureReason +from .export_response import ExportResponse +from .clone_locale_request import CloneLocaleRequest +from .list_skill_response import ListSkillResponse +from .hosted_skill_deployment_details import HostedSkillDeploymentDetails +from .validation_endpoint import ValidationEndpoint +from .manifest_status import ManifestStatus +from .action import Action +from .rollback_request_status import RollbackRequestStatus +from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest +from .image_size_unit import ImageSizeUnit +from .validation_data_types import ValidationDataTypes +from .resource_import_status import ResourceImportStatus +from .skill_resources_enum import SkillResourcesEnum diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 71ed772..2e44b41 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .account_linking_response import AccountLinkingResponse -from .account_linking_type import AccountLinkingType -from .platform_type import PlatformType from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl from .account_linking_request_payload import AccountLinkingRequestPayload +from .account_linking_response import AccountLinkingResponse from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request import AccountLinkingRequest +from .account_linking_type import AccountLinkingType +from .platform_type import PlatformType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index e3b97e3..38ad2a1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_repository import HostedSkillRepository +from .hosted_skill_permission import HostedSkillPermission from .alexa_hosted_config import AlexaHostedConfig from .hosted_skill_permission_type import HostedSkillPermissionType -from .hosted_skill_info import HostedSkillInfo from .hosted_skill_repository_info import HostedSkillRepositoryInfo -from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList from .hosted_skill_runtime import HostedSkillRuntime -from .hosted_skill_permission_status import HostedSkillPermissionStatus -from .hosting_configuration import HostingConfiguration -from .hosted_skill_permission import HostedSkillPermission +from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials +from .hosted_skill_info import HostedSkillInfo +from .hosted_skill_repository import HostedSkillRepository from .hosted_skill_metadata import HostedSkillMetadata -from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest from .hosted_skill_region import HostedSkillRegion -from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials +from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList +from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest +from .hosting_configuration import HostingConfiguration +from .hosted_skill_permission_status import HostedSkillPermissionStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 4ba2a07..18d830b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .annotation import Annotation -from .pagination_context import PaginationContext +from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject from .audio_asset import AudioAsset +from .pagination_context import PaginationContext +from .annotation_with_audio_asset import AnnotationWithAudioAsset from .annotation_set_items import AnnotationSetItems -from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject +from .annotation import Annotation from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse -from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse +from .annotation_set_metadata import AnnotationSetMetadata from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse +from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject -from .annotation_set_metadata import AnnotationSetMetadata -from .annotation_with_audio_asset import AnnotationWithAudioAsset diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py index 5a53e9c..9c2bfc3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py @@ -14,22 +14,22 @@ # from __future__ import absolute_import -from .skill import Skill -from .metrics import Metrics -from .annotation import Annotation -from .pagination_context import PaginationContext -from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .audio_asset import AudioAsset -from .error_object import ErrorObject from .evaluation_items import EvaluationItems -from .evaluation_metadata import EvaluationMetadata -from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject from .evaluation_result_output import EvaluationResultOutput -from .evaluation_result_status import EvaluationResultStatus -from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse -from .evaluation_metadata_result import EvaluationMetadataResult -from .evaluation_result import EvaluationResult -from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .error_object import ErrorObject +from .audio_asset import AudioAsset +from .pagination_context import PaginationContext from .evaluation_status import EvaluationStatus -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .annotation import Annotation +from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .evaluation_metadata_result import EvaluationMetadataResult +from .skill import Skill +from .evaluation_metadata import EvaluationMetadata +from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject +from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject +from .evaluation_result import EvaluationResult +from .evaluation_result_status import EvaluationResultStatus +from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject +from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse +from .metrics import Metrics diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index 9bd75c5..cc2d87b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -15,6 +15,5 @@ from __future__ import absolute_import from .beta_test import BetaTest -from .test_body import TestBody -from .update_beta_test_response import UpdateBetaTestResponse from .status import Status +from .test_body import TestBody diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index 08ba1f7..228ba3f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .tester_with_details import TesterWithDetails +from .list_testers_response import ListTestersResponse from .tester import Tester -from .testers_list import TestersList from .invitation_status import InvitationStatus -from .list_testers_response import ListTestersResponse -from .tester_with_details import TesterWithDetails +from .testers_list import TestersList diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py deleted file mode 100644 index 6b317fc..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/update_beta_test_response.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class UpdateBetaTestResponse(object): - """ - - - """ - deserialized_types = { - } # type: Dict - - attribute_map = { - } # type: Dict - supports_multiple_types = False - - def __init__(self): - # type: () -> None - """ - - """ - self.__discriminator_value = None # type: str - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, UpdateBetaTestResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index 3ae1d87..589b179 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .certification_summary import CertificationSummary -from .certification_result import CertificationResult +from .distribution_info import DistributionInfo from .review_tracking_info import ReviewTrackingInfo -from .estimation_update import EstimationUpdate +from .certification_response import CertificationResponse +from .certification_summary import CertificationSummary +from .review_tracking_info_summary import ReviewTrackingInfoSummary from .list_certifications_response import ListCertificationsResponse -from .distribution_info import DistributionInfo from .certification_status import CertificationStatus from .publication_failure import PublicationFailure -from .review_tracking_info_summary import ReviewTrackingInfoSummary -from .certification_response import CertificationResponse +from .estimation_update import EstimationUpdate +from .certification_result import CertificationResult diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index c02469e..c69509c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .intent import Intent -from .multi_turn import MultiTurn -from .slot_resolutions import SlotResolutions -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .profile_nlu_selected_intent import ProfileNluSelectedIntent from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .profile_nlu_selected_intent import ProfileNluSelectedIntent +from .confirmation_status_type import ConfirmationStatusType from .profile_nlu_request import ProfileNluRequest -from .slot import Slot from .dialog_act_type import DialogActType -from .confirmation_status_type import ConfirmationStatusType -from .dialog_act import DialogAct +from .slot_resolutions import SlotResolutions +from .slot import Slot +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .profile_nlu_response import ProfileNluResponse +from .multi_turn import MultiTurn +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .dialog_act import DialogAct from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py index 157c639..24b35ff 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py @@ -14,39 +14,39 @@ # from __future__ import absolute_import -from .destination_state import DestinationState -from .get_experiment_response import GetExperimentResponse -from .create_experiment_input import CreateExperimentInput +from .experiment_history import ExperimentHistory +from .experiment_summary import ExperimentSummary +from .metric_values import MetricValues +from .state import State +from .treatment_id import TreatmentId from .pagination_context import PaginationContext -from .metric_change_direction import MetricChangeDirection +from .manage_experiment_state_request import ManageExperimentStateRequest from .metric_type import MetricType -from .metric_configuration import MetricConfiguration -from .treatment_id import TreatmentId -from .state_transition_error import StateTransitionError -from .target_state import TargetState -from .metric_values import MetricValues -from .metric_snapshot_status import MetricSnapshotStatus -from .get_experiment_state_response import GetExperimentStateResponse -from .update_experiment_input import UpdateExperimentInput -from .experiment_type import ExperimentType -from .source_state import SourceState -from .experiment_stopped_reason import ExperimentStoppedReason +from .destination_state import DestinationState from .update_exposure_request import UpdateExposureRequest -from .experiment_information import ExperimentInformation -from .manage_experiment_state_request import ManageExperimentStateRequest -from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse from .state_transition_error_type import StateTransitionErrorType -from .experiment_summary import ExperimentSummary +from .state_transition_status import StateTransitionStatus +from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse +from .update_experiment_input import UpdateExperimentInput +from .metric_configuration import MetricConfiguration +from .experiment_stopped_reason import ExperimentStoppedReason +from .create_experiment_input import CreateExperimentInput from .metric import Metric +from .state_transition_error import StateTransitionError +from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse +from .update_experiment_request import UpdateExperimentRequest +from .experiment_information import ExperimentInformation from .experiment_last_state_transition import ExperimentLastStateTransition -from .create_experiment_request import CreateExperimentRequest +from .metric_snapshot_status import MetricSnapshotStatus +from .metric_change_direction import MetricChangeDirection from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest +from .create_experiment_request import CreateExperimentRequest +from .source_state import SourceState +from .experiment_type import ExperimentType from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse -from .list_experiments_response import ListExperimentsResponse -from .state_transition_status import StateTransitionStatus -from .metric_snapshot import MetricSnapshot from .experiment_trigger import ExperimentTrigger -from .experiment_history import ExperimentHistory -from .update_experiment_request import UpdateExperimentRequest -from .state import State -from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse +from .target_state import TargetState +from .get_experiment_state_response import GetExperimentStateResponse +from .get_experiment_response import GetExperimentResponse +from .metric_snapshot import MetricSnapshot +from .list_experiments_response import ListExperimentsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 366b136..4a31e39 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .intent import Intent -from .intent_requests import IntentRequests from .confidence import Confidence -from .sort_field_for_intent_request_type import SortFieldForIntentRequestType +from .intent_request import IntentRequest from .intent_request_locales import IntentRequestLocales +from .locale_in_query import LocaleInQuery +from .publication_status import PublicationStatus from .slot import Slot -from .interaction_type import InteractionType from .intent_confidence_bin import IntentConfidenceBin -from .locale_in_query import LocaleInQuery -from .dialog_act import DialogAct +from .intent_requests import IntentRequests +from .sort_field_for_intent_request_type import SortFieldForIntentRequestType from .confidence_bin import ConfidenceBin -from .intent_request import IntentRequest +from .dialog_act import DialogAct from .dialog_act_name import DialogActName -from .publication_status import PublicationStatus +from .interaction_type import InteractionType +from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index ba0a35d..b2dc530 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import -from .intent import Intent -from .slot_type import SlotType from .dialog_prompts import DialogPrompts -from .value_supplier import ValueSupplier -from .language_model import LanguageModel +from .prompt_items import PromptItems +from .has_entity_resolution_match import HasEntityResolutionMatch +from .multiple_values_config import MultipleValuesConfig +from .is_less_than import IsLessThan +from .is_not_in_set import IsNotInSet +from .dialog_intents import DialogIntents +from .interaction_model_schema import InteractionModelSchema +from .value_catalog import ValueCatalog +from .is_greater_than import IsGreaterThan from .fallback_intent_sensitivity import FallbackIntentSensitivity +from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel -from .is_less_than_or_equal_to import IsLessThanOrEqualTo from .slot_definition import SlotDefinition -from .dialog import Dialog -from .type_value import TypeValue -from .delegation_strategy_type import DelegationStrategyType -from .value_catalog import ValueCatalog -from .dialog_slot_items import DialogSlotItems -from .dialog_intents import DialogIntents -from .has_entity_resolution_match import HasEntityResolutionMatch +from .interaction_model_data import InteractionModelData +from .inline_value_supplier import InlineValueSupplier +from .dialog_intents_prompts import DialogIntentsPrompts +from .is_less_than_or_equal_to import IsLessThanOrEqualTo +from .catalog_value_supplier import CatalogValueSupplier +from .slot_type import SlotType from .model_configuration import ModelConfiguration -from .slot_validation import SlotValidation -from .is_not_in_set import IsNotInSet -from .is_in_duration import IsInDuration +from .type_value import TypeValue from .is_in_set import IsInSet -from .catalog_value_supplier import CatalogValueSupplier -from .interaction_model_schema import InteractionModelSchema +from .is_in_duration import IsInDuration +from .is_not_in_duration import IsNotInDuration +from .value_supplier import ValueSupplier from .prompt_items_type import PromptItemsType +from .language_model import LanguageModel +from .dialog_slot_items import DialogSlotItems +from .dialog import Dialog from .prompt import Prompt -from .is_less_than import IsLessThan -from .multiple_values_config import MultipleValuesConfig from .type_value_object import TypeValueObject -from .prompt_items import PromptItems -from .dialog_intents_prompts import DialogIntentsPrompts -from .is_not_in_duration import IsNotInDuration -from .interaction_model_data import InteractionModelData -from .inline_value_supplier import InlineValueSupplier -from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo -from .is_greater_than import IsGreaterThan +from .slot_validation import SlotValidation +from .delegation_strategy_type import DelegationStrategyType +from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index bd8b7ff..6416183 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .catalog_response import CatalogResponse +from .catalog_input import CatalogInput +from .catalog_definition_output import CatalogDefinitionOutput from .list_catalog_response import ListCatalogResponse from .update_request import UpdateRequest -from .catalog_response import CatalogResponse from .catalog_status_type import CatalogStatusType from .last_update_request import LastUpdateRequest +from .catalog_entity import CatalogEntity +from .catalog_item import CatalogItem from .catalog_status import CatalogStatus -from .catalog_definition_output import CatalogDefinitionOutput -from .catalog_input import CatalogInput from .definition_data import DefinitionData -from .catalog_item import CatalogItem -from .catalog_entity import CatalogEntity diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py index fcf89a7..66937db 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .conflict_detection_job_status import ConflictDetectionJobStatus -from .pagination_context import PaginationContext -from .conflict_intent import ConflictIntent from .get_conflicts_response_result import GetConflictsResponseResult -from .paged_response import PagedResponse -from .conflict_intent_slot import ConflictIntentSlot -from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse +from .pagination_context import PaginationContext from .conflict_result import ConflictResult from .get_conflicts_response import GetConflictsResponse +from .conflict_intent_slot import ConflictIntentSlot +from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse +from .conflict_intent import ConflictIntent +from .conflict_detection_job_status import ConflictDetectionJobStatus +from .paged_response import PagedResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index dd2828b..ad602b8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .catalog import Catalog -from .resource_object import ResourceObject from .execution import Execution -from .job_api_pagination_context import JobAPIPaginationContext +from .trigger import Trigger +from .catalog_auto_refresh import CatalogAutoRefresh from .list_job_definitions_response import ListJobDefinitionsResponse -from .interaction_model import InteractionModel from .reference_version_update import ReferenceVersionUpdate -from .dynamic_update_error import DynamicUpdateError -from .execution_metadata import ExecutionMetadata -from .slot_type_reference import SlotTypeReference -from .create_job_definition_request import CreateJobDefinitionRequest -from .job_definition import JobDefinition -from .validation_errors import ValidationErrors -from .job_definition_status import JobDefinitionStatus +from .job_api_pagination_context import JobAPIPaginationContext +from .job_error_details import JobErrorDetails from .update_job_status_request import UpdateJobStatusRequest +from .create_job_definition_response import CreateJobDefinitionResponse +from .job_definition_status import JobDefinitionStatus +from .validation_errors import ValidationErrors +from .get_executions_response import GetExecutionsResponse +from .catalog import Catalog +from .resource_object import ResourceObject +from .job_definition import JobDefinition from .job_definition_metadata import JobDefinitionMetadata -from .job_error_details import JobErrorDetails -from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .interaction_model import InteractionModel from .scheduled import Scheduled -from .catalog_auto_refresh import CatalogAutoRefresh -from .get_executions_response import GetExecutionsResponse -from .create_job_definition_response import CreateJobDefinitionResponse -from .trigger import Trigger +from .create_job_definition_request import CreateJobDefinitionRequest +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .slot_type_reference import SlotTypeReference +from .dynamic_update_error import DynamicUpdateError +from .execution_metadata import ExecutionMetadata diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 61927d4..8b8d324 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .slot_type_status_type import SlotTypeStatusType -from .list_slot_type_response import ListSlotTypeResponse +from .slot_type_response import SlotTypeResponse from .error import Error -from .update_request import UpdateRequest from .warning import Warning -from .last_update_request import LastUpdateRequest -from .slot_type_definition_output import SlotTypeDefinitionOutput -from .slot_type_response_entity import SlotTypeResponseEntity +from .slot_type_item import SlotTypeItem from .slot_type_status import SlotTypeStatus -from .slot_type_response import SlotTypeResponse from .slot_type_update_definition import SlotTypeUpdateDefinition +from .slot_type_definition_output import SlotTypeDefinitionOutput +from .update_request import UpdateRequest +from .last_update_request import LastUpdateRequest +from .slot_type_status_type import SlotTypeStatusType from .slot_type_input import SlotTypeInput +from .list_slot_type_response import ListSlotTypeResponse +from .slot_type_response_entity import SlotTypeResponseEntity from .definition_data import DefinitionData -from .slot_type_item import SlotTypeItem diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index 855c55f..f853ff4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .version_data import VersionData from .version_data_object import VersionDataObject -from .value_supplier_object import ValueSupplierObject +from .version_data import VersionData +from .list_slot_type_version_response import ListSlotTypeVersionResponse from .slot_type_update import SlotTypeUpdate -from .slot_type_version_data_object import SlotTypeVersionDataObject from .slot_type_update_object import SlotTypeUpdateObject -from .list_slot_type_version_response import ListSlotTypeVersionResponse +from .value_supplier_object import ValueSupplierObject +from .slot_type_version_data_object import SlotTypeVersionDataObject from .slot_type_version_item import SlotTypeVersionItem from .slot_type_version_data import SlotTypeVersionData diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 6f52391..856a794 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .version_data import VersionData -from .list_response import ListResponse from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse -from .catalog_update import CatalogUpdate -from .catalog_version_data import CatalogVersionData +from .list_response import ListResponse +from .version_data import VersionData +from .catalog_entity_version import CatalogEntityVersion from .value_schema_name import ValueSchemaName -from .links import Links +from .value_schema import ValueSchema from .catalog_values import CatalogValues +from .links import Links +from .catalog_update import CatalogUpdate +from .catalog_version_data import CatalogVersionData from .version_items import VersionItems -from .catalog_entity_version import CatalogEntityVersion -from .value_schema import ValueSchema from .input_source import InputSource diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index 9eeb384..dfe7888 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -15,12 +15,12 @@ from __future__ import absolute_import from .invocation_response_status import InvocationResponseStatus -from .metrics import Metrics +from .end_point_regions import EndPointRegions from .invoke_skill_response import InvokeSkillResponse -from .skill_request import SkillRequest +from .invocation_response_result import InvocationResponseResult +from .response import Response +from .metrics import Metrics from .invoke_skill_request import InvokeSkillRequest +from .skill_request import SkillRequest from .request import Request -from .response import Response -from .invocation_response_result import InvocationResponseResult from .skill_execution_info import SkillExecutionInfo -from .end_point_regions import EndPointRegions diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index c4a42f1..1ee36a1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,128 +14,128 @@ # from __future__ import absolute_import -from .automatic_distribution import AutomaticDistribution -from .house_hold_list import HouseHoldList -from .viewport_shape import ViewportShape -from .display_interface import DisplayInterface -from .interface_type import InterfaceType -from .custom_task import CustomTask -from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .flash_briefing_content_type import FlashBriefingContentType -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid -from .viewport_specification import ViewportSpecification -from .localized_name import LocalizedName -from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .music_interfaces import MusicInterfaces -from .skill_manifest_envelope import SkillManifestEnvelope -from .video_country_info import VideoCountryInfo -from .version import Version -from .distribution_mode import DistributionMode -from .viewport_mode import ViewportMode -from .music_apis import MusicApis -from .tax_information import TaxInformation -from .alexa_for_business_interface import AlexaForBusinessInterface -from .video_feature import VideoFeature -from .linked_application import LinkedApplication +from .connections_payload import ConnectionsPayload +from .extension_initialization_request import ExtensionInitializationRequest from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .app_link import AppLink -from .permission_name import PermissionName -from .smart_home_protocol import SmartHomeProtocol -from .music_content_name import MusicContentName -from .skill_manifest_apis import SkillManifestApis -from .demand_response_apis import DemandResponseApis -from .audio_interface import AudioInterface -from .dialog_management import DialogManagement -from .region import Region +from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel +from .linked_android_common_intent import LinkedAndroidCommonIntent +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .music_feature import MusicFeature from .dialog_delegation_strategy import DialogDelegationStrategy -from .extension_initialization_request import ExtensionInitializationRequest -from .knowledge_apis import KnowledgeApis from .skill_manifest_endpoint import SkillManifestEndpoint +from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .extension_request import ExtensionRequest +from .voice_profile_feature import VoiceProfileFeature +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .ssl_certificate_type import SSLCertificateType +from .currency import Currency +from .viewport_mode import ViewportMode +from .skill_manifest_events import SkillManifestEvents +from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest +from .flash_briefing_content_type import FlashBriefingContentType +from .tax_information import TaxInformation +from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .authorized_client_lwa import AuthorizedClientLwa +from .free_trial_information import FreeTrialInformation +from .interface_type import InterfaceType +from .music_apis import MusicApis +from .distribution_mode import DistributionMode from .custom_connections import CustomConnections -from .source_language_for_locales import SourceLanguageForLocales +from .music_capability import MusicCapability +from .display_interface_apml_version import DisplayInterfaceApmlVersion +from .event_name import EventName +from .up_channel_items import UpChannelItems +from .house_hold_list import HouseHoldList +from .music_interfaces import MusicInterfaces +from .permission_name import PermissionName from .interface import Interface -from .alexa_for_business_apis import AlexaForBusinessApis -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .custom_product_prompts import CustomProductPrompts -from .event_publications import EventPublications -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .free_trial_information import FreeTrialInformation -from .automatic_cloned_locale import AutomaticClonedLocale -from .localized_music_info import LocalizedMusicInfo -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .health_interface import HealthInterface +from .region import Region +from .skill_manifest_envelope import SkillManifestEnvelope +from .supported_controls import SupportedControls from .app_link_interface import AppLinkInterface -from .catalog_type import CatalogType -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion -from .linked_common_schemes import LinkedCommonSchemes -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .flash_briefing_genre import FlashBriefingGenre -from .app_link_v2_interface import AppLinkV2Interface -from .linked_android_common_intent import LinkedAndroidCommonIntent -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .video_apis_locale import VideoApisLocale -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName -from .paid_skill_information import PaidSkillInformation -from .android_custom_intent import AndroidCustomIntent -from .ssl_certificate_type import SSLCertificateType -from .music_request import MusicRequest -from .lambda_ssl_certificate_type import LambdaSSLCertificateType -from .video_catalog_info import VideoCatalogInfo -from .custom_apis import CustomApis -from .dialog_manager import DialogManager +from .skill_manifest_apis import SkillManifestApis +from .play_store_common_scheme_name import PlayStoreCommonSchemeName from .lambda_endpoint import LambdaEndpoint -from .music_feature import MusicFeature -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .viewport_specification import ViewportSpecification +from .catalog_info import CatalogInfo from .music_alias import MusicAlias -from .game_engine_interface import GameEngineInterface -from .up_channel_items import UpChannelItems -from .supported_controls_type import SupportedControlsType -from .gadget_support_requirement import GadgetSupportRequirement +from .video_feature import VideoFeature +from .music_content_type import MusicContentType from .subscription_information import SubscriptionInformation -from .offer_type import OfferType -from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest +from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .catalog_name import CatalogName from .friendly_name import FriendlyName -from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName -from .health_interface import HealthInterface -from .authorized_client import AuthorizedClient -from .permission_items import PermissionItems from .manifest_gadget_support import ManifestGadgetSupport -from .skill_manifest import SkillManifest -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo -from .music_capability import MusicCapability -from .extension_request import ExtensionRequest +from .source_language_for_locales import SourceLanguageForLocales +from .dialog_manager import DialogManager +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .automatic_cloned_locale import AutomaticClonedLocale +from .distribution_countries import DistributionCountries +from .skill_manifest_publishing_information import SkillManifestPublishingInformation +from .gadget_support_requirement import GadgetSupportRequirement +from .tax_information_category import TaxInformationCategory +from .video_app_interface import VideoAppInterface +from .custom_apis import CustomApis +from .flash_briefing_genre import FlashBriefingGenre +from .linked_application import LinkedApplication +from .app_link import AppLink +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems from .music_wordmark import MusicWordmark -from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel -from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .authorized_client_lwa import AuthorizedClientLwa -from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .knowledge_apis import KnowledgeApis +from .video_apis_locale import VideoApisLocale +from .alexa_for_business_interface import AlexaForBusinessInterface +from .game_engine_interface import GameEngineInterface +from .dialog_management import DialogManagement +from .gadget_controller_interface import GadgetControllerInterface +from .smart_home_protocol import SmartHomeProtocol +from .lambda_ssl_certificate_type import LambdaSSLCertificateType +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation +from .version import Version +from .android_custom_intent import AndroidCustomIntent +from .music_request import MusicRequest +from .video_apis import VideoApis +from .lambda_region import LambdaRegion +from .video_country_info import VideoCountryInfo +from .skill_manifest import SkillManifest +from .manifest_version import ManifestVersion +from .flash_briefing_apis import FlashBriefingApis +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .marketplace_pricing import MarketplacePricing +from .permission_items import PermissionItems +from .automatic_distribution import AutomaticDistribution +from .authorized_client import AuthorizedClient from .event_name_type import EventNameType -from .video_prompt_name_type import VideoPromptNameType -from .voice_profile_feature import VoiceProfileFeature -from .tax_information_category import TaxInformationCategory -from .catalog_name import CatalogName +from .audio_interface import AudioInterface from .smart_home_apis import SmartHomeApis -from .currency import Currency -from .flash_briefing_apis import FlashBriefingApis -from .catalog_info import CatalogInfo +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .custom_product_prompts import CustomProductPrompts +from .app_link_v2_interface import AppLinkV2Interface +from .alexa_for_business_apis import AlexaForBusinessApis from .video_region import VideoRegion -from .gadget_controller_interface import GadgetControllerInterface -from .authorized_client_lwa_application import AuthorizedClientLwaApplication -from .distribution_countries import DistributionCountries -from .display_interface_apml_version import DisplayInterfaceApmlVersion from .localized_knowledge_information import LocalizedKnowledgeInformation +from .viewport_shape import ViewportShape +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .display_interface import DisplayInterface +from .catalog_type import CatalogType +from .music_content_name import MusicContentName +from .offer_type import OfferType +from .localized_name import LocalizedName +from .paid_skill_information import PaidSkillInformation +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement +from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .event_publications import EventPublications +from .demand_response_apis import DemandResponseApis from .custom_localized_information import CustomLocalizedInformation -from .lambda_region import LambdaRegion -from .marketplace_pricing import MarketplacePricing -from .supported_controls import SupportedControls -from .skill_manifest_events import SkillManifestEvents +from .linked_common_schemes import LinkedCommonSchemes +from .video_prompt_name_type import VideoPromptNameType from .video_prompt_name import VideoPromptName -from .event_name import EventName -from .music_content_type import MusicContentType -from .connections_payload import ConnectionsPayload -from .manifest_version import ManifestVersion -from .video_app_interface import VideoAppInterface -from .video_apis import VideoApis -from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale +from .custom_task import CustomTask +from .supported_controls_type import SupportedControlsType +from .localized_music_info import LocalizedMusicInfo +from .video_catalog_info import VideoCatalogInfo +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo from .android_common_intent_name import AndroidCommonIntentName +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index cf1c289..b1eda5d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .target_runtime import TargetRuntime -from .target_runtime_type import TargetRuntimeType from .target_runtime_device import TargetRuntimeDevice from .connection import Connection from .suppressed_interface import SuppressedInterface +from .target_runtime import TargetRuntime +from .target_runtime_type import TargetRuntimeType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py index be23b0e..6039371 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py @@ -31,7 +31,7 @@ class EventNameType(Enum): - Allowed enum values: [Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_ListModel_DeleteItemRequest, Legacy_MediaPlayer_SequenceModified, Legacy_PlaybackController_ButtonCommand, EffectsController_RequestEffectChangeRequest, Legacy_ExternalMediaPlayer_RequestToken, ITEMS_UPDATED, Alexa_Video_Xray_ShowDetailsSuccessful, PlaybackController_NextCommandIssued, Legacy_MediaPlayer_PlaybackFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, SKILL_DISABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, CustomInterfaceController_EventsReceived, Legacy_DeviceNotification_NotificationStarted, REMINDER_UPDATED, AUDIO_ITEM_PLAYBACK_STOPPED, Legacy_AuxController_InputActivityStateChanged, LocalApplication_MShopPurchasing_Event, Legacy_ExternalMediaPlayer_AuthorizationComplete, LocalApplication_HHOPhotos_Event, Alexa_Presentation_APL_UserEvent, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_BluetoothNetwork_DeviceUnpairFailure, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Alexa_FileManager_UploadController_UploadFailed, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_AudioPlayer_AudioStutter, Alexa_Camera_VideoCaptureController_CaptureStarted, Legacy_Speaker_MuteChanged, CardRenderer_DisplayContentFinished, Legacy_SpeechSynthesizer_SpeechStarted, AudioPlayer_PlaybackStopped, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, CardRenderer_DisplayContentStarted, LocalApplication_NotificationsApp_Event, AudioPlayer_PlaybackStarted, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_SetNotificationFailed, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_HomeAutoWifiController_HttpNotified, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, SKILL_ACCOUNT_LINKED, LIST_UPDATED, Legacy_DeviceNotification_NotificationSync, Legacy_SconeRemoteControl_VolumeDown, Legacy_MediaPlayer_PlaybackPaused, Legacy_Presentation_PresentationUserEvent, PlaybackController_PlayCommandIssued, Legacy_ListModel_UpdateItemRequest, Messaging_MessageReceived, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, AUDIO_ITEM_PLAYBACK_FAILED, LocalApplication_DeviceMessaging_Event, Alexa_Camera_PhotoCaptureController_CaptureFailed, Legacy_AudioPlayer_PlaybackIdle, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_AudioPlayer_PlaybackError, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_SpeechSynthesizer_SpeechInterrupted, PlaybackController_PreviousCommandIssued, Legacy_AudioPlayer_PlaybackFinished, Legacy_System_UserInactivity, Display_UserEvent, Legacy_PhoneCallController_Event, Legacy_DeviceNotification_SetNotificationSucceeded, LocalApplication_Photos_Event, LocalApplication_VideoExperienceService_Event, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_PlaybackController_PlayCommand, Legacy_PlaylistController_ErrorResponse, Legacy_SconeRemoteControl_VolumeUp, MessagingController_UpdateConversationsStatus, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, LocalApplication_Communications_Event, AUDIO_ITEM_PLAYBACK_STARTED, Legacy_BluetoothNetwork_DevicePairFailure, LIST_DELETED, Legacy_PlaybackController_ToggleCommand, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_MediaPlayer_PlaybackError, AudioPlayer_PlaybackFinished, Legacy_DeviceNotification_NotificationStopped, Legacy_SipClient_Event, Display_ElementSelected, LocalApplication_MShop_Event, Legacy_ListModel_AddItemRequest, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_MediaPlayer_PlaybackStopped, Legacy_AudioPlayerGui_ButtonClickedEvent, LocalApplication_AlexaVoiceLayer_Event, Legacy_PlaybackController_PreviousCommand, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_BluetoothNetwork_DeviceConnectedSuccess, LIST_CREATED, Legacy_ActivityManager_ActivityContextRemovedEvent, ALL_LISTS_CHANGED, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_MediaGrouping_GroupChangeNotificationEvent, LocalApplication_Sentry_Event, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, REMINDER_CREATED, Alexa_Presentation_HTML_Event, FitnessSessionController_FitnessSessionError, Legacy_SconeRemoteControl_Next, Alexa_Camera_VideoCaptureController_CaptureFinished, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_PlaybackController_PauseCommand, LocalApplication_AlexaVision_Event, LocalApplication_Closet_Event, Alexa_FileManager_UploadController_CancelUploadFailed, Legacy_MediaPlayer_PlaybackResumed, SKILL_PERMISSION_ACCEPTED, FitnessSessionController_FitnessSessionPaused, Legacy_AudioPlayer_PlaybackPaused, Alexa_Presentation_HTML_LifecycleStateChanged, LocalApplication_SipUserAgent_Event, Legacy_MediaPlayer_PlaybackStarted, REMINDER_STATUS_CHANGED, MessagingController_UploadConversations, ITEMS_DELETED, Legacy_AuxController_PluggedStateChanged, Legacy_AudioPlayer_PlaybackStarted, Alexa_FileManager_UploadController_UploadStarted, ITEMS_CREATED, Legacy_ExternalMediaPlayer_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_KnightContacts_Event, LocalApplication_Calendar_Event, Legacy_AlertsController_DismissCommand, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, LocalApplication_SipClient_Event, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_Speaker_VolumeChanged, CardRenderer_ReadContentFinished, LocalApplication_HomeAutomationMedia_Event, Legacy_BluetoothNetwork_CancelPairingMode, LocalApplication_DigitalDash_Event, CardRenderer_ReadContentStarted, Legacy_GameEngine_GameInputEvent, LocalApplication_LocalVoiceUI_Event, Legacy_Microphone_AudioRecording, LocalApplication_AlexaPlatformTestSpeechlet_Event, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Legacy_HomeAutoWifiController_DeviceReconnected, SKILL_ENABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, MessagingController_UpdateMessagesStatusRequest, REMINDER_STARTED, CustomInterfaceController_Expired, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_WebVideoPlayer_Event, Legacy_HomeAutoWifiController_SsdpServiceTerminated, LocalApplication_FireflyShopping_Event, Legacy_PlaybackController_NextCommand, LocalApplication_Gallery_Event, Alexa_Presentation_PresentationDismissed, EffectsController_StateReceiptChangeRequest, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, REMINDER_DELETED, GameEngine_InputHandlerEvent, Legacy_PlaylistController_Response, LocalApplication_KnightHome_Event, Legacy_ListRenderer_ListItemEvent, AudioPlayer_PlaybackFailed, LocalApplication_KnightHomeThingsToTry_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_ExternalMediaPlayer_Logout, Alexa_FileManager_UploadController_UploadFinished, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_SnoozeCommand, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_ListRenderer_GetListPageByToken, MessagingController_UpdateSendMessageStatusRequest, FitnessSessionController_FitnessSessionEnded, Alexa_Presentation_APL_RuntimeError, Legacy_ListRenderer_GetListPageByOrdinal, FitnessSessionController_FitnessSessionResumed, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Alexa_Video_Xray_ShowDetailsFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Legacy_SconeRemoteControl_PlayPause, Legacy_DeviceNotification_NotificationEnteredBackground, SKILL_PERMISSION_CHANGED, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PlaybackStutterStarted, AUDIO_ITEM_PLAYBACK_FINISHED, EffectsController_RequestGuiChangeRequest, FitnessSessionController_FitnessSessionStarted, Legacy_PlaybackController_LyricsViewedEvent, Legacy_ExternalMediaPlayer_Login, PlaybackController_PauseCommandIssued, Legacy_MediaPlayer_PlaybackIdle, Legacy_SconeRemoteControl_Previous, DeviceSetup_SetupCompleted, Legacy_MediaPlayer_PlaybackNearlyFinished, LocalApplication_todoRenderer_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Alexa_Presentation_APL_LoadIndexListData, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_AuxController_EnabledStateChanged, Legacy_FavoritesController_Response, Legacy_ListModel_ListStateUpdateRequest, Legacy_EqualizerController_EqualizerChanged, Legacy_MediaGrouping_GroupSyncEvent, Legacy_FavoritesController_Error, Legacy_ListModel_GetPageByTokenRequest, Legacy_ActivityManager_ActivityInterrupted, Legacy_MeetingClientController_Event, Legacy_Presentation_PresentationDismissedEvent, Legacy_Spotify_Event, Legacy_ExternalMediaPlayer_Error, Legacy_AuxController_DirectionChanged, AudioPlayer_PlaybackNearlyFinished, Alexa_Camera_PhotoCaptureController_CaptureFinished, Legacy_UDPController_BroadcastResponse, Legacy_AudioPlayer_PlaybackResumed, Legacy_DeviceNotification_DeleteNotificationFailed] + Allowed enum values: [Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_ListModel_DeleteItemRequest, Legacy_MediaPlayer_SequenceModified, Legacy_PlaybackController_ButtonCommand, EffectsController_RequestEffectChangeRequest, Legacy_ExternalMediaPlayer_RequestToken, ITEMS_UPDATED, Alexa_Video_Xray_ShowDetailsSuccessful, PlaybackController_NextCommandIssued, Legacy_MediaPlayer_PlaybackFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, SKILL_DISABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, CustomInterfaceController_EventsReceived, Legacy_DeviceNotification_NotificationStarted, REMINDER_UPDATED, AUDIO_ITEM_PLAYBACK_STOPPED, Legacy_AuxController_InputActivityStateChanged, LocalApplication_MShopPurchasing_Event, Legacy_ExternalMediaPlayer_AuthorizationComplete, LocalApplication_HHOPhotos_Event, Alexa_Presentation_APL_UserEvent, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_BluetoothNetwork_DeviceUnpairFailure, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Alexa_FileManager_UploadController_UploadFailed, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_AudioPlayer_AudioStutter, Alexa_Camera_VideoCaptureController_CaptureStarted, Legacy_Speaker_MuteChanged, CardRenderer_DisplayContentFinished, Legacy_SpeechSynthesizer_SpeechStarted, AudioPlayer_PlaybackStopped, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, CardRenderer_DisplayContentStarted, LocalApplication_NotificationsApp_Event, AudioPlayer_PlaybackStarted, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_SetNotificationFailed, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_HomeAutoWifiController_HttpNotified, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, SKILL_ACCOUNT_LINKED, LIST_UPDATED, Legacy_DeviceNotification_NotificationSync, Legacy_SconeRemoteControl_VolumeDown, Legacy_MediaPlayer_PlaybackPaused, Legacy_Presentation_PresentationUserEvent, PlaybackController_PlayCommandIssued, Legacy_ListModel_UpdateItemRequest, Messaging_MessageReceived, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, AUDIO_ITEM_PLAYBACK_FAILED, LocalApplication_DeviceMessaging_Event, Alexa_Camera_PhotoCaptureController_CaptureFailed, Legacy_AudioPlayer_PlaybackIdle, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_AudioPlayer_PlaybackError, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_SpeechSynthesizer_SpeechInterrupted, PlaybackController_PreviousCommandIssued, Legacy_AudioPlayer_PlaybackFinished, Legacy_System_UserInactivity, Display_UserEvent, Legacy_PhoneCallController_Event, Legacy_DeviceNotification_SetNotificationSucceeded, LocalApplication_Photos_Event, LocalApplication_VideoExperienceService_Event, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_PlaybackController_PlayCommand, Legacy_PlaylistController_ErrorResponse, Legacy_SconeRemoteControl_VolumeUp, MessagingController_UpdateConversationsStatus, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, LocalApplication_Communications_Event, AUDIO_ITEM_PLAYBACK_STARTED, Legacy_BluetoothNetwork_DevicePairFailure, LIST_DELETED, Legacy_PlaybackController_ToggleCommand, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_MediaPlayer_PlaybackError, AudioPlayer_PlaybackFinished, Legacy_DeviceNotification_NotificationStopped, Legacy_SipClient_Event, Display_ElementSelected, LocalApplication_MShop_Event, Legacy_ListModel_AddItemRequest, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_MediaPlayer_PlaybackStopped, Legacy_AudioPlayerGui_ButtonClickedEvent, LocalApplication_AlexaVoiceLayer_Event, Legacy_PlaybackController_PreviousCommand, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_BluetoothNetwork_DeviceConnectedSuccess, LIST_CREATED, Legacy_ActivityManager_ActivityContextRemovedEvent, ALL_LISTS_CHANGED, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_MediaGrouping_GroupChangeNotificationEvent, LocalApplication_Sentry_Event, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, SKILL_NOTIFICATION_SUBSCRIPTION_CHANGED, REMINDER_CREATED, Alexa_Presentation_HTML_Event, FitnessSessionController_FitnessSessionError, Legacy_SconeRemoteControl_Next, Alexa_Camera_VideoCaptureController_CaptureFinished, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_PlaybackController_PauseCommand, LocalApplication_AlexaVision_Event, LocalApplication_Closet_Event, Alexa_FileManager_UploadController_CancelUploadFailed, Legacy_MediaPlayer_PlaybackResumed, SKILL_PERMISSION_ACCEPTED, FitnessSessionController_FitnessSessionPaused, Legacy_AudioPlayer_PlaybackPaused, Alexa_Presentation_HTML_LifecycleStateChanged, LocalApplication_SipUserAgent_Event, Legacy_MediaPlayer_PlaybackStarted, REMINDER_STATUS_CHANGED, MessagingController_UploadConversations, ITEMS_DELETED, Legacy_AuxController_PluggedStateChanged, Legacy_AudioPlayer_PlaybackStarted, Alexa_FileManager_UploadController_UploadStarted, ITEMS_CREATED, Legacy_ExternalMediaPlayer_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_KnightContacts_Event, LocalApplication_Calendar_Event, Legacy_AlertsController_DismissCommand, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, LocalApplication_SipClient_Event, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_Speaker_VolumeChanged, CardRenderer_ReadContentFinished, LocalApplication_HomeAutomationMedia_Event, Legacy_BluetoothNetwork_CancelPairingMode, LocalApplication_DigitalDash_Event, CardRenderer_ReadContentStarted, Legacy_GameEngine_GameInputEvent, LocalApplication_LocalVoiceUI_Event, Legacy_Microphone_AudioRecording, LocalApplication_AlexaPlatformTestSpeechlet_Event, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Legacy_HomeAutoWifiController_DeviceReconnected, SKILL_ENABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, MessagingController_UpdateMessagesStatusRequest, REMINDER_STARTED, CustomInterfaceController_Expired, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_WebVideoPlayer_Event, Legacy_HomeAutoWifiController_SsdpServiceTerminated, LocalApplication_FireflyShopping_Event, Legacy_PlaybackController_NextCommand, LocalApplication_Gallery_Event, Alexa_Presentation_PresentationDismissed, EffectsController_StateReceiptChangeRequest, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, REMINDER_DELETED, GameEngine_InputHandlerEvent, Legacy_PlaylistController_Response, LocalApplication_KnightHome_Event, Legacy_ListRenderer_ListItemEvent, AudioPlayer_PlaybackFailed, LocalApplication_KnightHomeThingsToTry_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_ExternalMediaPlayer_Logout, Alexa_FileManager_UploadController_UploadFinished, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_SnoozeCommand, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_ListRenderer_GetListPageByToken, MessagingController_UpdateSendMessageStatusRequest, FitnessSessionController_FitnessSessionEnded, Alexa_Presentation_APL_RuntimeError, Legacy_ListRenderer_GetListPageByOrdinal, FitnessSessionController_FitnessSessionResumed, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Alexa_Video_Xray_ShowDetailsFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Legacy_SconeRemoteControl_PlayPause, Legacy_DeviceNotification_NotificationEnteredBackground, SKILL_PERMISSION_CHANGED, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PlaybackStutterStarted, AUDIO_ITEM_PLAYBACK_FINISHED, EffectsController_RequestGuiChangeRequest, FitnessSessionController_FitnessSessionStarted, Legacy_PlaybackController_LyricsViewedEvent, Legacy_ExternalMediaPlayer_Login, PlaybackController_PauseCommandIssued, Legacy_MediaPlayer_PlaybackIdle, Legacy_SconeRemoteControl_Previous, DeviceSetup_SetupCompleted, Legacy_MediaPlayer_PlaybackNearlyFinished, LocalApplication_todoRenderer_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Alexa_Presentation_APL_LoadIndexListData, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_AuxController_EnabledStateChanged, Legacy_FavoritesController_Response, Legacy_ListModel_ListStateUpdateRequest, Legacy_EqualizerController_EqualizerChanged, Legacy_MediaGrouping_GroupSyncEvent, Legacy_FavoritesController_Error, Legacy_ListModel_GetPageByTokenRequest, Legacy_ActivityManager_ActivityInterrupted, Legacy_MeetingClientController_Event, Legacy_Presentation_PresentationDismissedEvent, Legacy_Spotify_Event, Legacy_ExternalMediaPlayer_Error, Legacy_AuxController_DirectionChanged, AudioPlayer_PlaybackNearlyFinished, Alexa_Camera_PhotoCaptureController_CaptureFinished, Legacy_UDPController_BroadcastResponse, Legacy_AudioPlayer_PlaybackResumed, Legacy_DeviceNotification_DeleteNotificationFailed] """ Legacy_AudioPlayerGui_LyricsViewedEvent = "Legacy.AudioPlayerGui.LyricsViewedEvent" Legacy_ListModel_DeleteItemRequest = "Legacy.ListModel.DeleteItemRequest" @@ -137,6 +137,7 @@ class EventNameType(Enum): Legacy_MediaGrouping_GroupChangeNotificationEvent = "Legacy.MediaGrouping.GroupChangeNotificationEvent" LocalApplication_Sentry_Event = "LocalApplication.Sentry.Event" SKILL_PROACTIVE_SUBSCRIPTION_CHANGED = "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED" + SKILL_NOTIFICATION_SUBSCRIPTION_CHANGED = "SKILL_NOTIFICATION_SUBSCRIPTION_CHANGED" REMINDER_CREATED = "REMINDER_CREATED" Alexa_Presentation_HTML_Event = "Alexa.Presentation.HTML.Event" FitnessSessionController_FitnessSessionError = "FitnessSessionController.FitnessSessionError" diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py index 6739904..60fda6e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/lambda_endpoint.py @@ -33,7 +33,7 @@ class LambdaEndpoint(object): :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str - :param ssl_certificate_type: + :param ssl_certificate_type: :type ssl_certificate_type: (optional) ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type.LambdaSSLCertificateType """ @@ -54,7 +54,7 @@ def __init__(self, uri=None, ssl_certificate_type=None): :param uri: Amazon Resource Name (ARN) of the Lambda function. :type uri: (optional) str - :param ssl_certificate_type: + :param ssl_certificate_type: :type ssl_certificate_type: (optional) ask_smapi_model.v1.skill.manifest.lambda_ssl_certificate_type.LambdaSSLCertificateType """ self.__discriminator_value = None # type: str diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index 2a147c3..104ab21 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .skill_type import SkillType from .stage_for_metric import StageForMetric from .metric import Metric from .period import Period -from .skill_type import SkillType from .get_metric_data_response import GetMetricDataResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index d80e7c8..4b8e9f1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest -from .pagination_context import PaginationContext from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest -from .annotation_set import AnnotationSet -from .links import Links -from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest -from .annotation_set_entity import AnnotationSetEntity from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse +from .pagination_context import PaginationContext +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse +from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest +from .annotation_set_entity import AnnotationSetEntity +from .links import Links +from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .annotation_set import AnnotationSet diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index 0853395..1bed7eb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import -from .intent import Intent +from .list_nlu_evaluations_response import ListNLUEvaluationsResponse from .pagination_context import PaginationContext -from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks +from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse +from .results_status import ResultsStatus +from .results import Results from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .paged_results_response import PagedResultsResponse +from .expected_intent_slots_props import ExpectedIntentSlotsProps +from .evaluate_nlu_request import EvaluateNLURequest +from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks +from .actual import Actual +from .test_case import TestCase +from .evaluation import Evaluation from .resolutions_per_authority import ResolutionsPerAuthority -from .results import Results +from .status import Status from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext -from .slots_props import SlotsProps -from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .evaluation import Evaluation -from .evaluate_response import EvaluateResponse -from .paged_response import PagedResponse -from .list_nlu_evaluations_response import ListNLUEvaluationsResponse +from .evaluation_entity import EvaluationEntity from .links import Links -from .results_status import ResultsStatus -from .expected_intent_slots_props import ExpectedIntentSlotsProps -from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse -from .test_case import TestCase -from .expected import Expected from .inputs import Inputs -from .expected_intent import ExpectedIntent -from .evaluation_entity import EvaluationEntity +from .expected import Expected +from .confirmation_status import ConfirmationStatus from .evaluation_inputs import EvaluationInputs -from .resolutions import Resolutions +from .paged_response import PagedResponse +from .evaluate_response import EvaluateResponse from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .evaluate_nlu_request import EvaluateNLURequest +from .expected_intent import ExpectedIntent +from .resolutions import Resolutions +from .slots_props import SlotsProps +from .get_nlu_evaluation_response import GetNLUEvaluationResponse +from .resolutions_per_authority_value import ResolutionsPerAuthorityValue from .source import Source -from .confirmation_status import ConfirmationStatus -from .paged_results_response import PagedResultsResponse -from .status import Status -from .actual import Actual +from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index e6e9f1c..378cafd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse -from .private_distribution_account import PrivateDistributionAccount from .accept_status import AcceptStatus +from .private_distribution_account import PrivateDistributionAccount +from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 615b9e7..1b585d2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .simulation import Simulation +from .alexa_response_content import AlexaResponseContent +from .simulations_api_request import SimulationsApiRequest +from .input import Input from .simulations_api_response import SimulationsApiResponse -from .session_mode import SessionMode -from .metrics import Metrics +from .simulation_result import SimulationResult +from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation_type import SimulationType from .alexa_execution_info import AlexaExecutionInfo -from .simulations_api_request import SimulationsApiRequest from .device import Device -from .simulation_type import SimulationType -from .session import Session -from .invocation_response import InvocationResponse from .invocation_request import InvocationRequest -from .input import Input -from .alexa_response_content import AlexaResponseContent from .alexa_response import AlexaResponse -from .simulation_result import SimulationResult +from .session import Session +from .metrics import Metrics +from .invocation_response import InvocationResponse from .invocation import Invocation -from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation import Simulation +from .session_mode import SessionMode diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index c7ad187..315184b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -16,8 +16,8 @@ from .validations_api_response_result import ValidationsApiResponseResult from .validations_api_request import ValidationsApiRequest -from .validations_api_response import ValidationsApiResponse from .validations_api_response_status import ValidationsApiResponseStatus from .response_validation_importance import ResponseValidationImportance from .response_validation_status import ResponseValidationStatus +from .validations_api_response import ValidationsApiResponse from .response_validation import ResponseValidation diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index b149f16..8e41a5a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .sh_capability_response import SHCapabilityResponse from .evaluation_object import EvaluationObject +from .stage import Stage +from .endpoint import Endpoint from .pagination_context import PaginationContext -from .evaluation_entity_status import EvaluationEntityStatus +from .capability_test_plan import CapabilityTestPlan +from .pagination_context_token import PaginationContextToken +from .sh_capability_error_code import SHCapabilityErrorCode +from .list_sh_test_plan_item import ListSHTestPlanItem +from .sh_evaluation_results_metric import SHEvaluationResultsMetric +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse from .sh_capability_error import SHCapabilityError -from .sh_evaluation_results_metric import SHEvaluationResultsMetric +from .sh_capability_directive import SHCapabilityDirective from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .paged_response import PagedResponse +from .sh_capability_state import SHCapabilityState +from .test_case_result import TestCaseResult from .test_case_result_status import TestCaseResultStatus -from .sh_capability_error_code import SHCapabilityErrorCode -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .endpoint import Endpoint +from .paged_response import PagedResponse +from .evaluation_entity_status import EvaluationEntityStatus from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse -from .sh_capability_response import SHCapabilityResponse from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse -from .list_sh_test_plan_item import ListSHTestPlanItem -from .stage import Stage -from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse -from .pagination_context_token import PaginationContextToken -from .test_case_result import TestCaseResult -from .sh_capability_directive import SHCapabilityDirective -from .sh_capability_state import SHCapabilityState -from .capability_test_plan import CapabilityTestPlan diff --git a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py index a0a7002..bca62c4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/vendor_management/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .vendors import Vendors from .vendor import Vendor +from .vendors import Vendors diff --git a/ask-smapi-model/ask_smapi_model/v2/__init__.py b/ask-smapi-model/ask_smapi_model/v2/__init__.py index a044fbc..7bf567d 100644 --- a/ask-smapi-model/ask_smapi_model/v2/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .error import Error from .bad_request_error import BadRequestError +from .error import Error diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index 38e71e2..465ed34 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .invocation_request import InvocationRequest from .metrics import Metrics from .invocation_response import InvocationResponse -from .invocation_request import InvocationRequest from .invocation import Invocation diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index c034f51..9e94b54 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .invocation_response_status import InvocationResponseStatus -from .skill_request import SkillRequest -from .invocation_response_result import InvocationResponseResult from .invocations_api_response import InvocationsApiResponse from .end_point_regions import EndPointRegions +from .invocation_response_result import InvocationResponseResult +from .skill_request import SkillRequest from .invocations_api_request import InvocationsApiRequest diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index 8c03b52..250424f 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -14,25 +14,25 @@ # from __future__ import absolute_import -from .simulation import Simulation -from .intent import Intent +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems +from .alexa_response_content import AlexaResponseContent +from .confirmation_status_type import ConfirmationStatusType +from .simulations_api_request import SimulationsApiRequest +from .input import Input from .simulations_api_response import SimulationsApiResponse -from .session_mode import SessionMode -from .alexa_execution_info import AlexaExecutionInfo from .slot_resolutions import SlotResolutions +from .slot import Slot +from .simulation_result import SimulationResult from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .simulations_api_request import SimulationsApiRequest -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .device import Device -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .simulations_api_response_status import SimulationsApiResponseStatus from .simulation_type import SimulationType -from .session import Session -from .slot import Slot -from .confirmation_status_type import ConfirmationStatusType -from .skill_execution_info import SkillExecutionInfo -from .input import Input -from .alexa_response_content import AlexaResponseContent +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .alexa_execution_info import AlexaExecutionInfo +from .device import Device from .alexa_response import AlexaResponse -from .simulation_result import SimulationResult +from .session import Session from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .simulations_api_response_status import SimulationsApiResponseStatus +from .simulation import Simulation +from .skill_execution_info import SkillExecutionInfo +from .session_mode import SessionMode +from .intent import Intent From 010304859f8ca2acfe57c329495f2a46bcacada3 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 17 May 2022 19:34:39 +0000 Subject: [PATCH 032/111] Release 1.14.5. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 ++ .../ask_smapi_model/__version__.py | 2 +- .../v1/skill/blueprint/__init__.py | 17 +++ .../v1/skill/blueprint/py.typed | 0 .../v1/skill/blueprint/shopping_kit.py | 108 ++++++++++++++++++ .../v1/skill/interaction_model/intent.py | 11 +- .../interaction_model/slot_definition.py | 11 +- .../v1/skill/manifest/__init__.py | 1 + .../v1/skill/manifest/shopping_kit.py | 108 ++++++++++++++++++ .../skill_manifest_privacy_and_compliance.py | 16 ++- 10 files changed, 273 insertions(+), 9 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/blueprint/__init__.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/blueprint/py.typed create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 6ce262a..5082e55 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -251,3 +251,11 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions + + +1.14.5 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 6c579f4..4f41ee8 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.4' +__version__ = '1.14.5' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/__init__.py new file mode 100644 index 0000000..97294df --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .shopping_kit import ShoppingKit diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py new file mode 100644 index 0000000..37628f3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ShoppingKit(object): + """ + Defines the structure for Shopping Kit related information in the skill manifest. + + + :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. + :type is_shopping_actions_enabled: (optional) bool + + """ + deserialized_types = { + 'is_shopping_actions_enabled': 'bool' + } # type: Dict + + attribute_map = { + 'is_shopping_actions_enabled': 'isShoppingActionsEnabled' + } # type: Dict + supports_multiple_types = False + + def __init__(self, is_shopping_actions_enabled=None): + # type: (Optional[bool]) -> None + """Defines the structure for Shopping Kit related information in the skill manifest. + + :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. + :type is_shopping_actions_enabled: (optional) bool + """ + self.__discriminator_value = None # type: str + + self.is_shopping_actions_enabled = is_shopping_actions_enabled + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ShoppingKit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py index c38cd6c..40f4f73 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/intent.py @@ -33,6 +33,8 @@ class Intent(object): :param name: Name to identify the intent. :type name: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param slots: List of slots within the intent. :type slots: (optional) list[ask_smapi_model.v1.skill.interaction_model.slot_definition.SlotDefinition] :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -41,23 +43,27 @@ class Intent(object): """ deserialized_types = { 'name': 'str', + 'generated_by': 'str', 'slots': 'list[ask_smapi_model.v1.skill.interaction_model.slot_definition.SlotDefinition]', 'samples': 'list[str]' } # type: Dict attribute_map = { 'name': 'name', + 'generated_by': 'generatedBy', 'slots': 'slots', 'samples': 'samples' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, slots=None, samples=None): - # type: (Optional[str], Optional[List[SlotDefinition_fa94ac3]], Optional[List[object]]) -> None + def __init__(self, name=None, generated_by=None, slots=None, samples=None): + # type: (Optional[str], Optional[str], Optional[List[SlotDefinition_fa94ac3]], Optional[List[object]]) -> None """The set of intents your service can accept and process. :param name: Name to identify the intent. :type name: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param slots: List of slots within the intent. :type slots: (optional) list[ask_smapi_model.v1.skill.interaction_model.slot_definition.SlotDefinition] :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -66,6 +72,7 @@ def __init__(self, name=None, slots=None, samples=None): self.__discriminator_value = None # type: str self.name = name + self.generated_by = generated_by self.slots = slots self.samples = samples diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py index a5e920f..647cd5e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py @@ -35,6 +35,8 @@ class SlotDefinition(object): :type name: (optional) str :param object_type: The type of the slot. It can be a built-in or custom type. :type object_type: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param multiple_values: Configuration object for multiple values capturing behavior for this slot. :type multiple_values: (optional) ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -44,6 +46,7 @@ class SlotDefinition(object): deserialized_types = { 'name': 'str', 'object_type': 'str', + 'generated_by': 'str', 'multiple_values': 'ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig', 'samples': 'list[str]' } # type: Dict @@ -51,19 +54,22 @@ class SlotDefinition(object): attribute_map = { 'name': 'name', 'object_type': 'type', + 'generated_by': 'generatedBy', 'multiple_values': 'multipleValues', 'samples': 'samples' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, object_type=None, multiple_values=None, samples=None): - # type: (Optional[str], Optional[str], Optional[MultipleValuesConfig_83acc8ba], Optional[List[object]]) -> None + def __init__(self, name=None, object_type=None, generated_by=None, multiple_values=None, samples=None): + # type: (Optional[str], Optional[str], Optional[str], Optional[MultipleValuesConfig_83acc8ba], Optional[List[object]]) -> None """Slot definition. :param name: The name of the slot. :type name: (optional) str :param object_type: The type of the slot. It can be a built-in or custom type. :type object_type: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param multiple_values: Configuration object for multiple values capturing behavior for this slot. :type multiple_values: (optional) ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -73,6 +79,7 @@ def __init__(self, name=None, object_type=None, multiple_values=None, samples=No self.name = name self.object_type = object_type + self.generated_by = generated_by self.multiple_values = multiple_values self.samples = samples diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 1ee36a1..619be1b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -24,6 +24,7 @@ from .dialog_delegation_strategy import DialogDelegationStrategy from .skill_manifest_endpoint import SkillManifestEndpoint from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .shopping_kit import ShoppingKit from .extension_request import ExtensionRequest from .voice_profile_feature import VoiceProfileFeature from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py new file mode 100644 index 0000000..37628f3 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ShoppingKit(object): + """ + Defines the structure for Shopping Kit related information in the skill manifest. + + + :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. + :type is_shopping_actions_enabled: (optional) bool + + """ + deserialized_types = { + 'is_shopping_actions_enabled': 'bool' + } # type: Dict + + attribute_map = { + 'is_shopping_actions_enabled': 'isShoppingActionsEnabled' + } # type: Dict + supports_multiple_types = False + + def __init__(self, is_shopping_actions_enabled=None): + # type: (Optional[bool]) -> None + """Defines the structure for Shopping Kit related information in the skill manifest. + + :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. + :type is_shopping_actions_enabled: (optional) bool + """ + self.__discriminator_value = None # type: str + + self.is_shopping_actions_enabled = is_shopping_actions_enabled + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ShoppingKit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py index f083b96..2a6c4ee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/skill_manifest_privacy_and_compliance.py @@ -23,6 +23,7 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.shopping_kit import ShoppingKit as ShoppingKit_3d28df98 from ask_smapi_model.v1.skill.manifest.skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance as SkillManifestLocalizedPrivacyAndCompliance_ef86fcec @@ -45,6 +46,8 @@ class SkillManifestPrivacyAndCompliance(object): :type contains_ads: (optional) bool :param uses_health_info: True if the skill developer is a Covered Entity (CE) or Business Associate (BA) as defined by the Health Insurance Portability And Accountability Act (HIPAA) and the skill requires Amazon to process PHI on their behalf, false otherwise. This is an optional property and treated as false if not set. :type uses_health_info: (optional) bool + :param shopping_kit: + :type shopping_kit: (optional) ask_smapi_model.v1.skill.manifest.shopping_kit.ShoppingKit """ deserialized_types = { @@ -54,7 +57,8 @@ class SkillManifestPrivacyAndCompliance(object): 'is_child_directed': 'bool', 'is_export_compliant': 'bool', 'contains_ads': 'bool', - 'uses_health_info': 'bool' + 'uses_health_info': 'bool', + 'shopping_kit': 'ask_smapi_model.v1.skill.manifest.shopping_kit.ShoppingKit' } # type: Dict attribute_map = { @@ -64,12 +68,13 @@ class SkillManifestPrivacyAndCompliance(object): 'is_child_directed': 'isChildDirected', 'is_export_compliant': 'isExportCompliant', 'contains_ads': 'containsAds', - 'uses_health_info': 'usesHealthInfo' + 'uses_health_info': 'usesHealthInfo', + 'shopping_kit': 'shoppingKit' } # type: Dict supports_multiple_types = False - def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, is_child_directed=None, is_export_compliant=None, contains_ads=None, uses_health_info=None): - # type: (Optional[Dict[str, SkillManifestLocalizedPrivacyAndCompliance_ef86fcec]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool]) -> None + def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, is_child_directed=None, is_export_compliant=None, contains_ads=None, uses_health_info=None, shopping_kit=None): + # type: (Optional[Dict[str, SkillManifestLocalizedPrivacyAndCompliance_ef86fcec]], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[bool], Optional[ShoppingKit_3d28df98]) -> None """Defines the structure for privacy & compliance information in the skill manifest. :param locales: Object that contains <locale> objects for each supported locale. @@ -86,6 +91,8 @@ def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, :type contains_ads: (optional) bool :param uses_health_info: True if the skill developer is a Covered Entity (CE) or Business Associate (BA) as defined by the Health Insurance Portability And Accountability Act (HIPAA) and the skill requires Amazon to process PHI on their behalf, false otherwise. This is an optional property and treated as false if not set. :type uses_health_info: (optional) bool + :param shopping_kit: + :type shopping_kit: (optional) ask_smapi_model.v1.skill.manifest.shopping_kit.ShoppingKit """ self.__discriminator_value = None # type: str @@ -96,6 +103,7 @@ def __init__(self, locales=None, allows_purchases=None, uses_personal_info=None, self.is_export_compliant = is_export_compliant self.contains_ads = contains_ads self.uses_health_info = uses_health_info + self.shopping_kit = shopping_kit def to_dict(self): # type: () -> Dict[str, object] From 49ab75d9a2e6f42f0d7fd97824d895b3b72868e1 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 17 May 2022 19:45:36 +0000 Subject: [PATCH 033/111] Release 1.34.1. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 7 ++ ask-sdk-model/ask_sdk_model/__init__.py | 48 ++++---- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 8 +- .../ask_sdk_model/dialog/__init__.py | 14 +-- .../dynamic_endpoints/__init__.py | 4 +- .../ask_sdk_model/er/dynamic/__init__.py | 2 +- .../events/skillevents/__init__.py | 14 +-- .../alexa/experimentation/__init__.py | 2 +- .../interfaces/alexa/extension/__init__.py | 2 +- .../alexa/presentation/apl/__init__.py | 112 +++++++++--------- .../alexa/presentation/apl/audio_track.py | 4 +- .../apl/listoperations/__init__.py | 4 +- .../alexa/presentation/apla/__init__.py | 12 +- .../alexa/presentation/aplt/__init__.py | 22 ++-- .../alexa/presentation/html/__init__.py | 16 +-- .../amazonpay/model/request/__init__.py | 14 +-- .../amazonpay/model/response/__init__.py | 8 +- .../interfaces/amazonpay/model/v1/__init__.py | 24 ++-- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 4 +- .../interfaces/audioplayer/__init__.py | 26 ++-- .../interfaces/connections/__init__.py | 6 +- .../connections/entities/__init__.py | 2 +- .../connections/requests/__init__.py | 6 +- .../interfaces/conversations/__init__.py | 4 +- .../custom_interface_controller/__init__.py | 14 +-- .../interfaces/display/__init__.py | 38 +++--- .../interfaces/game_engine/__init__.py | 4 +- .../interfaces/geolocation/__init__.py | 12 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 4 +- .../interfaces/videoapp/__init__.py | 4 +- .../interfaces/viewport/__init__.py | 16 +-- .../interfaces/viewport/aplt/__init__.py | 4 +- .../interfaces/viewport/size/__init__.py | 2 +- ask-sdk-model/ask_sdk_model/person.py | 8 +- .../ask_sdk_model/services/__init__.py | 14 +-- .../services/device_address/__init__.py | 2 +- .../services/directive/__init__.py | 4 +- .../services/endpoint_enumeration/__init__.py | 4 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 12 +- .../services/list_management/__init__.py | 30 ++--- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 16 +-- .../services/proactive_events/__init__.py | 6 +- .../services/reminder_management/__init__.py | 36 +++--- .../services/timer_management/__init__.py | 22 ++-- .../ask_sdk_model/services/ups/__init__.py | 4 +- ask-sdk-model/ask_sdk_model/slot_value.py | 4 +- .../slu/entityresolution/__init__.py | 8 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 12 +- 55 files changed, 340 insertions(+), 331 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 5c050cd..58c71e5 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -441,3 +441,10 @@ This release contains the following changes : - Support for FTV and shopping skills - Updated model definitions for experimentation SPIs + +1.34.1 +^^^^^^ + +This release contains the following changes : + +- Updating model definitions diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index 9736b7c..cf43196 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import -from .intent import Intent -from .user import User +from .intent_request import IntentRequest +from .permission_status import PermissionStatus +from .simple_slot_value import SimpleSlotValue from .list_slot_value import ListSlotValue -from .task import Task +from .application import Application +from .permissions import Permissions from .slot_confirmation_status import SlotConfirmationStatus -from .person import Person from .connection_completed import ConnectionCompleted -from .device import Device -from .session_ended_error import SessionEndedError -from .simple_slot_value import SimpleSlotValue +from .slot import Slot +from .task import Task +from .intent_confirmation_status import IntentConfirmationStatus from .supported_interfaces import SupportedInterfaces +from .session_ended_error import SessionEndedError +from .status import Status +from .response import Response +from .directive import Directive +from .device import Device +from .session_ended_reason import SessionEndedReason +from .user import User +from .scope import Scope +from .dialog_state import DialogState +from .slot_value import SlotValue from .launch_request import LaunchRequest from .session import Session -from .request import Request -from .session_ended_reason import SessionEndedReason -from .slot import Slot -from .cause import Cause -from .response import Response from .session_resumed_request import SessionResumedRequest -from .slot_value import SlotValue -from .application import Application -from .session_ended_error_type import SessionEndedErrorType -from .dialog_state import DialogState -from .permission_status import PermissionStatus -from .intent_confirmation_status import IntentConfirmationStatus -from .context import Context from .response_envelope import ResponseEnvelope -from .permissions import Permissions -from .directive import Directive +from .request import Request from .session_ended_request import SessionEndedRequest +from .context import Context +from .person import Person +from .cause import Cause from .request_envelope import RequestEnvelope -from .intent_request import IntentRequest -from .scope import Scope -from .status import Status +from .session_ended_error_type import SessionEndedErrorType +from .intent import Intent diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index e9895ff..c44c367 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.34.0' +__version__ = '1.34.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index 56a13b8..f1586a4 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .grant_type import GrantType from .authorization_grant_request import AuthorizationGrantRequest -from .authorization_grant_body import AuthorizationGrantBody from .grant import Grant -from .grant_type import GrantType +from .authorization_grant_body import AuthorizationGrantBody diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index 31d082d..93ed2be 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .can_understand_slot_values import CanUnderstandSlotValues -from .can_fulfill_intent_request import CanFulfillIntentRequest +from .can_fulfill_slot import CanFulfillSlot from .can_fulfill_intent import CanFulfillIntent -from .can_fulfill_slot_values import CanFulfillSlotValues +from .can_fulfill_intent_request import CanFulfillIntentRequest from .can_fulfill_intent_values import CanFulfillIntentValues -from .can_fulfill_slot import CanFulfillSlot +from .can_understand_slot_values import CanUnderstandSlotValues +from .can_fulfill_slot_values import CanFulfillSlotValues diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 00a9514..8282e6e 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .confirm_intent_directive import ConfirmIntentDirective -from .updated_request import UpdatedRequest from .delegate_directive import DelegateDirective -from .delegate_request_directive import DelegateRequestDirective +from .delegation_period import DelegationPeriod from .input_request import InputRequest +from .confirm_slot_directive import ConfirmSlotDirective from .elicit_slot_directive import ElicitSlotDirective +from .updated_request import UpdatedRequest from .input import Input -from .delegation_period import DelegationPeriod from .updated_input_request import UpdatedInputRequest -from .dynamic_entities_directive import DynamicEntitiesDirective -from .confirm_slot_directive import ConfirmSlotDirective -from .updated_intent_request import UpdatedIntentRequest from .delegation_period_until import DelegationPeriodUntil +from .confirm_intent_directive import ConfirmIntentDirective +from .updated_intent_request import UpdatedIntentRequest +from .delegate_request_directive import DelegateRequestDirective +from .dynamic_entities_directive import DynamicEntitiesDirective diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index da98eb0..b0f5f3c 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .success_response import SuccessResponse from .base_response import BaseResponse -from .request import Request +from .success_response import SuccessResponse from .failure_response import FailureResponse +from .request import Request diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index 998c51b..dda0d19 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .update_behavior import UpdateBehavior from .entity_value_and_synonyms import EntityValueAndSynonyms +from .update_behavior import UpdateBehavior from .entity_list_item import EntityListItem from .entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index 2245580..eedc6d6 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .permission import Permission -from .proactive_subscription_event import ProactiveSubscriptionEvent +from .permission_changed_request import PermissionChangedRequest +from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody +from .account_linked_request import AccountLinkedRequest +from .permission_body import PermissionBody from .account_linked_body import AccountLinkedBody from .skill_enabled_request import SkillEnabledRequest -from .account_linked_request import AccountLinkedRequest from .skill_disabled_request import SkillDisabledRequest -from .permission_changed_request import PermissionChangedRequest -from .permission_body import PermissionBody -from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest +from .proactive_subscription_event import ProactiveSubscriptionEvent +from .permission import Permission from .permission_accepted_request import PermissionAcceptedRequest +from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py index 31f7be7..ac33404 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py @@ -15,6 +15,6 @@ from __future__ import absolute_import from .experiment_trigger_response import ExperimentTriggerResponse -from .experiment_assignment import ExperimentAssignment from .treatment_id import TreatmentId +from .experiment_assignment import ExperimentAssignment from .experimentation_state import ExperimentationState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py index 1dd324d..3334e5a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/extension/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .available_extension import AvailableExtension from .extensions_state import ExtensionsState +from .available_extension import AvailableExtension diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index 36781cb..b201602 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,72 +14,72 @@ # from __future__ import absolute_import -from .select_command import SelectCommand -from .set_state_command import SetStateCommand -from .hide_overlay_command import HideOverlayCommand -from .rendered_document_state import RenderedDocumentState -from .play_media_command import PlayMediaCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .media_command_type import MediaCommandType +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag -from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum -from .component_entity import ComponentEntity -from .command import Command +from .position import Position +from .idle_command import IdleCommand +from .go_back_command import GoBackCommand +from .open_url_command import OpenUrlCommand +from .user_event import UserEvent +from .list_runtime_error_reason import ListRuntimeErrorReason +from .play_media_command import PlayMediaCommand from .component_visible_on_screen import ComponentVisibleOnScreen -from .load_token_list_data_event import LoadTokenListDataEvent -from .list_runtime_error import ListRuntimeError -from .reinflate_command import ReinflateCommand from .render_document_directive import RenderDocumentDirective -from .align import Align -from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags -from .sequential_command import SequentialCommand -from .send_token_list_data_directive import SendTokenListDataDirective -from .highlight_mode import HighlightMode -from .scroll_to_component_command import ScrollToComponentCommand -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .animated_transform_property import AnimatedTransformProperty +from .runtime_error import RuntimeError from .audio_track import AudioTrack +from .parallel_command import ParallelCommand +from .animated_opacity_property import AnimatedOpacityProperty +from .set_value_command import SetValueCommand from .scroll_command import ScrollCommand -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag -from .control_media_command import ControlMediaCommand -from .scroll_to_index_command import ScrollToIndexCommand -from .show_overlay_command import ShowOverlayCommand -from .set_page_command import SetPageCommand -from .skew_transform_property import SkewTransformProperty -from .video_source import VideoSource -from .back_type import BackType -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .update_index_list_data_directive import UpdateIndexListDataDirective from .auto_page_command import AutoPageCommand -from .send_event_command import SendEventCommand -from .runtime import Runtime -from .list_runtime_error_reason import ListRuntimeErrorReason -from .scale_transform_property import ScaleTransformProperty +from .speak_item_command import SpeakItemCommand +from .video_source import VideoSource +from .animate_item_repeat_mode import AnimateItemRepeatMode from .animated_property import AnimatedProperty +from .skew_transform_property import SkewTransformProperty +from .animated_transform_property import AnimatedTransformProperty +from .runtime_error_event import RuntimeErrorEvent from .animate_item_command import AnimateItemCommand -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .user_event import UserEvent -from .position import Position -from .runtime_error import RuntimeError -from .speak_item_command import SpeakItemCommand -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag -from .clear_focus_command import ClearFocusCommand -from .set_value_command import SetValueCommand -from .move_transform_property import MoveTransformProperty from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag +from .transform_property import TransformProperty +from .hide_overlay_command import HideOverlayCommand +from .send_index_list_data_directive import SendIndexListDataDirective +from .select_command import SelectCommand +from .align import Align +from .highlight_mode import HighlightMode +from .sequential_command import SequentialCommand +from .runtime import Runtime +from .execute_commands_directive import ExecuteCommandsDirective +from .load_token_list_data_event import LoadTokenListDataEvent +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .move_transform_property import MoveTransformProperty from .finish_command import FinishCommand -from .runtime_error_event import RuntimeErrorEvent -from .idle_command import IdleCommand -from .load_index_list_data_event import LoadIndexListDataEvent -from .go_back_command import GoBackCommand +from .clear_focus_command import ClearFocusCommand +from .component_entity import ComponentEntity +from .command import Command from .set_focus_command import SetFocusCommand +from .control_media_command import ControlMediaCommand +from .list_runtime_error import ListRuntimeError +from .show_overlay_command import ShowOverlayCommand +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag +from .set_page_command import SetPageCommand +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag +from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .send_token_list_data_directive import SendTokenListDataDirective +from .scale_transform_property import ScaleTransformProperty +from .send_event_command import SendEventCommand +from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .reinflate_command import ReinflateCommand +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag +from .set_state_command import SetStateCommand +from .back_type import BackType +from .rotate_transform_property import RotateTransformProperty +from .scroll_to_index_command import ScrollToIndexCommand +from .scroll_to_component_command import ScrollToComponentCommand from .speak_list_command import SpeakListCommand -from .parallel_command import ParallelCommand -from .animate_item_repeat_mode import AnimateItemRepeatMode -from .send_index_list_data_directive import SendIndexListDataDirective -from .execute_commands_directive import ExecuteCommandsDirective -from .animated_opacity_property import AnimatedOpacityProperty -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum +from .media_command_type import MediaCommandType +from .rendered_document_state import RenderedDocumentState from .component_state import ComponentState -from .transform_property import TransformProperty -from .rotate_transform_property import RotateTransformProperty -from .open_url_command import OpenUrlCommand +from .load_index_list_data_event import LoadIndexListDataEvent diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py index 511814c..34ca430 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/audio_track.py @@ -31,9 +31,11 @@ class AudioTrack(Enum): - Allowed enum values: [foreground] + Allowed enum values: [foreground, background, none] """ foreground = "foreground" + background = "background" + none = "none" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index 4e873d6..05fcaed 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -16,7 +16,7 @@ from .insert_multiple_items_operation import InsertMultipleItemsOperation from .set_item_operation import SetItemOperation -from .delete_item_operation import DeleteItemOperation from .insert_item_operation import InsertItemOperation -from .operation import Operation +from .delete_item_operation import DeleteItemOperation from .delete_multiple_items_operation import DeleteMultipleItemsOperation +from .operation import Operation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index 3e99ce1..f293d7b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .link_error_reason import LinkErrorReason -from .audio_source_error_reason import AudioSourceErrorReason +from .render_error_reason import RenderErrorReason from .render_document_directive import RenderDocumentDirective -from .link_runtime_error import LinkRuntimeError -from .document_runtime_error import DocumentRuntimeError from .runtime_error import RuntimeError +from .audio_source_error_reason import AudioSourceErrorReason +from .document_runtime_error import DocumentRuntimeError from .document_error_reason import DocumentErrorReason -from .render_runtime_error import RenderRuntimeError from .runtime_error_event import RuntimeErrorEvent -from .render_error_reason import RenderErrorReason +from .render_runtime_error import RenderRuntimeError +from .link_error_reason import LinkErrorReason +from .link_runtime_error import LinkRuntimeError from .audio_source_runtime_error import AudioSourceRuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index e9bee84..6031446 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .command import Command +from .position import Position +from .idle_command import IdleCommand +from .user_event import UserEvent from .render_document_directive import RenderDocumentDirective -from .sequential_command import SequentialCommand -from .target_profile import TargetProfile +from .parallel_command import ParallelCommand +from .set_value_command import SetValueCommand from .scroll_command import ScrollCommand -from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface -from .set_page_command import SetPageCommand from .auto_page_command import AutoPageCommand -from .send_event_command import SendEventCommand +from .target_profile import TargetProfile +from .sequential_command import SequentialCommand from .runtime import Runtime -from .user_event import UserEvent -from .position import Position -from .set_value_command import SetValueCommand -from .idle_command import IdleCommand -from .parallel_command import ParallelCommand from .execute_commands_directive import ExecuteCommandsDirective +from .command import Command +from .set_page_command import SetPageCommand +from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface +from .send_event_command import SendEventCommand diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index 0c12b4d..d212737 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .configuration import Configuration -from .runtime_error_reason import RuntimeErrorReason from .transformer_type import TransformerType -from .message_request import MessageRequest -from .runtime_error_request import RuntimeErrorRequest +from .runtime_error import RuntimeError +from .handle_message_directive import HandleMessageDirective +from .transformer import Transformer from .runtime import Runtime -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .start_request_method import StartRequestMethod from .start_request import StartRequest -from .transformer import Transformer -from .runtime_error import RuntimeError -from .handle_message_directive import HandleMessageDirective +from .message_request import MessageRequest +from .configuration import Configuration from .start_directive import StartDirective +from .runtime_error_reason import RuntimeErrorReason +from .runtime_error_request import RuntimeErrorRequest +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index 2d97e7e..b48336a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .billing_agreement_type import BillingAgreementType +from .payment_action import PaymentAction +from .price import Price from .seller_order_attributes import SellerOrderAttributes -from .provider_credit import ProviderCredit -from .authorize_attributes import AuthorizeAttributes -from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .billing_agreement_attributes import BillingAgreementAttributes from .base_amazon_pay_entity import BaseAmazonPayEntity -from .payment_action import PaymentAction +from .authorize_attributes import AuthorizeAttributes from .provider_attributes import ProviderAttributes -from .price import Price +from .billing_agreement_attributes import BillingAgreementAttributes +from .provider_credit import ProviderCredit +from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .billing_agreement_type import BillingAgreementType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 46705ef..847b2e7 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .price import Price +from .state import State from .authorization_details import AuthorizationDetails -from .destination import Destination +from .billing_agreement_details import BillingAgreementDetails from .authorization_status import AuthorizationStatus from .release_environment import ReleaseEnvironment -from .billing_agreement_details import BillingAgreementDetails -from .state import State -from .price import Price +from .destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index e70d00f..3021353 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import +from .payment_action import PaymentAction +from .price import Price +from .state import State from .authorization_details import AuthorizationDetails -from .destination import Destination -from .billing_agreement_type import BillingAgreementType -from .seller_order_attributes import SellerOrderAttributes -from .provider_credit import ProviderCredit -from .authorize_attributes import AuthorizeAttributes -from .billing_agreement_status import BillingAgreementStatus -from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .billing_agreement_details import BillingAgreementDetails from .authorization_status import AuthorizationStatus -from .billing_agreement_attributes import BillingAgreementAttributes from .release_environment import ReleaseEnvironment -from .payment_action import PaymentAction -from .billing_agreement_details import BillingAgreementDetails +from .seller_order_attributes import SellerOrderAttributes +from .destination import Destination +from .billing_agreement_status import BillingAgreementStatus +from .authorize_attributes import AuthorizeAttributes from .provider_attributes import ProviderAttributes -from .state import State -from .price import Price +from .billing_agreement_attributes import BillingAgreementAttributes +from .provider_credit import ProviderCredit +from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .billing_agreement_type import BillingAgreementType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f8fe460..f7ef1d0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult +from .setup_amazon_pay_result import SetupAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index 9aa15d0..3b79170 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult -from .setup_amazon_pay import SetupAmazonPay +from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay import ChargeAmazonPay from .amazon_pay_error_response import AmazonPayErrorResponse +from .setup_amazon_pay import SetupAmazonPay diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py index 3878b28..81ec739 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .direct_launch import DirectLaunch from .catalog_types import CatalogTypes -from .app_link_state import AppLinkState from .app_link_interface import AppLinkInterface +from .direct_launch import DirectLaunch from .send_to_device import SendToDevice +from .app_link_state import AppLinkState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index fdad96d..565e699 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -15,23 +15,23 @@ from __future__ import absolute_import from .audio_player_interface import AudioPlayerInterface -from .audio_item import AudioItem -from .playback_stopped_request import PlaybackStoppedRequest -from .error import Error -from .playback_started_request import PlaybackStartedRequest -from .clear_behavior import ClearBehavior +from .playback_finished_request import PlaybackFinishedRequest from .stop_directive import StopDirective -from .caption_data import CaptionData from .player_activity import PlayerActivity +from .error import Error from .clear_queue_directive import ClearQueueDirective from .stream import Stream -from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest -from .current_playback_state import CurrentPlaybackState -from .play_behavior import PlayBehavior -from .playback_finished_request import PlaybackFinishedRequest -from .audio_item_metadata import AudioItemMetadata -from .caption_type import CaptionType +from .audio_player_state import AudioPlayerState +from .clear_behavior import ClearBehavior from .playback_failed_request import PlaybackFailedRequest +from .playback_stopped_request import PlaybackStoppedRequest +from .current_playback_state import CurrentPlaybackState +from .caption_data import CaptionData from .play_directive import PlayDirective from .error_type import ErrorType -from .audio_player_state import AudioPlayerState +from .audio_item import AudioItem +from .caption_type import CaptionType +from .audio_item_metadata import AudioItemMetadata +from .play_behavior import PlayBehavior +from .playback_started_request import PlaybackStartedRequest +from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 602bf8d..1fdc949 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .send_request_directive import SendRequestDirective from .connections_request import ConnectionsRequest -from .send_response_directive import SendResponseDirective +from .on_completion import OnCompletion from .connections_status import ConnectionsStatus +from .send_response_directive import SendResponseDirective +from .send_request_directive import SendRequestDirective from .connections_response import ConnectionsResponse -from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py index 9d70532..b44176d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .base_entity import BaseEntity from .postal_address import PostalAddress from .restaurant import Restaurant -from .base_entity import BaseEntity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index 6cc8008..415bd57 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .print_image_request import PrintImageRequest +from .print_pdf_request import PrintPDFRequest from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest +from .print_image_request import PrintImageRequest from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest -from .print_pdf_request import PrintPDFRequest -from .print_web_page_request import PrintWebPageRequest from .base_request import BaseRequest +from .print_web_page_request import PrintWebPageRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py index f3fcaa1..306d6b3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .reset_context_directive import ResetContextDirective -from .api_request import APIRequest from .api_invocation_request import APIInvocationRequest +from .api_request import APIRequest +from .reset_context_directive import ResetContextDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index b0405d8..7df9e34 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import +from .endpoint import Endpoint +from .header import Header +from .filter_match_action import FilterMatchAction from .events_received_request import EventsReceivedRequest -from .event import Event +from .expired_request import ExpiredRequest +from .start_event_handler_directive import StartEventHandlerDirective +from .stop_event_handler_directive import StopEventHandlerDirective from .send_directive_directive import SendDirectiveDirective -from .header import Header from .expiration import Expiration -from .expired_request import ExpiredRequest +from .event import Event from .event_filter import EventFilter -from .stop_event_handler_directive import StopEventHandlerDirective -from .filter_match_action import FilterMatchAction -from .endpoint import Endpoint -from .start_event_handler_directive import StartEventHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index b7a61a0..0a4f1b3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import -from .list_template1 import ListTemplate1 -from .body_template2 import BodyTemplate2 -from .element_selected_request import ElementSelectedRequest -from .display_interface import DisplayInterface -from .plain_text import PlainText -from .body_template6 import BodyTemplate6 -from .body_template7 import BodyTemplate7 -from .display_state import DisplayState -from .body_template3 import BodyTemplate3 -from .list_item import ListItem -from .image_instance import ImageInstance from .text_content import TextContent -from .plain_text_hint import PlainTextHint -from .render_template_directive import RenderTemplateDirective -from .image_size import ImageSize -from .hint_directive import HintDirective -from .template import Template -from .text_field import TextField from .back_button_behavior import BackButtonBehavior -from .hint import Hint from .list_template2 import ListTemplate2 -from .image import Image +from .text_field import TextField +from .hint import Hint +from .body_template7 import BodyTemplate7 +from .hint_directive import HintDirective +from .render_template_directive import RenderTemplateDirective +from .template import Template +from .list_item import ListItem +from .image_size import ImageSize +from .plain_text import PlainText +from .element_selected_request import ElementSelectedRequest +from .list_template1 import ListTemplate1 from .body_template1 import BodyTemplate1 +from .display_state import DisplayState +from .body_template2 import BodyTemplate2 from .rich_text import RichText +from .image import Image +from .display_interface import DisplayInterface +from .plain_text_hint import PlainTextHint +from .body_template3 import BodyTemplate3 +from .image_instance import ImageInstance +from .body_template6 import BodyTemplate6 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index 477f76e..35b5562 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .stop_input_handler_directive import StopInputHandlerDirective -from .input_handler_event_request import InputHandlerEventRequest from .start_input_handler_directive import StartInputHandlerDirective +from .input_handler_event_request import InputHandlerEventRequest +from .stop_input_handler_directive import StopInputHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index 041c407..7f7b6cc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .location_services import LocationServices -from .altitude import Altitude -from .speed import Speed from .geolocation_state import GeolocationState -from .access import Access -from .coordinate import Coordinate -from .heading import Heading from .geolocation_interface import GeolocationInterface from .status import Status +from .coordinate import Coordinate +from .speed import Speed +from .heading import Heading +from .altitude import Altitude +from .location_services import LocationServices +from .access import Access diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index b7cdb09..5d4e111 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .previous_command_issued_request import PreviousCommandIssuedRequest -from .pause_command_issued_request import PauseCommandIssuedRequest from .play_command_issued_request import PlayCommandIssuedRequest +from .previous_command_issued_request import PreviousCommandIssuedRequest from .next_command_issued_request import NextCommandIssuedRequest +from .pause_command_issued_request import PauseCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index dee010d..7bf5183 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error -from .exception_encountered_request import ExceptionEncounteredRequest from .error_cause import ErrorCause +from .exception_encountered_request import ExceptionEncounteredRequest +from .error import Error from .system_state import SystemState from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 047d571..024f05c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .video_app_interface import VideoAppInterface from .metadata import Metadata -from .launch_directive import LaunchDirective from .video_item import VideoItem -from .video_app_interface import VideoAppInterface +from .launch_directive import LaunchDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index c14ca09..0c47482 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .dialog import Dialog -from .viewport_state import ViewportState -from .viewport_video import ViewportVideo -from .experience import Experience -from .mode import Mode -from .aplt_viewport_state import APLTViewportState from .presentation_type import PresentationType from .apl_viewport_state import APLViewportState +from .typed_viewport_state import TypedViewportState from .touch import Touch from .shape import Shape -from .typed_viewport_state import TypedViewportState -from .viewport_state_video import ViewportStateVideo +from .mode import Mode from .keyboard import Keyboard +from .aplt_viewport_state import APLTViewportState +from .viewport_state_video import ViewportStateVideo +from .viewport_state import ViewportState +from .experience import Experience +from .dialog import Dialog +from .viewport_video import ViewportVideo diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py index 04057d1..05753b9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .inter_segment import InterSegment -from .viewport_profile import ViewportProfile from .character_format import CharacterFormat +from .viewport_profile import ViewportProfile +from .inter_segment import InterSegment diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index ab93696..f616566 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .discrete_viewport_size import DiscreteViewportSize from .continuous_viewport_size import ContinuousViewportSize from .viewport_size import ViewportSize +from .discrete_viewport_size import DiscreteViewportSize diff --git a/ask-sdk-model/ask_sdk_model/person.py b/ask-sdk-model/ask_sdk_model/person.py index 47fd220..fb2d8e4 100644 --- a/ask-sdk-model/ask_sdk_model/person.py +++ b/ask-sdk-model/ask_sdk_model/person.py @@ -27,10 +27,10 @@ class Person(object): """ - An object that describes the user (person) who is making the request. + An object that describes the user (person) who is interacting with Alexa. - :param person_id: A string that represents a unique identifier for the person who is making the request. The length of this identifier can vary, but is never more than 255 characters. It is generated when a recognized user makes a request to your skill. + :param person_id: A string that represents a unique identifier for the person who is interacting with Alexa. The length of this identifier can vary, but is never more than 255 characters. It is generated when a recognized user makes a request to your skill. :type person_id: (optional) str :param access_token: A token identifying the user in another system. This is only provided if the recognized user has successfully linked their skill account with their Alexa profile. The accessToken field will not appear if null. :type access_token: (optional) str @@ -49,9 +49,9 @@ class Person(object): def __init__(self, person_id=None, access_token=None): # type: (Optional[str], Optional[str]) -> None - """An object that describes the user (person) who is making the request. + """An object that describes the user (person) who is interacting with Alexa. - :param person_id: A string that represents a unique identifier for the person who is making the request. The length of this identifier can vary, but is never more than 255 characters. It is generated when a recognized user makes a request to your skill. + :param person_id: A string that represents a unique identifier for the person who is interacting with Alexa. The length of this identifier can vary, but is never more than 255 characters. It is generated when a recognized user makes a request to your skill. :type person_id: (optional) str :param access_token: A token identifying the user in another system. This is only provided if the recognized user has successfully linked their skill account with their Alexa profile. The accessToken field will not appear if null. :type access_token: (optional) str diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index de7f8b4..69ed786 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .api_client_request import ApiClientRequest -from .api_client_response import ApiClientResponse from .base_service_client import BaseServiceClient -from .api_client_message import ApiClientMessage -from .authentication_configuration import AuthenticationConfiguration -from .service_client_response import ServiceClientResponse from .api_response import ApiResponse -from .api_configuration import ApiConfiguration -from .serializer import Serializer +from .api_client_response import ApiClientResponse from .service_client_factory import ServiceClientFactory from .api_client import ApiClient +from .serializer import Serializer +from .api_configuration import ApiConfiguration +from .service_client_response import ServiceClientResponse from .service_exception import ServiceException +from .api_client_request import ApiClientRequest +from .api_client_message import ApiClientMessage +from .authentication_configuration import AuthenticationConfiguration diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index 247e54a..0201e91 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .short_address import ShortAddress from .address import Address from .error import Error from .device_address_service_client import DeviceAddressServiceClient +from .short_address import ShortAddress diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index e9c04ed..cd76b42 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .error import Error +from .speak_directive import SpeakDirective +from .directive_service_client import DirectiveServiceClient from .header import Header from .send_directive_request import SendDirectiveRequest -from .speak_directive import SpeakDirective from .directive import Directive -from .directive_service_client import DirectiveServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index a15da18..1b1fccf 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .error import Error -from .endpoint_info import EndpointInfo -from .endpoint_enumeration_response import EndpointEnumerationResponse from .endpoint_capability import EndpointCapability +from .endpoint_enumeration_response import EndpointEnumerationResponse +from .endpoint_info import EndpointInfo from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index ac7e5c1..d9f7217 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .light_animation import LightAnimation -from .set_light_parameters import SetLightParameters from .animation_step import AnimationStep +from .light_animation import LightAnimation from .trigger_event_type import TriggerEventType +from .set_light_parameters import SetLightParameters diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index 47c953f..b77cd69 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType -from .event import Event from .progress_recognizer import ProgressRecognizer -from .input_event import InputEvent from .deviation_recognizer import DeviationRecognizer +from .input_event import InputEvent from .input_event_action_type import InputEventActionType -from .recognizer import Recognizer -from .pattern import Pattern from .event_reporting_type import EventReportingType -from .input_handler_event import InputHandlerEvent from .pattern_recognizer import PatternRecognizer +from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType +from .input_handler_event import InputHandlerEvent +from .recognizer import Recognizer +from .event import Event +from .pattern import Pattern diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index 5d335dc..76789cc 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .list_management_service_client import ListManagementServiceClient -from .list_item_body import ListItemBody +from .forbidden_error import ForbiddenError +from .list_items_deleted_event_request import ListItemsDeletedEventRequest +from .list_body import ListBody from .error import Error -from .list_state import ListState +from .alexa_list_metadata import AlexaListMetadata from .list_created_event_request import ListCreatedEventRequest +from .list_management_service_client import ListManagementServiceClient from .list_items_created_event_request import ListItemsCreatedEventRequest -from .links import Links from .alexa_list_item import AlexaListItem -from .list_deleted_event_request import ListDeletedEventRequest -from .alexa_list import AlexaList -from .list_body import ListBody -from .update_list_request import UpdateListRequest +from .list_state import ListState +from .list_item_state import ListItemState +from .list_item_body import ListItemBody from .list_updated_event_request import ListUpdatedEventRequest -from .alexa_lists_metadata import AlexaListsMetadata -from .alexa_list_metadata import AlexaListMetadata +from .update_list_request import UpdateListRequest from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .list_deleted_event_request import ListDeletedEventRequest +from .status import Status from .create_list_request import CreateListRequest -from .update_list_item_request import UpdateListItemRequest +from .links import Links +from .alexa_list import AlexaList from .create_list_item_request import CreateListItemRequest -from .list_item_state import ListItemState -from .status import Status -from .forbidden_error import ForbiddenError -from .list_items_deleted_event_request import ListItemsDeletedEventRequest +from .alexa_lists_metadata import AlexaListsMetadata +from .update_list_item_request import UpdateListItemRequest diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index 6c5081b..eda0327 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .access_token_request import AccessTokenRequest -from .access_token import AccessToken from .error import Error -from .access_token_response import AccessTokenResponse from .lwa_client import LwaClient +from .access_token_response import AccessTokenResponse +from .access_token_request import AccessTokenRequest +from .access_token import AccessToken diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index 73becbb..53aff1b 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .in_skill_product_transactions_response import InSkillProductTransactionsResponse -from .metadata import Metadata from .error import Error -from .entitled_state import EntitledState +from .product_type import ProductType +from .in_skill_products_response import InSkillProductsResponse +from .entitlement_reason import EntitlementReason from .transactions import Transactions +from .metadata import Metadata +from .status import Status from .purchasable_state import PurchasableState +from .in_skill_product_transactions_response import InSkillProductTransactionsResponse from .in_skill_product import InSkillProduct -from .purchase_mode import PurchaseMode from .monetization_service_client import MonetizationServiceClient -from .product_type import ProductType +from .purchase_mode import PurchaseMode +from .entitled_state import EntitledState from .result_set import ResultSet -from .entitlement_reason import EntitlementReason -from .in_skill_products_response import InSkillProductsResponse -from .status import Status diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index fdf2847..b968548 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .event import Event from .error import Error +from .relevant_audience import RelevantAudience +from .relevant_audience_type import RelevantAudienceType from .create_proactive_event_request import CreateProactiveEventRequest from .skill_stage import SkillStage from .proactive_events_service_client import ProactiveEventsServiceClient -from .relevant_audience import RelevantAudience -from .relevant_audience_type import RelevantAudienceType +from .event import Event diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index d7e68e7..5dfd8e1 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import -from .reminder_management_service_client import ReminderManagementServiceClient -from .reminder_updated_event_request import ReminderUpdatedEventRequest -from .spoken_info import SpokenInfo -from .recurrence_day import RecurrenceDay -from .event import Event -from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest -from .error import Error -from .get_reminders_response import GetRemindersResponse from .reminder_deleted_event_request import ReminderDeletedEventRequest +from .reminder import Reminder from .reminder_started_event_request import ReminderStartedEventRequest -from .reminder_request import ReminderRequest -from .recurrence import Recurrence -from .reminder_deleted_event import ReminderDeletedEvent -from .spoken_text import SpokenText +from .error import Error +from .get_reminder_response import GetReminderResponse from .alert_info import AlertInfo -from .reminder_created_event_request import ReminderCreatedEventRequest +from .trigger import Trigger +from .spoken_info import SpokenInfo from .reminder_response import ReminderResponse +from .get_reminders_response import GetRemindersResponse +from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest +from .recurrence_freq import RecurrenceFreq +from .spoken_text import SpokenText +from .status import Status +from .recurrence import Recurrence +from .recurrence_day import RecurrenceDay +from .reminder_deleted_event import ReminderDeletedEvent from .push_notification_status import PushNotificationStatus from .trigger_type import TriggerType +from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder_request import ReminderRequest +from .event import Event from .push_notification import PushNotification -from .get_reminder_response import GetReminderResponse -from .recurrence_freq import RecurrenceFreq -from .status import Status -from .trigger import Trigger -from .reminder import Reminder +from .reminder_management_service_client import ReminderManagementServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index 625f6e9..46acb26 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import -from .timer_request import TimerRequest -from .text_to_announce import TextToAnnounce -from .task import Task from .error import Error -from .creation_behavior import CreationBehavior -from .notify_only_operation import NotifyOnlyOperation -from .announce_operation import AnnounceOperation from .notification_config import NotificationConfig -from .operation import Operation -from .timer_management_service_client import TimerManagementServiceClient from .timer_response import TimerResponse +from .timer_request import TimerRequest from .display_experience import DisplayExperience -from .timers_response import TimersResponse +from .task import Task from .launch_task_operation import LaunchTaskOperation -from .triggering_behavior import TriggeringBehavior from .visibility import Visibility -from .text_to_confirm import TextToConfirm from .status import Status +from .triggering_behavior import TriggeringBehavior +from .text_to_confirm import TextToConfirm +from .creation_behavior import CreationBehavior +from .timer_management_service_client import TimerManagementServiceClient +from .announce_operation import AnnounceOperation +from .timers_response import TimersResponse +from .operation import Operation +from .text_to_announce import TextToAnnounce +from .notify_only_operation import NotifyOnlyOperation diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index 028d2a1..c2e7973 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .ups_service_client import UpsServiceClient from .error import Error from .distance_units import DistanceUnits +from .error_code import ErrorCode +from .ups_service_client import UpsServiceClient from .phone_number import PhoneNumber from .temperature_unit import TemperatureUnit -from .error_code import ErrorCode diff --git a/ask-sdk-model/ask_sdk_model/slot_value.py b/ask-sdk-model/ask_sdk_model/slot_value.py index bec628f..9ae7118 100644 --- a/ask-sdk-model/ask_sdk_model/slot_value.py +++ b/ask-sdk-model/ask_sdk_model/slot_value.py @@ -31,7 +31,7 @@ class SlotValue(object): Object representing the value captured in the slot. - :param object_type: Type of value that was captured. Can be 'Simple' or 'List'. + :param object_type: Type of value that was captured. Can be 'Simple','List' or 'Composite'. :type object_type: (optional) str .. note:: @@ -67,7 +67,7 @@ def __init__(self, object_type=None): # type: (Optional[str]) -> None """Object representing the value captured in the slot. - :param object_type: Type of value that was captured. Can be 'Simple' or 'List'. + :param object_type: Type of value that was captured. Can be 'Simple','List' or 'Composite'. :type object_type: (optional) str """ self.__discriminator_value = None # type: str diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index c7a570c..7350cb8 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .value_wrapper import ValueWrapper -from .status_code import StatusCode -from .resolutions import Resolutions -from .value import Value from .resolution import Resolution from .status import Status +from .status_code import StatusCode +from .value_wrapper import ValueWrapper +from .value import Value +from .resolutions import Resolutions diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index d1f172b..1cd4d91 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .ssml_output_speech import SsmlOutputSpeech +from .link_account_card import LinkAccountCard from .plain_text_output_speech import PlainTextOutputSpeech -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .reprompt import Reprompt +from .ssml_output_speech import SsmlOutputSpeech from .standard_card import StandardCard from .output_speech import OutputSpeech -from .simple_card import SimpleCard -from .reprompt import Reprompt +from .image import Image from .card import Card -from .link_account_card import LinkAccountCard from .play_behavior import PlayBehavior -from .image import Image +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .simple_card import SimpleCard From 52838be4f57ee1a2479402ea78b1247b56017942 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 31 May 2022 23:26:30 +0000 Subject: [PATCH 034/111] Release 1.14.6. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../v1/skill/interaction_model/slot_definition.py | 11 ++--------- .../v1/skill/interaction_model/slot_type.py | 11 +++++++++-- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 5082e55..efc906b 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -259,3 +259,9 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions + + +1.14.6 +^^^^^^ + +Updating model definitions diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 4f41ee8..c19b0a8 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.5' +__version__ = '1.14.6' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py index 647cd5e..a5e920f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_definition.py @@ -35,8 +35,6 @@ class SlotDefinition(object): :type name: (optional) str :param object_type: The type of the slot. It can be a built-in or custom type. :type object_type: (optional) str - :param generated_by: Name of the generator used to generate this object. - :type generated_by: (optional) str :param multiple_values: Configuration object for multiple values capturing behavior for this slot. :type multiple_values: (optional) ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -46,7 +44,6 @@ class SlotDefinition(object): deserialized_types = { 'name': 'str', 'object_type': 'str', - 'generated_by': 'str', 'multiple_values': 'ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig', 'samples': 'list[str]' } # type: Dict @@ -54,22 +51,19 @@ class SlotDefinition(object): attribute_map = { 'name': 'name', 'object_type': 'type', - 'generated_by': 'generatedBy', 'multiple_values': 'multipleValues', 'samples': 'samples' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, object_type=None, generated_by=None, multiple_values=None, samples=None): - # type: (Optional[str], Optional[str], Optional[str], Optional[MultipleValuesConfig_83acc8ba], Optional[List[object]]) -> None + def __init__(self, name=None, object_type=None, multiple_values=None, samples=None): + # type: (Optional[str], Optional[str], Optional[MultipleValuesConfig_83acc8ba], Optional[List[object]]) -> None """Slot definition. :param name: The name of the slot. :type name: (optional) str :param object_type: The type of the slot. It can be a built-in or custom type. :type object_type: (optional) str - :param generated_by: Name of the generator used to generate this object. - :type generated_by: (optional) str :param multiple_values: Configuration object for multiple values capturing behavior for this slot. :type multiple_values: (optional) ask_smapi_model.v1.skill.interaction_model.multiple_values_config.MultipleValuesConfig :param samples: Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation. @@ -79,7 +73,6 @@ def __init__(self, name=None, object_type=None, generated_by=None, multiple_valu self.name = name self.object_type = object_type - self.generated_by = generated_by self.multiple_values = multiple_values self.samples = samples diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py index 27107da..992e3be 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/slot_type.py @@ -34,6 +34,8 @@ class SlotType(object): :param name: The name of the custom slot type. :type name: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param values: List of expected values. Values outside the list are still returned. :type values: (optional) list[ask_smapi_model.v1.skill.interaction_model.type_value.TypeValue] :param value_supplier: @@ -42,23 +44,27 @@ class SlotType(object): """ deserialized_types = { 'name': 'str', + 'generated_by': 'str', 'values': 'list[ask_smapi_model.v1.skill.interaction_model.type_value.TypeValue]', 'value_supplier': 'ask_smapi_model.v1.skill.interaction_model.value_supplier.ValueSupplier' } # type: Dict attribute_map = { 'name': 'name', + 'generated_by': 'generatedBy', 'values': 'values', 'value_supplier': 'valueSupplier' } # type: Dict supports_multiple_types = False - def __init__(self, name=None, values=None, value_supplier=None): - # type: (Optional[str], Optional[List[TypeValue_6d4bbead]], Optional[ValueSupplier_88bf9fe1]) -> None + def __init__(self, name=None, generated_by=None, values=None, value_supplier=None): + # type: (Optional[str], Optional[str], Optional[List[TypeValue_6d4bbead]], Optional[ValueSupplier_88bf9fe1]) -> None """Custom slot type to define a list of possible values for a slot. Used for items that are not covered by Amazon's built-in slot types. :param name: The name of the custom slot type. :type name: (optional) str + :param generated_by: Name of the generator used to generate this object. + :type generated_by: (optional) str :param values: List of expected values. Values outside the list are still returned. :type values: (optional) list[ask_smapi_model.v1.skill.interaction_model.type_value.TypeValue] :param value_supplier: @@ -67,6 +73,7 @@ def __init__(self, name=None, values=None, value_supplier=None): self.__discriminator_value = None # type: str self.name = name + self.generated_by = generated_by self.values = values self.value_supplier = value_supplier From 517442efe7dad7d1c9f536384ecfdfbcd53c162d Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 27 Jun 2022 18:22:09 +0000 Subject: [PATCH 035/111] Release 1.34.2. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 7 +++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../alexa/presentation/apl/list_runtime_error.py | 12 +++++++++--- .../presentation/apl/rendered_document_state.py | 15 +++++++++++---- .../alexa/presentation/apl/runtime_error.py | 15 +++++++++++---- 5 files changed, 39 insertions(+), 12 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 58c71e5..eaac40f 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -448,3 +448,10 @@ This release contains the following changes : This release contains the following changes : - Updating model definitions + + +1.34.2 +^^^^^^ + +This release contains the following changes : +* Added dataSources property in APL RenderedDocumentState diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index c44c367..a4d2ec5 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.34.1' +__version__ = '1.34.2' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py index 5b591ab..9905d85 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/list_runtime_error.py @@ -34,6 +34,8 @@ class ListRuntimeError(RuntimeError): :param message: A human-readable description of the error. :type message: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str :param reason: :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason.ListRuntimeErrorReason :param list_id: The identifier of the list in which the error occurred. @@ -47,6 +49,7 @@ class ListRuntimeError(RuntimeError): deserialized_types = { 'object_type': 'str', 'message': 'str', + 'token': 'str', 'reason': 'ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason.ListRuntimeErrorReason', 'list_id': 'str', 'list_version': 'int', @@ -56,6 +59,7 @@ class ListRuntimeError(RuntimeError): attribute_map = { 'object_type': 'type', 'message': 'message', + 'token': 'token', 'reason': 'reason', 'list_id': 'listId', 'list_version': 'listVersion', @@ -63,12 +67,14 @@ class ListRuntimeError(RuntimeError): } # type: Dict supports_multiple_types = False - def __init__(self, message=None, reason=None, list_id=None, list_version=None, operation_index=None): - # type: (Optional[str], Optional[ListRuntimeErrorReason_ae1e3d53], Optional[str], Optional[int], Optional[int]) -> None + def __init__(self, message=None, token=None, reason=None, list_id=None, list_version=None, operation_index=None): + # type: (Optional[str], Optional[str], Optional[ListRuntimeErrorReason_ae1e3d53], Optional[str], Optional[int], Optional[int]) -> None """Reports an error with list functionality. :param message: A human-readable description of the error. :type message: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str :param reason: :type reason: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.list_runtime_error_reason.ListRuntimeErrorReason :param list_id: The identifier of the list in which the error occurred. @@ -81,7 +87,7 @@ def __init__(self, message=None, reason=None, list_id=None, list_version=None, o self.__discriminator_value = "LIST_ERROR" # type: str self.object_type = self.__discriminator_value - super(ListRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message) + super(ListRuntimeError, self).__init__(object_type=self.__discriminator_value, message=message, token=token) self.reason = reason self.list_id = list_id self.list_version = list_version diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py index dde7d21..6092d29 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/rendered_document_state.py @@ -37,23 +37,27 @@ class RenderedDocumentState(object): :type version: (optional) str :param components_visible_on_screen: List of the visible APL components currently shown on screen. :type components_visible_on_screen: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen.ComponentVisibleOnScreen] + :param data_sources: List of registered data sources' associated metadata + :type data_sources: (optional) list[object] """ deserialized_types = { 'token': 'str', 'version': 'str', - 'components_visible_on_screen': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen.ComponentVisibleOnScreen]' + 'components_visible_on_screen': 'list[ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen.ComponentVisibleOnScreen]', + 'data_sources': 'list[object]' } # type: Dict attribute_map = { 'token': 'token', 'version': 'version', - 'components_visible_on_screen': 'componentsVisibleOnScreen' + 'components_visible_on_screen': 'componentsVisibleOnScreen', + 'data_sources': 'dataSources' } # type: Dict supports_multiple_types = False - def __init__(self, token=None, version=None, components_visible_on_screen=None): - # type: (Optional[str], Optional[str], Optional[List[ComponentVisibleOnScreen_c94bf507]]) -> None + def __init__(self, token=None, version=None, components_visible_on_screen=None, data_sources=None): + # type: (Optional[str], Optional[str], Optional[List[ComponentVisibleOnScreen_c94bf507]], Optional[List[object]]) -> None """Provides context for any APL content shown on screen. :param token: The token specified in the RenderDocument directive which rendered the content shown on screen. @@ -62,12 +66,15 @@ def __init__(self, token=None, version=None, components_visible_on_screen=None): :type version: (optional) str :param components_visible_on_screen: List of the visible APL components currently shown on screen. :type components_visible_on_screen: (optional) list[ask_sdk_model.interfaces.alexa.presentation.apl.component_visible_on_screen.ComponentVisibleOnScreen] + :param data_sources: List of registered data sources' associated metadata + :type data_sources: (optional) list[object] """ self.__discriminator_value = None # type: str self.token = token self.version = version self.components_visible_on_screen = components_visible_on_screen + self.data_sources = data_sources def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py index 93e5faf..3bfa98d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/runtime_error.py @@ -35,6 +35,8 @@ class RuntimeError(object): :type object_type: (optional) str :param message: A human-readable description of the error. :type message: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str .. note:: @@ -46,12 +48,14 @@ class RuntimeError(object): """ deserialized_types = { 'object_type': 'str', - 'message': 'str' + 'message': 'str', + 'token': 'str' } # type: Dict attribute_map = { 'object_type': 'type', - 'message': 'message' + 'message': 'message', + 'token': 'token' } # type: Dict supports_multiple_types = False @@ -64,19 +68,22 @@ class RuntimeError(object): __metaclass__ = ABCMeta @abstractmethod - def __init__(self, object_type=None, message=None): - # type: (Optional[str], Optional[str]) -> None + def __init__(self, object_type=None, message=None, token=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None """A description of an error in APL functionality. :param object_type: Defines the error type and dictates which properties must/can be included. :type object_type: (optional) str :param message: A human-readable description of the error. :type message: (optional) str + :param token: The token as specified in the presentation's RenderDocument directive. + :type token: (optional) str """ self.__discriminator_value = None # type: str self.object_type = object_type self.message = message + self.token = token @classmethod def get_real_child_model(cls, data): From a6849568e5eb6f6541441061a90272c04d2b5a7d Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 19 Jul 2022 16:33:57 +0000 Subject: [PATCH 036/111] Release 1.14.7. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 12 ++++ .../ask_smapi_model/__version__.py | 2 +- .../v1/skill/account_linking/__init__.py | 1 + .../account_linking_request_payload.py | 16 +++-- .../account_linking_response.py | 16 +++-- .../voice_forward_account_linking_status.py | 66 +++++++++++++++++++ .../v1/skill/manifest/permission_name.py | 3 +- 7 files changed, 106 insertions(+), 10 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/account_linking/voice_forward_account_linking_status.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index efc906b..feaead9 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -265,3 +265,15 @@ This release contains the following changes : ^^^^^^ Updating model definitions + + +1.14.7 +^^^^^^ + +1.34.2 + +This release contains the following changes : + +- Update account linking api schema for VoiceForwardedAccount Linking +- Adding enum for measurement system permission scope to manifest permission name +- Adding support for nl-NL locale diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index c19b0a8..af6f709 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.6' +__version__ = '1.14.7' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 2e44b41..8d30c4b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -20,4 +20,5 @@ from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request import AccountLinkingRequest from .account_linking_type import AccountLinkingType +from .voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus from .platform_type import PlatformType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py index fe725f8..74c198d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_request_payload.py @@ -24,6 +24,7 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinkingType_bb3d8e2 + from ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus as VoiceForwardAccountLinkingStatus_5cb337ee from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccessTokenSchemeType_e9bad6d7 from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinkingPlatformAuthorizationUrl_2972ebae @@ -59,6 +60,8 @@ class AccountLinkingRequestPayload(object): :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] :param skip_on_enablement: Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill. :type skip_on_enablement: (optional) bool + :param voice_forward_account_linking: + :type voice_forward_account_linking: (optional) ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus """ deserialized_types = { @@ -74,7 +77,8 @@ class AccountLinkingRequestPayload(object): 'reciprocal_access_token_url': 'str', 'redirect_urls': 'list[str]', 'authorization_urls_by_platform': 'list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl]', - 'skip_on_enablement': 'bool' + 'skip_on_enablement': 'bool', + 'voice_forward_account_linking': 'ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus' } # type: Dict attribute_map = { @@ -90,12 +94,13 @@ class AccountLinkingRequestPayload(object): 'reciprocal_access_token_url': 'reciprocalAccessTokenUrl', 'redirect_urls': 'redirectUrls', 'authorization_urls_by_platform': 'authorizationUrlsByPlatform', - 'skip_on_enablement': 'skipOnEnablement' + 'skip_on_enablement': 'skipOnEnablement', + 'voice_forward_account_linking': 'voiceForwardAccountLinking' } # type: Dict supports_multiple_types = False - def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None, skip_on_enablement=None): - # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]], Optional[bool]) -> None + def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, client_secret=None, access_token_scheme=None, default_token_expiration_in_seconds=None, reciprocal_access_token_url=None, redirect_urls=None, authorization_urls_by_platform=None, skip_on_enablement=None, voice_forward_account_linking=None): + # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[str], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]], Optional[bool], Optional[VoiceForwardAccountLinkingStatus_5cb337ee]) -> None """The payload for creating the account linking partner. :param object_type: @@ -124,6 +129,8 @@ def __init__(self, object_type=None, authorization_url=None, domains=None, clien :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] :param skip_on_enablement: Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill. :type skip_on_enablement: (optional) bool + :param voice_forward_account_linking: + :type voice_forward_account_linking: (optional) ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus """ self.__discriminator_value = None # type: str @@ -140,6 +147,7 @@ def __init__(self, object_type=None, authorization_url=None, domains=None, clien self.redirect_urls = redirect_urls self.authorization_urls_by_platform = authorization_urls_by_platform self.skip_on_enablement = skip_on_enablement + self.voice_forward_account_linking = voice_forward_account_linking def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py index 6211cf3..215a400 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/account_linking_response.py @@ -24,6 +24,7 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_smapi_model.v1.skill.account_linking.account_linking_type import AccountLinkingType as AccountLinkingType_bb3d8e2 + from ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus as VoiceForwardAccountLinkingStatus_5cb337ee from ask_smapi_model.v1.skill.account_linking.access_token_scheme_type import AccessTokenSchemeType as AccessTokenSchemeType_e9bad6d7 from ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl as AccountLinkingPlatformAuthorizationUrl_2972ebae @@ -53,6 +54,8 @@ class AccountLinkingResponse(object): :type redirect_urls: (optional) list[str] :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + :param voice_forward_account_linking: + :type voice_forward_account_linking: (optional) ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus """ deserialized_types = { @@ -65,7 +68,8 @@ class AccountLinkingResponse(object): 'access_token_scheme': 'ask_smapi_model.v1.skill.account_linking.access_token_scheme_type.AccessTokenSchemeType', 'default_token_expiration_in_seconds': 'int', 'redirect_urls': 'list[str]', - 'authorization_urls_by_platform': 'list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl]' + 'authorization_urls_by_platform': 'list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl]', + 'voice_forward_account_linking': 'ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus' } # type: Dict attribute_map = { @@ -78,12 +82,13 @@ class AccountLinkingResponse(object): 'access_token_scheme': 'accessTokenScheme', 'default_token_expiration_in_seconds': 'defaultTokenExpirationInSeconds', 'redirect_urls': 'redirectUrls', - 'authorization_urls_by_platform': 'authorizationUrlsByPlatform' + 'authorization_urls_by_platform': 'authorizationUrlsByPlatform', + 'voice_forward_account_linking': 'voiceForwardAccountLinking' } # type: Dict supports_multiple_types = False - def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, access_token_scheme=None, default_token_expiration_in_seconds=None, redirect_urls=None, authorization_urls_by_platform=None): - # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]]) -> None + def __init__(self, object_type=None, authorization_url=None, domains=None, client_id=None, scopes=None, access_token_url=None, access_token_scheme=None, default_token_expiration_in_seconds=None, redirect_urls=None, authorization_urls_by_platform=None, voice_forward_account_linking=None): + # type: (Optional[AccountLinkingType_bb3d8e2], Optional[str], Optional[List[object]], Optional[str], Optional[List[object]], Optional[str], Optional[AccessTokenSchemeType_e9bad6d7], Optional[int], Optional[List[object]], Optional[List[AccountLinkingPlatformAuthorizationUrl_2972ebae]], Optional[VoiceForwardAccountLinkingStatus_5cb337ee]) -> None """The account linking information of a skill. :param object_type: @@ -106,6 +111,8 @@ def __init__(self, object_type=None, authorization_url=None, domains=None, clien :type redirect_urls: (optional) list[str] :param authorization_urls_by_platform: The list of valid authorization urls for allowed platforms to initiate account linking. :type authorization_urls_by_platform: (optional) list[ask_smapi_model.v1.skill.account_linking.account_linking_platform_authorization_url.AccountLinkingPlatformAuthorizationUrl] + :param voice_forward_account_linking: + :type voice_forward_account_linking: (optional) ask_smapi_model.v1.skill.account_linking.voice_forward_account_linking_status.VoiceForwardAccountLinkingStatus """ self.__discriminator_value = None # type: str @@ -119,6 +126,7 @@ def __init__(self, object_type=None, authorization_url=None, domains=None, clien self.default_token_expiration_in_seconds = default_token_expiration_in_seconds self.redirect_urls = redirect_urls self.authorization_urls_by_platform = authorization_urls_by_platform + self.voice_forward_account_linking = voice_forward_account_linking def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/voice_forward_account_linking_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/voice_forward_account_linking_status.py new file mode 100644 index 0000000..247509c --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/voice_forward_account_linking_status.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class VoiceForwardAccountLinkingStatus(Enum): + """ + Defines the voice forward account linking status of a skill. + + + + Allowed enum values: [ENABLED, DISABLED] + """ + ENABLED = "ENABLED" + DISABLED = "DISABLED" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, VoiceForwardAccountLinkingStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 156c2e1..785ad03 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -69,6 +69,7 @@ class PermissionName(Enum): alexa_origin_ip_address_read = "alexa::origin_ip_address:read" alexa_devices_all_coarse_location_read = "alexa::devices:all:coarse_location:read" alexa_devices_all_tokenized_geolocation_read = "alexa::devices:all:tokenized_geolocation:read" + alexa_measurement_system_readwrite = "alexa::measurement_system::readwrite" def to_dict(self): # type: () -> Dict[str, Any] From c33b6714bc4da1a3f3e307744232f13a95a4edc6 Mon Sep 17 00:00:00 2001 From: Mario <11095804+doiron@users.noreply.github.com> Date: Tue, 19 Jul 2022 09:40:28 -0700 Subject: [PATCH 037/111] Update CHANGELOG.rst (#28) fix changelog typo --- ask-sdk-model/CHANGELOG.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index eaac40f..c6beefc 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -454,4 +454,5 @@ This release contains the following changes : ^^^^^^ This release contains the following changes : -* Added dataSources property in APL RenderedDocumentState + +- Added dataSources property in APL RenderedDocumentState From 433267ced231a4a2b239eb67e8ee5c3615fa30a8 Mon Sep 17 00:00:00 2001 From: Mario <11095804+doiron@users.noreply.github.com> Date: Tue, 19 Jul 2022 09:41:32 -0700 Subject: [PATCH 038/111] Update CHANGELOG.rst (#29) fix changelog typo --- ask-smapi-model/CHANGELOG.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index feaead9..6955bed 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -270,8 +270,6 @@ Updating model definitions 1.14.7 ^^^^^^ -1.34.2 - This release contains the following changes : - Update account linking api schema for VoiceForwardedAccount Linking From 9088f31c40826177996aefe3a8e493e37467060c Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Tue, 2 Aug 2022 16:46:15 +0000 Subject: [PATCH 039/111] Release 1.14.8. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 11 +++++++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../v1/skill/manifest/permission_name.py | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 6955bed..a983253 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -270,8 +270,19 @@ Updating model definitions 1.14.7 ^^^^^^ +1.34.2 + This release contains the following changes : - Update account linking api schema for VoiceForwardedAccount Linking - Adding enum for measurement system permission scope to manifest permission name - Adding support for nl-NL locale + + +1.14.8 +^^^^^^ + +This release contains the following changes : + +- Add AcousticallyRecognizedPhonemes under SpeechRecognition to IntentRequest +- Adding enum for dash 3p endpoints read scope in manifest permission name diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index af6f709..45ea75d 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.7' +__version__ = '1.14.8' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 785ad03..9b4a692 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite, dash_vendor_read_endpoints] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -70,6 +70,7 @@ class PermissionName(Enum): alexa_devices_all_coarse_location_read = "alexa::devices:all:coarse_location:read" alexa_devices_all_tokenized_geolocation_read = "alexa::devices:all:tokenized_geolocation:read" alexa_measurement_system_readwrite = "alexa::measurement_system::readwrite" + dash_vendor_read_endpoints = "dash::vendor:read:endpoints" def to_dict(self): # type: () -> Dict[str, Any] From bf8de53631e4e206a917858b398452adb6730217 Mon Sep 17 00:00:00 2001 From: Kaiming Tao <46464882+tkm22@users.noreply.github.com> Date: Tue, 2 Aug 2022 09:53:12 -0700 Subject: [PATCH 040/111] Update CHANGELOG.rst fix typo in changelog --- ask-smapi-model/CHANGELOG.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index a983253..eb9a8e0 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -270,8 +270,6 @@ Updating model definitions 1.14.7 ^^^^^^ -1.34.2 - This release contains the following changes : - Update account linking api schema for VoiceForwardedAccount Linking From 5192bde6fd40d7ca36a7f94047a10ad68df1b4e3 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 29 Aug 2022 18:22:52 +0000 Subject: [PATCH 041/111] Release 1.35.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 9 ++++++++- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index c6beefc..a843341 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -454,5 +454,12 @@ This release contains the following changes : ^^^^^^ This release contains the following changes : +* Added dataSources property in APL RenderedDocumentState -- Added dataSources property in APL RenderedDocumentState + +1.35.0 +~~~~~~ + +This release contains the following changes : + +- Added SearchAndRefineSucceeded event for Alexa.Search diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index a4d2ec5..c1dcd09 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.34.2' +__version__ = '1.35.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 71dcc1b57d0b11df639306cb4a88d02b79fa56ef Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Mon, 29 Aug 2022 18:37:16 +0000 Subject: [PATCH 042/111] Release 1.15.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 12 ++ .../ask_smapi_model/__version__.py | 2 +- .../alexa_hosted/hosted_skill_runtime.py | 2 +- .../v1/skill/manifest/__init__.py | 1 + .../v1/skill/manifest/alexa_search.py | 104 ++++++++++++++++++ .../v1/skill/manifest/interface.py | 3 + .../v1/skill/manifest/interface_type.py | 3 +- 7 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_search.py diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index eb9a8e0..ccf56c9 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -270,6 +270,8 @@ Updating model definitions 1.14.7 ^^^^^^ +1.34.2 + This release contains the following changes : - Update account linking api schema for VoiceForwardedAccount Linking @@ -284,3 +286,13 @@ This release contains the following changes : - Add AcousticallyRecognizedPhonemes under SpeechRecognition to IntentRequest - Adding enum for dash 3p endpoints read scope in manifest permission name + + +1.15.0 +~~~~~~ + +This release contains the following changes : + +- Added SearchAndRefineSucceeded event for Alexa.Search + + diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 45ea75d..66d87c8 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.14.8' +__version__ = '1.15.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py index 36ceed1..eadef4c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py @@ -27,7 +27,7 @@ class HostedSkillRuntime(Enum): """ - Hosted skill lambda runtime; Node.js 10.x is deprecated by Hosted Skill service as of July 30, 2021. + Hosted skill lambda runtime; Node.js 12.x is deprecated by Hosted Skill service as of September 28, 2022. diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 619be1b..f6bc59d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -110,6 +110,7 @@ from .audio_interface import AudioInterface from .smart_home_apis import SmartHomeApis from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .alexa_search import AlexaSearch from .custom_product_prompts import CustomProductPrompts from .app_link_v2_interface import AppLinkV2Interface from .alexa_for_business_apis import AlexaForBusinessApis diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_search.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_search.py new file mode 100644 index 0000000..89d5a11 --- /dev/null +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_search.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_smapi_model.v1.skill.manifest.interface import Interface + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AlexaSearch(Interface): + """ + + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """ + + """ + self.__discriminator_value = "ALEXA_SEARCH" # type: str + + self.object_type = self.__discriminator_value + super(AlexaSearch, self).__init__(object_type=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AlexaSearch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py index 14bacc7..b023077 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py @@ -37,6 +37,8 @@ class Interface(object): This is an abstract class. Use the following mapping, to figure out the model class to be instantiated, that sets ``type`` variable. + | ALEXA_SEARCH: :py:class:`ask_smapi_model.v1.skill.manifest.alexa_search.AlexaSearch`, + | | ALEXA_PRESENTATION_APL: :py:class:`ask_smapi_model.v1.skill.manifest.alexa_presentation_apl_interface.AlexaPresentationAplInterface`, | | APP_LINKS: :py:class:`ask_smapi_model.v1.skill.manifest.app_link_interface.AppLinkInterface`, @@ -66,6 +68,7 @@ class Interface(object): supports_multiple_types = False discriminator_value_class_map = { + 'ALEXA_SEARCH': 'ask_smapi_model.v1.skill.manifest.alexa_search.AlexaSearch', 'ALEXA_PRESENTATION_APL': 'ask_smapi_model.v1.skill.manifest.alexa_presentation_apl_interface.AlexaPresentationAplInterface', 'APP_LINKS': 'ask_smapi_model.v1.skill.manifest.app_link_interface.AppLinkInterface', 'ALEXA_PRESENTATION_HTML': 'ask_smapi_model.v1.skill.manifest.alexa_presentation_html_interface.AlexaPresentationHtmlInterface', diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py index ef5c01f..bc49ef5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py @@ -31,7 +31,7 @@ class InterfaceType(Enum): - Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2] + Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2, ALEXA_SEARCH] """ AUDIO_PLAYER = "AUDIO_PLAYER" VIDEO_APP = "VIDEO_APP" @@ -48,6 +48,7 @@ class InterfaceType(Enum): APP_LINKS = "APP_LINKS" ALEXA_EXTENSION = "ALEXA_EXTENSION" APP_LINKS_V2 = "APP_LINKS_V2" + ALEXA_SEARCH = "ALEXA_SEARCH" def to_dict(self): # type: () -> Dict[str, Any] From 47d1275b0b07804a7884539f024c0e153b79e15a Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 8 Sep 2022 15:44:56 +0000 Subject: [PATCH 043/111] Release 1.15.1. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 8 ++++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../v1/skill/blueprint/shopping_kit.py | 15 +++++++++++---- .../v1/skill/manifest/shopping_kit.py | 15 +++++++++++---- 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index ccf56c9..c453189 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -296,3 +296,11 @@ This release contains the following changes : - Added SearchAndRefineSucceeded event for Alexa.Search + + +1.15.1 +^^^^^^ + +This release contains the following changes : + +- Added Associates Field in ShoppingKit diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 66d87c8..f7ffc00 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.15.0' +__version__ = '1.15.1' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py index 37628f3..9a06b58 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/blueprint/shopping_kit.py @@ -32,27 +32,34 @@ class ShoppingKit(object): :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. :type is_shopping_actions_enabled: (optional) bool + :param is_amazon_associates_on_alexa_enabled: True if the skill uses Shopping Actions with Amazon Associates, false otherwise. + :type is_amazon_associates_on_alexa_enabled: (optional) bool """ deserialized_types = { - 'is_shopping_actions_enabled': 'bool' + 'is_shopping_actions_enabled': 'bool', + 'is_amazon_associates_on_alexa_enabled': 'bool' } # type: Dict attribute_map = { - 'is_shopping_actions_enabled': 'isShoppingActionsEnabled' + 'is_shopping_actions_enabled': 'isShoppingActionsEnabled', + 'is_amazon_associates_on_alexa_enabled': 'isAmazonAssociatesOnAlexaEnabled' } # type: Dict supports_multiple_types = False - def __init__(self, is_shopping_actions_enabled=None): - # type: (Optional[bool]) -> None + def __init__(self, is_shopping_actions_enabled=None, is_amazon_associates_on_alexa_enabled=None): + # type: (Optional[bool], Optional[bool]) -> None """Defines the structure for Shopping Kit related information in the skill manifest. :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. :type is_shopping_actions_enabled: (optional) bool + :param is_amazon_associates_on_alexa_enabled: True if the skill uses Shopping Actions with Amazon Associates, false otherwise. + :type is_amazon_associates_on_alexa_enabled: (optional) bool """ self.__discriminator_value = None # type: str self.is_shopping_actions_enabled = is_shopping_actions_enabled + self.is_amazon_associates_on_alexa_enabled = is_amazon_associates_on_alexa_enabled def to_dict(self): # type: () -> Dict[str, object] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py index 37628f3..9a06b58 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/shopping_kit.py @@ -32,27 +32,34 @@ class ShoppingKit(object): :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. :type is_shopping_actions_enabled: (optional) bool + :param is_amazon_associates_on_alexa_enabled: True if the skill uses Shopping Actions with Amazon Associates, false otherwise. + :type is_amazon_associates_on_alexa_enabled: (optional) bool """ deserialized_types = { - 'is_shopping_actions_enabled': 'bool' + 'is_shopping_actions_enabled': 'bool', + 'is_amazon_associates_on_alexa_enabled': 'bool' } # type: Dict attribute_map = { - 'is_shopping_actions_enabled': 'isShoppingActionsEnabled' + 'is_shopping_actions_enabled': 'isShoppingActionsEnabled', + 'is_amazon_associates_on_alexa_enabled': 'isAmazonAssociatesOnAlexaEnabled' } # type: Dict supports_multiple_types = False - def __init__(self, is_shopping_actions_enabled=None): - # type: (Optional[bool]) -> None + def __init__(self, is_shopping_actions_enabled=None, is_amazon_associates_on_alexa_enabled=None): + # type: (Optional[bool], Optional[bool]) -> None """Defines the structure for Shopping Kit related information in the skill manifest. :param is_shopping_actions_enabled: True if the skill uses Alexa Shopping Actions, false otherwise. :type is_shopping_actions_enabled: (optional) bool + :param is_amazon_associates_on_alexa_enabled: True if the skill uses Shopping Actions with Amazon Associates, false otherwise. + :type is_amazon_associates_on_alexa_enabled: (optional) bool """ self.__discriminator_value = None # type: str self.is_shopping_actions_enabled = is_shopping_actions_enabled + self.is_amazon_associates_on_alexa_enabled = is_amazon_associates_on_alexa_enabled def to_dict(self): # type: () -> Dict[str, object] From 2affce5570646e1dbc01f114d0210ab6c6c9cdd7 Mon Sep 17 00:00:00 2001 From: abhipwr Date: Fri, 4 Nov 2022 08:39:23 +0000 Subject: [PATCH 044/111] Release 1.16.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 10 ++++++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../v1/skill/alexa_hosted/hosted_skill_runtime.py | 5 +++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index c453189..83dedc1 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -304,3 +304,13 @@ This release contains the following changes : This release contains the following changes : - Added Associates Field in ShoppingKit + + + + +1.16.0 +~~~~~~ + +This release contains the following changes : + +- Adding NODE_16_X as publicly accepted hosted skill runtime diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index f7ffc00..e48dcb7 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.15.1' +__version__ = '1.16.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py index eadef4c..463dec1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/hosted_skill_runtime.py @@ -27,15 +27,16 @@ class HostedSkillRuntime(Enum): """ - Hosted skill lambda runtime; Node.js 12.x is deprecated by Hosted Skill service as of September 28, 2022. + Hosted skill lambda runtime; Node.js 12.x is deprecated by Hosted Skill service as of October 24, 2022. - Allowed enum values: [NODE_10_X, PYTHON_3_7, NODE_12_X] + Allowed enum values: [NODE_10_X, PYTHON_3_7, NODE_12_X, NODE_16_X] """ NODE_10_X = "NODE_10_X" PYTHON_3_7 = "PYTHON_3_7" NODE_12_X = "NODE_12_X" + NODE_16_X = "NODE_16_X" def to_dict(self): # type: () -> Dict[str, Any] From cb8d1ff930cd541a7fda024abf70cf4f294f3c58 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 28 Dec 2022 07:38:38 +0000 Subject: [PATCH 045/111] Release 1.17.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 + .../ask_smapi_model/__version__.py | 2 +- .../ask_smapi_model/v0/__init__.py | 2 +- .../ask_smapi_model/v0/catalog/__init__.py | 6 +- .../v0/catalog/upload/__init__.py | 18 +- .../development_events/subscriber/__init__.py | 14 +- .../subscription/__init__.py | 4 +- .../v0/event_schema/__init__.py | 12 +- .../alexa_development_event/__init__.py | 4 +- .../ask_smapi_model/v1/__init__.py | 6 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 24 +- .../v1/catalog/upload/__init__.py | 12 +- .../ask_smapi_model/v1/isp/__init__.py | 46 ++-- .../ask_smapi_model/v1/skill/__init__.py | 108 ++++----- .../v1/skill/account_linking/__init__.py | 8 +- .../v1/skill/alexa_hosted/__init__.py | 18 +- .../v1/skill/asr/annotation_sets/__init__.py | 18 +- .../v1/skill/asr/evaluations/__init__.py | 24 +- .../v1/skill/beta_test/__init__.py | 2 +- .../v1/skill/beta_test/testers/__init__.py | 2 +- .../v1/skill/certification/__init__.py | 14 +- .../v1/skill/evaluations/__init__.py | 20 +- .../v1/skill/experiment/__init__.py | 52 ++--- .../v1/skill/history/__init__.py | 16 +- .../v1/skill/interaction_model/__init__.py | 54 ++--- .../interaction_model/catalog/__init__.py | 14 +- .../conflict_detection/__init__.py | 10 +- .../skill/interaction_model/jobs/__init__.py | 30 +-- .../interaction_model/model_type/__init__.py | 16 +- .../type_version/__init__.py | 10 +- .../interaction_model/version/__init__.py | 16 +- .../v1/skill/invocations/__init__.py | 14 +- .../v1/skill/manifest/__init__.py | 220 +++++++++--------- .../v1/skill/manifest/custom/__init__.py | 4 +- .../v1/skill/metrics/__init__.py | 6 +- .../v1/skill/nlu/annotation_sets/__init__.py | 10 +- .../v1/skill/nlu/evaluations/__init__.py | 50 ++-- .../v1/skill/private/__init__.py | 2 +- .../v1/skill/publication/__init__.py | 4 +- .../v1/skill/simulations/__init__.py | 26 +-- .../v1/skill/validations/__init__.py | 4 +- .../v1/smart_home_evaluation/__init__.py | 32 +-- .../ask_smapi_model/v2/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 6 +- .../v2/skill/invocations/__init__.py | 6 +- .../v2/skill/simulations/__init__.py | 32 +-- 46 files changed, 506 insertions(+), 500 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 83dedc1..4262981 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -314,3 +314,9 @@ This release contains the following changes : This release contains the following changes : - Adding NODE_16_X as publicly accepted hosted skill runtime + + +1.17.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index e48dcb7..b8d1248 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.16.0' +__version__ = '1.17.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v0/__init__.py b/ask-smapi-model/ask_smapi_model/v0/__init__.py index 7bf567d..a044fbc 100644 --- a/ask-smapi-model/ask_smapi_model/v0/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .bad_request_error import BadRequestError from .error import Error +from .bad_request_error import BadRequestError diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index 2369366..b3b9978 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .list_catalogs_response import ListCatalogsResponse from .catalog_summary import CatalogSummary -from .catalog_type import CatalogType -from .catalog_details import CatalogDetails from .catalog_usage import CatalogUsage +from .catalog_details import CatalogDetails from .create_catalog_request import CreateCatalogRequest +from .list_catalogs_response import ListCatalogsResponse +from .catalog_type import CatalogType diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index 5be33cb..3e53c70 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .create_content_upload_request import CreateContentUploadRequest -from .get_content_upload_response import GetContentUploadResponse -from .presigned_upload_part import PresignedUploadPart -from .file_upload_status import FileUploadStatus +from .create_content_upload_response import CreateContentUploadResponse from .content_upload_file_summary import ContentUploadFileSummary -from .list_uploads_response import ListUploadsResponse +from .get_content_upload_response import GetContentUploadResponse +from .upload_ingestion_step import UploadIngestionStep +from .ingestion_step_name import IngestionStepName from .upload_status import UploadStatus -from .complete_upload_request import CompleteUploadRequest +from .list_uploads_response import ListUploadsResponse +from .file_upload_status import FileUploadStatus +from .presigned_upload_part import PresignedUploadPart from .content_upload_summary import ContentUploadSummary +from .create_content_upload_request import CreateContentUploadRequest from .ingestion_status import IngestionStatus -from .upload_ingestion_step import UploadIngestionStep from .pre_signed_url_item import PreSignedUrlItem -from .create_content_upload_response import CreateContentUploadResponse -from .ingestion_step_name import IngestionStepName +from .complete_upload_request import CompleteUploadRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index 1370998..9a147b4 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .endpoint import Endpoint -from .update_subscriber_request import UpdateSubscriberRequest -from .endpoint_aws_authorization import EndpointAwsAuthorization -from .subscriber_status import SubscriberStatus -from .subscriber_info import SubscriberInfo -from .endpoint_authorization import EndpointAuthorization +from .subscriber_summary import SubscriberSummary from .create_subscriber_request import CreateSubscriberRequest from .endpoint_authorization_type import EndpointAuthorizationType -from .subscriber_summary import SubscriberSummary +from .subscriber_info import SubscriberInfo +from .update_subscriber_request import UpdateSubscriberRequest +from .subscriber_status import SubscriberStatus from .list_subscribers_response import ListSubscribersResponse +from .endpoint import Endpoint +from .endpoint_aws_authorization import EndpointAwsAuthorization +from .endpoint_authorization import EndpointAuthorization diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index 278ce20..7c00ef8 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .subscription_info import SubscriptionInfo -from .update_subscription_request import UpdateSubscriptionRequest from .list_subscriptions_response import ListSubscriptionsResponse +from .subscription_info import SubscriptionInfo from .subscription_summary import SubscriptionSummary from .event import Event +from .update_subscription_request import UpdateSubscriptionRequest from .create_subscription_request import CreateSubscriptionRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index cf93445..070c806 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .skill_attributes import SkillAttributes -from .actor_attributes import ActorAttributes -from .request_status import RequestStatus -from .subscription_attributes import SubscriptionAttributes +from .interaction_model_event_attributes import InteractionModelEventAttributes from .base_schema import BaseSchema -from .skill_review_event_attributes import SkillReviewEventAttributes from .skill_review_attributes import SkillReviewAttributes from .skill_event_attributes import SkillEventAttributes from .interaction_model_attributes import InteractionModelAttributes -from .interaction_model_event_attributes import InteractionModelEventAttributes +from .skill_review_event_attributes import SkillReviewEventAttributes +from .request_status import RequestStatus +from .subscription_attributes import SubscriptionAttributes +from .skill_attributes import SkillAttributes +from .actor_attributes import ActorAttributes diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py index 6d608a5..6bb81c2 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .manifest_update import ManifestUpdate -from .interaction_model_update import InteractionModelUpdate from .skill_publish import SkillPublish from .skill_certification import SkillCertification +from .manifest_update import ManifestUpdate +from .interaction_model_update import InteractionModelUpdate diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index b889b8c..b81b034 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .link import Link from .stage_type import StageType -from .bad_request_error import BadRequestError +from .links import Links from .error import Error -from .link import Link +from .bad_request_error import BadRequestError from .stage_v2_type import StageV2Type -from .links import Links diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 8032119..555e1e5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .client import Client -from .requester_filter import RequesterFilter -from .sort_field import SortField +from .audit_logs_request import AuditLogsRequest +from .operation import Operation from .resource import Resource +from .requester import Requester +from .client import Client +from .resource_type_enum import ResourceTypeEnum +from .response_pagination_context import ResponsePaginationContext +from .operation_filter import OperationFilter from .request_pagination_context import RequestPaginationContext from .resource_filter import ResourceFilter from .sort_direction import SortDirection -from .request_filters import RequestFilters -from .operation_filter import OperationFilter -from .audit_log import AuditLog -from .audit_logs_request import AuditLogsRequest -from .client_filter import ClientFilter -from .resource_type_enum import ResourceTypeEnum -from .requester import Requester -from .response_pagination_context import ResponsePaginationContext +from .sort_field import SortField +from .requester_filter import RequesterFilter from .audit_logs_response import AuditLogsResponse -from .operation import Operation +from .client_filter import ClientFilter +from .audit_log import AuditLog +from .request_filters import RequestFilters diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index e77f93a..adfc3f0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .pre_signed_url import PreSignedUrl -from .get_content_upload_response import GetContentUploadResponse from .catalog_upload_base import CatalogUploadBase -from .file_upload_status import FileUploadStatus from .content_upload_file_summary import ContentUploadFileSummary -from .location import Location +from .get_content_upload_response import GetContentUploadResponse +from .upload_ingestion_step import UploadIngestionStep +from .ingestion_step_name import IngestionStepName +from .pre_signed_url import PreSignedUrl from .upload_status import UploadStatus +from .file_upload_status import FileUploadStatus from .ingestion_status import IngestionStatus -from .upload_ingestion_step import UploadIngestionStep from .pre_signed_url_item import PreSignedUrlItem -from .ingestion_step_name import IngestionStepName +from .location import Location diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 3640136..70b407d 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import -from .editable_state import EditableState -from .in_skill_product_summary_response import InSkillProductSummaryResponse -from .update_in_skill_product_request import UpdateInSkillProductRequest -from .product_type import ProductType -from .currency import Currency -from .associated_skill_response import AssociatedSkillResponse -from .tax_information import TaxInformation -from .summary_price_listing import SummaryPriceListing from .localized_publishing_information import LocalizedPublishingInformation from .promotable_state import PromotableState -from .in_skill_product_definition import InSkillProductDefinition -from .create_in_skill_product_request import CreateInSkillProductRequest +from .publishing_information import PublishingInformation +from .price_listing import PriceListing +from .privacy_and_compliance import PrivacyAndCompliance +from .status import Status +from .list_in_skill_product_response import ListInSkillProductResponse +from .in_skill_product_summary import InSkillProductSummary from .subscription_information import SubscriptionInformation +from .summary_marketplace_pricing import SummaryMarketplacePricing +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .distribution_countries import DistributionCountries +from .custom_product_prompts import CustomProductPrompts +from .currency import Currency +from .editable_state import EditableState +from .create_in_skill_product_request import CreateInSkillProductRequest +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance +from .summary_price_listing import SummaryPriceListing +from .update_in_skill_product_request import UpdateInSkillProductRequest from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .product_type import ProductType +from .tax_information import TaxInformation +from .in_skill_product_summary_response import InSkillProductSummaryResponse +from .associated_skill_response import AssociatedSkillResponse from .product_response import ProductResponse -from .distribution_countries import DistributionCountries -from .in_skill_product_summary import InSkillProductSummary +from .list_in_skill_product import ListInSkillProduct +from .marketplace_pricing import MarketplacePricing from .tax_information_category import TaxInformationCategory -from .status import Status -from .price_listing import PriceListing from .purchasable_state import PurchasableState -from .privacy_and_compliance import PrivacyAndCompliance -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance -from .summary_marketplace_pricing import SummaryMarketplacePricing -from .marketplace_pricing import MarketplacePricing -from .list_in_skill_product_response import ListInSkillProductResponse -from .custom_product_prompts import CustomProductPrompts +from .in_skill_product_definition import InSkillProductDefinition from .isp_summary_links import IspSummaryLinks -from .list_in_skill_product import ListInSkillProduct -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .publishing_information import PublishingInformation diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 9da8f2b..84d5e4c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import +from .response_status import ResponseStatus +from .skill_messaging_credentials import SkillMessagingCredentials from .agreement_type import AgreementType -from .clone_locale_stage_type import CloneLocaleStageType -from .update_skill_with_package_request import UpdateSkillWithPackageRequest -from .validation_feature import ValidationFeature +from .version_submission_status import VersionSubmissionStatus from .skill_status import SkillStatus -from .build_step_name import BuildStepName -from .response_status import ResponseStatus +from .create_skill_with_package_request import CreateSkillWithPackageRequest +from .validation_feature import ValidationFeature +from .resource_import_status import ResourceImportStatus +from .hosted_skill_deployment_status import HostedSkillDeploymentStatus +from .image_size_unit import ImageSizeUnit from .clone_locale_status import CloneLocaleStatus -from .create_rollback_request import CreateRollbackRequest -from .ssl_certificate_payload import SSLCertificatePayload -from .clone_locale_status_response import CloneLocaleStatusResponse -from .build_step import BuildStep -from .publication_status import PublicationStatus -from .skill_version import SkillVersion -from .standardized_error import StandardizedError -from .manifest_last_update_request import ManifestLastUpdateRequest -from .validation_details import ValidationDetails -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest -from .version_submission import VersionSubmission -from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .image_attributes import ImageAttributes +from .validation_endpoint import ValidationEndpoint from .validation_failure_type import ValidationFailureType -from .reason import Reason +from .status import Status from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest +from .skill_credentials import SkillCredentials +from .build_step_name import BuildStepName from .clone_locale_request_status import CloneLocaleRequestStatus -from .skill_summary import SkillSummary -from .publication_method import PublicationMethod +from .format import Format +from .update_skill_with_package_request import UpdateSkillWithPackageRequest +from .skill_interaction_model_status import SkillInteractionModelStatus +from .clone_locale_status_response import CloneLocaleStatusResponse from .image_dimension import ImageDimension -from .create_skill_request import CreateSkillRequest -from .list_skill_versions_response import ListSkillVersionsResponse -from .image_size import ImageSize -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus -from .rollback_request_status_types import RollbackRequestStatusTypes -from .import_response_skill import ImportResponseSkill -from .instance import Instance -from .skill_messaging_credentials import SkillMessagingCredentials -from .version_submission_status import VersionSubmissionStatus -from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .create_rollback_response import CreateRollbackResponse -from .status import Status from .regional_ssl_certificate import RegionalSSLCertificate -from .clone_locale_resource_status import CloneLocaleResourceStatus +from .create_rollback_request import CreateRollbackRequest +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus +from .clone_locale_stage_type import CloneLocaleStageType +from .create_skill_request import CreateSkillRequest from .import_response import ImportResponse -from .withdraw_request import WithdrawRequest -from .export_response_skill import ExportResponseSkill -from .build_details import BuildDetails -from .skill_interaction_model_status import SkillInteractionModelStatus -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .create_skill_response import CreateSkillResponse +from .interaction_model_last_update_request import InteractionModelLastUpdateRequest +from .clone_locale_resource_status import CloneLocaleResourceStatus from .overwrite_mode import OverwriteMode -from .format import Format -from .upload_response import UploadResponse -from .skill_credentials import SkillCredentials -from .skill_summary_apis import SkillSummaryApis from .validation_failure_reason import ValidationFailureReason -from .export_response import ExportResponse -from .clone_locale_request import CloneLocaleRequest -from .list_skill_response import ListSkillResponse -from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .validation_endpoint import ValidationEndpoint -from .manifest_status import ManifestStatus from .action import Action -from .rollback_request_status import RollbackRequestStatus +from .instance import Instance +from .version_submission import VersionSubmission +from .skill_summary_apis import SkillSummaryApis from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .image_size_unit import ImageSizeUnit -from .validation_data_types import ValidationDataTypes -from .resource_import_status import ResourceImportStatus +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .build_step import BuildStep +from .import_response_skill import ImportResponseSkill +from .rollback_request_status import RollbackRequestStatus from .skill_resources_enum import SkillResourcesEnum +from .image_size import ImageSize +from .skill_summary import SkillSummary +from .list_skill_response import ListSkillResponse +from .rollback_request_status_types import RollbackRequestStatusTypes +from .manifest_last_update_request import ManifestLastUpdateRequest +from .manifest_status import ManifestStatus +from .withdraw_request import WithdrawRequest +from .create_skill_response import CreateSkillResponse +from .list_skill_versions_response import ListSkillVersionsResponse +from .ssl_certificate_payload import SSLCertificatePayload +from .hosted_skill_deployment_details import HostedSkillDeploymentDetails +from .build_details import BuildDetails +from .skill_version import SkillVersion +from .image_attributes import ImageAttributes +from .upload_response import UploadResponse +from .create_rollback_response import CreateRollbackResponse +from .publication_method import PublicationMethod +from .validation_details import ValidationDetails +from .validation_data_types import ValidationDataTypes +from .clone_locale_request import CloneLocaleRequest +from .standardized_error import StandardizedError +from .publication_status import PublicationStatus +from .reason import Reason +from .export_response_skill import ExportResponseSkill +from .export_response import ExportResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 8d30c4b..7a68675 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -14,11 +14,11 @@ # from __future__ import absolute_import -from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl from .account_linking_request_payload import AccountLinkingRequestPayload from .account_linking_response import AccountLinkingResponse -from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request import AccountLinkingRequest -from .account_linking_type import AccountLinkingType -from .voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus from .platform_type import PlatformType +from .voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus +from .account_linking_type import AccountLinkingType +from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl +from .access_token_scheme_type import AccessTokenSchemeType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index 38ad2a1..3b3f1df 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_permission import HostedSkillPermission +from .hosted_skill_repository import HostedSkillRepository +from .hosted_skill_runtime import HostedSkillRuntime +from .hosted_skill_info import HostedSkillInfo +from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest +from .hosted_skill_repository_info import HostedSkillRepositoryInfo from .alexa_hosted_config import AlexaHostedConfig +from .hosted_skill_permission import HostedSkillPermission +from .hosted_skill_region import HostedSkillRegion from .hosted_skill_permission_type import HostedSkillPermissionType -from .hosted_skill_repository_info import HostedSkillRepositoryInfo -from .hosted_skill_runtime import HostedSkillRuntime +from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosting_configuration import HostingConfiguration from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials -from .hosted_skill_info import HostedSkillInfo -from .hosted_skill_repository import HostedSkillRepository from .hosted_skill_metadata import HostedSkillMetadata -from .hosted_skill_region import HostedSkillRegion from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList -from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest -from .hosting_configuration import HostingConfiguration -from .hosted_skill_permission_status import HostedSkillPermissionStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py index 18d830b..9b975bd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject -from .audio_asset import AudioAsset -from .pagination_context import PaginationContext -from .annotation_with_audio_asset import AnnotationWithAudioAsset -from .annotation_set_items import AnnotationSetItems +from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse from .annotation import Annotation -from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse +from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload -from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse -from .annotation_set_metadata import AnnotationSetMetadata -from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse +from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse -from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject +from .annotation_set_metadata import AnnotationSetMetadata +from .annotation_set_items import AnnotationSetItems +from .audio_asset import AudioAsset +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py index 9c2bfc3..573747b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py @@ -14,22 +14,22 @@ # from __future__ import absolute_import -from .evaluation_items import EvaluationItems -from .evaluation_result_output import EvaluationResultOutput +from .evaluation_result import EvaluationResult +from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject from .error_object import ErrorObject -from .audio_asset import AudioAsset -from .pagination_context import PaginationContext -from .evaluation_status import EvaluationStatus -from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .skill import Skill from .annotation import Annotation -from .list_asr_evaluations_response import ListAsrEvaluationsResponse +from .annotation_with_audio_asset import AnnotationWithAudioAsset +from .evaluation_result_output import EvaluationResultOutput from .evaluation_metadata_result import EvaluationMetadataResult -from .skill import Skill -from .evaluation_metadata import EvaluationMetadata -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .evaluation_result import EvaluationResult -from .evaluation_result_status import EvaluationResultStatus +from .evaluation_metadata import EvaluationMetadata from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject +from .evaluation_items import EvaluationItems from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse +from .evaluation_result_status import EvaluationResultStatus from .metrics import Metrics +from .audio_asset import AudioAsset +from .pagination_context import PaginationContext +from .evaluation_status import EvaluationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index cc2d87b..6e23315 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .beta_test import BetaTest from .status import Status +from .beta_test import BetaTest from .test_body import TestBody diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index 228ba3f..4a977c8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .testers_list import TestersList from .tester_with_details import TesterWithDetails from .list_testers_response import ListTestersResponse from .tester import Tester from .invitation_status import InvitationStatus -from .testers_list import TestersList diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index 589b179..e5caf1a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .distribution_info import DistributionInfo -from .review_tracking_info import ReviewTrackingInfo from .certification_response import CertificationResponse -from .certification_summary import CertificationSummary -from .review_tracking_info_summary import ReviewTrackingInfoSummary -from .list_certifications_response import ListCertificationsResponse -from .certification_status import CertificationStatus -from .publication_failure import PublicationFailure from .estimation_update import EstimationUpdate from .certification_result import CertificationResult +from .review_tracking_info import ReviewTrackingInfo +from .list_certifications_response import ListCertificationsResponse +from .publication_failure import PublicationFailure +from .certification_summary import CertificationSummary +from .certification_status import CertificationStatus +from .review_tracking_info_summary import ReviewTrackingInfoSummary +from .distribution_info import DistributionInfo diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index c69509c..75135b9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .profile_nlu_selected_intent import ProfileNluSelectedIntent -from .confirmation_status_type import ConfirmationStatusType from .profile_nlu_request import ProfileNluRequest -from .dialog_act_type import DialogActType -from .slot_resolutions import SlotResolutions +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .slot import Slot -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .profile_nlu_response import ProfileNluResponse -from .multi_turn import MultiTurn from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .dialog_act import DialogAct -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .slot_resolutions import SlotResolutions +from .dialog_act_type import DialogActType from .intent import Intent +from .confirmation_status_type import ConfirmationStatusType +from .multi_turn import MultiTurn +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .profile_nlu_selected_intent import ProfileNluSelectedIntent +from .dialog_act import DialogAct +from .profile_nlu_response import ProfileNluResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py index 24b35ff..bdf5d3a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py @@ -14,39 +14,39 @@ # from __future__ import absolute_import -from .experiment_history import ExperimentHistory from .experiment_summary import ExperimentSummary -from .metric_values import MetricValues from .state import State -from .treatment_id import TreatmentId -from .pagination_context import PaginationContext -from .manage_experiment_state_request import ManageExperimentStateRequest -from .metric_type import MetricType +from .experiment_trigger import ExperimentTrigger +from .create_experiment_request import CreateExperimentRequest +from .metric import Metric +from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse +from .experiment_history import ExperimentHistory +from .update_experiment_request import UpdateExperimentRequest from .destination_state import DestinationState -from .update_exposure_request import UpdateExposureRequest -from .state_transition_error_type import StateTransitionErrorType -from .state_transition_status import StateTransitionStatus from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse -from .update_experiment_input import UpdateExperimentInput +from .get_experiment_state_response import GetExperimentStateResponse +from .treatment_id import TreatmentId +from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse +from .metric_change_direction import MetricChangeDirection +from .metric_values import MetricValues from .metric_configuration import MetricConfiguration -from .experiment_stopped_reason import ExperimentStoppedReason from .create_experiment_input import CreateExperimentInput -from .metric import Metric -from .state_transition_error import StateTransitionError -from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse -from .update_experiment_request import UpdateExperimentRequest -from .experiment_information import ExperimentInformation -from .experiment_last_state_transition import ExperimentLastStateTransition from .metric_snapshot_status import MetricSnapshotStatus -from .metric_change_direction import MetricChangeDirection -from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest -from .create_experiment_request import CreateExperimentRequest -from .source_state import SourceState -from .experiment_type import ExperimentType -from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse -from .experiment_trigger import ExperimentTrigger from .target_state import TargetState -from .get_experiment_state_response import GetExperimentStateResponse +from .update_exposure_request import UpdateExposureRequest +from .update_experiment_input import UpdateExperimentInput +from .metric_type import MetricType +from .state_transition_error_type import StateTransitionErrorType +from .experiment_last_state_transition import ExperimentLastStateTransition +from .manage_experiment_state_request import ManageExperimentStateRequest +from .experiment_stopped_reason import ExperimentStoppedReason +from .source_state import SourceState from .get_experiment_response import GetExperimentResponse -from .metric_snapshot import MetricSnapshot +from .state_transition_error import StateTransitionError +from .experiment_information import ExperimentInformation +from .state_transition_status import StateTransitionStatus from .list_experiments_response import ListExperimentsResponse +from .metric_snapshot import MetricSnapshot +from .experiment_type import ExperimentType +from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 4a31e39..67d53e7 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .confidence import Confidence -from .intent_request import IntentRequest from .intent_request_locales import IntentRequestLocales -from .locale_in_query import LocaleInQuery -from .publication_status import PublicationStatus +from .sort_field_for_intent_request_type import SortFieldForIntentRequestType from .slot import Slot +from .confidence import Confidence +from .intent import Intent +from .dialog_act_name import DialogActName from .intent_confidence_bin import IntentConfidenceBin +from .locale_in_query import LocaleInQuery from .intent_requests import IntentRequests -from .sort_field_for_intent_request_type import SortFieldForIntentRequestType -from .confidence_bin import ConfidenceBin from .dialog_act import DialogAct -from .dialog_act_name import DialogActName +from .intent_request import IntentRequest +from .publication_status import PublicationStatus +from .confidence_bin import ConfidenceBin from .interaction_type import InteractionType -from .intent import Intent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index b2dc530..b6887c4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import -from .dialog_prompts import DialogPrompts -from .prompt_items import PromptItems -from .has_entity_resolution_match import HasEntityResolutionMatch -from .multiple_values_config import MultipleValuesConfig -from .is_less_than import IsLessThan -from .is_not_in_set import IsNotInSet -from .dialog_intents import DialogIntents -from .interaction_model_schema import InteractionModelSchema -from .value_catalog import ValueCatalog +from .language_model import LanguageModel +from .value_supplier import ValueSupplier +from .slot_type import SlotType from .is_greater_than import IsGreaterThan -from .fallback_intent_sensitivity import FallbackIntentSensitivity +from .prompt import Prompt +from .is_less_than import IsLessThan +from .has_entity_resolution_match import HasEntityResolutionMatch from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo -from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel -from .slot_definition import SlotDefinition -from .interaction_model_data import InteractionModelData -from .inline_value_supplier import InlineValueSupplier +from .type_value import TypeValue +from .fallback_intent_sensitivity import FallbackIntentSensitivity +from .slot_validation import SlotValidation from .dialog_intents_prompts import DialogIntentsPrompts +from .type_value_object import TypeValueObject from .is_less_than_or_equal_to import IsLessThanOrEqualTo +from .prompt_items import PromptItems +from .is_not_in_set import IsNotInSet +from .intent import Intent +from .dialog_slot_items import DialogSlotItems +from .inline_value_supplier import InlineValueSupplier +from .dialog import Dialog from .catalog_value_supplier import CatalogValueSupplier -from .slot_type import SlotType -from .model_configuration import ModelConfiguration -from .type_value import TypeValue -from .is_in_set import IsInSet +from .delegation_strategy_type import DelegationStrategyType +from .dialog_intents import DialogIntents +from .interaction_model_schema import InteractionModelSchema +from .dialog_prompts import DialogPrompts from .is_in_duration import IsInDuration from .is_not_in_duration import IsNotInDuration -from .value_supplier import ValueSupplier from .prompt_items_type import PromptItemsType -from .language_model import LanguageModel -from .dialog_slot_items import DialogSlotItems -from .dialog import Dialog -from .prompt import Prompt -from .type_value_object import TypeValueObject -from .slot_validation import SlotValidation -from .delegation_strategy_type import DelegationStrategyType -from .intent import Intent +from .slot_definition import SlotDefinition +from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel +from .interaction_model_data import InteractionModelData +from .value_catalog import ValueCatalog +from .is_in_set import IsInSet +from .model_configuration import ModelConfiguration +from .multiple_values_config import MultipleValuesConfig diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index 6416183..8495105 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .catalog_response import CatalogResponse -from .catalog_input import CatalogInput -from .catalog_definition_output import CatalogDefinitionOutput from .list_catalog_response import ListCatalogResponse -from .update_request import UpdateRequest +from .catalog_definition_output import CatalogDefinitionOutput +from .catalog_item import CatalogItem +from .catalog_entity import CatalogEntity +from .definition_data import DefinitionData from .catalog_status_type import CatalogStatusType from .last_update_request import LastUpdateRequest -from .catalog_entity import CatalogEntity -from .catalog_item import CatalogItem from .catalog_status import CatalogStatus -from .definition_data import DefinitionData +from .update_request import UpdateRequest +from .catalog_input import CatalogInput +from .catalog_response import CatalogResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py index 66937db..b4ca420 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .get_conflicts_response_result import GetConflictsResponseResult -from .pagination_context import PaginationContext -from .conflict_result import ConflictResult from .get_conflicts_response import GetConflictsResponse -from .conflict_intent_slot import ConflictIntentSlot from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse -from .conflict_intent import ConflictIntent +from .get_conflicts_response_result import GetConflictsResponseResult +from .conflict_intent_slot import ConflictIntentSlot from .conflict_detection_job_status import ConflictDetectionJobStatus from .paged_response import PagedResponse +from .conflict_result import ConflictResult +from .conflict_intent import ConflictIntent +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index ad602b8..6620285 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .execution import Execution -from .trigger import Trigger -from .catalog_auto_refresh import CatalogAutoRefresh -from .list_job_definitions_response import ListJobDefinitionsResponse +from .create_job_definition_request import CreateJobDefinitionRequest +from .scheduled import Scheduled +from .job_error_details import JobErrorDetails +from .job_definition import JobDefinition from .reference_version_update import ReferenceVersionUpdate from .job_api_pagination_context import JobAPIPaginationContext -from .job_error_details import JobErrorDetails +from .execution import Execution +from .slot_type_reference import SlotTypeReference +from .execution_metadata import ExecutionMetadata +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete from .update_job_status_request import UpdateJobStatusRequest +from .catalog import Catalog +from .list_job_definitions_response import ListJobDefinitionsResponse +from .validation_errors import ValidationErrors +from .trigger import Trigger from .create_job_definition_response import CreateJobDefinitionResponse +from .catalog_auto_refresh import CatalogAutoRefresh from .job_definition_status import JobDefinitionStatus -from .validation_errors import ValidationErrors +from .job_definition_metadata import JobDefinitionMetadata +from .dynamic_update_error import DynamicUpdateError from .get_executions_response import GetExecutionsResponse -from .catalog import Catalog from .resource_object import ResourceObject -from .job_definition import JobDefinition -from .job_definition_metadata import JobDefinitionMetadata from .interaction_model import InteractionModel -from .scheduled import Scheduled -from .create_job_definition_request import CreateJobDefinitionRequest -from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete -from .slot_type_reference import SlotTypeReference -from .dynamic_update_error import DynamicUpdateError -from .execution_metadata import ExecutionMetadata diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 8b8d324..6b4c1b1 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -15,16 +15,16 @@ from __future__ import absolute_import from .slot_type_response import SlotTypeResponse -from .error import Error -from .warning import Warning -from .slot_type_item import SlotTypeItem +from .slot_type_input import SlotTypeInput +from .definition_data import DefinitionData from .slot_type_status import SlotTypeStatus -from .slot_type_update_definition import SlotTypeUpdateDefinition +from .last_update_request import LastUpdateRequest from .slot_type_definition_output import SlotTypeDefinitionOutput +from .warning import Warning from .update_request import UpdateRequest -from .last_update_request import LastUpdateRequest +from .slot_type_response_entity import SlotTypeResponseEntity from .slot_type_status_type import SlotTypeStatusType -from .slot_type_input import SlotTypeInput +from .slot_type_item import SlotTypeItem +from .error import Error +from .slot_type_update_definition import SlotTypeUpdateDefinition from .list_slot_type_response import ListSlotTypeResponse -from .slot_type_response_entity import SlotTypeResponseEntity -from .definition_data import DefinitionData diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index f853ff4..bd30eb9 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .version_data_object import VersionDataObject from .version_data import VersionData -from .list_slot_type_version_response import ListSlotTypeVersionResponse -from .slot_type_update import SlotTypeUpdate from .slot_type_update_object import SlotTypeUpdateObject -from .value_supplier_object import ValueSupplierObject from .slot_type_version_data_object import SlotTypeVersionDataObject -from .slot_type_version_item import SlotTypeVersionItem +from .list_slot_type_version_response import ListSlotTypeVersionResponse +from .version_data_object import VersionDataObject from .slot_type_version_data import SlotTypeVersionData +from .value_supplier_object import ValueSupplierObject +from .slot_type_version_item import SlotTypeVersionItem +from .slot_type_update import SlotTypeUpdate diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 856a794..642acf5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse -from .list_response import ListResponse +from .version_items import VersionItems +from .value_schema import ValueSchema from .version_data import VersionData +from .catalog_version_data import CatalogVersionData from .catalog_entity_version import CatalogEntityVersion -from .value_schema_name import ValueSchemaName -from .value_schema import ValueSchema -from .catalog_values import CatalogValues -from .links import Links from .catalog_update import CatalogUpdate -from .catalog_version_data import CatalogVersionData -from .version_items import VersionItems +from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .input_source import InputSource +from .catalog_values import CatalogValues +from .list_response import ListResponse +from .links import Links +from .value_schema_name import ValueSchemaName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index dfe7888..9bde65f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import +from .skill_execution_info import SkillExecutionInfo from .invocation_response_status import InvocationResponseStatus -from .end_point_regions import EndPointRegions -from .invoke_skill_response import InvokeSkillResponse -from .invocation_response_result import InvocationResponseResult -from .response import Response -from .metrics import Metrics from .invoke_skill_request import InvokeSkillRequest -from .skill_request import SkillRequest from .request import Request -from .skill_execution_info import SkillExecutionInfo +from .skill_request import SkillRequest +from .response import Response +from .invocation_response_result import InvocationResponseResult +from .invoke_skill_response import InvokeSkillResponse +from .end_point_regions import EndPointRegions +from .metrics import Metrics diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index f6bc59d..83ab701 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,130 +14,130 @@ # from __future__ import absolute_import -from .connections_payload import ConnectionsPayload -from .extension_initialization_request import ExtensionInitializationRequest -from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel -from .linked_android_common_intent import LinkedAndroidCommonIntent -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .music_feature import MusicFeature -from .dialog_delegation_strategy import DialogDelegationStrategy -from .skill_manifest_endpoint import SkillManifestEndpoint -from .authorized_client_lwa_application import AuthorizedClientLwaApplication -from .shopping_kit import ShoppingKit -from .extension_request import ExtensionRequest -from .voice_profile_feature import VoiceProfileFeature -from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName -from .ssl_certificate_type import SSLCertificateType -from .currency import Currency -from .viewport_mode import ViewportMode -from .skill_manifest_events import SkillManifestEvents -from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest -from .flash_briefing_content_type import FlashBriefingContentType -from .tax_information import TaxInformation -from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .authorized_client_lwa import AuthorizedClientLwa -from .free_trial_information import FreeTrialInformation -from .interface_type import InterfaceType -from .music_apis import MusicApis +from .event_name import EventName +from .skill_manifest_envelope import SkillManifestEnvelope +from .alexa_search import AlexaSearch +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .version import Version +from .flash_briefing_genre import FlashBriefingGenre from .distribution_mode import DistributionMode from .custom_connections import CustomConnections -from .music_capability import MusicCapability -from .display_interface_apml_version import DisplayInterfaceApmlVersion -from .event_name import EventName -from .up_channel_items import UpChannelItems +from .video_apis import VideoApis +from .music_content_name import MusicContentName from .house_hold_list import HouseHoldList -from .music_interfaces import MusicInterfaces -from .permission_name import PermissionName -from .interface import Interface -from .health_interface import HealthInterface -from .region import Region -from .skill_manifest_envelope import SkillManifestEnvelope -from .supported_controls import SupportedControls +from .skill_manifest_endpoint import SkillManifestEndpoint +from .game_engine_interface import GameEngineInterface +from .video_apis_locale import VideoApisLocale +from .knowledge_apis import KnowledgeApis +from .custom_apis import CustomApis +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation from .app_link_interface import AppLinkInterface -from .skill_manifest_apis import SkillManifestApis -from .play_store_common_scheme_name import PlayStoreCommonSchemeName -from .lambda_endpoint import LambdaEndpoint -from .viewport_specification import ViewportSpecification -from .catalog_info import CatalogInfo -from .music_alias import MusicAlias -from .video_feature import VideoFeature -from .music_content_type import MusicContentType +from .music_capability import MusicCapability +from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel +from .localized_music_info import LocalizedMusicInfo +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .video_catalog_info import VideoCatalogInfo from .subscription_information import SubscriptionInformation -from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .catalog_name import CatalogName -from .friendly_name import FriendlyName -from .manifest_gadget_support import ManifestGadgetSupport -from .source_language_for_locales import SourceLanguageForLocales +from .shopping_kit import ShoppingKit from .dialog_manager import DialogManager -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion -from .automatic_cloned_locale import AutomaticClonedLocale +from .supported_controls import SupportedControls from .distribution_countries import DistributionCountries -from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .gadget_support_requirement import GadgetSupportRequirement -from .tax_information_category import TaxInformationCategory -from .video_app_interface import VideoAppInterface -from .custom_apis import CustomApis -from .flash_briefing_genre import FlashBriefingGenre -from .linked_application import LinkedApplication -from .app_link import AppLink -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems -from .music_wordmark import MusicWordmark -from .knowledge_apis import KnowledgeApis -from .video_apis_locale import VideoApisLocale -from .alexa_for_business_interface import AlexaForBusinessInterface -from .game_engine_interface import GameEngineInterface -from .dialog_management import DialogManagement -from .gadget_controller_interface import GadgetControllerInterface -from .smart_home_protocol import SmartHomeProtocol -from .lambda_ssl_certificate_type import LambdaSSLCertificateType -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .version import Version -from .android_custom_intent import AndroidCustomIntent -from .music_request import MusicRequest -from .video_apis import VideoApis -from .lambda_region import LambdaRegion from .video_country_info import VideoCountryInfo -from .skill_manifest import SkillManifest -from .manifest_version import ManifestVersion -from .flash_briefing_apis import FlashBriefingApis -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .marketplace_pricing import MarketplacePricing -from .permission_items import PermissionItems -from .automatic_distribution import AutomaticDistribution -from .authorized_client import AuthorizedClient +from .custom_product_prompts import CustomProductPrompts +from .display_interface_apml_version import DisplayInterfaceApmlVersion from .event_name_type import EventNameType -from .audio_interface import AudioInterface +from .viewport_shape import ViewportShape +from .dialog_management import DialogManagement +from .offer_type import OfferType +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .up_channel_items import UpChannelItems +from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency +from .flash_briefing_apis import FlashBriefingApis +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid from .smart_home_apis import SmartHomeApis -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName -from .alexa_search import AlexaSearch -from .custom_product_prompts import CustomProductPrompts +from .currency import Currency +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .video_prompt_name import VideoPromptName +from .authorized_client_lwa import AuthorizedClientLwa +from .skill_manifest_publishing_information import SkillManifestPublishingInformation +from .catalog_name import CatalogName +from .extension_request import ExtensionRequest +from .gadget_support_requirement import GadgetSupportRequirement from .app_link_v2_interface import AppLinkV2Interface -from .alexa_for_business_apis import AlexaForBusinessApis +from .skill_manifest_apis import SkillManifestApis +from .viewport_specification import ViewportSpecification +from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .region import Region +from .music_alias import MusicAlias from .video_region import VideoRegion +from .video_feature import VideoFeature +from .android_common_intent_name import AndroidCommonIntentName +from .catalog_info import CatalogInfo +from .manifest_gadget_support import ManifestGadgetSupport +from .interface_type import InterfaceType +from .extension_initialization_request import ExtensionInitializationRequest +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .friendly_name import FriendlyName from .localized_knowledge_information import LocalizedKnowledgeInformation -from .viewport_shape import ViewportShape +from .automatic_distribution import AutomaticDistribution +from .skill_manifest_events import SkillManifestEvents +from .permission_items import PermissionItems +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest +from .linked_common_schemes import LinkedCommonSchemes +from .authorized_client import AuthorizedClient +from .smart_home_protocol import SmartHomeProtocol +from .audio_interface import AudioInterface +from .custom_localized_information import CustomLocalizedInformation +from .music_apis import MusicApis +from .music_request import MusicRequest +from .demand_response_apis import DemandResponseApis +from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .manifest_version import ManifestVersion +from .tax_information import TaxInformation +from .custom_task import CustomTask +from .permission_name import PermissionName +from .skill_manifest import SkillManifest +from .ssl_certificate_type import SSLCertificateType +from .linked_android_common_intent import LinkedAndroidCommonIntent +from .lambda_endpoint import LambdaEndpoint +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .display_interface import DisplayInterface -from .catalog_type import CatalogType -from .music_content_name import MusicContentName -from .offer_type import OfferType -from .localized_name import LocalizedName -from .paid_skill_information import PaidSkillInformation -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid -from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .alexa_for_business_apis import AlexaForBusinessApis +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .viewport_mode import ViewportMode +from .source_language_for_locales import SourceLanguageForLocales +from .music_content_type import MusicContentType +from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale from .event_publications import EventPublications -from .demand_response_apis import DemandResponseApis -from .custom_localized_information import CustomLocalizedInformation -from .linked_common_schemes import LinkedCommonSchemes +from .voice_profile_feature import VoiceProfileFeature +from .free_trial_information import FreeTrialInformation +from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement from .video_prompt_name_type import VideoPromptNameType -from .video_prompt_name import VideoPromptName -from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .custom_task import CustomTask +from .interface import Interface +from .display_interface import DisplayInterface +from .automatic_cloned_locale import AutomaticClonedLocale +from .gadget_controller_interface import GadgetControllerInterface +from .paid_skill_information import PaidSkillInformation +from .marketplace_pricing import MarketplacePricing +from .tax_information_category import TaxInformationCategory +from .lambda_region import LambdaRegion +from .localized_name import LocalizedName +from .music_wordmark import MusicWordmark +from .health_interface import HealthInterface +from .catalog_type import CatalogType +from .music_feature import MusicFeature +from .music_interfaces import MusicInterfaces +from .connections_payload import ConnectionsPayload +from .alexa_for_business_interface import AlexaForBusinessInterface +from .dialog_delegation_strategy import DialogDelegationStrategy +from .app_link import AppLink +from .android_custom_intent import AndroidCustomIntent +from .linked_application import LinkedApplication from .supported_controls_type import SupportedControlsType -from .localized_music_info import LocalizedMusicInfo -from .video_catalog_info import VideoCatalogInfo -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo -from .android_common_intent_name import AndroidCommonIntentName -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .flash_briefing_content_type import FlashBriefingContentType +from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .video_app_interface import VideoAppInterface +from .lambda_ssl_certificate_type import LambdaSSLCertificateType diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index b1eda5d..325f7c2 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .target_runtime import TargetRuntime from .target_runtime_device import TargetRuntimeDevice -from .connection import Connection from .suppressed_interface import SuppressedInterface -from .target_runtime import TargetRuntime from .target_runtime_type import TargetRuntimeType +from .connection import Connection diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index 104ab21..efdb518 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .skill_type import SkillType -from .stage_for_metric import StageForMetric from .metric import Metric -from .period import Period +from .skill_type import SkillType from .get_metric_data_response import GetMetricDataResponse +from .period import Period +from .stage_for_metric import StageForMetric diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index 4b8e9f1..10b4da5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -15,12 +15,12 @@ from __future__ import absolute_import from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest -from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse -from .pagination_context import PaginationContext -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest -from .annotation_set_entity import AnnotationSetEntity -from .links import Links +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .links import Links +from .annotation_set_entity import AnnotationSetEntity from .annotation_set import AnnotationSet +from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse +from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index 1bed7eb..6c360f3 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import -from .list_nlu_evaluations_response import ListNLUEvaluationsResponse -from .pagination_context import PaginationContext -from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse -from .results_status import ResultsStatus -from .results import Results -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .paged_results_response import PagedResultsResponse -from .expected_intent_slots_props import ExpectedIntentSlotsProps -from .evaluate_nlu_request import EvaluateNLURequest -from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks -from .actual import Actual -from .test_case import TestCase -from .evaluation import Evaluation -from .resolutions_per_authority import ResolutionsPerAuthority -from .status import Status -from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext from .evaluation_entity import EvaluationEntity -from .links import Links +from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks from .inputs import Inputs from .expected import Expected -from .confirmation_status import ConfirmationStatus -from .evaluation_inputs import EvaluationInputs -from .paged_response import PagedResponse -from .evaluate_response import EvaluateResponse -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .expected_intent import ExpectedIntent +from .list_nlu_evaluations_response import ListNLUEvaluationsResponse +from .status import Status from .resolutions import Resolutions -from .slots_props import SlotsProps +from .results import Results from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .actual import Actual +from .resolutions_per_authority import ResolutionsPerAuthority +from .test_case import TestCase +from .expected_intent import ExpectedIntent from .source import Source +from .evaluate_response import EvaluateResponse +from .evaluation_inputs import EvaluationInputs from .intent import Intent +from .paged_response import PagedResponse +from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .results_status import ResultsStatus +from .slots_props import SlotsProps +from .evaluation import Evaluation +from .links import Links +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .paged_results_response import PagedResultsResponse +from .evaluate_nlu_request import EvaluateNLURequest +from .confirmation_status import ConfirmationStatus +from .expected_intent_slots_props import ExpectedIntentSlotsProps +from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext +from .pagination_context import PaginationContext +from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index 378cafd..8706db0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -15,5 +15,5 @@ from __future__ import absolute_import from .accept_status import AcceptStatus -from .private_distribution_account import PrivateDistributionAccount from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse +from .private_distribution_account import PrivateDistributionAccount diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py index 0bc1bfb..cb36b28 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .skill_publication_response import SkillPublicationResponse -from .skill_publication_status import SkillPublicationStatus from .publish_skill_request import PublishSkillRequest +from .skill_publication_status import SkillPublicationStatus +from .skill_publication_response import SkillPublicationResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 1b585d2..54c2d0a 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .alexa_response_content import AlexaResponseContent -from .simulations_api_request import SimulationsApiRequest -from .input import Input -from .simulations_api_response import SimulationsApiResponse from .simulation_result import SimulationResult -from .simulations_api_response_status import SimulationsApiResponseStatus -from .simulation_type import SimulationType -from .alexa_execution_info import AlexaExecutionInfo -from .device import Device -from .invocation_request import InvocationRequest from .alexa_response import AlexaResponse -from .session import Session -from .metrics import Metrics -from .invocation_response import InvocationResponse from .invocation import Invocation -from .simulation import Simulation from .session_mode import SessionMode +from .device import Device +from .simulation import Simulation +from .alexa_execution_info import AlexaExecutionInfo +from .simulations_api_response import SimulationsApiResponse +from .input import Input +from .invocation_response import InvocationResponse +from .simulations_api_response_status import SimulationsApiResponseStatus +from .session import Session +from .simulations_api_request import SimulationsApiRequest +from .simulation_type import SimulationType +from .metrics import Metrics +from .invocation_request import InvocationRequest +from .alexa_response_content import AlexaResponseContent diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index 315184b..92aa838 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .response_validation import ResponseValidation from .validations_api_response_result import ValidationsApiResponseResult +from .response_validation_status import ResponseValidationStatus from .validations_api_request import ValidationsApiRequest from .validations_api_response_status import ValidationsApiResponseStatus from .response_validation_importance import ResponseValidationImportance -from .response_validation_status import ResponseValidationStatus from .validations_api_response import ValidationsApiResponse -from .response_validation import ResponseValidation diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index 8e41a5a..a9fa436 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .sh_capability_response import SHCapabilityResponse -from .evaluation_object import EvaluationObject -from .stage import Stage -from .endpoint import Endpoint -from .pagination_context import PaginationContext -from .capability_test_plan import CapabilityTestPlan from .pagination_context_token import PaginationContextToken +from .stage import Stage +from .sh_capability_response import SHCapabilityResponse +from .test_case_result import TestCaseResult +from .sh_capability_directive import SHCapabilityDirective from .sh_capability_error_code import SHCapabilityErrorCode +from .evaluation_entity_status import EvaluationEntityStatus +from .sh_capability_state import SHCapabilityState from .list_sh_test_plan_item import ListSHTestPlanItem -from .sh_evaluation_results_metric import SHEvaluationResultsMetric -from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse -from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse from .sh_capability_error import SHCapabilityError -from .sh_capability_directive import SHCapabilityDirective from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .sh_capability_state import SHCapabilityState -from .test_case_result import TestCaseResult -from .test_case_result_status import TestCaseResultStatus from .paged_response import PagedResponse -from .evaluation_entity_status import EvaluationEntityStatus -from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse +from .sh_evaluation_results_metric import SHEvaluationResultsMetric +from .test_case_result_status import TestCaseResultStatus +from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse +from .evaluation_object import EvaluationObject +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .capability_test_plan import CapabilityTestPlan from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse +from .endpoint import Endpoint +from .pagination_context import PaginationContext +from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse diff --git a/ask-smapi-model/ask_smapi_model/v2/__init__.py b/ask-smapi-model/ask_smapi_model/v2/__init__.py index 7bf567d..a044fbc 100644 --- a/ask-smapi-model/ask_smapi_model/v2/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .bad_request_error import BadRequestError from .error import Error +from .bad_request_error import BadRequestError diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index 465ed34..cfd043e 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .invocation_request import InvocationRequest -from .metrics import Metrics -from .invocation_response import InvocationResponse from .invocation import Invocation +from .invocation_response import InvocationResponse +from .metrics import Metrics +from .invocation_request import InvocationRequest diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index 9e94b54..0b2cb78 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .invocation_response_status import InvocationResponseStatus -from .invocations_api_response import InvocationsApiResponse -from .end_point_regions import EndPointRegions -from .invocation_response_result import InvocationResponseResult from .skill_request import SkillRequest from .invocations_api_request import InvocationsApiRequest +from .invocations_api_response import InvocationsApiResponse +from .invocation_response_result import InvocationResponseResult +from .end_point_regions import EndPointRegions diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index 250424f..f6ad1e1 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -15,24 +15,24 @@ from __future__ import absolute_import from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .alexa_response_content import AlexaResponseContent -from .confirmation_status_type import ConfirmationStatusType -from .simulations_api_request import SimulationsApiRequest -from .input import Input -from .simulations_api_response import SimulationsApiResponse -from .slot_resolutions import SlotResolutions -from .slot import Slot +from .skill_execution_info import SkillExecutionInfo from .simulation_result import SimulationResult -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .simulations_api_response_status import SimulationsApiResponseStatus -from .simulation_type import SimulationType -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .alexa_execution_info import AlexaExecutionInfo -from .device import Device from .alexa_response import AlexaResponse -from .session import Session from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .simulation import Simulation -from .skill_execution_info import SkillExecutionInfo +from .slot import Slot +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems from .session_mode import SessionMode +from .slot_resolutions import SlotResolutions +from .device import Device +from .simulation import Simulation +from .alexa_execution_info import AlexaExecutionInfo from .intent import Intent +from .confirmation_status_type import ConfirmationStatusType +from .simulations_api_response import SimulationsApiResponse +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .input import Input +from .simulations_api_response_status import SimulationsApiResponseStatus +from .session import Session +from .simulations_api_request import SimulationsApiRequest +from .simulation_type import SimulationType +from .alexa_response_content import AlexaResponseContent From 05b3fd2262344676869989dee59a3b53ee4def25 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 4 Jan 2023 15:42:45 +0000 Subject: [PATCH 046/111] Release 1.36.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__init__.py | 50 +++---- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 8 +- .../ask_sdk_model/dialog/__init__.py | 16 +- .../dynamic_endpoints/__init__.py | 6 +- .../ask_sdk_model/er/dynamic/__init__.py | 2 +- .../events/skillevents/__init__.py | 14 +- .../alexa/experimentation/__init__.py | 4 +- .../alexa/presentation/apl/__init__.py | 112 +++++++------- .../apl/listoperations/__init__.py | 6 +- .../alexa/presentation/apla/__init__.py | 14 +- .../alexa/presentation/aplt/__init__.py | 16 +- .../alexa/presentation/html/__init__.py | 18 +-- .../amazonpay/model/request/__init__.py | 8 +- .../amazonpay/model/response/__init__.py | 10 +- .../interfaces/amazonpay/model/v1/__init__.py | 18 +-- .../interfaces/amazonpay/request/__init__.py | 2 +- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 2 +- .../interfaces/audioplayer/__init__.py | 30 ++-- .../interfaces/connections/__init__.py | 8 +- .../connections/entities/__init__.py | 4 +- .../connections/requests/__init__.py | 6 +- .../interfaces/conversations/__init__.py | 2 +- .../custom_interface_controller/__init__.py | 12 +- .../interfaces/display/__init__.py | 34 ++--- .../interfaces/game_engine/__init__.py | 2 +- .../interfaces/geolocation/__init__.py | 9 +- .../geolocation/geolocation_common_state.py | 140 ++++++++++++++++++ .../geolocation/geolocation_state.py | 13 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 2 +- .../interfaces/videoapp/__init__.py | 2 +- .../interfaces/viewport/__init__.py | 18 +-- .../interfaces/viewport/apl/__init__.py | 2 +- .../interfaces/viewport/aplt/__init__.py | 4 +- .../interfaces/viewport/size/__init__.py | 4 +- .../ask_sdk_model/services/__init__.py | 14 +- .../services/device_address/__init__.py | 6 +- .../services/directive/__init__.py | 4 +- .../services/endpoint_enumeration/__init__.py | 8 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 14 +- .../services/list_management/__init__.py | 32 ++-- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 18 +-- .../services/proactive_events/__init__.py | 6 +- .../services/reminder_management/__init__.py | 36 ++--- .../services/skill_messaging/__init__.py | 2 +- .../services/timer_management/__init__.py | 26 ++-- .../ask_sdk_model/services/ups/__init__.py | 6 +- .../slu/entityresolution/__init__.py | 6 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 14 +- 56 files changed, 484 insertions(+), 338 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_common_state.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index a843341..f444b2f 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -463,3 +463,9 @@ This release contains the following changes : This release contains the following changes : - Added SearchAndRefineSucceeded event for Alexa.Search + + +1.36.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index cf43196..4b0035e 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import -from .intent_request import IntentRequest -from .permission_status import PermissionStatus -from .simple_slot_value import SimpleSlotValue -from .list_slot_value import ListSlotValue -from .application import Application -from .permissions import Permissions +from .dialog_state import DialogState +from .session_ended_error_type import SessionEndedErrorType +from .status import Status +from .session_resumed_request import SessionResumedRequest +from .slot import Slot from .slot_confirmation_status import SlotConfirmationStatus from .connection_completed import ConnectionCompleted -from .slot import Slot +from .request import Request +from .session_ended_request import SessionEndedRequest from .task import Task -from .intent_confirmation_status import IntentConfirmationStatus -from .supported_interfaces import SupportedInterfaces -from .session_ended_error import SessionEndedError -from .status import Status from .response import Response -from .directive import Directive from .device import Device -from .session_ended_reason import SessionEndedReason +from .supported_interfaces import SupportedInterfaces +from .response_envelope import ResponseEnvelope +from .person import Person +from .intent_confirmation_status import IntentConfirmationStatus +from .intent import Intent +from .launch_request import LaunchRequest +from .simple_slot_value import SimpleSlotValue +from .slot_value import SlotValue +from .permission_status import PermissionStatus +from .permissions import Permissions from .user import User +from .directive import Directive from .scope import Scope -from .dialog_state import DialogState -from .slot_value import SlotValue -from .launch_request import LaunchRequest +from .session_ended_reason import SessionEndedReason +from .session_ended_error import SessionEndedError +from .list_slot_value import ListSlotValue +from .request_envelope import RequestEnvelope from .session import Session -from .session_resumed_request import SessionResumedRequest -from .response_envelope import ResponseEnvelope -from .request import Request -from .session_ended_request import SessionEndedRequest -from .context import Context -from .person import Person +from .intent_request import IntentRequest from .cause import Cause -from .request_envelope import RequestEnvelope -from .session_ended_error_type import SessionEndedErrorType -from .intent import Intent +from .application import Application +from .context import Context diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index c1dcd09..3f670b5 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.35.0' +__version__ = '1.36.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index f1586a4..3574dfe 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .grant_type import GrantType +from .authorization_grant_body import AuthorizationGrantBody from .authorization_grant_request import AuthorizationGrantRequest from .grant import Grant -from .authorization_grant_body import AuthorizationGrantBody +from .grant_type import GrantType diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index 93ed2be..d4ec275 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .can_fulfill_slot import CanFulfillSlot -from .can_fulfill_intent import CanFulfillIntent -from .can_fulfill_intent_request import CanFulfillIntentRequest -from .can_fulfill_intent_values import CanFulfillIntentValues from .can_understand_slot_values import CanUnderstandSlotValues +from .can_fulfill_intent_values import CanFulfillIntentValues from .can_fulfill_slot_values import CanFulfillSlotValues +from .can_fulfill_intent_request import CanFulfillIntentRequest +from .can_fulfill_slot import CanFulfillSlot +from .can_fulfill_intent import CanFulfillIntent diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 8282e6e..91868a1 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .delegate_directive import DelegateDirective from .delegation_period import DelegationPeriod -from .input_request import InputRequest -from .confirm_slot_directive import ConfirmSlotDirective -from .elicit_slot_directive import ElicitSlotDirective -from .updated_request import UpdatedRequest -from .input import Input -from .updated_input_request import UpdatedInputRequest from .delegation_period_until import DelegationPeriodUntil from .confirm_intent_directive import ConfirmIntentDirective +from .delegate_directive import DelegateDirective +from .dynamic_entities_directive import DynamicEntitiesDirective +from .elicit_slot_directive import ElicitSlotDirective from .updated_intent_request import UpdatedIntentRequest from .delegate_request_directive import DelegateRequestDirective -from .dynamic_entities_directive import DynamicEntitiesDirective +from .input import Input +from .updated_request import UpdatedRequest +from .confirm_slot_directive import ConfirmSlotDirective +from .updated_input_request import UpdatedInputRequest +from .input_request import InputRequest diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index b0f5f3c..a64d520 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .base_response import BaseResponse -from .success_response import SuccessResponse -from .failure_response import FailureResponse from .request import Request +from .failure_response import FailureResponse +from .success_response import SuccessResponse +from .base_response import BaseResponse diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index dda0d19..5f872bc 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .entity_value_and_synonyms import EntityValueAndSynonyms from .update_behavior import UpdateBehavior from .entity_list_item import EntityListItem +from .entity_value_and_synonyms import EntityValueAndSynonyms from .entity import Entity diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index eedc6d6..37e4cfb 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .permission_changed_request import PermissionChangedRequest +from .permission import Permission from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .account_linked_request import AccountLinkedRequest +from .permission_accepted_request import PermissionAcceptedRequest +from .permission_changed_request import PermissionChangedRequest +from .proactive_subscription_event import ProactiveSubscriptionEvent +from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest from .permission_body import PermissionBody -from .account_linked_body import AccountLinkedBody from .skill_enabled_request import SkillEnabledRequest +from .account_linked_request import AccountLinkedRequest +from .account_linked_body import AccountLinkedBody from .skill_disabled_request import SkillDisabledRequest -from .proactive_subscription_event import ProactiveSubscriptionEvent -from .permission import Permission -from .permission_accepted_request import PermissionAcceptedRequest -from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py index ac33404..7e76963 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .experiment_trigger_response import ExperimentTriggerResponse +from .experimentation_state import ExperimentationState from .treatment_id import TreatmentId +from .experiment_trigger_response import ExperimentTriggerResponse from .experiment_assignment import ExperimentAssignment -from .experimentation_state import ExperimentationState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index b201602..92bbacf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,72 +14,72 @@ # from __future__ import absolute_import -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum -from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag from .position import Position -from .idle_command import IdleCommand -from .go_back_command import GoBackCommand -from .open_url_command import OpenUrlCommand -from .user_event import UserEvent -from .list_runtime_error_reason import ListRuntimeErrorReason -from .play_media_command import PlayMediaCommand -from .component_visible_on_screen import ComponentVisibleOnScreen -from .render_document_directive import RenderDocumentDirective -from .runtime_error import RuntimeError -from .audio_track import AudioTrack +from .control_media_command import ControlMediaCommand +from .auto_page_command import AutoPageCommand +from .show_overlay_command import ShowOverlayCommand +from .animated_transform_property import AnimatedTransformProperty +from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag +from .list_runtime_error import ListRuntimeError +from .scroll_to_component_command import ScrollToComponentCommand +from .update_index_list_data_directive import UpdateIndexListDataDirective from .parallel_command import ParallelCommand -from .animated_opacity_property import AnimatedOpacityProperty +from .component_entity import ComponentEntity +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag +from .reinflate_command import ReinflateCommand +from .scroll_to_index_command import ScrollToIndexCommand +from .clear_focus_command import ClearFocusCommand +from .animate_item_command import AnimateItemCommand +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum +from .highlight_mode import HighlightMode +from .runtime_error_event import RuntimeErrorEvent +from .send_event_command import SendEventCommand +from .speak_list_command import SpeakListCommand +from .list_runtime_error_reason import ListRuntimeErrorReason from .set_value_command import SetValueCommand +from .set_state_command import SetStateCommand +from .move_transform_property import MoveTransformProperty +from .skew_transform_property import SkewTransformProperty +from .send_token_list_data_directive import SendTokenListDataDirective from .scroll_command import ScrollCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .auto_page_command import AutoPageCommand +from .user_event import UserEvent +from .scale_transform_property import ScaleTransformProperty +from .idle_command import IdleCommand +from .set_focus_command import SetFocusCommand +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag +from .sequential_command import SequentialCommand +from .command import Command +from .media_command_type import MediaCommandType +from .send_index_list_data_directive import SendIndexListDataDirective +from .transform_property import TransformProperty from .speak_item_command import SpeakItemCommand -from .video_source import VideoSource -from .animate_item_repeat_mode import AnimateItemRepeatMode +from .set_page_command import SetPageCommand from .animated_property import AnimatedProperty -from .skew_transform_property import SkewTransformProperty -from .animated_transform_property import AnimatedTransformProperty -from .runtime_error_event import RuntimeErrorEvent -from .animate_item_command import AnimateItemCommand -from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag -from .transform_property import TransformProperty +from .play_media_command import PlayMediaCommand +from .animated_opacity_property import AnimatedOpacityProperty +from .animate_item_repeat_mode import AnimateItemRepeatMode +from .video_source import VideoSource +from .open_url_command import OpenUrlCommand +from .back_type import BackType from .hide_overlay_command import HideOverlayCommand -from .send_index_list_data_directive import SendIndexListDataDirective -from .select_command import SelectCommand +from .runtime_error import RuntimeError +from .render_document_directive import RenderDocumentDirective +from .load_token_list_data_event import LoadTokenListDataEvent +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .go_back_command import GoBackCommand +from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag +from .audio_track import AudioTrack from .align import Align -from .highlight_mode import HighlightMode -from .sequential_command import SequentialCommand +from .select_command import SelectCommand from .runtime import Runtime from .execute_commands_directive import ExecuteCommandsDirective -from .load_token_list_data_event import LoadTokenListDataEvent -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag -from .move_transform_property import MoveTransformProperty +from .component_state import ComponentState from .finish_command import FinishCommand -from .clear_focus_command import ClearFocusCommand -from .component_entity import ComponentEntity -from .command import Command -from .set_focus_command import SetFocusCommand -from .control_media_command import ControlMediaCommand -from .list_runtime_error import ListRuntimeError -from .show_overlay_command import ShowOverlayCommand -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .set_page_command import SetPageCommand -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum -from .send_token_list_data_directive import SendTokenListDataDirective -from .scale_transform_property import ScaleTransformProperty -from .send_event_command import SendEventCommand -from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .reinflate_command import ReinflateCommand -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag -from .set_state_command import SetStateCommand -from .back_type import BackType -from .rotate_transform_property import RotateTransformProperty -from .scroll_to_index_command import ScrollToIndexCommand -from .scroll_to_component_command import ScrollToComponentCommand -from .speak_list_command import SpeakListCommand -from .media_command_type import MediaCommandType +from .component_visible_on_screen import ComponentVisibleOnScreen from .rendered_document_state import RenderedDocumentState -from .component_state import ComponentState from .load_index_list_data_event import LoadIndexListDataEvent +from .rotate_transform_property import RotateTransformProperty +from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index 05fcaed..ec7f7fc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .insert_multiple_items_operation import InsertMultipleItemsOperation +from .operation import Operation from .set_item_operation import SetItemOperation -from .insert_item_operation import InsertItemOperation +from .insert_multiple_items_operation import InsertMultipleItemsOperation from .delete_item_operation import DeleteItemOperation from .delete_multiple_items_operation import DeleteMultipleItemsOperation -from .operation import Operation +from .insert_item_operation import InsertItemOperation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index f293d7b..5438dbe 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .render_error_reason import RenderErrorReason -from .render_document_directive import RenderDocumentDirective -from .runtime_error import RuntimeError from .audio_source_error_reason import AudioSourceErrorReason -from .document_runtime_error import DocumentRuntimeError -from .document_error_reason import DocumentErrorReason from .runtime_error_event import RuntimeErrorEvent -from .render_runtime_error import RenderRuntimeError +from .document_error_reason import DocumentErrorReason +from .render_error_reason import RenderErrorReason from .link_error_reason import LinkErrorReason -from .link_runtime_error import LinkRuntimeError from .audio_source_runtime_error import AudioSourceRuntimeError +from .render_runtime_error import RenderRuntimeError +from .runtime_error import RuntimeError +from .render_document_directive import RenderDocumentDirective +from .document_runtime_error import DocumentRuntimeError +from .link_runtime_error import LinkRuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index 6031446..943dbef 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -15,18 +15,18 @@ from __future__ import absolute_import from .position import Position -from .idle_command import IdleCommand -from .user_event import UserEvent -from .render_document_directive import RenderDocumentDirective +from .auto_page_command import AutoPageCommand from .parallel_command import ParallelCommand +from .send_event_command import SendEventCommand from .set_value_command import SetValueCommand from .scroll_command import ScrollCommand -from .auto_page_command import AutoPageCommand -from .target_profile import TargetProfile +from .user_event import UserEvent +from .idle_command import IdleCommand from .sequential_command import SequentialCommand -from .runtime import Runtime -from .execute_commands_directive import ExecuteCommandsDirective from .command import Command from .set_page_command import SetPageCommand +from .target_profile import TargetProfile +from .render_document_directive import RenderDocumentDirective +from .runtime import Runtime +from .execute_commands_directive import ExecuteCommandsDirective from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface -from .send_event_command import SendEventCommand diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index d212737..55bd95c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .transformer_type import TransformerType -from .runtime_error import RuntimeError -from .handle_message_directive import HandleMessageDirective -from .transformer import Transformer -from .runtime import Runtime -from .start_request_method import StartRequestMethod from .start_request import StartRequest -from .message_request import MessageRequest -from .configuration import Configuration -from .start_directive import StartDirective from .runtime_error_reason import RuntimeErrorReason +from .start_request_method import StartRequestMethod from .runtime_error_request import RuntimeErrorRequest +from .handle_message_directive import HandleMessageDirective +from .configuration import Configuration +from .transformer import Transformer +from .message_request import MessageRequest +from .transformer_type import TransformerType +from .runtime_error import RuntimeError from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .runtime import Runtime +from .start_directive import StartDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index b48336a..ff58fcb 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .payment_action import PaymentAction +from .authorize_attributes import AuthorizeAttributes from .price import Price from .seller_order_attributes import SellerOrderAttributes -from .base_amazon_pay_entity import BaseAmazonPayEntity -from .authorize_attributes import AuthorizeAttributes from .provider_attributes import ProviderAttributes -from .billing_agreement_attributes import BillingAgreementAttributes from .provider_credit import ProviderCredit +from .billing_agreement_attributes import BillingAgreementAttributes +from .base_amazon_pay_entity import BaseAmazonPayEntity +from .payment_action import PaymentAction from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes from .billing_agreement_type import BillingAgreementType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 847b2e7..02dcef3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .price import Price from .state import State -from .authorization_details import AuthorizationDetails -from .billing_agreement_details import BillingAgreementDetails -from .authorization_status import AuthorizationStatus -from .release_environment import ReleaseEnvironment +from .price import Price from .destination import Destination +from .release_environment import ReleaseEnvironment +from .authorization_status import AuthorizationStatus +from .billing_agreement_details import BillingAgreementDetails +from .authorization_details import AuthorizationDetails diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index 3021353..32b246f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .payment_action import PaymentAction -from .price import Price +from .authorize_attributes import AuthorizeAttributes from .state import State -from .authorization_details import AuthorizationDetails -from .billing_agreement_details import BillingAgreementDetails -from .authorization_status import AuthorizationStatus -from .release_environment import ReleaseEnvironment +from .billing_agreement_status import BillingAgreementStatus +from .price import Price from .seller_order_attributes import SellerOrderAttributes from .destination import Destination -from .billing_agreement_status import BillingAgreementStatus -from .authorize_attributes import AuthorizeAttributes +from .release_environment import ReleaseEnvironment from .provider_attributes import ProviderAttributes -from .billing_agreement_attributes import BillingAgreementAttributes from .provider_credit import ProviderCredit +from .authorization_status import AuthorizationStatus +from .billing_agreement_attributes import BillingAgreementAttributes +from .billing_agreement_details import BillingAgreementDetails +from .payment_action import PaymentAction from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes +from .authorization_details import AuthorizationDetails from .billing_agreement_type import BillingAgreementType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py index a3f2b1d..fc1ff28 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .charge_amazon_pay_request import ChargeAmazonPayRequest from .setup_amazon_pay_request import SetupAmazonPayRequest +from .charge_amazon_pay_request import ChargeAmazonPayRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f7ef1d0..f8fe460 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .charge_amazon_pay_result import ChargeAmazonPayResult from .setup_amazon_pay_result import SetupAmazonPayResult +from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index 3b79170..fba19fd 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .charge_amazon_pay_result import ChargeAmazonPayResult -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay import ChargeAmazonPay +from .setup_amazon_pay_result import SetupAmazonPayResult +from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse from .setup_amazon_pay import SetupAmazonPay diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py index 81ec739..b0f43e3 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .catalog_types import CatalogTypes from .app_link_interface import AppLinkInterface from .direct_launch import DirectLaunch +from .catalog_types import CatalogTypes from .send_to_device import SendToDevice from .app_link_state import AppLinkState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index 565e699..a262ccf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -14,24 +14,24 @@ # from __future__ import absolute_import -from .audio_player_interface import AudioPlayerInterface -from .playback_finished_request import PlaybackFinishedRequest -from .stop_directive import StopDirective +from .play_directive import PlayDirective from .player_activity import PlayerActivity -from .error import Error -from .clear_queue_directive import ClearQueueDirective -from .stream import Stream -from .audio_player_state import AudioPlayerState -from .clear_behavior import ClearBehavior -from .playback_failed_request import PlaybackFailedRequest -from .playback_stopped_request import PlaybackStoppedRequest from .current_playback_state import CurrentPlaybackState +from .stop_directive import StopDirective +from .clear_queue_directive import ClearQueueDirective from .caption_data import CaptionData -from .play_directive import PlayDirective -from .error_type import ErrorType -from .audio_item import AudioItem -from .caption_type import CaptionType +from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest +from .clear_behavior import ClearBehavior from .audio_item_metadata import AudioItemMetadata +from .stream import Stream +from .caption_type import CaptionType from .play_behavior import PlayBehavior +from .audio_player_interface import AudioPlayerInterface +from .playback_stopped_request import PlaybackStoppedRequest +from .playback_finished_request import PlaybackFinishedRequest +from .error import Error from .playback_started_request import PlaybackStartedRequest -from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest +from .playback_failed_request import PlaybackFailedRequest +from .audio_item import AudioItem +from .audio_player_state import AudioPlayerState +from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 1fdc949..533937a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .connections_request import ConnectionsRequest -from .on_completion import OnCompletion -from .connections_status import ConnectionsStatus +from .connections_response import ConnectionsResponse from .send_response_directive import SendResponseDirective from .send_request_directive import SendRequestDirective -from .connections_response import ConnectionsResponse +from .connections_request import ConnectionsRequest +from .connections_status import ConnectionsStatus +from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py index b44176d..697069d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/entities/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .base_entity import BaseEntity -from .postal_address import PostalAddress from .restaurant import Restaurant +from .postal_address import PostalAddress +from .base_entity import BaseEntity diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index 415bd57..ec7fa88 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .base_request import BaseRequest +from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest +from .print_web_page_request import PrintWebPageRequest from .print_pdf_request import PrintPDFRequest from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest from .print_image_request import PrintImageRequest -from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest -from .base_request import BaseRequest -from .print_web_page_request import PrintWebPageRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py index 306d6b3..28b811c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/conversations/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .reset_context_directive import ResetContextDirective from .api_invocation_request import APIInvocationRequest from .api_request import APIRequest -from .reset_context_directive import ResetContextDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index 7df9e34..06ffd6d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .endpoint import Endpoint from .header import Header -from .filter_match_action import FilterMatchAction -from .events_received_request import EventsReceivedRequest -from .expired_request import ExpiredRequest from .start_event_handler_directive import StartEventHandlerDirective +from .event_filter import EventFilter from .stop_event_handler_directive import StopEventHandlerDirective +from .events_received_request import EventsReceivedRequest +from .event import Event +from .expired_request import ExpiredRequest from .send_directive_directive import SendDirectiveDirective +from .endpoint import Endpoint +from .filter_match_action import FilterMatchAction from .expiration import Expiration -from .event import Event -from .event_filter import EventFilter diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index 0a4f1b3..02aafb8 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import -from .text_content import TextContent -from .back_button_behavior import BackButtonBehavior -from .list_template2 import ListTemplate2 -from .text_field import TextField -from .hint import Hint -from .body_template7 import BodyTemplate7 from .hint_directive import HintDirective -from .render_template_directive import RenderTemplateDirective -from .template import Template from .list_item import ListItem -from .image_size import ImageSize -from .plain_text import PlainText -from .element_selected_request import ElementSelectedRequest +from .template import Template +from .text_content import TextContent +from .back_button_behavior import BackButtonBehavior from .list_template1 import ListTemplate1 -from .body_template1 import BodyTemplate1 -from .display_state import DisplayState -from .body_template2 import BodyTemplate2 from .rich_text import RichText +from .text_field import TextField +from .body_template6 import BodyTemplate6 +from .plain_text_hint import PlainTextHint +from .image_instance import ImageInstance +from .image_size import ImageSize +from .hint import Hint from .image import Image +from .body_template1 import BodyTemplate1 +from .element_selected_request import ElementSelectedRequest +from .render_template_directive import RenderTemplateDirective from .display_interface import DisplayInterface -from .plain_text_hint import PlainTextHint +from .plain_text import PlainText from .body_template3 import BodyTemplate3 -from .image_instance import ImageInstance -from .body_template6 import BodyTemplate6 +from .list_template2 import ListTemplate2 +from .body_template2 import BodyTemplate2 +from .display_state import DisplayState +from .body_template7 import BodyTemplate7 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index 35b5562..a32c67f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .stop_input_handler_directive import StopInputHandlerDirective from .start_input_handler_directive import StartInputHandlerDirective from .input_handler_event_request import InputHandlerEventRequest -from .stop_input_handler_directive import StopInputHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index 7f7b6cc..f50c82f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,12 +14,13 @@ # from __future__ import absolute_import -from .geolocation_state import GeolocationState -from .geolocation_interface import GeolocationInterface -from .status import Status -from .coordinate import Coordinate from .speed import Speed from .heading import Heading +from .status import Status +from .geolocation_state import GeolocationState from .altitude import Altitude from .location_services import LocationServices +from .coordinate import Coordinate +from .geolocation_common_state import GeolocationCommonState from .access import Access +from .geolocation_interface import GeolocationInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_common_state.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_common_state.py new file mode 100644 index 0000000..3682483 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_common_state.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.geolocation.altitude import Altitude as Altitude_328a6962 + from ask_sdk_model.interfaces.geolocation.heading import Heading as Heading_bf10e3ca + from ask_sdk_model.interfaces.geolocation.speed import Speed as Speed_22d2d794 + from ask_sdk_model.interfaces.geolocation.coordinate import Coordinate as Coordinate_c6912a2 + + +class GeolocationCommonState(object): + """ + The common object to define the basic geolocation states + + + :param timestamp: Specifies the time when the geolocation data was last collected on the device. + :type timestamp: (optional) str + :param coordinate: + :type coordinate: (optional) ask_sdk_model.interfaces.geolocation.coordinate.Coordinate + :param altitude: + :type altitude: (optional) ask_sdk_model.interfaces.geolocation.altitude.Altitude + :param heading: + :type heading: (optional) ask_sdk_model.interfaces.geolocation.heading.Heading + :param speed: + :type speed: (optional) ask_sdk_model.interfaces.geolocation.speed.Speed + + """ + deserialized_types = { + 'timestamp': 'str', + 'coordinate': 'ask_sdk_model.interfaces.geolocation.coordinate.Coordinate', + 'altitude': 'ask_sdk_model.interfaces.geolocation.altitude.Altitude', + 'heading': 'ask_sdk_model.interfaces.geolocation.heading.Heading', + 'speed': 'ask_sdk_model.interfaces.geolocation.speed.Speed' + } # type: Dict + + attribute_map = { + 'timestamp': 'timestamp', + 'coordinate': 'coordinate', + 'altitude': 'altitude', + 'heading': 'heading', + 'speed': 'speed' + } # type: Dict + supports_multiple_types = False + + def __init__(self, timestamp=None, coordinate=None, altitude=None, heading=None, speed=None): + # type: (Optional[str], Optional[Coordinate_c6912a2], Optional[Altitude_328a6962], Optional[Heading_bf10e3ca], Optional[Speed_22d2d794]) -> None + """The common object to define the basic geolocation states + + :param timestamp: Specifies the time when the geolocation data was last collected on the device. + :type timestamp: (optional) str + :param coordinate: + :type coordinate: (optional) ask_sdk_model.interfaces.geolocation.coordinate.Coordinate + :param altitude: + :type altitude: (optional) ask_sdk_model.interfaces.geolocation.altitude.Altitude + :param heading: + :type heading: (optional) ask_sdk_model.interfaces.geolocation.heading.Heading + :param speed: + :type speed: (optional) ask_sdk_model.interfaces.geolocation.speed.Speed + """ + self.__discriminator_value = None # type: str + + self.timestamp = timestamp + self.coordinate = coordinate + self.altitude = altitude + self.heading = heading + self.speed = speed + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GeolocationCommonState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py index a95259e..9182486 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/geolocation_state.py @@ -18,6 +18,7 @@ import six import typing from enum import Enum +from ask_sdk_model.interfaces.geolocation.geolocation_common_state import GeolocationCommonState if typing.TYPE_CHECKING: @@ -30,8 +31,10 @@ from ask_sdk_model.interfaces.geolocation.location_services import LocationServices as LocationServices_c8dfc485 -class GeolocationState(object): +class GeolocationState(GeolocationCommonState): """ + The geolocation object used in the Context of API + :param timestamp: Specifies the time when the geolocation data was last collected on the device. :type timestamp: (optional) str @@ -68,7 +71,7 @@ class GeolocationState(object): def __init__(self, timestamp=None, coordinate=None, altitude=None, heading=None, speed=None, location_services=None): # type: (Optional[str], Optional[Coordinate_c6912a2], Optional[Altitude_328a6962], Optional[Heading_bf10e3ca], Optional[Speed_22d2d794], Optional[LocationServices_c8dfc485]) -> None - """ + """The geolocation object used in the Context of API :param timestamp: Specifies the time when the geolocation data was last collected on the device. :type timestamp: (optional) str @@ -85,11 +88,7 @@ def __init__(self, timestamp=None, coordinate=None, altitude=None, heading=None, """ self.__discriminator_value = None # type: str - self.timestamp = timestamp - self.coordinate = coordinate - self.altitude = altitude - self.heading = heading - self.speed = speed + super(GeolocationState, self).__init__(timestamp=timestamp, coordinate=coordinate, altitude=altitude, heading=heading, speed=speed) self.location_services = location_services def to_dict(self): diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index 5d4e111..7a9bcfe 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .play_command_issued_request import PlayCommandIssuedRequest -from .previous_command_issued_request import PreviousCommandIssuedRequest from .next_command_issued_request import NextCommandIssuedRequest +from .previous_command_issued_request import PreviousCommandIssuedRequest +from .play_command_issued_request import PlayCommandIssuedRequest from .pause_command_issued_request import PauseCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index 7bf5183..819fe31 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -16,6 +16,6 @@ from .error_cause import ErrorCause from .exception_encountered_request import ExceptionEncounteredRequest -from .error import Error from .system_state import SystemState +from .error import Error from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 024f05c..36327da 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .video_app_interface import VideoAppInterface from .metadata import Metadata from .video_item import VideoItem from .launch_directive import LaunchDirective +from .video_app_interface import VideoAppInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index 0c47482..697c3ee 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import +from .experience import Experience +from .viewport_video import ViewportVideo from .presentation_type import PresentationType -from .apl_viewport_state import APLViewportState +from .viewport_state_video import ViewportStateVideo +from .keyboard import Keyboard from .typed_viewport_state import TypedViewportState -from .touch import Touch -from .shape import Shape +from .dialog import Dialog from .mode import Mode -from .keyboard import Keyboard -from .aplt_viewport_state import APLTViewportState -from .viewport_state_video import ViewportStateVideo +from .apl_viewport_state import APLViewportState from .viewport_state import ViewportState -from .experience import Experience -from .dialog import Dialog -from .viewport_video import ViewportVideo +from .aplt_viewport_state import APLTViewportState +from .touch import Touch +from .shape import Shape diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py index b92f065..832b6a1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/apl/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .current_configuration import CurrentConfiguration from .viewport_configuration import ViewportConfiguration +from .current_configuration import CurrentConfiguration diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py index 05753b9..04057d1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/aplt/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .character_format import CharacterFormat -from .viewport_profile import ViewportProfile from .inter_segment import InterSegment +from .viewport_profile import ViewportProfile +from .character_format import CharacterFormat diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index f616566..3e2475c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .continuous_viewport_size import ContinuousViewportSize -from .viewport_size import ViewportSize from .discrete_viewport_size import DiscreteViewportSize +from .viewport_size import ViewportSize +from .continuous_viewport_size import ContinuousViewportSize diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index 69ed786..d58bf7a 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .base_service_client import BaseServiceClient +from .api_configuration import ApiConfiguration +from .api_client_message import ApiClientMessage from .api_response import ApiResponse -from .api_client_response import ApiClientResponse +from .base_service_client import BaseServiceClient from .service_client_factory import ServiceClientFactory +from .api_client_response import ApiClientResponse +from .service_client_response import ServiceClientResponse +from .authentication_configuration import AuthenticationConfiguration from .api_client import ApiClient from .serializer import Serializer -from .api_configuration import ApiConfiguration -from .service_client_response import ServiceClientResponse -from .service_exception import ServiceException from .api_client_request import ApiClientRequest -from .api_client_message import ApiClientMessage -from .authentication_configuration import AuthenticationConfiguration +from .service_exception import ServiceException diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index 0201e91..5ebc60d 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .address import Address -from .error import Error -from .device_address_service_client import DeviceAddressServiceClient from .short_address import ShortAddress +from .device_address_service_client import DeviceAddressServiceClient +from .error import Error +from .address import Address diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index cd76b42..989aeb5 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .error import Error from .speak_directive import SpeakDirective -from .directive_service_client import DirectiveServiceClient from .header import Header from .send_directive_request import SendDirectiveRequest +from .directive_service_client import DirectiveServiceClient from .directive import Directive +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index 1b1fccf..194fc1d 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error -from .endpoint_capability import EndpointCapability -from .endpoint_enumeration_response import EndpointEnumerationResponse -from .endpoint_info import EndpointInfo from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient +from .endpoint_info import EndpointInfo +from .endpoint_enumeration_response import EndpointEnumerationResponse +from .endpoint_capability import EndpointCapability +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index d9f7217..ac7e5c1 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .animation_step import AnimationStep from .light_animation import LightAnimation -from .trigger_event_type import TriggerEventType from .set_light_parameters import SetLightParameters +from .animation_step import AnimationStep +from .trigger_event_type import TriggerEventType diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index b77cd69..389d922 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .progress_recognizer import ProgressRecognizer -from .deviation_recognizer import DeviationRecognizer +from .pattern import Pattern +from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType from .input_event import InputEvent +from .deviation_recognizer import DeviationRecognizer +from .event import Event +from .progress_recognizer import ProgressRecognizer from .input_event_action_type import InputEventActionType -from .event_reporting_type import EventReportingType -from .pattern_recognizer import PatternRecognizer -from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType from .input_handler_event import InputHandlerEvent from .recognizer import Recognizer -from .event import Event -from .pattern import Pattern +from .event_reporting_type import EventReportingType +from .pattern_recognizer import PatternRecognizer diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index 76789cc..b7871c7 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import +from .list_management_service_client import ListManagementServiceClient from .forbidden_error import ForbiddenError -from .list_items_deleted_event_request import ListItemsDeletedEventRequest -from .list_body import ListBody -from .error import Error -from .alexa_list_metadata import AlexaListMetadata +from .create_list_item_request import CreateListItemRequest +from .status import Status from .list_created_event_request import ListCreatedEventRequest -from .list_management_service_client import ListManagementServiceClient +from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .list_body import ListBody from .list_items_created_event_request import ListItemsCreatedEventRequest -from .alexa_list_item import AlexaListItem -from .list_state import ListState from .list_item_state import ListItemState -from .list_item_body import ListItemBody -from .list_updated_event_request import ListUpdatedEventRequest -from .update_list_request import UpdateListRequest -from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .alexa_lists_metadata import AlexaListsMetadata +from .list_state import ListState +from .list_items_deleted_event_request import ListItemsDeletedEventRequest +from .alexa_list_item import AlexaListItem +from .links import Links from .list_deleted_event_request import ListDeletedEventRequest -from .status import Status +from .alexa_list_metadata import AlexaListMetadata +from .update_list_item_request import UpdateListItemRequest +from .list_updated_event_request import ListUpdatedEventRequest +from .list_item_body import ListItemBody +from .error import Error from .create_list_request import CreateListRequest -from .links import Links +from .update_list_request import UpdateListRequest from .alexa_list import AlexaList -from .create_list_item_request import CreateListItemRequest -from .alexa_lists_metadata import AlexaListsMetadata -from .update_list_item_request import UpdateListItemRequest diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index eda0327..378a775 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .error import Error -from .lwa_client import LwaClient -from .access_token_response import AccessTokenResponse from .access_token_request import AccessTokenRequest from .access_token import AccessToken +from .lwa_client import LwaClient +from .access_token_response import AccessTokenResponse +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index 53aff1b..2424b27 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .error import Error -from .product_type import ProductType -from .in_skill_products_response import InSkillProductsResponse -from .entitlement_reason import EntitlementReason -from .transactions import Transactions from .metadata import Metadata +from .transactions import Transactions from .status import Status -from .purchasable_state import PurchasableState -from .in_skill_product_transactions_response import InSkillProductTransactionsResponse -from .in_skill_product import InSkillProduct +from .in_skill_products_response import InSkillProductsResponse from .monetization_service_client import MonetizationServiceClient +from .result_set import ResultSet from .purchase_mode import PurchaseMode +from .entitlement_reason import EntitlementReason +from .in_skill_product import InSkillProduct +from .product_type import ProductType from .entitled_state import EntitledState -from .result_set import ResultSet +from .in_skill_product_transactions_response import InSkillProductTransactionsResponse +from .error import Error +from .purchasable_state import PurchasableState diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index b968548..8b749fd 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .error import Error -from .relevant_audience import RelevantAudience from .relevant_audience_type import RelevantAudienceType +from .proactive_events_service_client import ProactiveEventsServiceClient from .create_proactive_event_request import CreateProactiveEventRequest from .skill_stage import SkillStage -from .proactive_events_service_client import ProactiveEventsServiceClient from .event import Event +from .error import Error +from .relevant_audience import RelevantAudience diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index 5dfd8e1..57110df 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import -from .reminder_deleted_event_request import ReminderDeletedEventRequest -from .reminder import Reminder -from .reminder_started_event_request import ReminderStartedEventRequest -from .error import Error +from .get_reminders_response import GetRemindersResponse +from .reminder_deleted_event import ReminderDeletedEvent from .get_reminder_response import GetReminderResponse +from .status import Status +from .push_notification_status import PushNotificationStatus from .alert_info import AlertInfo -from .trigger import Trigger -from .spoken_info import SpokenInfo -from .reminder_response import ReminderResponse -from .get_reminders_response import GetRemindersResponse +from .recurrence_day import RecurrenceDay from .reminder_updated_event_request import ReminderUpdatedEventRequest -from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest -from .recurrence_freq import RecurrenceFreq from .spoken_text import SpokenText -from .status import Status +from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest +from .reminder_started_event_request import ReminderStartedEventRequest +from .push_notification import PushNotification +from .spoken_info import SpokenInfo from .recurrence import Recurrence -from .recurrence_day import RecurrenceDay -from .reminder_deleted_event import ReminderDeletedEvent -from .push_notification_status import PushNotificationStatus -from .trigger_type import TriggerType -from .reminder_created_event_request import ReminderCreatedEventRequest -from .reminder_request import ReminderRequest +from .reminder_response import ReminderResponse from .event import Event -from .push_notification import PushNotification +from .reminder import Reminder from .reminder_management_service_client import ReminderManagementServiceClient +from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder_deleted_event_request import ReminderDeletedEventRequest +from .reminder_request import ReminderRequest +from .trigger import Trigger +from .trigger_type import TriggerType +from .error import Error +from .recurrence_freq import RecurrenceFreq diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py index 5daa7ba..e2dbf05 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .error import Error from .skill_messaging_service_client import SkillMessagingServiceClient from .send_skill_messaging_request import SendSkillMessagingRequest +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index 46acb26..4459432 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import -from .error import Error -from .notification_config import NotificationConfig -from .timer_response import TimerResponse -from .timer_request import TimerRequest -from .display_experience import DisplayExperience -from .task import Task -from .launch_task_operation import LaunchTaskOperation -from .visibility import Visibility +from .operation import Operation from .status import Status -from .triggering_behavior import TriggeringBehavior -from .text_to_confirm import TextToConfirm -from .creation_behavior import CreationBehavior +from .visibility import Visibility +from .notify_only_operation import NotifyOnlyOperation +from .launch_task_operation import LaunchTaskOperation +from .task import Task +from .display_experience import DisplayExperience from .timer_management_service_client import TimerManagementServiceClient +from .creation_behavior import CreationBehavior +from .text_to_confirm import TextToConfirm +from .timer_response import TimerResponse +from .notification_config import NotificationConfig from .announce_operation import AnnounceOperation from .timers_response import TimersResponse -from .operation import Operation +from .timer_request import TimerRequest +from .error import Error +from .triggering_behavior import TriggeringBehavior from .text_to_announce import TextToAnnounce -from .notify_only_operation import NotifyOnlyOperation diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index c2e7973..f6da64e 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .error import Error -from .distance_units import DistanceUnits -from .error_code import ErrorCode from .ups_service_client import UpsServiceClient +from .error_code import ErrorCode from .phone_number import PhoneNumber from .temperature_unit import TemperatureUnit +from .distance_units import DistanceUnits +from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index 7350cb8..ece83ea 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .resolution import Resolution -from .status import Status from .status_code import StatusCode +from .status import Status +from .resolutions import Resolutions +from .resolution import Resolution from .value_wrapper import ValueWrapper from .value import Value -from .resolutions import Resolutions diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index 1cd4d91..4c0b1bd 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .link_account_card import LinkAccountCard +from .standard_card import StandardCard from .plain_text_output_speech import PlainTextOutputSpeech +from .link_account_card import LinkAccountCard +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .simple_card import SimpleCard from .reprompt import Reprompt -from .ssml_output_speech import SsmlOutputSpeech -from .standard_card import StandardCard +from .play_behavior import PlayBehavior +from .card import Card from .output_speech import OutputSpeech from .image import Image -from .card import Card -from .play_behavior import PlayBehavior -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard -from .simple_card import SimpleCard +from .ssml_output_speech import SsmlOutputSpeech From ad19bc28647527c379c6e3f4b31169653ad39068 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 4 Jan 2023 15:43:30 +0000 Subject: [PATCH 047/111] Release 1.18.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 4262981..c3a1b97 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -320,3 +320,9 @@ This release contains the following changes : ~~~~~~ General bug fixes and updates + + +1.18.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index b8d1248..9162e8b 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.17.0' +__version__ = '1.18.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 1276b72677b131e453f230f538398df01cb4120c Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 5 Jan 2023 15:38:54 +0000 Subject: [PATCH 048/111] Release 1.37.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../interfaces/alexa/datastore/__init__.py | 24 ++ .../alexa/datastore/commands_error.py | 141 ++++++++++ .../alexa/datastore/data_store_error.py | 132 ++++++++++ .../datastore/data_store_internal_error.py | 114 +++++++++ .../device_permanantly_unavailable_error.py | 114 +++++++++ .../datastore/device_unavailable_error.py | 114 +++++++++ .../alexa/datastore/dispatch_error_content.py | 116 +++++++++ .../datastore/execution_error_content.py | 123 +++++++++ .../interfaces/alexa/datastore/py.typed | 0 .../storage_limit_execeeded_error.py | 114 +++++++++ ask-sdk-model/ask_sdk_model/request.py | 3 + .../services/datastore/__init__.py | 17 ++ .../datastore/datastore_service_client.py | 241 ++++++++++++++++++ .../ask_sdk_model/services/datastore/py.typed | 0 .../services/datastore/v1/__init__.py | 35 +++ .../services/datastore/v1/clear_command.py | 106 ++++++++ .../services/datastore/v1/command.py | 144 +++++++++++ .../datastore/v1/commands_dispatch_result.py | 121 +++++++++ .../services/datastore/v1/commands_request.py | 122 +++++++++ .../datastore/v1/commands_request_error.py | 114 +++++++++ .../v1/commands_request_error_type.py | 72 ++++++ .../datastore/v1/commands_response.py | 114 +++++++++ .../services/datastore/v1/devices.py | 111 ++++++++ .../datastore/v1/dispatch_result_type.py | 70 +++++ .../datastore/v1/put_namespace_command.py | 113 ++++++++ .../datastore/v1/put_object_command.py | 127 +++++++++ .../services/datastore/v1/py.typed | 0 .../v1/queued_result_request_error.py | 114 +++++++++ .../v1/queued_result_request_error_type.py | 70 +++++ .../datastore/v1/queued_result_response.py | 117 +++++++++ .../datastore/v1/remove_namespace_command.py | 113 ++++++++ .../datastore/v1/remove_object_command.py | 120 +++++++++ .../v1/response_pagination_context.py | 120 +++++++++ .../services/datastore/v1/target.py | 133 ++++++++++ .../services/datastore/v1/user.py | 111 ++++++++ .../services/service_client_factory.py | 1 + 38 files changed, 3408 insertions(+), 1 deletion(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/commands_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_internal_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_permanantly_unavailable_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_unavailable_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/dispatch_error_content.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/execution_error_content.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/storage_limit_execeeded_error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/clear_command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_dispatch_result.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error_type.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_response.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/devices.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/put_namespace_command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/put_object_command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error_type.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_response.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_namespace_command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_object_command.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/response_pagination_context.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/target.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/user.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index f444b2f..86c9402 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -469,3 +469,9 @@ This release contains the following changes : ~~~~~~ General bug fixes and updates + + +1.37.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3f670b5..d05dc01 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.36.0' +__version__ = '1.37.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py new file mode 100644 index 0000000..9a1700e --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py @@ -0,0 +1,24 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .storage_limit_execeeded_error import StorageLimitExeceededError +from .execution_error_content import ExecutionErrorContent +from .device_permanantly_unavailable_error import DevicePermanantlyUnavailableError +from .dispatch_error_content import DispatchErrorContent +from .commands_error import CommandsError +from .data_store_internal_error import DataStoreInternalError +from .device_unavailable_error import DeviceUnavailableError +from .data_store_error import DataStoreError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/commands_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/commands_error.py new file mode 100644 index 0000000..588c3c1 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/commands_error.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CommandsError(object): + """ + DataStore error object payload. + + + :param object_type: Describes the type of the error. + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | DEVICE_UNAVAILABLE: :py:class:`ask_sdk_model.interfaces.alexa.datastore.device_unavailable_error.DeviceUnavailableError`, + | + | DEVICE_PERMANENTLY_UNAVAILABLE: :py:class:`ask_sdk_model.interfaces.alexa.datastore.device_permanantly_unavailable_error.DevicePermanantlyUnavailableError`, + | + | DATASTORE_INTERNAL_ERROR: :py:class:`ask_sdk_model.interfaces.alexa.datastore.data_store_internal_error.DataStoreInternalError`, + | + | STORAGE_LIMIT_EXCEEDED: :py:class:`ask_sdk_model.interfaces.alexa.datastore.storage_limit_execeeded_error.StorageLimitExeceededError` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'DEVICE_UNAVAILABLE': 'ask_sdk_model.interfaces.alexa.datastore.device_unavailable_error.DeviceUnavailableError', + 'DEVICE_PERMANENTLY_UNAVAILABLE': 'ask_sdk_model.interfaces.alexa.datastore.device_permanantly_unavailable_error.DevicePermanantlyUnavailableError', + 'DATASTORE_INTERNAL_ERROR': 'ask_sdk_model.interfaces.alexa.datastore.data_store_internal_error.DataStoreInternalError', + 'STORAGE_LIMIT_EXCEEDED': 'ask_sdk_model.interfaces.alexa.datastore.storage_limit_execeeded_error.StorageLimitExeceededError' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """DataStore error object payload. + + :param object_type: Describes the type of the error. + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_error.py new file mode 100644 index 0000000..c248fb2 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_error.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.commands_error import CommandsError as CommandsError_b28d55c9 + + +class DataStoreError(Request): + """ + This event is sent by DSCS to forward ExecutionError from device or to inform about delivery error. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param error: + :type error: (optional) ask_sdk_model.interfaces.alexa.datastore.commands_error.CommandsError + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'error': 'ask_sdk_model.interfaces.alexa.datastore.commands_error.CommandsError' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'error': 'error' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, error=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[CommandsError_b28d55c9]) -> None + """This event is sent by DSCS to forward ExecutionError from device or to inform about delivery error. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param error: + :type error: (optional) ask_sdk_model.interfaces.alexa.datastore.commands_error.CommandsError + """ + self.__discriminator_value = "Alexa.DataStore.Error" # type: str + + self.object_type = self.__discriminator_value + super(DataStoreError, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.error = error + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DataStoreError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_internal_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_internal_error.py new file mode 100644 index 0000000..098b3ba --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/data_store_internal_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.datastore.commands_error import CommandsError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.execution_error_content import ExecutionErrorContent as ExecutionErrorContent_aa5000b0 + + +class DataStoreInternalError(CommandsError): + """ + Describes an execution error for unknown error from device DataStore. + + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent + + """ + deserialized_types = { + 'object_type': 'str', + 'content': 'ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, content=None): + # type: (Optional[ExecutionErrorContent_aa5000b0]) -> None + """Describes an execution error for unknown error from device DataStore. + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent + """ + self.__discriminator_value = "DATASTORE_INTERNAL_ERROR" # type: str + + self.object_type = self.__discriminator_value + super(DataStoreInternalError, self).__init__(object_type=self.__discriminator_value) + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DataStoreInternalError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_permanantly_unavailable_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_permanantly_unavailable_error.py new file mode 100644 index 0000000..47237b8 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_permanantly_unavailable_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.datastore.commands_error import CommandsError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content import DispatchErrorContent as DispatchErrorContent_def97636 + + +class DevicePermanantlyUnavailableError(CommandsError): + """ + Describes a dispatch error when device is no longer available. Skill must stop pushing data to this device in the future. + + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent + + """ + deserialized_types = { + 'object_type': 'str', + 'content': 'ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, content=None): + # type: (Optional[DispatchErrorContent_def97636]) -> None + """Describes a dispatch error when device is no longer available. Skill must stop pushing data to this device in the future. + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent + """ + self.__discriminator_value = "DEVICE_PERMANENTLY_UNAVAILABLE" # type: str + + self.object_type = self.__discriminator_value + super(DevicePermanantlyUnavailableError, self).__init__(object_type=self.__discriminator_value) + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DevicePermanantlyUnavailableError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_unavailable_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_unavailable_error.py new file mode 100644 index 0000000..f1f3977 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/device_unavailable_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.datastore.commands_error import CommandsError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content import DispatchErrorContent as DispatchErrorContent_def97636 + + +class DeviceUnavailableError(CommandsError): + """ + Describes a dispatch error when device is not available. + + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent + + """ + deserialized_types = { + 'object_type': 'str', + 'content': 'ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, content=None): + # type: (Optional[DispatchErrorContent_def97636]) -> None + """Describes a dispatch error when device is not available. + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.dispatch_error_content.DispatchErrorContent + """ + self.__discriminator_value = "DEVICE_UNAVAILABLE" # type: str + + self.object_type = self.__discriminator_value + super(DeviceUnavailableError, self).__init__(object_type=self.__discriminator_value) + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DeviceUnavailableError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/dispatch_error_content.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/dispatch_error_content.py new file mode 100644 index 0000000..dfe6f97 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/dispatch_error_content.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.command import Command as Command_6778502c + + +class DispatchErrorContent(object): + """ + Content of a commands dispatch error. + + + :param device_id: Identifier of the device where execution error happens. + :type device_id: (optional) str + :param commands: Commands in the same order of request time so that skill can extend deliver expiry. + :type commands: (optional) list[ask_sdk_model.services.datastore.v1.command.Command] + + """ + deserialized_types = { + 'device_id': 'str', + 'commands': 'list[ask_sdk_model.services.datastore.v1.command.Command]' + } # type: Dict + + attribute_map = { + 'device_id': 'deviceId', + 'commands': 'commands' + } # type: Dict + supports_multiple_types = False + + def __init__(self, device_id=None, commands=None): + # type: (Optional[str], Optional[List[Command_6778502c]]) -> None + """Content of a commands dispatch error. + + :param device_id: Identifier of the device where execution error happens. + :type device_id: (optional) str + :param commands: Commands in the same order of request time so that skill can extend deliver expiry. + :type commands: (optional) list[ask_sdk_model.services.datastore.v1.command.Command] + """ + self.__discriminator_value = None # type: str + + self.device_id = device_id + self.commands = commands + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DispatchErrorContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/execution_error_content.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/execution_error_content.py new file mode 100644 index 0000000..cdd0b26 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/execution_error_content.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.command import Command as Command_6778502c + + +class ExecutionErrorContent(object): + """ + Content of an execution error. + + + :param device_id: Identifier of the device where execution error happens. + :type device_id: (optional) str + :param failed_command: the command that was not executed successfully because of the error. + :type failed_command: (optional) ask_sdk_model.services.datastore.v1.command.Command + :param message: Opaque message describing the error. + :type message: (optional) str + + """ + deserialized_types = { + 'device_id': 'str', + 'failed_command': 'ask_sdk_model.services.datastore.v1.command.Command', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'device_id': 'deviceId', + 'failed_command': 'failedCommand', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, device_id=None, failed_command=None, message=None): + # type: (Optional[str], Optional[Command_6778502c], Optional[str]) -> None + """Content of an execution error. + + :param device_id: Identifier of the device where execution error happens. + :type device_id: (optional) str + :param failed_command: the command that was not executed successfully because of the error. + :type failed_command: (optional) ask_sdk_model.services.datastore.v1.command.Command + :param message: Opaque message describing the error. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.device_id = device_id + self.failed_command = failed_command + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ExecutionErrorContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/storage_limit_execeeded_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/storage_limit_execeeded_error.py new file mode 100644 index 0000000..f43c637 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/storage_limit_execeeded_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.datastore.commands_error import CommandsError + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.execution_error_content import ExecutionErrorContent as ExecutionErrorContent_aa5000b0 + + +class StorageLimitExeceededError(CommandsError): + """ + Describes an execution error for exceeding storage limit. + + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent + + """ + deserialized_types = { + 'object_type': 'str', + 'content': 'ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, content=None): + # type: (Optional[ExecutionErrorContent_aa5000b0]) -> None + """Describes an execution error for exceeding storage limit. + + :param content: + :type content: (optional) ask_sdk_model.interfaces.alexa.datastore.execution_error_content.ExecutionErrorContent + """ + self.__discriminator_value = "STORAGE_LIMIT_EXCEEDED" # type: str + + self.object_type = self.__discriminator_value + super(StorageLimitExeceededError, self).__init__(object_type=self.__discriminator_value) + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, StorageLimitExeceededError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 1a962d8..00c6638 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -71,6 +71,8 @@ class Request(object): | | Alexa.Presentation.HTML.Message: :py:class:`ask_sdk_model.interfaces.alexa.presentation.html.message_request.MessageRequest`, | + | Alexa.DataStore.Error: :py:class:`ask_sdk_model.interfaces.alexa.datastore.data_store_error.DataStoreError`, + | | LaunchRequest: :py:class:`ask_sdk_model.launch_request.LaunchRequest`, | | Alexa.Authorization.Grant: :py:class:`ask_sdk_model.authorization.authorization_grant_request.AuthorizationGrantRequest`, @@ -175,6 +177,7 @@ class Request(object): 'CanFulfillIntentRequest': 'ask_sdk_model.canfulfill.can_fulfill_intent_request.CanFulfillIntentRequest', 'CustomInterfaceController.Expired': 'ask_sdk_model.interfaces.custom_interface_controller.expired_request.ExpiredRequest', 'Alexa.Presentation.HTML.Message': 'ask_sdk_model.interfaces.alexa.presentation.html.message_request.MessageRequest', + 'Alexa.DataStore.Error': 'ask_sdk_model.interfaces.alexa.datastore.data_store_error.DataStoreError', 'LaunchRequest': 'ask_sdk_model.launch_request.LaunchRequest', 'Alexa.Authorization.Grant': 'ask_sdk_model.authorization.authorization_grant_request.AuthorizationGrantRequest', 'Reminders.ReminderCreated': 'ask_sdk_model.services.reminder_management.reminder_created_event_request.ReminderCreatedEventRequest', diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py new file mode 100644 index 0000000..051cfa2 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .datastore_service_client import DatastoreServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py new file mode 100644 index 0000000..663bd8d --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py @@ -0,0 +1,241 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import sys +import os +import re +import six +import typing + +from ask_sdk_model.services.base_service_client import BaseServiceClient +from ask_sdk_model.services.api_configuration import ApiConfiguration +from ask_sdk_model.services.service_client_response import ServiceClientResponse +from ask_sdk_model.services.api_response import ApiResponse +from ask_sdk_model.services.utils import user_agent_info + +from ask_sdk_model.services.authentication_configuration import AuthenticationConfiguration +from ask_sdk_model.services.lwa.lwa_client import LwaClient + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.commands_request_error import CommandsRequestError as CommandsRequestError_c6945312 + from ask_sdk_model.services.datastore.v1.commands_response import CommandsResponse as CommandsResponse_271f32fb + from ask_sdk_model.services.datastore.v1.queued_result_response import QueuedResultResponse as QueuedResultResponse_806720cc + from ask_sdk_model.services.datastore.v1.commands_request import CommandsRequest as CommandsRequest_4046908d + from ask_sdk_model.services.datastore.v1.queued_result_request_error import QueuedResultRequestError as QueuedResultRequestError_fc34ffb1 + + +class DatastoreServiceClient(BaseServiceClient): + """ServiceClient for calling the DatastoreService APIs. + + :param api_configuration: Instance of ApiConfiguration + :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration + """ + def __init__(self, api_configuration, authentication_configuration, lwa_client=None, custom_user_agent=None): + # type: (ApiConfiguration, AuthenticationConfiguration, LwaClient, str) -> None + """ + :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` + :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration + :param authentication_configuration: Instance of :py:class:`ask_sdk_model.services.authentication_configuration.AuthenticationConfiguration` + :type api_configuration: ask_sdk_model.services.authentication_configuration.AuthenticationConfiguration + :param lwa_client: (Optional) Instance of :py:class:`ask_sdk_model.services.lwa.LwaClient`, + can be passed when the LwaClient configuration is different from the authentication + and api configuration passed + :type lwa_client: ask_sdk_model.services.lwa.LwaClient + :param custom_user_agent: Custom User Agent string provided by the developer. + :type custom_user_agent: str + """ + super(DatastoreServiceClient, self).__init__(api_configuration) + self.user_agent = user_agent_info(sdk_version="1.0.0", custom_user_agent=custom_user_agent) + + if lwa_client is None: + self._lwa_service_client = LwaClient( + api_configuration=ApiConfiguration( + serializer=api_configuration.serializer, + api_client=api_configuration.api_client), + authentication_configuration=authentication_configuration, + grant_type=None) + else: + self._lwa_service_client = lwa_client + + def commands_v1(self, authorization, commands_request, **kwargs): + # type: (str, CommandsRequest_4046908d, **Any) -> Union[ApiResponse, object, CommandsResponse_271f32fb, CommandsRequestError_c6945312] + """ + Send DataStore commands to Alexa device. + + :param authorization: (required) + :type authorization: str + :param commands_request: (required) + :type commands_request: ask_sdk_model.services.datastore.v1.commands_request.CommandsRequest + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, CommandsResponse_271f32fb, CommandsRequestError_c6945312] + """ + operation_name = "commands_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'authorization' is set + if ('authorization' not in params) or (params['authorization'] is None): + raise ValueError( + "Missing the required parameter `authorization` when calling `" + operation_name + "`") + # verify the required parameter 'commands_request' is set + if ('commands_request' not in params) or (params['commands_request'] is None): + raise ValueError( + "Missing the required parameter `commands_request` when calling `" + operation_name + "`") + + resource_path = '/v1/datastore/commands' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + + query_params = [] # type: List + + header_params = [] # type: List + if 'authorization' in params: + header_params.append(('Authorization', params['authorization'])) + + body_params = None + if 'commands_request' in params: + body_params = params['commands_request'] + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_for_scope( + "alexa::datastore") + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_response.CommandsResponse", status_code=200, message="Multiple CommandsDispatchResults in response.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_request_error.CommandsRequestError", status_code=400, message="Request validation fails.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_request_error.CommandsRequestError", status_code=401, message="Not Authorized.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_request_error.CommandsRequestError", status_code=403, message="The skill is not allowed to execute commands.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_request_error.CommandsRequestError", status_code=429, message="The client has made more calls than the allowed limit.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.commands_request_error.CommandsRequestError", status_code=0, message="Unexpected error.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_sdk_model.services.datastore.v1.commands_response.CommandsResponse") + + if full_response: + return api_response + return api_response.body + + + def queued_result_v1(self, authorization, queued_result_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, QueuedResultResponse_806720cc, QueuedResultRequestError_fc34ffb1] + """ + Query statuses of deliveries to offline devices returned by commands API. + + :param authorization: (required) + :type authorization: str + :param queued_result_id: (required) A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). + :type queued_result_id: str + :param max_results: Maximum number of CommandsDispatchResult items to return. + :type max_results: int + :param next_token: The value of nextToken in the response to fetch next page. If not specified, the request fetches result for the first page. + :type next_token: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, QueuedResultResponse_806720cc, QueuedResultRequestError_fc34ffb1] + """ + operation_name = "queued_result_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'authorization' is set + if ('authorization' not in params) or (params['authorization'] is None): + raise ValueError( + "Missing the required parameter `authorization` when calling `" + operation_name + "`") + # verify the required parameter 'queued_result_id' is set + if ('queued_result_id' not in params) or (params['queued_result_id'] is None): + raise ValueError( + "Missing the required parameter `queued_result_id` when calling `" + operation_name + "`") + + resource_path = '/v1/datastore/queue/{queuedResultId}' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'queued_result_id' in params: + path_params['queuedResultId'] = params['queued_result_id'] + + query_params = [] # type: List + if 'max_results' in params: + query_params.append(('maxResults', params['max_results'])) + if 'next_token' in params: + query_params.append(('nextToken', params['next_token'])) + + header_params = [] # type: List + if 'authorization' in params: + header_params.append(('Authorization', params['authorization'])) + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_for_scope( + "alexa::datastore") + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_response.QueuedResultResponse", status_code=200, message="Unordered array of CommandsDispatchResult and pagination details.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_request_error.QueuedResultRequestError", status_code=400, message="Request validation fails.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_request_error.QueuedResultRequestError", status_code=401, message="Not Authorized.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_request_error.QueuedResultRequestError", status_code=403, message="The skill is not allowed to call this API commands.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_request_error.QueuedResultRequestError", status_code=429, message="The client has made more calls than the allowed limit.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.queued_result_request_error.QueuedResultRequestError", status_code=0, message="Unexpected error.")) + + api_response = self.invoke( + method="GET", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type="ask_sdk_model.services.datastore.v1.queued_result_response.QueuedResultResponse") + + if full_response: + return api_response + return api_response.body + diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py new file mode 100644 index 0000000..4caa440 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py @@ -0,0 +1,35 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .clear_command import ClearCommand +from .commands_request_error import CommandsRequestError +from .commands_response import CommandsResponse +from .remove_object_command import RemoveObjectCommand +from .commands_request_error_type import CommandsRequestErrorType +from .remove_namespace_command import RemoveNamespaceCommand +from .target import Target +from .commands_dispatch_result import CommandsDispatchResult +from .put_object_command import PutObjectCommand +from .command import Command +from .response_pagination_context import ResponsePaginationContext +from .queued_result_response import QueuedResultResponse +from .commands_request import CommandsRequest +from .user import User +from .queued_result_request_error_type import QueuedResultRequestErrorType +from .dispatch_result_type import DispatchResultType +from .devices import Devices +from .queued_result_request_error import QueuedResultRequestError +from .put_namespace_command import PutNamespaceCommand diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/clear_command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/clear_command.py new file mode 100644 index 0000000..58bc67d --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/clear_command.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ClearCommand(Command): + """ + Remove all existing data in skill's DataStore. + + + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """Remove all existing data in skill's DataStore. + + """ + self.__discriminator_value = "CLEAR" # type: str + + self.object_type = self.__discriminator_value + super(ClearCommand, self).__init__(object_type=self.__discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ClearCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/command.py new file mode 100644 index 0000000..5d00e91 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/command.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Command(object): + """ + DataStore command which will run in DataStore. + + + :param object_type: The type of the component. Allowed values are * `PUT_OBJECT` - Creates or updates an object. * `PUT_NAMESPACE` - Creates a new namespace. If the namespace already exists, the command succeeds without any change. * `REMOVE_OBJECT` - Deletes an existing object. If the object doesn't exist, this command succeeds without any change. * `REMOVE_NAMESPACE` - Deletes an existing namespace. If the namespace doesn't exist, this command succeeds without any change. * `CLEAR` - Remove all existing data in skill's DataStore. + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | REMOVE_NAMESPACE: :py:class:`ask_sdk_model.services.datastore.v1.remove_namespace_command.RemoveNamespaceCommand`, + | + | REMOVE_OBJECT: :py:class:`ask_sdk_model.services.datastore.v1.remove_object_command.RemoveObjectCommand`, + | + | PUT_OBJECT: :py:class:`ask_sdk_model.services.datastore.v1.put_object_command.PutObjectCommand`, + | + | CLEAR: :py:class:`ask_sdk_model.services.datastore.v1.clear_command.ClearCommand`, + | + | PUT_NAMESPACE: :py:class:`ask_sdk_model.services.datastore.v1.put_namespace_command.PutNamespaceCommand` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'REMOVE_NAMESPACE': 'ask_sdk_model.services.datastore.v1.remove_namespace_command.RemoveNamespaceCommand', + 'REMOVE_OBJECT': 'ask_sdk_model.services.datastore.v1.remove_object_command.RemoveObjectCommand', + 'PUT_OBJECT': 'ask_sdk_model.services.datastore.v1.put_object_command.PutObjectCommand', + 'CLEAR': 'ask_sdk_model.services.datastore.v1.clear_command.ClearCommand', + 'PUT_NAMESPACE': 'ask_sdk_model.services.datastore.v1.put_namespace_command.PutNamespaceCommand' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """DataStore command which will run in DataStore. + + :param object_type: The type of the component. Allowed values are * `PUT_OBJECT` - Creates or updates an object. * `PUT_NAMESPACE` - Creates a new namespace. If the namespace already exists, the command succeeds without any change. * `REMOVE_OBJECT` - Deletes an existing object. If the object doesn't exist, this command succeeds without any change. * `REMOVE_NAMESPACE` - Deletes an existing namespace. If the namespace doesn't exist, this command succeeds without any change. * `CLEAR` - Remove all existing data in skill's DataStore. + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Command): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_dispatch_result.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_dispatch_result.py new file mode 100644 index 0000000..1036647 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_dispatch_result.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.dispatch_result_type import DispatchResultType as DispatchResultType_c649ef4c + + +class CommandsDispatchResult(object): + """ + + :param device_id: identifier of a device. + :type device_id: (optional) str + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.dispatch_result_type.DispatchResultType + :param message: Opaque description of the error. + :type message: (optional) str + + """ + deserialized_types = { + 'device_id': 'str', + 'object_type': 'ask_sdk_model.services.datastore.v1.dispatch_result_type.DispatchResultType', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'device_id': 'deviceId', + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, device_id=None, object_type=None, message=None): + # type: (Optional[str], Optional[DispatchResultType_c649ef4c], Optional[str]) -> None + """ + + :param device_id: identifier of a device. + :type device_id: (optional) str + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.dispatch_result_type.DispatchResultType + :param message: Opaque description of the error. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.device_id = device_id + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsDispatchResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request.py new file mode 100644 index 0000000..54d6cf1 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.command import Command as Command_6778502c + from ask_sdk_model.services.datastore.v1.target import Target as Target_ae761a52 + + +class CommandsRequest(object): + """ + + :param commands: Collection of ordered commands which needs to be executed in DataStore. + :type commands: (optional) list[ask_sdk_model.services.datastore.v1.command.Command] + :param target: Target where update needs to be published. + :type target: (optional) ask_sdk_model.services.datastore.v1.target.Target + :param attempt_delivery_until: Date and time, in ISO-8601 representation, when to halt the attempt to deliver the commands. + :type attempt_delivery_until: (optional) str + + """ + deserialized_types = { + 'commands': 'list[ask_sdk_model.services.datastore.v1.command.Command]', + 'target': 'ask_sdk_model.services.datastore.v1.target.Target', + 'attempt_delivery_until': 'str' + } # type: Dict + + attribute_map = { + 'commands': 'commands', + 'target': 'target', + 'attempt_delivery_until': 'attemptDeliveryUntil' + } # type: Dict + supports_multiple_types = False + + def __init__(self, commands=None, target=None, attempt_delivery_until=None): + # type: (Optional[List[Command_6778502c]], Optional[Target_ae761a52], Optional[str]) -> None + """ + + :param commands: Collection of ordered commands which needs to be executed in DataStore. + :type commands: (optional) list[ask_sdk_model.services.datastore.v1.command.Command] + :param target: Target where update needs to be published. + :type target: (optional) ask_sdk_model.services.datastore.v1.target.Target + :param attempt_delivery_until: Date and time, in ISO-8601 representation, when to halt the attempt to deliver the commands. + :type attempt_delivery_until: (optional) str + """ + self.__discriminator_value = None # type: str + + self.commands = commands + self.target = target + self.attempt_delivery_until = attempt_delivery_until + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error.py new file mode 100644 index 0000000..9d75905 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.commands_request_error_type import CommandsRequestErrorType as CommandsRequestErrorType_1bf5bf8d + + +class CommandsRequestError(object): + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.commands_request_error_type.CommandsRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.services.datastore.v1.commands_request_error_type.CommandsRequestErrorType', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, message=None): + # type: (Optional[CommandsRequestErrorType_1bf5bf8d], Optional[str]) -> None + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.commands_request_error_type.CommandsRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsRequestError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error_type.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error_type.py new file mode 100644 index 0000000..89f14bb --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_request_error_type.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CommandsRequestErrorType(Enum): + """ + Error code of the response. * `COMMANDS_PAYLOAD_EXCEEDS_LIMIT` - The total size of commands cannot exceed maximum size in UTF-encoding. * `TOO_MANY_TARGETS` - Number of target exceeds limits. * `NO_TARGET_DEFINED` - There is no target defined. * `INVALID_REQUEST` - request payload does not compliant with JSON schema. * `INVALID_ACCESS_TOKEN` - Access token is expire or invalid. * `DATASTORE_SUPPORT_REQUIRED` - Client has not opted into DataStore interface in skill manifest. * `TOO_MANY_REQUESTS` - The request has been throttled because client has exceed maximum allowed request rate. * `DATASTORE_UNAVAILABLE` - Internal service error. + + + + Allowed enum values: [COMMANDS_PAYLOAD_EXCEEDS_LIMIT, TOO_MANY_TARGETS, NO_TARGET_DEFINED, INVALID_REQUEST, INVALID_ACCESS_TOKEN, DATASTORE_SUPPORT_REQUIRED, TOO_MANY_REQUESTS, DATASTORE_UNAVAILABLE] + """ + COMMANDS_PAYLOAD_EXCEEDS_LIMIT = "COMMANDS_PAYLOAD_EXCEEDS_LIMIT" + TOO_MANY_TARGETS = "TOO_MANY_TARGETS" + NO_TARGET_DEFINED = "NO_TARGET_DEFINED" + INVALID_REQUEST = "INVALID_REQUEST" + INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN" + DATASTORE_SUPPORT_REQUIRED = "DATASTORE_SUPPORT_REQUIRED" + TOO_MANY_REQUESTS = "TOO_MANY_REQUESTS" + DATASTORE_UNAVAILABLE = "DATASTORE_UNAVAILABLE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsRequestErrorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_response.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_response.py new file mode 100644 index 0000000..9dc562a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/commands_response.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.commands_dispatch_result import CommandsDispatchResult as CommandsDispatchResult_a4ae4026 + + +class CommandsResponse(object): + """ + + :param results: List of results for each dispatch to a device target. This indicates the results of 1st attempt of deliveries. + :type results: (optional) list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult] + :param queued_result_id: A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). If there is no offline device, this value is not specified. The result will be available for query at least one hour after attemptDeliveryUntil. + :type queued_result_id: (optional) str + + """ + deserialized_types = { + 'results': 'list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult]', + 'queued_result_id': 'str' + } # type: Dict + + attribute_map = { + 'results': 'results', + 'queued_result_id': 'queuedResultId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, results=None, queued_result_id=None): + # type: (Optional[List[CommandsDispatchResult_a4ae4026]], Optional[str]) -> None + """ + + :param results: List of results for each dispatch to a device target. This indicates the results of 1st attempt of deliveries. + :type results: (optional) list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult] + :param queued_result_id: A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). If there is no offline device, this value is not specified. The result will be available for query at least one hour after attemptDeliveryUntil. + :type queued_result_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.results = results + self.queued_result_id = queued_result_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CommandsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/devices.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/devices.py new file mode 100644 index 0000000..2cb3f9a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/devices.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.target import Target + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Devices(Target): + """ + + :param items: Unordered array of device identifiers. + :type items: (optional) list[str] + + """ + deserialized_types = { + 'object_type': 'str', + 'items': 'list[str]' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'items': 'items' + } # type: Dict + supports_multiple_types = False + + def __init__(self, items=None): + # type: (Optional[List[object]]) -> None + """ + + :param items: Unordered array of device identifiers. + :type items: (optional) list[str] + """ + self.__discriminator_value = "DEVICES" # type: str + + self.object_type = self.__discriminator_value + super(Devices, self).__init__(object_type=self.__discriminator_value) + self.items = items + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Devices): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py new file mode 100644 index 0000000..f56c5bb --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class DispatchResultType(Enum): + """ + Defines success or a type of error from dispatch. * `SUCCESS` - device has received the payload. * `INVALID_DEVICE` - device is not capable of processing the payload. * `DEVICE_UNAVAILABLE` - dispatch failed because device is offline. * `DEVICE_PERMANENTLY_UNAVAILABLE` - target no longer available to receive data. This is reported for a failed delivery attempt related to an unregistered device. * `CONCURRENCY_ERROR` - there are concurrent attempts to update to the same device. * `INTERNAL_ERROR`- dispatch failed because of unknown error - see message. + + + + Allowed enum values: [SUCCESS, INVALID_DEVICE, DEVICE_UNAVAILABLE, DEVICE_PERMANENTLY_UNAVAILABLE, CONCURRENCY_ERROR, INTERNAL_ERROR] + """ + SUCCESS = "SUCCESS" + INVALID_DEVICE = "INVALID_DEVICE" + DEVICE_UNAVAILABLE = "DEVICE_UNAVAILABLE" + DEVICE_PERMANENTLY_UNAVAILABLE = "DEVICE_PERMANENTLY_UNAVAILABLE" + CONCURRENCY_ERROR = "CONCURRENCY_ERROR" + INTERNAL_ERROR = "INTERNAL_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, DispatchResultType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_namespace_command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_namespace_command.py new file mode 100644 index 0000000..a60041a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_namespace_command.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PutNamespaceCommand(Command): + """ + Creates a new namespace. If the namespace already exists, the command succeeds without any change. + + + :param namespace: Namespace where object needs to be created. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'namespace': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'namespace': 'namespace' + } # type: Dict + supports_multiple_types = False + + def __init__(self, namespace=None): + # type: (Optional[str]) -> None + """Creates a new namespace. If the namespace already exists, the command succeeds without any change. + + :param namespace: Namespace where object needs to be created. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + """ + self.__discriminator_value = "PUT_NAMESPACE" # type: str + + self.object_type = self.__discriminator_value + super(PutNamespaceCommand, self).__init__(object_type=self.__discriminator_value) + self.namespace = namespace + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PutNamespaceCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_object_command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_object_command.py new file mode 100644 index 0000000..0da3b30 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/put_object_command.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PutObjectCommand(Command): + """ + Creates or updates an object. + + + :param namespace: Namespace where object needs to be created. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + :param key: Unique identifier of the objects. Needs to be unique only within client's namespace not globally unique. + :type key: (optional) str + :param content: Open content payload that is not inspected by the DataStore. + :type content: (optional) object + + """ + deserialized_types = { + 'object_type': 'str', + 'namespace': 'str', + 'key': 'str', + 'content': 'object' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'namespace': 'namespace', + 'key': 'key', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, namespace=None, key=None, content=None): + # type: (Optional[str], Optional[str], Optional[object]) -> None + """Creates or updates an object. + + :param namespace: Namespace where object needs to be created. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + :param key: Unique identifier of the objects. Needs to be unique only within client's namespace not globally unique. + :type key: (optional) str + :param content: Open content payload that is not inspected by the DataStore. + :type content: (optional) object + """ + self.__discriminator_value = "PUT_OBJECT" # type: str + + self.object_type = self.__discriminator_value + super(PutObjectCommand, self).__init__(object_type=self.__discriminator_value) + self.namespace = namespace + self.key = key + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PutObjectCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed b/ask-sdk-model/ask_sdk_model/services/datastore/v1/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error.py new file mode 100644 index 0000000..df84799 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.queued_result_request_error_type import QueuedResultRequestErrorType as QueuedResultRequestErrorType_ea915d1e + + +class QueuedResultRequestError(object): + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.queued_result_request_error_type.QueuedResultRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.services.datastore.v1.queued_result_request_error_type.QueuedResultRequestErrorType', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, message=None): + # type: (Optional[QueuedResultRequestErrorType_ea915d1e], Optional[str]) -> None + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.queued_result_request_error_type.QueuedResultRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, QueuedResultRequestError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error_type.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error_type.py new file mode 100644 index 0000000..31870ec --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_request_error_type.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class QueuedResultRequestErrorType(Enum): + """ + Error code of the response. * `NOT_FOUND` - queuedResultId is not found for the skill. * `INVALID_REQUEST` - One or more request parameters are invalid, see message for more details. * `INVALID_ACCESS_TOKEN` - Access token is expire or invalid. * `DATASTORE_SUPPORT_REQUIRED` - Client has not opted into DataStore interface in skill manifest. * `TOO_MANY_REQUESTS` - The request has been throttled because client has exceed maximum allowed request rate. * `DATASTORE_UNAVAILABLE` - Internal service error. + + + + Allowed enum values: [NOT_FOUND, INVALID_REQUEST, INVALID_ACCESS_TOKEN, DATASTORE_SUPPORT_REQUIRED, TOO_MANY_REQUESTS, DATASTORE_UNAVAILABLE] + """ + NOT_FOUND = "NOT_FOUND" + INVALID_REQUEST = "INVALID_REQUEST" + INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN" + DATASTORE_SUPPORT_REQUIRED = "DATASTORE_SUPPORT_REQUIRED" + TOO_MANY_REQUESTS = "TOO_MANY_REQUESTS" + DATASTORE_UNAVAILABLE = "DATASTORE_UNAVAILABLE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, QueuedResultRequestErrorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_response.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_response.py new file mode 100644 index 0000000..4375110 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/queued_result_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.response_pagination_context import ResponsePaginationContext as ResponsePaginationContext_2e377452 + from ask_sdk_model.services.datastore.v1.commands_dispatch_result import CommandsDispatchResult as CommandsDispatchResult_a4ae4026 + + +class QueuedResultResponse(object): + """ + Response for queued deliveries query. + + + :param items: The array only contains results which have not been a SUCCESS delivery. An empty response means that all targeted devices has been received the commands payload. + :type items: (optional) list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult] + :param pagination_context: + :type pagination_context: (optional) ask_sdk_model.services.datastore.v1.response_pagination_context.ResponsePaginationContext + + """ + deserialized_types = { + 'items': 'list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult]', + 'pagination_context': 'ask_sdk_model.services.datastore.v1.response_pagination_context.ResponsePaginationContext' + } # type: Dict + + attribute_map = { + 'items': 'items', + 'pagination_context': 'paginationContext' + } # type: Dict + supports_multiple_types = False + + def __init__(self, items=None, pagination_context=None): + # type: (Optional[List[CommandsDispatchResult_a4ae4026]], Optional[ResponsePaginationContext_2e377452]) -> None + """Response for queued deliveries query. + + :param items: The array only contains results which have not been a SUCCESS delivery. An empty response means that all targeted devices has been received the commands payload. + :type items: (optional) list[ask_sdk_model.services.datastore.v1.commands_dispatch_result.CommandsDispatchResult] + :param pagination_context: + :type pagination_context: (optional) ask_sdk_model.services.datastore.v1.response_pagination_context.ResponsePaginationContext + """ + self.__discriminator_value = None # type: str + + self.items = items + self.pagination_context = pagination_context + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, QueuedResultResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_namespace_command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_namespace_command.py new file mode 100644 index 0000000..d3a81d1 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_namespace_command.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class RemoveNamespaceCommand(Command): + """ + Deletes an existing namespace. If the namespace doesn't exist, this command succeeds without any change. + + + :param namespace: Namespace which needs to be removed. It's unique identifier within skill's DataStore. + :type namespace: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'namespace': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'namespace': 'namespace' + } # type: Dict + supports_multiple_types = False + + def __init__(self, namespace=None): + # type: (Optional[str]) -> None + """Deletes an existing namespace. If the namespace doesn't exist, this command succeeds without any change. + + :param namespace: Namespace which needs to be removed. It's unique identifier within skill's DataStore. + :type namespace: (optional) str + """ + self.__discriminator_value = "REMOVE_NAMESPACE" # type: str + + self.object_type = self.__discriminator_value + super(RemoveNamespaceCommand, self).__init__(object_type=self.__discriminator_value) + self.namespace = namespace + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RemoveNamespaceCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_object_command.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_object_command.py new file mode 100644 index 0000000..a8033d7 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/remove_object_command.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.command import Command + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class RemoveObjectCommand(Command): + """ + Deletes an existing object. If the object doesn't exist, this command succeeds without any change. + + + :param namespace: Namespace where the object is stored. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + :param key: Unique identifier of the objects. Needs to be unique only within client's namespace not globally unique. + :type key: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'namespace': 'str', + 'key': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'namespace': 'namespace', + 'key': 'key' + } # type: Dict + supports_multiple_types = False + + def __init__(self, namespace=None, key=None): + # type: (Optional[str], Optional[str]) -> None + """Deletes an existing object. If the object doesn't exist, this command succeeds without any change. + + :param namespace: Namespace where the object is stored. Its unique identifier within skill's DataStore. + :type namespace: (optional) str + :param key: Unique identifier of the objects. Needs to be unique only within client's namespace not globally unique. + :type key: (optional) str + """ + self.__discriminator_value = "REMOVE_OBJECT" # type: str + + self.object_type = self.__discriminator_value + super(RemoveObjectCommand, self).__init__(object_type=self.__discriminator_value) + self.namespace = namespace + self.key = key + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, RemoveObjectCommand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/response_pagination_context.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/response_pagination_context.py new file mode 100644 index 0000000..7963e9a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/response_pagination_context.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ResponsePaginationContext(object): + """ + + :param total_count: The total number of results at the time of current response. + :type total_count: (optional) int + :param previous_token: The token of previous page - Not specified for the response of first page. + :type previous_token: (optional) str + :param next_token: The token of next page - Not specified for the response of last page. + :type next_token: (optional) str + + """ + deserialized_types = { + 'total_count': 'int', + 'previous_token': 'str', + 'next_token': 'str' + } # type: Dict + + attribute_map = { + 'total_count': 'totalCount', + 'previous_token': 'previousToken', + 'next_token': 'nextToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, total_count=None, previous_token=None, next_token=None): + # type: (Optional[int], Optional[str], Optional[str]) -> None + """ + + :param total_count: The total number of results at the time of current response. + :type total_count: (optional) int + :param previous_token: The token of previous page - Not specified for the response of first page. + :type previous_token: (optional) str + :param next_token: The token of next page - Not specified for the response of last page. + :type next_token: (optional) str + """ + self.__discriminator_value = None # type: str + + self.total_count = total_count + self.previous_token = previous_token + self.next_token = next_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ResponsePaginationContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/target.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/target.py new file mode 100644 index 0000000..93a6b3e --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/target.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Target(object): + """ + + :param object_type: Type of the target * `DEVICES` - an unordered array of Device ID * `USER - a single User ID + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | USER: :py:class:`ask_sdk_model.services.datastore.v1.user.User`, + | + | DEVICES: :py:class:`ask_sdk_model.services.datastore.v1.devices.Devices` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'USER': 'ask_sdk_model.services.datastore.v1.user.User', + 'DEVICES': 'ask_sdk_model.services.datastore.v1.devices.Devices' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """ + + :param object_type: Type of the target * `DEVICES` - an unordered array of Device ID * `USER - a single User ID + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Target): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/user.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/user.py new file mode 100644 index 0000000..51fab45 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/user.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.services.datastore.v1.target import Target + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class User(Target): + """ + + :param id: User ID in request envelope (context.System.user.userId). + :type id: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'id': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'id': 'id' + } # type: Dict + supports_multiple_types = False + + def __init__(self, id=None): + # type: (Optional[str]) -> None + """ + + :param id: User ID in request envelope (context.System.user.userId). + :type id: (optional) str + """ + self.__discriminator_value = "USER" # type: str + + self.object_type = self.__discriminator_value + super(User, self).__init__(object_type=self.__discriminator_value) + self.id = id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, User): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/service_client_factory.py b/ask-sdk-model/ask_sdk_model/services/service_client_factory.py index 30e9e46..d6b1c2e 100644 --- a/ask-sdk-model/ask_sdk_model/services/service_client_factory.py +++ b/ask-sdk-model/ask_sdk_model/services/service_client_factory.py @@ -18,6 +18,7 @@ import re import six import typing +from .datastore import DatastoreServiceClient from .device_address import DeviceAddressServiceClient from .directive import DirectiveServiceClient from .endpoint_enumeration import EndpointEnumerationServiceClient From 1963e8d2e9fa435edbd6dd943d62aecb59969f06 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 5 Jan 2023 16:07:59 +0000 Subject: [PATCH 049/111] Release 1.19.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index c3a1b97..2e233e9 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -326,3 +326,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.19.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 9162e8b..32a7b5d 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.18.0' +__version__ = '1.19.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 18a2a9c09e682a7c24974f7919004a05310ae056 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 9 Jan 2023 15:38:55 +0000 Subject: [PATCH 050/111] Release 1.38.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 86c9402..f6927c5 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -475,3 +475,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.38.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index d05dc01..84dca81 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.37.0' +__version__ = '1.38.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 8b5c6bae6551c1cb005cdc6c161aef78c42de7fe Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 17 Jan 2023 15:39:04 +0000 Subject: [PATCH 051/111] Release 1.39.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index f6927c5..d8eeb93 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -481,3 +481,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.39.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 84dca81..29cd71a 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.38.0' +__version__ = '1.39.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 1c7fc4932f9801a36ae6f1648a9e5f08331eec21 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 26 Jan 2023 15:38:53 +0000 Subject: [PATCH 052/111] Release 1.40.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index d8eeb93..c053232 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -487,3 +487,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.40.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 29cd71a..b4b9093 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.39.0' +__version__ = '1.40.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From deca864ac6c14b18432d00c914b97b97c2bfebee Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 6 Feb 2023 15:38:55 +0000 Subject: [PATCH 053/111] Release 1.41.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index c053232..83c64b4 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -493,3 +493,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.41.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index b4b9093..03d5245 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.40.0' +__version__ = '1.41.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 940d8ac1eca628a7a76e7137d9a2d50d48157ce4 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 7 Feb 2023 15:39:56 +0000 Subject: [PATCH 054/111] Release 1.42.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 83c64b4..d61384a 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -499,3 +499,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.42.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 03d5245..3be1292 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.41.0' +__version__ = '1.42.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 7389e643798bfc379b2622fdc2c7ceb9061c31fb Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 8 Feb 2023 15:39:14 +0000 Subject: [PATCH 055/111] Release 1.43.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index d61384a..4b543f6 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -505,3 +505,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.43.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3be1292..bb50bfa 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.42.0' +__version__ = '1.43.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 721a891c69ef34bf8b14f908eb2f8298ed0a7020 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 9 Feb 2023 15:39:11 +0000 Subject: [PATCH 056/111] Release 1.44.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4b543f6..aa31fbe 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -511,3 +511,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.44.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index bb50bfa..e7ce661 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.43.0' +__version__ = '1.44.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From a044b9c897a179ba7f69b919f182eed7514f293f Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 13 Feb 2023 15:39:10 +0000 Subject: [PATCH 057/111] Release 1.45.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index aa31fbe..553746e 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -517,3 +517,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.45.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index e7ce661..77a0804 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.44.0' +__version__ = '1.45.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 0f2728a2d49fcb26691faa70b3c6b1f914cdc557 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 15 Feb 2023 15:39:43 +0000 Subject: [PATCH 058/111] Release 1.46.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 553746e..4ada437 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -523,3 +523,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.46.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 77a0804..537fda8 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.45.0' +__version__ = '1.46.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From d727c222a36f846caf8dba5a317b7eeb8386b6f8 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 20 Feb 2023 15:39:34 +0000 Subject: [PATCH 059/111] Release 1.47.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4ada437..65906ee 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -529,3 +529,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.47.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 537fda8..3f82c12 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.46.0' +__version__ = '1.47.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From f229090e9c6daa1f424efbaf28ff62f8de6a713b Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 27 Feb 2023 15:39:30 +0000 Subject: [PATCH 060/111] Release 1.48.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 65906ee..65b9e5c 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -535,3 +535,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.48.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3f82c12..5f7f579 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.47.0' +__version__ = '1.48.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 6e5e337e7e5c918f8634e4c320f0b426e6019b2c Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 28 Feb 2023 15:39:31 +0000 Subject: [PATCH 061/111] Release 1.49.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 65b9e5c..bb8c1c6 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -541,3 +541,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.49.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 5f7f579..4ba60cd 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.48.0' +__version__ = '1.49.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 7551dc28461a58738d7234ee2cb563cdd7148bdd Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 1 Mar 2023 15:39:26 +0000 Subject: [PATCH 062/111] Release 1.50.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index bb8c1c6..88c0a60 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -547,3 +547,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.50.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 4ba60cd..2a3c06d 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.49.0' +__version__ = '1.50.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 022a0ac32e4c3ac2e75731ae6e830d69a811128b Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 2 Mar 2023 15:39:34 +0000 Subject: [PATCH 063/111] Release 1.51.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 88c0a60..cbae8b7 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -553,3 +553,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.51.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 2a3c06d..c692236 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.50.0' +__version__ = '1.51.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 42ff7c07a95cbfce16f17cffb2da61548e122d5a Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 6 Mar 2023 15:39:28 +0000 Subject: [PATCH 064/111] Release 1.52.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/context.py | 12 +- .../datastore/packagemanager/__init__.py | 18 +++ .../packagemanager/package_manager_state.py | 109 +++++++++++++++++ .../package_state_information.py | 115 ++++++++++++++++++ .../alexa/datastore/packagemanager/py.typed | 0 .../datastore/datastore_service_client.py | 82 +++++++++++++ .../services/datastore/v1/__init__.py | 2 + .../v1/cancel_commands_request_error.py | 114 +++++++++++++++++ .../v1/cancel_commands_request_error_type.py | 71 +++++++++++ .../datastore/v1/dispatch_result_type.py | 5 +- 12 files changed, 531 insertions(+), 5 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_manager_state.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_state_information.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error_type.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index cbae8b7..78110e0 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -559,3 +559,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.52.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index c692236..e869e93 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.51.0' +__version__ = '1.52.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 3f7876c..1a0bd42 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -34,6 +34,7 @@ from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d from ask_sdk_model.interfaces.system.system_state import SystemState as SystemState_22fcb230 from ask_sdk_model.interfaces.display.display_state import DisplayState as DisplayState_726e4959 + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_manager_state import PackageManagerState as PackageManagerState_9a27c921 class Context(object): @@ -57,6 +58,8 @@ class Context(object): :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] :param extensions: Provides the current state for Extensions interface :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState + :param alexa_data_store_package_manager: Provides the current state for the Alexa.DataStore.PackageManager interface. + :type alexa_data_store_package_manager: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_manager_state.PackageManagerState :param app_link: Provides the current state for app link capability. :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState :param experimentation: Provides the current experimentation state @@ -73,6 +76,7 @@ class Context(object): 'viewport': 'ask_sdk_model.interfaces.viewport.viewport_state.ViewportState', 'viewports': 'list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState]', 'extensions': 'ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState', + 'alexa_data_store_package_manager': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_manager_state.PackageManagerState', 'app_link': 'ask_sdk_model.interfaces.applink.app_link_state.AppLinkState', 'experimentation': 'ask_sdk_model.interfaces.alexa.experimentation.experimentation_state.ExperimentationState' } # type: Dict @@ -87,13 +91,14 @@ class Context(object): 'viewport': 'Viewport', 'viewports': 'Viewports', 'extensions': 'Extensions', + 'alexa_data_store_package_manager': 'Alexa.DataStore.PackageManager', 'app_link': 'AppLink', 'experimentation': 'Experimentation' } # type: Dict supports_multiple_types = False - def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, app_link=None, experimentation=None): - # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[AppLinkState_370eda23], Optional[ExperimentationState_37bb7c62]) -> None + def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, alexa_data_store_package_manager=None, app_link=None, experimentation=None): + # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[PackageManagerState_9a27c921], Optional[AppLinkState_370eda23], Optional[ExperimentationState_37bb7c62]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. @@ -114,6 +119,8 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, :type viewports: (optional) list[ask_sdk_model.interfaces.viewport.typed_viewport_state.TypedViewportState] :param extensions: Provides the current state for Extensions interface :type extensions: (optional) ask_sdk_model.interfaces.alexa.extension.extensions_state.ExtensionsState + :param alexa_data_store_package_manager: Provides the current state for the Alexa.DataStore.PackageManager interface. + :type alexa_data_store_package_manager: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_manager_state.PackageManagerState :param app_link: Provides the current state for app link capability. :type app_link: (optional) ask_sdk_model.interfaces.applink.app_link_state.AppLinkState :param experimentation: Provides the current experimentation state @@ -130,6 +137,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, self.viewport = viewport self.viewports = viewports self.extensions = extensions + self.alexa_data_store_package_manager = alexa_data_store_package_manager self.app_link = app_link self.experimentation = experimentation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py new file mode 100644 index 0000000..41a07a7 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py @@ -0,0 +1,18 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .package_state_information import PackageStateInformation +from .package_manager_state import PackageManagerState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_manager_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_manager_state.py new file mode 100644 index 0000000..da76434 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_manager_state.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_state_information import PackageStateInformation as PackageStateInformation_1aed7297 + + +class PackageManagerState(object): + """ + Provides context about the list of packages installed on the device. + + + :param installed_packages: Includes all installed packages on the device. + :type installed_packages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_state_information.PackageStateInformation] + + """ + deserialized_types = { + 'installed_packages': 'list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_state_information.PackageStateInformation]' + } # type: Dict + + attribute_map = { + 'installed_packages': 'installedPackages' + } # type: Dict + supports_multiple_types = False + + def __init__(self, installed_packages=None): + # type: (Optional[List[PackageStateInformation_1aed7297]]) -> None + """Provides context about the list of packages installed on the device. + + :param installed_packages: Includes all installed packages on the device. + :type installed_packages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_state_information.PackageStateInformation] + """ + self.__discriminator_value = None # type: str + + self.installed_packages = installed_packages + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PackageManagerState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_state_information.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_state_information.py new file mode 100644 index 0000000..2035be0 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_state_information.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PackageStateInformation(object): + """ + State information of the DataStore package version installed on the device. + + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param version: Unique version of a package. + :type version: (optional) str + + """ + deserialized_types = { + 'package_id': 'str', + 'version': 'str' + } # type: Dict + + attribute_map = { + 'package_id': 'packageId', + 'version': 'version' + } # type: Dict + supports_multiple_types = False + + def __init__(self, package_id=None, version=None): + # type: (Optional[str], Optional[str]) -> None + """State information of the DataStore package version installed on the device. + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param version: Unique version of a package. + :type version: (optional) str + """ + self.__discriminator_value = None # type: str + + self.package_id = package_id + self.version = version + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PackageStateInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py index 663bd8d..0b45adc 100644 --- a/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py @@ -35,6 +35,7 @@ from ask_sdk_model.services.datastore.v1.commands_request_error import CommandsRequestError as CommandsRequestError_c6945312 from ask_sdk_model.services.datastore.v1.commands_response import CommandsResponse as CommandsResponse_271f32fb from ask_sdk_model.services.datastore.v1.queued_result_response import QueuedResultResponse as QueuedResultResponse_806720cc + from ask_sdk_model.services.datastore.v1.cancel_commands_request_error import CancelCommandsRequestError as CancelCommandsRequestError_26f4d59f from ask_sdk_model.services.datastore.v1.commands_request import CommandsRequest as CommandsRequest_4046908d from ask_sdk_model.services.datastore.v1.queued_result_request_error import QueuedResultRequestError as QueuedResultRequestError_fc34ffb1 @@ -152,6 +153,87 @@ def commands_v1(self, authorization, commands_request, **kwargs): return api_response.body + def cancel_commands_v1(self, authorization, queued_result_id, **kwargs): + # type: (str, str, **Any) -> Union[ApiResponse, object, CancelCommandsRequestError_26f4d59f] + """ + Cancel pending DataStore commands. + + :param authorization: (required) + :type authorization: str + :param queued_result_id: (required) A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). + :type queued_result_id: str + :param full_response: Boolean value to check if response should contain headers and status code information. + This value had to be passed through keyword arguments, by default the parameter value is set to False. + :type full_response: boolean + :rtype: Union[ApiResponse, object, CancelCommandsRequestError_26f4d59f] + """ + operation_name = "cancel_commands_v1" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'authorization' is set + if ('authorization' not in params) or (params['authorization'] is None): + raise ValueError( + "Missing the required parameter `authorization` when calling `" + operation_name + "`") + # verify the required parameter 'queued_result_id' is set + if ('queued_result_id' not in params) or (params['queued_result_id'] is None): + raise ValueError( + "Missing the required parameter `queued_result_id` when calling `" + operation_name + "`") + + resource_path = '/v1/datastore/queue/{queuedResultId}/cancel' + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} # type: Dict + if 'queued_result_id' in params: + path_params['queuedResultId'] = params['queued_result_id'] + + query_params = [] # type: List + + header_params = [] # type: List + if 'authorization' in params: + header_params.append(('Authorization', params['authorization'])) + + body_params = None + header_params.append(('Content-type', 'application/json')) + header_params.append(('User-Agent', self.user_agent)) + + # Response Type + full_response = False + if 'full_response' in params: + full_response = params['full_response'] + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_for_scope( + "alexa::datastore") + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] # type: List + error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success. No content.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=400, message="Request validation fails.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=401, message="Not Authorized.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=403, message="The skill is not allowed to call this API commands.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=404, message="Unable to find the pending request.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=429, message="The client has made more calls than the allowed limit.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.datastore.v1.cancel_commands_request_error.CancelCommandsRequestError", status_code=0, message="Unexpected error.")) + + api_response = self.invoke( + method="POST", + endpoint=self._api_endpoint, + path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body_params, + response_definitions=error_definitions, + response_type=None) + + if full_response: + return api_response + + return None + def queued_result_v1(self, authorization, queued_result_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, QueuedResultResponse_806720cc, QueuedResultRequestError_fc34ffb1] """ diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py index 4caa440..45a9191 100644 --- a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py @@ -19,12 +19,14 @@ from .commands_response import CommandsResponse from .remove_object_command import RemoveObjectCommand from .commands_request_error_type import CommandsRequestErrorType +from .cancel_commands_request_error_type import CancelCommandsRequestErrorType from .remove_namespace_command import RemoveNamespaceCommand from .target import Target from .commands_dispatch_result import CommandsDispatchResult from .put_object_command import PutObjectCommand from .command import Command from .response_pagination_context import ResponsePaginationContext +from .cancel_commands_request_error import CancelCommandsRequestError from .queued_result_response import QueuedResultResponse from .commands_request import CommandsRequest from .user import User diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error.py new file mode 100644 index 0000000..60cbf5a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.services.datastore.v1.cancel_commands_request_error_type import CancelCommandsRequestErrorType as CancelCommandsRequestErrorType_ac0fce54 + + +class CancelCommandsRequestError(object): + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.cancel_commands_request_error_type.CancelCommandsRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.services.datastore.v1.cancel_commands_request_error_type.CancelCommandsRequestErrorType', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, message=None): + # type: (Optional[CancelCommandsRequestErrorType_ac0fce54], Optional[str]) -> None + """ + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.datastore.v1.cancel_commands_request_error_type.CancelCommandsRequestErrorType + :param message: Descriptive error message. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CancelCommandsRequestError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error_type.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error_type.py new file mode 100644 index 0000000..8ec0319 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/cancel_commands_request_error_type.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class CancelCommandsRequestErrorType(Enum): + """ + Error code of the response. * `COMMANDS_DELIVERED` - The pending commands have been delivered. * `CONCURRENCY_ERROR` - There are concurrent attempts to deliver the pending commands. * `NOT_FOUND` - Unable to find pending request for the given queuedResultId. * `INVALID_ACCESS_TOKEN` - Access token is expire or invalid. * `DATASTORE_SUPPORT_REQUIRED` - Client has not opted into DataStore interface in skill manifest. * `TOO_MANY_REQUESTS` - The request has been throttled because client has exceed maximum allowed request rate. * `DATASTORE_UNAVAILABLE` - Internal service error. + + + + Allowed enum values: [COMMANDS_DELIVERED, CONCURRENCY_ERROR, NOT_FOUND, INVALID_ACCESS_TOKEN, DATASTORE_SUPPORT_REQUIRED, TOO_MANY_REQUESTS, DATASTORE_UNAVAILABLE] + """ + COMMANDS_DELIVERED = "COMMANDS_DELIVERED" + CONCURRENCY_ERROR = "CONCURRENCY_ERROR" + NOT_FOUND = "NOT_FOUND" + INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN" + DATASTORE_SUPPORT_REQUIRED = "DATASTORE_SUPPORT_REQUIRED" + TOO_MANY_REQUESTS = "TOO_MANY_REQUESTS" + DATASTORE_UNAVAILABLE = "DATASTORE_UNAVAILABLE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, CancelCommandsRequestErrorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py index f56c5bb..ed7d114 100644 --- a/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/dispatch_result_type.py @@ -27,11 +27,11 @@ class DispatchResultType(Enum): """ - Defines success or a type of error from dispatch. * `SUCCESS` - device has received the payload. * `INVALID_DEVICE` - device is not capable of processing the payload. * `DEVICE_UNAVAILABLE` - dispatch failed because device is offline. * `DEVICE_PERMANENTLY_UNAVAILABLE` - target no longer available to receive data. This is reported for a failed delivery attempt related to an unregistered device. * `CONCURRENCY_ERROR` - there are concurrent attempts to update to the same device. * `INTERNAL_ERROR`- dispatch failed because of unknown error - see message. + Defines success or a type of error from dispatch. * `SUCCESS` - device has received the payload. * `INVALID_DEVICE` - device is not capable of processing the payload. * `DEVICE_UNAVAILABLE` - dispatch failed because device is offline. * `DEVICE_PERMANENTLY_UNAVAILABLE` - target no longer available to receive data. This is reported for a failed delivery attempt related to an unregistered device. * `CONCURRENCY_ERROR` - there are concurrent attempts to update to the same device. * `INTERNAL_ERROR`- dispatch failed because of unknown error - see message. * `PENDING_REQUEST_COUNT_EXCEEDS_LIMIT` - the count of pending requests exceeds the limit. - Allowed enum values: [SUCCESS, INVALID_DEVICE, DEVICE_UNAVAILABLE, DEVICE_PERMANENTLY_UNAVAILABLE, CONCURRENCY_ERROR, INTERNAL_ERROR] + Allowed enum values: [SUCCESS, INVALID_DEVICE, DEVICE_UNAVAILABLE, DEVICE_PERMANENTLY_UNAVAILABLE, CONCURRENCY_ERROR, INTERNAL_ERROR, PENDING_REQUEST_COUNT_EXCEEDS_LIMIT] """ SUCCESS = "SUCCESS" INVALID_DEVICE = "INVALID_DEVICE" @@ -39,6 +39,7 @@ class DispatchResultType(Enum): DEVICE_PERMANENTLY_UNAVAILABLE = "DEVICE_PERMANENTLY_UNAVAILABLE" CONCURRENCY_ERROR = "CONCURRENCY_ERROR" INTERNAL_ERROR = "INTERNAL_ERROR" + PENDING_REQUEST_COUNT_EXCEEDS_LIMIT = "PENDING_REQUEST_COUNT_EXCEEDS_LIMIT" def to_dict(self): # type: () -> Dict[str, Any] From 4defaeaa3c66c3bc48f6eab2ce892961a9f09c35 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 9 Mar 2023 15:39:39 +0000 Subject: [PATCH 065/111] Release 1.53.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 78110e0..0091009 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -565,3 +565,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.53.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index e869e93..983bbf9 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.52.0' +__version__ = '1.53.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 74726439ce8d51d11780cdd1eed22b46c7ebb0f7 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 13 Mar 2023 15:39:23 +0000 Subject: [PATCH 066/111] Release 1.54.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../datastore/datastore_service_client.py | 36 ++++--------------- 3 files changed, 13 insertions(+), 31 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 0091009..b9bfbe1 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -571,3 +571,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.54.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 983bbf9..b7a4ab4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.53.0' +__version__ = '1.54.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py index 0b45adc..5881f39 100644 --- a/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py +++ b/ask-sdk-model/ask_sdk_model/services/datastore/datastore_service_client.py @@ -73,13 +73,11 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N else: self._lwa_service_client = lwa_client - def commands_v1(self, authorization, commands_request, **kwargs): - # type: (str, CommandsRequest_4046908d, **Any) -> Union[ApiResponse, object, CommandsResponse_271f32fb, CommandsRequestError_c6945312] + def commands_v1(self, commands_request, **kwargs): + # type: (CommandsRequest_4046908d, **Any) -> Union[ApiResponse, object, CommandsResponse_271f32fb, CommandsRequestError_c6945312] """ Send DataStore commands to Alexa device. - :param authorization: (required) - :type authorization: str :param commands_request: (required) :type commands_request: ask_sdk_model.services.datastore.v1.commands_request.CommandsRequest :param full_response: Boolean value to check if response should contain headers and status code information. @@ -92,10 +90,6 @@ def commands_v1(self, authorization, commands_request, **kwargs): for key, val in six.iteritems(params['kwargs']): params[key] = val del params['kwargs'] - # verify the required parameter 'authorization' is set - if ('authorization' not in params) or (params['authorization'] is None): - raise ValueError( - "Missing the required parameter `authorization` when calling `" + operation_name + "`") # verify the required parameter 'commands_request' is set if ('commands_request' not in params) or (params['commands_request'] is None): raise ValueError( @@ -109,8 +103,6 @@ def commands_v1(self, authorization, commands_request, **kwargs): query_params = [] # type: List header_params = [] # type: List - if 'authorization' in params: - header_params.append(('Authorization', params['authorization'])) body_params = None if 'commands_request' in params: @@ -153,13 +145,11 @@ def commands_v1(self, authorization, commands_request, **kwargs): return api_response.body - def cancel_commands_v1(self, authorization, queued_result_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, CancelCommandsRequestError_26f4d59f] + def cancel_commands_v1(self, queued_result_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, object, CancelCommandsRequestError_26f4d59f] """ Cancel pending DataStore commands. - :param authorization: (required) - :type authorization: str :param queued_result_id: (required) A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). :type queued_result_id: str :param full_response: Boolean value to check if response should contain headers and status code information. @@ -172,10 +162,6 @@ def cancel_commands_v1(self, authorization, queued_result_id, **kwargs): for key, val in six.iteritems(params['kwargs']): params[key] = val del params['kwargs'] - # verify the required parameter 'authorization' is set - if ('authorization' not in params) or (params['authorization'] is None): - raise ValueError( - "Missing the required parameter `authorization` when calling `" + operation_name + "`") # verify the required parameter 'queued_result_id' is set if ('queued_result_id' not in params) or (params['queued_result_id'] is None): raise ValueError( @@ -191,8 +177,6 @@ def cancel_commands_v1(self, authorization, queued_result_id, **kwargs): query_params = [] # type: List header_params = [] # type: List - if 'authorization' in params: - header_params.append(('Authorization', params['authorization'])) body_params = None header_params.append(('Content-type', 'application/json')) @@ -234,13 +218,11 @@ def cancel_commands_v1(self, authorization, queued_result_id, **kwargs): return None - def queued_result_v1(self, authorization, queued_result_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, QueuedResultResponse_806720cc, QueuedResultRequestError_fc34ffb1] + def queued_result_v1(self, queued_result_id, **kwargs): + # type: (str, **Any) -> Union[ApiResponse, object, QueuedResultResponse_806720cc, QueuedResultRequestError_fc34ffb1] """ Query statuses of deliveries to offline devices returned by commands API. - :param authorization: (required) - :type authorization: str :param queued_result_id: (required) A unique identifier to query result for queued delivery for offline devices (DEVICE_UNAVAILABLE). :type queued_result_id: str :param max_results: Maximum number of CommandsDispatchResult items to return. @@ -257,10 +239,6 @@ def queued_result_v1(self, authorization, queued_result_id, **kwargs): for key, val in six.iteritems(params['kwargs']): params[key] = val del params['kwargs'] - # verify the required parameter 'authorization' is set - if ('authorization' not in params) or (params['authorization'] is None): - raise ValueError( - "Missing the required parameter `authorization` when calling `" + operation_name + "`") # verify the required parameter 'queued_result_id' is set if ('queued_result_id' not in params) or (params['queued_result_id'] is None): raise ValueError( @@ -280,8 +258,6 @@ def queued_result_v1(self, authorization, queued_result_id, **kwargs): query_params.append(('nextToken', params['next_token'])) header_params = [] # type: List - if 'authorization' in params: - header_params.append(('Authorization', params['authorization'])) body_params = None header_params.append(('Content-type', 'application/json')) From a534133932ccebcd56c1c85e79d81259091c01d6 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 20 Mar 2023 15:39:33 +0000 Subject: [PATCH 067/111] Release 1.55.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index b9bfbe1..8c4acac 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -577,3 +577,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.55.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index b7a4ab4..d74bbf7 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.54.0' +__version__ = '1.55.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 581d4c6cb2376ec10a2b557cadaee1c6a0b7375e Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 23 Mar 2023 15:39:47 +0000 Subject: [PATCH 068/111] Release 1.56.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 8c4acac..94fe65e 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -583,3 +583,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.56.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index d74bbf7..259f615 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.55.0' +__version__ = '1.56.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 5e9d6bff6432cc83f315e43e4ea1f9a890ecb117 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 28 Mar 2023 15:39:51 +0000 Subject: [PATCH 069/111] Release 1.57.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 94fe65e..3f0bc82 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -589,3 +589,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.57.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 259f615..0fe60ee 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.56.0' +__version__ = '1.57.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 36e4d1ed79ebbc4ababa9e07cc78c228721bdc28 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 30 Mar 2023 15:39:16 +0000 Subject: [PATCH 070/111] Release 1.58.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 3f0bc82..5da8d0b 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -595,3 +595,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.58.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 0fe60ee..b7925c4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.57.0' +__version__ = '1.58.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From fb429f3bac9a4ca8a7640ff1948845bc623e4362 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Tue, 4 Apr 2023 15:39:28 +0000 Subject: [PATCH 071/111] Release 1.59.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 5da8d0b..c7f1f07 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -601,3 +601,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.59.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index b7925c4..3402903 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.58.0' +__version__ = '1.59.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 7b63a5b4e799c169c6b60d8548a1143e4da15c18 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 10 Apr 2023 15:39:21 +0000 Subject: [PATCH 072/111] Release 1.60.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index c7f1f07..8e73cbf 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -607,3 +607,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.60.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3402903..04938e7 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.59.0' +__version__ = '1.60.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 0f555d4f056769256ce68f9119b780240df5f995 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 17 Apr 2023 15:39:22 +0000 Subject: [PATCH 073/111] Release 1.61.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 8e73cbf..53b2f83 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -613,3 +613,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.61.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 04938e7..bcda958 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.60.0' +__version__ = '1.61.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 5dd82cb517445ee7e11434f78f4760adfd81c244 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 18 Apr 2023 15:39:18 +0000 Subject: [PATCH 074/111] Release 1.62.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 53b2f83..4098dc4 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -619,3 +619,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.62.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index bcda958..327b8e4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.61.0' +__version__ = '1.62.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From f93d8a023f7175baf841cb0ea410df8f2ad7b3f5 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 24 Apr 2023 15:39:27 +0000 Subject: [PATCH 075/111] Release 1.63.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/context.py | 18 ++- .../interfaces/alexa/datastore/__init__.py | 1 + .../interfaces/alexa/datastore/error.py | 115 ++++++++++++++ .../datastore/packagemanager/__init__.py | 13 ++ ...xa_data_store_package_manager_interface.py | 100 ++++++++++++ .../datastore/packagemanager/error_type.py | 65 ++++++++ .../packagemanager/installation_error.py | 146 ++++++++++++++++++ .../datastore/packagemanager/locations.py | 65 ++++++++ .../alexa/datastore/packagemanager/package.py | 108 +++++++++++++ .../datastore/packagemanager/package_error.py | 116 ++++++++++++++ .../packagemanager/package_install_usage.py | 116 ++++++++++++++ .../packagemanager/package_remove_usage.py | 116 ++++++++++++++ .../packagemanager/update_request.py | 145 +++++++++++++++++ .../packagemanager/usages_install_request.py | 123 +++++++++++++++ .../packagemanager/usages_installed.py | 132 ++++++++++++++++ .../packagemanager/usages_removed.py | 132 ++++++++++++++++ .../packagemanager/usages_removed_request.py | 123 +++++++++++++++ .../interfaces/alexa/presentation/__init__.py | 3 + .../apl_presentation_state_context.py | 112 ++++++++++++++ .../alexa/presentation/presentation_state.py | 109 +++++++++++++ .../presentation_state_context.py | 130 ++++++++++++++++ ask-sdk-model/ask_sdk_model/request.py | 12 ++ 24 files changed, 2002 insertions(+), 6 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/alexa_data_store_package_manager_interface.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/error_type.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/installation_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/locations.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_error.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_install_usage.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_remove_usage.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/update_request.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_install_request.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_installed.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed_request.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl_presentation_state_context.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state_context.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4098dc4..fad3d21 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -625,3 +625,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.63.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 327b8e4..f26893c 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.62.0' +__version__ = '1.63.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 1a0bd42..3714e79 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -24,13 +24,14 @@ from typing import Dict, List, Optional, Union, Any from datetime import datetime from ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state import RenderedDocumentState as RenderedDocumentState_4fad8b14 - from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState as ViewportState_a05eceb9 - from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState as TypedViewportState_c366f13e - from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451 from ask_sdk_model.interfaces.automotive.automotive_state import AutomotiveState as AutomotiveState_2b614eea from ask_sdk_model.interfaces.alexa.experimentation.experimentation_state import ExperimentationState as ExperimentationState_37bb7c62 from ask_sdk_model.interfaces.alexa.extension.extensions_state import ExtensionsState as ExtensionsState_f02207d3 from ask_sdk_model.interfaces.applink.app_link_state import AppLinkState as AppLinkState_370eda23 + from ask_sdk_model.interfaces.alexa.presentation.presentation_state import PresentationState as PresentationState_fe98e61a + from ask_sdk_model.interfaces.viewport.viewport_state import ViewportState as ViewportState_a05eceb9 + from ask_sdk_model.interfaces.viewport.typed_viewport_state import TypedViewportState as TypedViewportState_c366f13e + from ask_sdk_model.interfaces.audioplayer.audio_player_state import AudioPlayerState as AudioPlayerState_ac652451 from ask_sdk_model.interfaces.geolocation.geolocation_state import GeolocationState as GeolocationState_5225020d from ask_sdk_model.interfaces.system.system_state import SystemState as SystemState_22fcb230 from ask_sdk_model.interfaces.display.display_state import DisplayState as DisplayState_726e4959 @@ -42,6 +43,8 @@ class Context(object): :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. :type system: (optional) ask_sdk_model.interfaces.system.system_state.SystemState + :param alexa_presentation: Provides the current state for the Alexa.Presentation interface. + :type alexa_presentation: (optional) ask_sdk_model.interfaces.alexa.presentation.presentation_state.PresentationState :param alexa_presentation_apl: Provides the current state for the Alexa.Presentation.APL interface. :type alexa_presentation_apl: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState :param audio_player: Provides the current state for the AudioPlayer interface. @@ -68,6 +71,7 @@ class Context(object): """ deserialized_types = { 'system': 'ask_sdk_model.interfaces.system.system_state.SystemState', + 'alexa_presentation': 'ask_sdk_model.interfaces.alexa.presentation.presentation_state.PresentationState', 'alexa_presentation_apl': 'ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState', 'audio_player': 'ask_sdk_model.interfaces.audioplayer.audio_player_state.AudioPlayerState', 'automotive': 'ask_sdk_model.interfaces.automotive.automotive_state.AutomotiveState', @@ -83,6 +87,7 @@ class Context(object): attribute_map = { 'system': 'System', + 'alexa_presentation': 'Alexa.Presentation', 'alexa_presentation_apl': 'Alexa.Presentation.APL', 'audio_player': 'AudioPlayer', 'automotive': 'Automotive', @@ -97,12 +102,14 @@ class Context(object): } # type: Dict supports_multiple_types = False - def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, alexa_data_store_package_manager=None, app_link=None, experimentation=None): - # type: (Optional[SystemState_22fcb230], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[PackageManagerState_9a27c921], Optional[AppLinkState_370eda23], Optional[ExperimentationState_37bb7c62]) -> None + def __init__(self, system=None, alexa_presentation=None, alexa_presentation_apl=None, audio_player=None, automotive=None, display=None, geolocation=None, viewport=None, viewports=None, extensions=None, alexa_data_store_package_manager=None, app_link=None, experimentation=None): + # type: (Optional[SystemState_22fcb230], Optional[PresentationState_fe98e61a], Optional[RenderedDocumentState_4fad8b14], Optional[AudioPlayerState_ac652451], Optional[AutomotiveState_2b614eea], Optional[DisplayState_726e4959], Optional[GeolocationState_5225020d], Optional[ViewportState_a05eceb9], Optional[List[TypedViewportState_c366f13e]], Optional[ExtensionsState_f02207d3], Optional[PackageManagerState_9a27c921], Optional[AppLinkState_370eda23], Optional[ExperimentationState_37bb7c62]) -> None """ :param system: Provides information about the current state of the Alexa service and the device interacting with your skill. :type system: (optional) ask_sdk_model.interfaces.system.system_state.SystemState + :param alexa_presentation: Provides the current state for the Alexa.Presentation interface. + :type alexa_presentation: (optional) ask_sdk_model.interfaces.alexa.presentation.presentation_state.PresentationState :param alexa_presentation_apl: Provides the current state for the Alexa.Presentation.APL interface. :type alexa_presentation_apl: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState :param audio_player: Provides the current state for the AudioPlayer interface. @@ -129,6 +136,7 @@ def __init__(self, system=None, alexa_presentation_apl=None, audio_player=None, self.__discriminator_value = None # type: str self.system = system + self.alexa_presentation = alexa_presentation self.alexa_presentation_apl = alexa_presentation_apl self.audio_player = audio_player self.automotive = automotive diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py index 9a1700e..5393134 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py @@ -21,4 +21,5 @@ from .commands_error import CommandsError from .data_store_internal_error import DataStoreInternalError from .device_unavailable_error import DeviceUnavailableError +from .error import Error from .data_store_error import DataStoreError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/error.py new file mode 100644 index 0000000..43d563a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/error.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Error(object): + """ + Type of error. Modules can also use this event to report global error like permission denied. Supported values [STORAGE_LIMIT_EXCEEDED, PERMISSION_DENIED, VALIDATION_ERROR, DATASTORE_INTERNAL_ERROR] + + + :param object_type: Type of error. Modules can also use this event to report global error like permission denied + :type object_type: (optional) str + :param content: Opaque payload which will contain additional details about error. + :type content: (optional) object + + """ + deserialized_types = { + 'object_type': 'str', + 'content': 'object' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, content=None): + # type: (Optional[str], Optional[object]) -> None + """Type of error. Modules can also use this event to report global error like permission denied. Supported values [STORAGE_LIMIT_EXCEEDED, PERMISSION_DENIED, VALIDATION_ERROR, DATASTORE_INTERNAL_ERROR] + + :param object_type: Type of error. Modules can also use this event to report global error like permission denied + :type object_type: (optional) str + :param content: Opaque payload which will contain additional details about error. + :type content: (optional) object + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Error): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py index 41a07a7..b71c9b5 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py @@ -15,4 +15,17 @@ from __future__ import absolute_import from .package_state_information import PackageStateInformation +from .package_remove_usage import PackageRemoveUsage +from .usages_removed_request import UsagesRemovedRequest +from .locations import Locations +from .installation_error import InstallationError +from .usages_installed import UsagesInstalled +from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface +from .package_install_usage import PackageInstallUsage +from .usages_removed import UsagesRemoved +from .update_request import UpdateRequest +from .package_error import PackageError +from .package import Package from .package_manager_state import PackageManagerState +from .usages_install_request import UsagesInstallRequest +from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/alexa_data_store_package_manager_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/alexa_data_store_package_manager_interface.py new file mode 100644 index 0000000..ae40a02 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/alexa_data_store_package_manager_interface.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AlexaDataStorePackageManagerInterface(object): + """ + Interface using which skills communicate with DataStore Package Manager on the device. + + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """Interface using which skills communicate with DataStore Package Manager on the device. + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AlexaDataStorePackageManagerInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/error_type.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/error_type.py new file mode 100644 index 0000000..82a868f --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/error_type.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ErrorType(Enum): + """ + Type of package error. Allowed values are [INTERNAL_ERROR] + + + + Allowed enum values: [INTERNAL_ERROR] + """ + INTERNAL_ERROR = "INTERNAL_ERROR" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ErrorType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/installation_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/installation_error.py new file mode 100644 index 0000000..a518feb --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/installation_error.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_error import PackageError as PackageError_11bd3c82 + + +class InstallationError(Request): + """ + This event is sent by device DataStore Package Manager to let the skill developer know that there was a problem installing/updating the package. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param version: Current version of the package trying to be installed/updated on the device. + :type version: (optional) str + :param error: + :type error: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_error.PackageError + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'package_id': 'str', + 'version': 'str', + 'error': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_error.PackageError' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'package_id': 'packageId', + 'version': 'version', + 'error': 'error' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, package_id=None, version=None, error=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[str], Optional[PackageError_11bd3c82]) -> None + """This event is sent by device DataStore Package Manager to let the skill developer know that there was a problem installing/updating the package. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param version: Current version of the package trying to be installed/updated on the device. + :type version: (optional) str + :param error: + :type error: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_error.PackageError + """ + self.__discriminator_value = "Alexa.DataStore.PackageManager.InstallationError" # type: str + + self.object_type = self.__discriminator_value + super(InstallationError, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.package_id = package_id + self.version = version + self.error = error + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, InstallationError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/locations.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/locations.py new file mode 100644 index 0000000..dc12a14 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/locations.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Locations(Enum): + """ + Location where the package can be rendered on the device. + + + + Allowed enum values: [FAVORITE] + """ + FAVORITE = "FAVORITE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Locations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package.py new file mode 100644 index 0000000..4637c83 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class Package(object): + """ + Information of the package that is being installed on the device. + + + :param package_version: Version of a package manifest schema. Currently supported schema version is 1.0. + :type package_version: (optional) str + + """ + deserialized_types = { + 'package_version': 'str' + } # type: Dict + + attribute_map = { + 'package_version': 'packageVersion' + } # type: Dict + supports_multiple_types = False + + def __init__(self, package_version=None): + # type: (Optional[str]) -> None + """Information of the package that is being installed on the device. + + :param package_version: Version of a package manifest schema. Currently supported schema version is 1.0. + :type package_version: (optional) str + """ + self.__discriminator_value = None # type: str + + self.package_version = package_version + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Package): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_error.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_error.py new file mode 100644 index 0000000..e37e6c3 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_error.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.error_type import ErrorType as ErrorType_68078ba6 + + +class PackageError(object): + """ + Additional information about the package installation/update error. + + + :param object_type: + :type object_type: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.error_type.ErrorType + :param content: Opaque payload which will contain additional details about error. + :type content: (optional) object + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.error_type.ErrorType', + 'content': 'object' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'content': 'content' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, content=None): + # type: (Optional[ErrorType_68078ba6], Optional[object]) -> None + """Additional information about the package installation/update error. + + :param object_type: + :type object_type: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.error_type.ErrorType + :param content: Opaque payload which will contain additional details about error. + :type content: (optional) object + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.content = content + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PackageError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_install_usage.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_install_usage.py new file mode 100644 index 0000000..2c28109 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_install_usage.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations import Locations as Locations_7ffdf38d + + +class PackageInstallUsage(object): + """ + Places where the package is going to be used on the device. This object is passed as part of the InstallRequest to the skill. + + + :param location: + :type location: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations + :param instance_id: Identifier of the instance of the package. + :type instance_id: (optional) str + + """ + deserialized_types = { + 'location': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations', + 'instance_id': 'str' + } # type: Dict + + attribute_map = { + 'location': 'location', + 'instance_id': 'instanceId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, location=None, instance_id=None): + # type: (Optional[Locations_7ffdf38d], Optional[str]) -> None + """Places where the package is going to be used on the device. This object is passed as part of the InstallRequest to the skill. + + :param location: + :type location: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations + :param instance_id: Identifier of the instance of the package. + :type instance_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.location = location + self.instance_id = instance_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PackageInstallUsage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_remove_usage.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_remove_usage.py new file mode 100644 index 0000000..24b630c --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/package_remove_usage.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations import Locations as Locations_7ffdf38d + + +class PackageRemoveUsage(object): + """ + Places where the package is going to be not used anymore on the device. This object is passed as part of the PackageRemovedRequest to the skill. + + + :param location: + :type location: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations + :param instance_id: Identifier of the instance of the package. + :type instance_id: (optional) str + + """ + deserialized_types = { + 'location': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations', + 'instance_id': 'str' + } # type: Dict + + attribute_map = { + 'location': 'location', + 'instance_id': 'instanceId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, location=None, instance_id=None): + # type: (Optional[Locations_7ffdf38d], Optional[str]) -> None + """Places where the package is going to be not used anymore on the device. This object is passed as part of the PackageRemovedRequest to the skill. + + :param location: + :type location: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.locations.Locations + :param instance_id: Identifier of the instance of the package. + :type instance_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.location = location + self.instance_id = instance_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PackageRemoveUsage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/update_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/update_request.py new file mode 100644 index 0000000..92f9884 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/update_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class UpdateRequest(Request): + """ + This event is request sent by device DataStore Package Manager asking the skill developer them to update the version of the package on device. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param from_version: Current version of a package installed on the device. + :type from_version: (optional) str + :param to_version: Latest version of a package being installed on the device. + :type to_version: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'package_id': 'str', + 'from_version': 'str', + 'to_version': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'package_id': 'packageId', + 'from_version': 'fromVersion', + 'to_version': 'toVersion' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, package_id=None, from_version=None, to_version=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[str], Optional[str]) -> None + """This event is request sent by device DataStore Package Manager asking the skill developer them to update the version of the package on device. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param from_version: Current version of a package installed on the device. + :type from_version: (optional) str + :param to_version: Latest version of a package being installed on the device. + :type to_version: (optional) str + """ + self.__discriminator_value = "Alexa.DataStore.PackageManager.UpdateRequest" # type: str + + self.object_type = self.__discriminator_value + super(UpdateRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.package_id = package_id + self.from_version = from_version + self.to_version = to_version + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_install_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_install_request.py new file mode 100644 index 0000000..eb8299a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_install_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_install_usage import PackageInstallUsage as PackageInstallUsage_b05bea81 + + +class UsagesInstallRequest(object): + """ + Information about the package that is going to be installed on the device and also where its going to be used on the device. + + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param package_version: Version of a package being installed on the device. + :type package_version: (optional) str + :param usages: Areas where package is going to be used on the device. + :type usages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_install_usage.PackageInstallUsage] + + """ + deserialized_types = { + 'package_id': 'str', + 'package_version': 'str', + 'usages': 'list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_install_usage.PackageInstallUsage]' + } # type: Dict + + attribute_map = { + 'package_id': 'packageId', + 'package_version': 'packageVersion', + 'usages': 'usages' + } # type: Dict + supports_multiple_types = False + + def __init__(self, package_id=None, package_version=None, usages=None): + # type: (Optional[str], Optional[str], Optional[List[PackageInstallUsage_b05bea81]]) -> None + """Information about the package that is going to be installed on the device and also where its going to be used on the device. + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param package_version: Version of a package being installed on the device. + :type package_version: (optional) str + :param usages: Areas where package is going to be used on the device. + :type usages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_install_usage.PackageInstallUsage] + """ + self.__discriminator_value = None # type: str + + self.package_id = package_id + self.package_version = package_version + self.usages = usages + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UsagesInstallRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_installed.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_installed.py new file mode 100644 index 0000000..cc41c79 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_installed.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_install_request import UsagesInstallRequest as UsagesInstallRequest_32338955 + + +class UsagesInstalled(Request): + """ + This event is sent by device DataStore Package Manager to the skill developer to let them know about the usages of the packages being installed on the device. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param payload: + :type payload: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_install_request.UsagesInstallRequest + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'payload': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_install_request.UsagesInstallRequest' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'payload': 'payload' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, payload=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[UsagesInstallRequest_32338955]) -> None + """This event is sent by device DataStore Package Manager to the skill developer to let them know about the usages of the packages being installed on the device. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param payload: + :type payload: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_install_request.UsagesInstallRequest + """ + self.__discriminator_value = "Alexa.DataStore.PackageManager.UsagesInstalled" # type: str + + self.object_type = self.__discriminator_value + super(UsagesInstalled, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.payload = payload + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UsagesInstalled): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed.py new file mode 100644 index 0000000..a94cd1e --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed_request import UsagesRemovedRequest as UsagesRemovedRequest_8fb83e4b + + +class UsagesRemoved(Request): + """ + This event is sent by device DataStore Package Manager to let the skill developer know about the usages of packages removed from the device. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param payload: + :type payload: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed_request.UsagesRemovedRequest + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'payload': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed_request.UsagesRemovedRequest' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'payload': 'payload' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, payload=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[UsagesRemovedRequest_8fb83e4b]) -> None + """This event is sent by device DataStore Package Manager to let the skill developer know about the usages of packages removed from the device. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param payload: + :type payload: (optional) ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed_request.UsagesRemovedRequest + """ + self.__discriminator_value = "Alexa.DataStore.PackageManager.UsagesRemoved" # type: str + + self.object_type = self.__discriminator_value + super(UsagesRemoved, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.payload = payload + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UsagesRemoved): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed_request.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed_request.py new file mode 100644 index 0000000..4eebff3 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/usages_removed_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_remove_usage import PackageRemoveUsage as PackageRemoveUsage_81b685a5 + + +class UsagesRemovedRequest(object): + """ + Information about where the package has been removed and where its not being used anymore. + + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param package_version: Version of a package being removed from the device. + :type package_version: (optional) str + :param usages: Areas where package is going to be not used on the device. + :type usages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_remove_usage.PackageRemoveUsage] + + """ + deserialized_types = { + 'package_id': 'str', + 'package_version': 'str', + 'usages': 'list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_remove_usage.PackageRemoveUsage]' + } # type: Dict + + attribute_map = { + 'package_id': 'packageId', + 'package_version': 'packageVersion', + 'usages': 'usages' + } # type: Dict + supports_multiple_types = False + + def __init__(self, package_id=None, package_version=None, usages=None): + # type: (Optional[str], Optional[str], Optional[List[PackageRemoveUsage_81b685a5]]) -> None + """Information about where the package has been removed and where its not being used anymore. + + :param package_id: Unique package identifier for a client. + :type package_id: (optional) str + :param package_version: Version of a package being removed from the device. + :type package_version: (optional) str + :param usages: Areas where package is going to be not used on the device. + :type usages: (optional) list[ask_sdk_model.interfaces.alexa.datastore.packagemanager.package_remove_usage.PackageRemoveUsage] + """ + self.__discriminator_value = None # type: str + + self.package_id = package_id + self.package_version = package_version + self.usages = usages + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, UsagesRemovedRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py index 57220ec..fcd89a9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py @@ -14,3 +14,6 @@ # from __future__ import absolute_import +from .presentation_state_context import PresentationStateContext +from .apl_presentation_state_context import AplPresentationStateContext +from .presentation_state import PresentationState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl_presentation_state_context.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl_presentation_state_context.py new file mode 100644 index 0000000..c50f8f8 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl_presentation_state_context.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.interfaces.alexa.presentation.presentation_state_context import PresentationStateContext + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state import RenderedDocumentState as RenderedDocumentState_4fad8b14 + + +class AplPresentationStateContext(PresentationStateContext): + """ + + :param context: + :type context: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState + + """ + deserialized_types = { + 'object_type': 'str', + 'context': 'ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'context': 'context' + } # type: Dict + supports_multiple_types = False + + def __init__(self, context=None): + # type: (Optional[RenderedDocumentState_4fad8b14]) -> None + """ + + :param context: + :type context: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.rendered_document_state.RenderedDocumentState + """ + self.__discriminator_value = "Alexa.Presentation.APL" # type: str + + self.object_type = self.__discriminator_value + super(AplPresentationStateContext, self).__init__(object_type=self.__discriminator_value) + self.context = context + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AplPresentationStateContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state.py new file mode 100644 index 0000000..eff42d3 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.presentation.presentation_state_context import PresentationStateContext as PresentationStateContext_45e78c5 + + +class PresentationState(object): + """ + Provides context about presentations at the time of the request. + + + :param contexts: Includes all presentation contexts owned by the skill which were perceptible at the time of the request. + :type contexts: (optional) list[ask_sdk_model.interfaces.alexa.presentation.presentation_state_context.PresentationStateContext] + + """ + deserialized_types = { + 'contexts': 'list[ask_sdk_model.interfaces.alexa.presentation.presentation_state_context.PresentationStateContext]' + } # type: Dict + + attribute_map = { + 'contexts': 'contexts' + } # type: Dict + supports_multiple_types = False + + def __init__(self, contexts=None): + # type: (Optional[List[PresentationStateContext_45e78c5]]) -> None + """Provides context about presentations at the time of the request. + + :param contexts: Includes all presentation contexts owned by the skill which were perceptible at the time of the request. + :type contexts: (optional) list[ask_sdk_model.interfaces.alexa.presentation.presentation_state_context.PresentationStateContext] + """ + self.__discriminator_value = None # type: str + + self.contexts = contexts + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PresentationState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state_context.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state_context.py new file mode 100644 index 0000000..a0fb521 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/presentation_state_context.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from abc import ABCMeta, abstractmethod + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class PresentationStateContext(object): + """ + + :param object_type: Polymorphic type field which describes the presentation context object. + :type object_type: (optional) str + + .. note:: + + This is an abstract class. Use the following mapping, to figure out + the model class to be instantiated, that sets ``type`` variable. + + | Alexa.Presentation.APL: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl_presentation_state_context.AplPresentationStateContext` + + """ + deserialized_types = { + 'object_type': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type' + } # type: Dict + supports_multiple_types = False + + discriminator_value_class_map = { + 'Alexa.Presentation.APL': 'ask_sdk_model.interfaces.alexa.presentation.apl_presentation_state_context.AplPresentationStateContext' + } + + json_discriminator_key = "type" + + __metaclass__ = ABCMeta + + @abstractmethod + def __init__(self, object_type=None): + # type: (Optional[str]) -> None + """ + + :param object_type: Polymorphic type field which describes the presentation context object. + :type object_type: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + + @classmethod + def get_real_child_model(cls, data): + # type: (Dict[str, str]) -> Optional[str] + """Returns the real base class specified by the discriminator""" + discriminator_value = data[cls.json_discriminator_key] + return cls.discriminator_value_class_map.get(discriminator_value) + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, PresentationStateContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 00c6638..4d30470 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -45,6 +45,8 @@ class Request(object): This is an abstract class. Use the following mapping, to figure out the model class to be instantiated, that sets ``type`` variable. + | Alexa.DataStore.PackageManager.InstallationError: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.installation_error.InstallationError`, + | | AlexaSkillEvent.SkillEnabled: :py:class:`ask_sdk_model.events.skillevents.skill_enabled_request.SkillEnabledRequest`, | | AlexaHouseholdListEvent.ListUpdated: :py:class:`ask_sdk_model.services.list_management.list_updated_event_request.ListUpdatedEventRequest`, @@ -117,6 +119,8 @@ class Request(object): | | Reminders.ReminderUpdated: :py:class:`ask_sdk_model.services.reminder_management.reminder_updated_event_request.ReminderUpdatedEventRequest`, | + | Alexa.DataStore.PackageManager.UpdateRequest: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.update_request.UpdateRequest`, + | | Alexa.Presentation.APL.RuntimeError: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error_event.RuntimeErrorEvent`, | | Alexa.Presentation.HTML.RuntimeError: :py:class:`ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_request.RuntimeErrorRequest`, @@ -125,6 +129,8 @@ class Request(object): | | IntentRequest: :py:class:`ask_sdk_model.intent_request.IntentRequest`, | + | Alexa.DataStore.PackageManager.UsagesRemoved: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed.UsagesRemoved`, + | | Dialog.API.Invoked: :py:class:`ask_sdk_model.interfaces.conversations.api_invocation_request.APIInvocationRequest`, | | Reminders.ReminderStarted: :py:class:`ask_sdk_model.services.reminder_management.reminder_started_event_request.ReminderStartedEventRequest`, @@ -133,6 +139,8 @@ class Request(object): | | PlaybackController.PreviousCommandIssued: :py:class:`ask_sdk_model.interfaces.playbackcontroller.previous_command_issued_request.PreviousCommandIssuedRequest`, | + | Alexa.DataStore.PackageManager.UsagesInstalled: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_installed.UsagesInstalled`, + | | AlexaSkillEvent.SkillAccountLinked: :py:class:`ask_sdk_model.events.skillevents.account_linked_request.AccountLinkedRequest`, | | Messaging.MessageReceived: :py:class:`ask_sdk_model.interfaces.messaging.message_received_request.MessageReceivedRequest`, @@ -164,6 +172,7 @@ class Request(object): supports_multiple_types = False discriminator_value_class_map = { + 'Alexa.DataStore.PackageManager.InstallationError': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.installation_error.InstallationError', 'AlexaSkillEvent.SkillEnabled': 'ask_sdk_model.events.skillevents.skill_enabled_request.SkillEnabledRequest', 'AlexaHouseholdListEvent.ListUpdated': 'ask_sdk_model.services.list_management.list_updated_event_request.ListUpdatedEventRequest', 'Alexa.Presentation.APL.UserEvent': 'ask_sdk_model.interfaces.alexa.presentation.apl.user_event.UserEvent', @@ -200,14 +209,17 @@ class Request(object): 'Display.ElementSelected': 'ask_sdk_model.interfaces.display.element_selected_request.ElementSelectedRequest', 'AlexaSkillEvent.SkillPermissionChanged': 'ask_sdk_model.events.skillevents.permission_changed_request.PermissionChangedRequest', 'Reminders.ReminderUpdated': 'ask_sdk_model.services.reminder_management.reminder_updated_event_request.ReminderUpdatedEventRequest', + 'Alexa.DataStore.PackageManager.UpdateRequest': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.update_request.UpdateRequest', 'Alexa.Presentation.APL.RuntimeError': 'ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error_event.RuntimeErrorEvent', 'Alexa.Presentation.HTML.RuntimeError': 'ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_request.RuntimeErrorRequest', 'Dialog.InputRequest': 'ask_sdk_model.dialog.input_request.InputRequest', 'IntentRequest': 'ask_sdk_model.intent_request.IntentRequest', + 'Alexa.DataStore.PackageManager.UsagesRemoved': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed.UsagesRemoved', 'Dialog.API.Invoked': 'ask_sdk_model.interfaces.conversations.api_invocation_request.APIInvocationRequest', 'Reminders.ReminderStarted': 'ask_sdk_model.services.reminder_management.reminder_started_event_request.ReminderStartedEventRequest', 'AudioPlayer.PlaybackStopped': 'ask_sdk_model.interfaces.audioplayer.playback_stopped_request.PlaybackStoppedRequest', 'PlaybackController.PreviousCommandIssued': 'ask_sdk_model.interfaces.playbackcontroller.previous_command_issued_request.PreviousCommandIssuedRequest', + 'Alexa.DataStore.PackageManager.UsagesInstalled': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_installed.UsagesInstalled', 'AlexaSkillEvent.SkillAccountLinked': 'ask_sdk_model.events.skillevents.account_linked_request.AccountLinkedRequest', 'Messaging.MessageReceived': 'ask_sdk_model.interfaces.messaging.message_received_request.MessageReceivedRequest', 'Connections.Request': 'ask_sdk_model.interfaces.connections.connections_request.ConnectionsRequest', From fa963a937b83e648d6be7fff2f335d02cdb51099 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 1 May 2023 15:39:26 +0000 Subject: [PATCH 076/111] Release 1.64.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../events/skillevents/__init__.py | 3 + .../notification_subscription_changed_body.py | 107 ++++++++++++++ ...tification_subscription_changed_request.py | 132 ++++++++++++++++++ .../notification_subscription_event.py | 106 ++++++++++++++ ask-sdk-model/ask_sdk_model/request.py | 3 + 7 files changed, 358 insertions(+), 1 deletion(-) create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_body.py create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_request.py create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_event.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index fad3d21..9e16653 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -631,3 +631,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.64.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index f26893c..f5b3c81 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.63.0' +__version__ = '1.64.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index 37e4cfb..b6c30e6 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -17,8 +17,11 @@ from .permission import Permission from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody from .permission_accepted_request import PermissionAcceptedRequest +from .notification_subscription_event import NotificationSubscriptionEvent from .permission_changed_request import PermissionChangedRequest +from .notification_subscription_changed_body import NotificationSubscriptionChangedBody from .proactive_subscription_event import ProactiveSubscriptionEvent +from .notification_subscription_changed_request import NotificationSubscriptionChangedRequest from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest from .permission_body import PermissionBody from .skill_enabled_request import SkillEnabledRequest diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_body.py new file mode 100644 index 0000000..78f94f4 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_body.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.events.skillevents.notification_subscription_event import NotificationSubscriptionEvent as NotificationSubscriptionEvent_fb09fc87 + + +class NotificationSubscriptionChangedBody(object): + """ + + :param subscriptions: The list of to Topics that this user has subscribed/permitted to receive notification from your skill. If a customer unsubscribes for a Topic, this list will contain remaining Topics to which the customer is still subscribed to receive from your skill. If the list of subscriptions is empty, this customer has removed notification subscription for all Topics from your skill. + :type subscriptions: (optional) list[ask_sdk_model.events.skillevents.notification_subscription_event.NotificationSubscriptionEvent] + + """ + deserialized_types = { + 'subscriptions': 'list[ask_sdk_model.events.skillevents.notification_subscription_event.NotificationSubscriptionEvent]' + } # type: Dict + + attribute_map = { + 'subscriptions': 'subscriptions' + } # type: Dict + supports_multiple_types = False + + def __init__(self, subscriptions=None): + # type: (Optional[List[NotificationSubscriptionEvent_fb09fc87]]) -> None + """ + + :param subscriptions: The list of to Topics that this user has subscribed/permitted to receive notification from your skill. If a customer unsubscribes for a Topic, this list will contain remaining Topics to which the customer is still subscribed to receive from your skill. If the list of subscriptions is empty, this customer has removed notification subscription for all Topics from your skill. + :type subscriptions: (optional) list[ask_sdk_model.events.skillevents.notification_subscription_event.NotificationSubscriptionEvent] + """ + self.__discriminator_value = None # type: str + + self.subscriptions = subscriptions + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, NotificationSubscriptionChangedBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_request.py new file mode 100644 index 0000000..49ee161 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_changed_request.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.events.skillevents.notification_subscription_changed_body import NotificationSubscriptionChangedBody as NotificationSubscriptionChangedBody_40b159e4 + + +class NotificationSubscriptionChangedRequest(Request): + """ + When a customer changes his topic subscriptions Alexa will send an event back to the skill endpoint notifying the skill owner with the most recent state of the customer's subscriptions. This is to notify skill owners of customers' interest in receiving events from one or more schemas. This event indicates a customer permission to receive notifications from your skill and contains information for that user. You need this information to know the userId in order to send notifications to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest topic subscription state for a customer. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param body: + :type body: (optional) ask_sdk_model.events.skillevents.notification_subscription_changed_body.NotificationSubscriptionChangedBody + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'body': 'ask_sdk_model.events.skillevents.notification_subscription_changed_body.NotificationSubscriptionChangedBody' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'body': 'body' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, body=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[NotificationSubscriptionChangedBody_40b159e4]) -> None + """When a customer changes his topic subscriptions Alexa will send an event back to the skill endpoint notifying the skill owner with the most recent state of the customer's subscriptions. This is to notify skill owners of customers' interest in receiving events from one or more schemas. This event indicates a customer permission to receive notifications from your skill and contains information for that user. You need this information to know the userId in order to send notifications to individual users. Note that these events can arrive out of order, so ensure that your skill service uses the timestamp in the event to correctly record the latest topic subscription state for a customer. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param body: + :type body: (optional) ask_sdk_model.events.skillevents.notification_subscription_changed_body.NotificationSubscriptionChangedBody + """ + self.__discriminator_value = "AlexaSkillEvent.NotificationSubscriptionChanged" # type: str + + self.object_type = self.__discriminator_value + super(NotificationSubscriptionChangedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.body = body + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, NotificationSubscriptionChangedRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_event.py b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_event.py new file mode 100644 index 0000000..ff8b109 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/notification_subscription_event.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class NotificationSubscriptionEvent(object): + """ + + :param topic_id: The topicId will be one of the Topics specified in your Skill's manifest file. + :type topic_id: (optional) str + + """ + deserialized_types = { + 'topic_id': 'str' + } # type: Dict + + attribute_map = { + 'topic_id': 'topicId' + } # type: Dict + supports_multiple_types = False + + def __init__(self, topic_id=None): + # type: (Optional[str]) -> None + """ + + :param topic_id: The topicId will be one of the Topics specified in your Skill's manifest file. + :type topic_id: (optional) str + """ + self.__discriminator_value = None # type: str + + self.topic_id = topic_id + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, NotificationSubscriptionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 4d30470..0b12ab1 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -131,6 +131,8 @@ class Request(object): | | Alexa.DataStore.PackageManager.UsagesRemoved: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed.UsagesRemoved`, | + | AlexaSkillEvent.NotificationSubscriptionChanged: :py:class:`ask_sdk_model.events.skillevents.notification_subscription_changed_request.NotificationSubscriptionChangedRequest`, + | | Dialog.API.Invoked: :py:class:`ask_sdk_model.interfaces.conversations.api_invocation_request.APIInvocationRequest`, | | Reminders.ReminderStarted: :py:class:`ask_sdk_model.services.reminder_management.reminder_started_event_request.ReminderStartedEventRequest`, @@ -215,6 +217,7 @@ class Request(object): 'Dialog.InputRequest': 'ask_sdk_model.dialog.input_request.InputRequest', 'IntentRequest': 'ask_sdk_model.intent_request.IntentRequest', 'Alexa.DataStore.PackageManager.UsagesRemoved': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.usages_removed.UsagesRemoved', + 'AlexaSkillEvent.NotificationSubscriptionChanged': 'ask_sdk_model.events.skillevents.notification_subscription_changed_request.NotificationSubscriptionChangedRequest', 'Dialog.API.Invoked': 'ask_sdk_model.interfaces.conversations.api_invocation_request.APIInvocationRequest', 'Reminders.ReminderStarted': 'ask_sdk_model.services.reminder_management.reminder_started_event_request.ReminderStartedEventRequest', 'AudioPlayer.PlaybackStopped': 'ask_sdk_model.interfaces.audioplayer.playback_stopped_request.PlaybackStoppedRequest', From e3b2281f4524b5470b5754379c913299e40b580e Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 8 May 2023 15:39:26 +0000 Subject: [PATCH 077/111] Release 1.65.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 9e16653..d919448 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -637,3 +637,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.65.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index f5b3c81..5fbb9b4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.64.0' +__version__ = '1.65.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 222b0a2142057bc27c304b6fe074e393f18c4e3b Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 23 May 2023 15:39:29 +0000 Subject: [PATCH 078/111] Release 1.66.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index d919448..a1a66f0 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -643,3 +643,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.66.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 5fbb9b4..db9e75d 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.65.0' +__version__ = '1.66.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 38a5a4661c6636271f8ef6e4fda632db2f91b3ee Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Tue, 23 May 2023 16:09:09 +0000 Subject: [PATCH 079/111] Release 1.20.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 1053 ----------------- .../ask_smapi_model/v1/skill/asr/__init__.py | 16 - .../v1/skill/asr/annotation_sets/__init__.py | 29 - .../skill/asr/annotation_sets/annotation.py | 129 -- .../annotation_sets/annotation_set_items.py | 132 --- .../annotation_set_metadata.py | 127 -- .../annotation_with_audio_asset.py | 135 --- .../skill/asr/annotation_sets/audio_asset.py | 115 -- ...reate_asr_annotation_set_request_object.py | 106 -- .../create_asr_annotation_set_response.py | 106 -- ...asr_annotation_set_annotations_response.py | 117 -- ...asr_annotation_sets_properties_response.py | 125 -- .../list_asr_annotation_sets_response.py | 115 -- .../asr/annotation_sets/pagination_context.py | 108 -- .../v1/skill/asr/annotation_sets/py.typed | 0 ...ate_asr_annotation_set_contents_payload.py | 109 -- .../v1/skill/asr/evaluations/__init__.py | 35 - .../v1/skill/asr/evaluations/annotation.py | 127 -- .../annotation_with_audio_asset.py | 135 --- .../v1/skill/asr/evaluations/audio_asset.py | 115 -- .../v1/skill/asr/evaluations/error_object.py | 115 -- .../skill/asr/evaluations/evaluation_items.py | 154 --- .../asr/evaluations/evaluation_metadata.py | 154 --- .../evaluations/evaluation_metadata_result.py | 117 -- .../asr/evaluations/evaluation_result.py | 133 --- .../evaluations/evaluation_result_status.py | 66 -- .../asr/evaluations/evaluation_status.py | 67 -- ...t_asr_evaluation_status_response_object.py | 147 --- .../get_asr_evaluations_results_response.py | 117 -- .../list_asr_evaluations_response.py | 117 -- .../v1/skill/asr/evaluations/metrics.py | 106 -- .../asr/evaluations/pagination_context.py | 108 -- .../post_asr_evaluations_request_object.py | 114 -- .../v1/skill/asr/evaluations/py.typed | 0 .../v1/skill/asr/evaluations/skill.py | 114 -- .../ask_smapi_model/v1/skill/asr/py.typed | 0 .../v1/skill/manifest/__init__.py | 3 + ..._package_manager_implemented_interface.py} | 23 +- ...a_data_store_package_manager_interface.py} | 34 +- .../manifest/custom/suppressed_interface.py | 3 +- .../data_store_package.py} | 12 +- .../v1/skill/manifest/interface.py | 3 + .../v1/skill/manifest/interface_type.py | 4 +- .../v1/skill/manifest/permission_name.py | 3 +- 46 files changed, 59 insertions(+), 4597 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/__init__.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/py.typed delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/py.typed delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/asr/py.typed rename ask-smapi-model/ask_smapi_model/v1/skill/{asr/annotation_sets/update_asr_annotation_set_properties_request_object.py => manifest/alexa_data_store_package_manager_implemented_interface.py} (74%) rename ask-smapi-model/ask_smapi_model/v1/skill/{asr/evaluations/evaluation_result_output.py => manifest/alexa_data_store_package_manager_interface.py} (66%) rename ask-smapi-model/ask_smapi_model/v1/skill/{asr/evaluations/post_asr_evaluations_response_object.py => manifest/data_store_package.py} (84%) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 2e233e9..452d98a 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -332,3 +332,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.20.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 32a7b5d..efd31b3 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.19.0' +__version__ = '1.20.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index f9fa7de..627e5a5 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -34,16 +34,13 @@ from datetime import datetime from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfo as SubscriptionInfo_917bdab3 from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponse as ListSubscribersResponse_d1d01857 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response import CreateAsrAnnotationSetResponse as CreateAsrAnnotationSetResponse_f4ef9811 from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as GetConflictsResponse_502eb394 - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject as UpdateAsrAnnotationSetPropertiesRequestObject_946da673 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as HostedSkillRepositoryCredentialsList_d39d5fdf from ask_smapi_model.v1.skill.experiment.update_exposure_request import UpdateExposureRequest as UpdateExposureRequest_ce52ce53 from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as CloneLocaleStatusResponse_8b6e06ed from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_status import CatalogStatus as CatalogStatus_c70ba222 from ask_smapi_model.v1.skill.invocations.invoke_skill_request import InvokeSkillRequest as InvokeSkillRequest_8cf8aff9 from ask_smapi_model.v1.skill.invocations.invoke_skill_response import InvokeSkillResponse as InvokeSkillResponse_6f32f451 - from ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject as CreateAsrAnnotationSetRequestObject_c8c6238c from ask_smapi_model.v1.skill.list_skill_versions_response import ListSkillVersionsResponse as ListSkillVersionsResponse_7522147d from ask_smapi_model.v1.skill.validations.validations_api_response import ValidationsApiResponse as ValidationsApiResponse_aa0c51ca from ask_smapi_model.v1.skill.publication.skill_publication_response import SkillPublicationResponse as SkillPublicationResponse_8da9d720 @@ -63,8 +60,6 @@ from ask_smapi_model.v1.skill.skill_credentials import SkillCredentials as SkillCredentials_a0f29ab1 from ask_smapi_model.v1.catalog.create_content_upload_url_response import CreateContentUploadUrlResponse as CreateContentUploadUrlResponse_4a18d03c from ask_smapi_model.v1.skill.interaction_model.catalog.catalog_response import CatalogResponse as CatalogResponse_2f6fe800 - from ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response import ListASRAnnotationSetsResponse as ListASRAnnotationSetsResponse_a9a02e93 - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject as PostAsrEvaluationsResponseObject_1e0137c3 from ask_smapi_model.v1.skill.history.intent_confidence_bin import IntentConfidenceBin as IntentConfidenceBin_4f7a62c8 from ask_smapi_model.v1.skill.publication.publish_skill_request import PublishSkillRequest as PublishSkillRequest_efbc45c8 from ask_smapi_model.v0.catalog.list_catalogs_response import ListCatalogsResponse as ListCatalogsResponse_3dd2a983 @@ -86,7 +81,6 @@ from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as SSLCertificatePayload_97891902 from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequest as WithdrawRequest_d09390b7 from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponse as AssociatedSkillResponse_12067635 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject as GetAsrEvaluationStatusResponseObject_f8b7f006 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_permission import HostedSkillPermission as HostedSkillPermission_eb71ebfb from ask_smapi_model.v1.skill.interaction_model.catalog.definition_data import DefinitionData as DefinitionData_ccdbb3c2 from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequest as UpdateRequest_43de537 @@ -95,7 +89,6 @@ from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse as GetConflictDetectionJobStatusResponse_9e0e2cf1 from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponse as ListNLUEvaluationsResponse_7ef8d08f from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequest as CreateInSkillProductRequest_816cf44b - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionData as SlotTypeVersionData_1f3ee474 from ask_smapi_model.v1.skill.interaction_model.interaction_model_data import InteractionModelData as InteractionModelData_487fc9ea from ask_smapi_model.v1.skill.resource_schema.get_resource_schema_response import GetResourceSchemaResponse as GetResourceSchemaResponse_9df87651 @@ -103,7 +96,6 @@ from ask_smapi_model.v1.vendor_management.vendors import Vendors as Vendors_f5f1b90b from ask_smapi_model.v1.skill.beta_test.testers.list_testers_response import ListTestersResponse as ListTestersResponse_991ec8e9 from ask_smapi_model.v1.skill.interaction_model.version.version_data import VersionData as VersionData_af79e8d3 - from ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse as GetAsrEvaluationsResultsResponse_4f62e093 from ask_smapi_model.v1.skill.beta_test.testers.testers_list import TestersList as TestersList_f8c0feda from ask_smapi_model.v1.skill.evaluations.profile_nlu_response import ProfileNluResponse as ProfileNluResponse_d24b74c1 from ask_smapi_model.v1.smart_home_evaluation.get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse as GetSHCapabilityEvaluationResponse_d484531f @@ -126,16 +118,13 @@ from ask_smapi_model.v1.isp.update_in_skill_product_request import UpdateInSkillProductRequest as UpdateInSkillProductRequest_ee975cf1 from ask_smapi_model.v1.skill.interaction_model.version.list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse as ListCatalogEntityVersionsResponse_aa31060e from ask_smapi_model.v0.catalog.upload.get_content_upload_response import GetContentUploadResponse as GetContentUploadResponse_c8068011 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse as GetASRAnnotationSetsPropertiesResponse_1512206 from ask_smapi_model.v1.smart_home_evaluation.evaluate_sh_capability_response import EvaluateSHCapabilityResponse as EvaluateSHCapabilityResponse_38ae7f22 from ask_smapi_model.v1.catalog.upload.get_content_upload_response import GetContentUploadResponse as GetContentUploadResponse_b9580f92 - from ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse as GetAsrAnnotationSetAnnotationsResponse_e3efbdea from ask_smapi_model.v1.skill.simulations.simulations_api_response import SimulationsApiResponse as SimulationsApiResponse_328955bc from ask_smapi_model.v1.skill.clone_locale_request import CloneLocaleRequest as CloneLocaleRequest_2e00cdf4 from ask_smapi_model.v1.skill.metrics.get_metric_data_response import GetMetricDataResponse as GetMetricDataResponse_722e44c4 from ask_smapi_model.v1.skill.interaction_model.model_type.slot_type_status import SlotTypeStatus as SlotTypeStatus_a293ebfc from ask_smapi_model.v1.skill.interaction_model.type_version.version_data import VersionData as VersionData_faa770c8 - from ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response import ListAsrEvaluationsResponse as ListAsrEvaluationsResponse_ef8cd586 from ask_smapi_model.v1.skill.experiment.update_experiment_request import UpdateExperimentRequest as UpdateExperimentRequest_d8449813 from ask_smapi_model.v1.isp.product_response import ProductResponse as ProductResponse_b388eec4 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest as HostedSkillRepositoryCredentialsRequest_79a1c791 @@ -164,7 +153,6 @@ from ask_smapi_model.v1.skill.experiment.get_experiment_state_response import GetExperimentStateResponse as GetExperimentStateResponse_5152b250 from ask_smapi_model.v1.skill.interaction_model.jobs.update_job_status_request import UpdateJobStatusRequest as UpdateJobStatusRequest_f2d8379d from ask_smapi_model.v1.skill.account_linking.account_linking_request import AccountLinkingRequest as AccountLinkingRequest_cac174e - from ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload as UpdateAsrAnnotationSetContentsPayload_df3c6c8c from ask_smapi_model.v1.skill.beta_test.beta_test import BetaTest as BetaTest_e826b162 from ask_smapi_model.v1.catalog.create_content_upload_url_request import CreateContentUploadUrlRequest as CreateContentUploadUrlRequest_4999fa1c from ask_smapi_model.v1.skill.skill_status import SkillStatus as SkillStatus_4fdd647b @@ -5863,1047 +5851,6 @@ def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_ return api_response.body - def get_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, accept, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetAsrAnnotationSetAnnotationsResponse_e3efbdea, BadRequestError_f854b05] - """ - Download the annotation set contents. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param annotation_set_id: (required) Identifier of the ASR annotation set. - :type annotation_set_id: str - :param accept: (required) - `application/json`: indicate to download annotation set contents in JSON format - `text/csv`: indicate to download annotation set contents in CSV format - :type accept: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. Defaults to 1000. If more results are present, the response will contain a paginationContext. - :type max_results: float - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, GetAsrAnnotationSetAnnotationsResponse_e3efbdea, BadRequestError_f854b05] - """ - operation_name = "get_annotations_for_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'annotation_set_id' is set - if ('annotation_set_id' not in params) or (params['annotation_set_id'] is None): - raise ValueError( - "Missing the required parameter `annotation_set_id` when calling `" + operation_name + "`") - # verify the required parameter 'accept' is set - if ('accept' not in params) or (params['accept'] is None): - raise ValueError( - "Missing the required parameter `accept` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}/annotations' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'annotation_set_id' in params: - path_params['annotationSetId'] = params['annotation_set_id'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - - header_params = [] # type: List - if 'accept' in params: - header_params.append(('Accept', params['accept'])) - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response.GetAsrAnnotationSetAnnotationsResponse", status_code=200, message="The annotation set contents payload in specified format. This API also supports pagination for annotation set contents requested in `application/json` content type. Paginaiton for requested content type `text/csv` is not supported. In this case, the nextToken and maxResults query parameters would be ignored even if they are specified as query parameters. ")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_set_annotations_response.GetAsrAnnotationSetAnnotationsResponse") - - if full_response: - return api_response - return api_response.body - - - def set_annotations_for_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_contents_request, **kwargs): - # type: (str, str, UpdateAsrAnnotationSetContentsPayload_df3c6c8c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - Update the annotations in the annotation set - API that updates the annotaions in the annotation set - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param annotation_set_id: (required) Identifier of the ASR annotation set. - :type annotation_set_id: str - :param update_asr_annotation_set_contents_request: (required) Payload containing annotation set contents. Two formats are accepted here: - `application/json`: Annotation set payload in JSON format. - `text/csv`: Annotation set payload in CSV format. Note that for CSV format, the first row should describe the column attributes. Columns should be delimited by comma. The subsequent rows should describe annotation data and each annotation attributes has to follow the strict ordering defined in the first row. Each annotation fields should be delimited by comma. - :type update_asr_annotation_set_contents_request: ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_contents_payload.UpdateAsrAnnotationSetContentsPayload - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "set_annotations_for_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'annotation_set_id' is set - if ('annotation_set_id' not in params) or (params['annotation_set_id'] is None): - raise ValueError( - "Missing the required parameter `annotation_set_id` when calling `" + operation_name + "`") - # verify the required parameter 'update_asr_annotation_set_contents_request' is set - if ('update_asr_annotation_set_contents_request' not in params) or (params['update_asr_annotation_set_contents_request'] is None): - raise ValueError( - "Missing the required parameter `update_asr_annotation_set_contents_request` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}/annotations' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'annotation_set_id' in params: - path_params['annotationSetId'] = params['annotation_set_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - if 'update_asr_annotation_set_contents_request' in params: - body_params = params['update_asr_annotation_set_contents_request'] - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="ASR annotation set contents have been updated successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="PUT", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - - def delete_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - Delete the ASR annotation set - API which deletes the ASR annotation set. Developers cannot get/list the deleted annotation set. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param annotation_set_id: (required) Identifier of the ASR annotation set. - :type annotation_set_id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "delete_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'annotation_set_id' is set - if ('annotation_set_id' not in params) or (params['annotation_set_id'] is None): - raise ValueError( - "Missing the required parameter `annotation_set_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'annotation_set_id' in params: - path_params['annotationSetId'] = params['annotation_set_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="ASR annotation set exists and is deleted successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="DELETE", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - - def get_asr_annotation_set_v1(self, skill_id, annotation_set_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetASRAnnotationSetsPropertiesResponse_1512206, BadRequestError_f854b05] - """ - Get the metadata of an ASR annotation set - Return the metadata for an ASR annotation set. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param annotation_set_id: (required) Identifier of the ASR annotation set. - :type annotation_set_id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, GetASRAnnotationSetsPropertiesResponse_1512206, BadRequestError_f854b05] - """ - operation_name = "get_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'annotation_set_id' is set - if ('annotation_set_id' not in params) or (params['annotation_set_id'] is None): - raise ValueError( - "Missing the required parameter `annotation_set_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'annotation_set_id' in params: - path_params['annotationSetId'] = params['annotation_set_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response.GetASRAnnotationSetsPropertiesResponse", status_code=200, message="The ASR annotation set exists.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.annotation_sets.get_asr_annotation_sets_properties_response.GetASRAnnotationSetsPropertiesResponse") - - if full_response: - return api_response - return api_response.body - - - def set_asr_annotation_set_v1(self, skill_id, annotation_set_id, update_asr_annotation_set_properties_request_v1, **kwargs): - # type: (str, str, UpdateAsrAnnotationSetPropertiesRequestObject_946da673, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - update the ASR annotation set properties. - API which updates the ASR annotation set properties. Currently, the only data can be updated is annotation set name. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param annotation_set_id: (required) Identifier of the ASR annotation set. - :type annotation_set_id: str - :param update_asr_annotation_set_properties_request_v1: (required) Payload sent to the update ASR annotation set properties API. - :type update_asr_annotation_set_properties_request_v1: ask_smapi_model.v1.skill.asr.annotation_sets.update_asr_annotation_set_properties_request_object.UpdateAsrAnnotationSetPropertiesRequestObject - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "set_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'annotation_set_id' is set - if ('annotation_set_id' not in params) or (params['annotation_set_id'] is None): - raise ValueError( - "Missing the required parameter `annotation_set_id` when calling `" + operation_name + "`") - # verify the required parameter 'update_asr_annotation_set_properties_request_v1' is set - if ('update_asr_annotation_set_properties_request_v1' not in params) or (params['update_asr_annotation_set_properties_request_v1'] is None): - raise ValueError( - "Missing the required parameter `update_asr_annotation_set_properties_request_v1` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'annotation_set_id' in params: - path_params['annotationSetId'] = params['annotation_set_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - if 'update_asr_annotation_set_properties_request_v1' in params: - body_params = params['update_asr_annotation_set_properties_request_v1'] - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="ASR annotation set exists and properties are updated successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="PUT", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - - def list_asr_annotation_sets_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListASRAnnotationSetsResponse_a9a02e93] - """ - List ASR annotation sets metadata for a given skill. - API which requests all the ASR annotation sets for a skill. Returns the annotation set id and properties for each ASR annotation set. Supports paging of results. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. Defaults to 1000. If more results are present, the response will contain a paginationContext. - :type max_results: float - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListASRAnnotationSetsResponse_a9a02e93] - """ - operation_name = "list_asr_annotation_sets_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response.ListASRAnnotationSetsResponse", status_code=200, message="ASR annotation sets metadata are returned.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.annotation_sets.list_asr_annotation_sets_response.ListASRAnnotationSetsResponse") - - if full_response: - return api_response - return api_response.body - - - def create_asr_annotation_set_v1(self, skill_id, create_asr_annotation_set_request, **kwargs): - # type: (str, CreateAsrAnnotationSetRequestObject_c8c6238c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CreateAsrAnnotationSetResponse_f4ef9811, BadRequestError_f854b05] - """ - Create a new ASR annotation set for a skill - This is an API that creates a new ASR annotation set with a name and returns the annotationSetId which can later be used to retrieve or reference the annotation set - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param create_asr_annotation_set_request: (required) Payload sent to the create ASR annotation set API. - :type create_asr_annotation_set_request: ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_request_object.CreateAsrAnnotationSetRequestObject - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, CreateAsrAnnotationSetResponse_f4ef9811, BadRequestError_f854b05] - """ - operation_name = "create_asr_annotation_set_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'create_asr_annotation_set_request' is set - if ('create_asr_annotation_set_request' not in params) or (params['create_asr_annotation_set_request'] is None): - raise ValueError( - "Missing the required parameter `create_asr_annotation_set_request` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrAnnotationSets' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - if 'create_asr_annotation_set_request' in params: - body_params = params['create_asr_annotation_set_request'] - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response.CreateAsrAnnotationSetResponse", status_code=200, message="ASR annotation set created successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="POST", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.annotation_sets.create_asr_annotation_set_response.CreateAsrAnnotationSetResponse") - - if full_response: - return api_response - return api_response.body - - - def delete_asr_evaluation_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - Delete an evaluation. - API which enables the deletion of an evaluation. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param evaluation_id: (required) Identifier of the evaluation. - :type evaluation_id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "delete_asr_evaluation_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'evaluation_id' is set - if ('evaluation_id' not in params) or (params['evaluation_id'] is None): - raise ValueError( - "Missing the required parameter `evaluation_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrEvaluations/{evaluationId}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'evaluation_id' in params: - path_params['evaluationId'] = params['evaluation_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="ASR evaluation exists and is deleted successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="DELETE", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - - def list_asr_evaluations_results_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetAsrEvaluationsResultsResponse_4f62e093, BadRequestError_f854b05] - """ - List results for a completed Evaluation. - Paginated API which returns the test case results of an evaluation. This should be considered the \"expensive\" operation while GetAsrEvaluationsStatus is \"cheap\". - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param evaluation_id: (required) Identifier of the evaluation. - :type evaluation_id: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. Defaults to 1000. If more results are present, the response will contain a nextToken. - :type max_results: float - :param status: query parameter used to filter evaluation result status. * `PASSED` - filter evaluation result status of `PASSED` * `FAILED` - filter evaluation result status of `FAILED` - :type status: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, GetAsrEvaluationsResultsResponse_4f62e093, BadRequestError_f854b05] - """ - operation_name = "list_asr_evaluations_results_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'evaluation_id' is set - if ('evaluation_id' not in params) or (params['evaluation_id'] is None): - raise ValueError( - "Missing the required parameter `evaluation_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrEvaluations/{evaluationId}/results' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'evaluation_id' in params: - path_params['evaluationId'] = params['evaluation_id'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - if 'status' in params: - query_params.append(('status', params['status'])) - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response.GetAsrEvaluationsResultsResponse", status_code=200, message="Evaluation exists and its status is queryable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluations_results_response.GetAsrEvaluationsResultsResponse") - - if full_response: - return api_response - return api_response.body - - - def get_asr_evaluation_status_v1(self, skill_id, evaluation_id, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, GetAsrEvaluationStatusResponseObject_f8b7f006, Error_fbe913d9, BadRequestError_f854b05] - """ - Get high level information and status of a asr evaluation. - API which requests high level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns the request used to start the job, like the number of total evaluations, number of completed evaluations, and start time. This should be considered the \"cheap\" operation while GetAsrEvaluationsResults is \"expensive\". - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param evaluation_id: (required) Identifier of the evaluation. - :type evaluation_id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, GetAsrEvaluationStatusResponseObject_f8b7f006, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "get_asr_evaluation_status_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'evaluation_id' is set - if ('evaluation_id' not in params) or (params['evaluation_id'] is None): - raise ValueError( - "Missing the required parameter `evaluation_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrEvaluations/{evaluationId}/status' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'evaluation_id' in params: - path_params['evaluationId'] = params['evaluation_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object.GetAsrEvaluationStatusResponseObject", status_code=200, message="Evaluation exists and its status is queryable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.evaluations.get_asr_evaluation_status_response_object.GetAsrEvaluationStatusResponseObject") - - if full_response: - return api_response - return api_response.body - - - def list_asr_evaluations_v1(self, skill_id, **kwargs): - # type: (str, **Any) -> Union[ApiResponse, object, ListAsrEvaluationsResponse_ef8cd586, Error_fbe913d9, BadRequestError_f854b05] - """ - List asr evaluations run for a skill. - API that allows developers to get historical ASR evaluations they run before. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param locale: locale in bcp 47 format. Used to filter results with the specified locale. If omitted, the response would include all evaluations regardless of what locale was used in the evaluation - :type locale: str - :param stage: Query parameter used to filter evaluations with specified skill stage. * `development` - skill in `development` stage * `live` - skill in `live` stage - :type stage: str - :param annotation_set_id: filter to evaluations started using this annotationSetId - :type annotation_set_id: str - :param max_results: Sets the maximum number of results returned in the response body. Defaults to 1000. If more results are present, the response will contain a nextToken. - :type max_results: float - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, ListAsrEvaluationsResponse_ef8cd586, Error_fbe913d9, BadRequestError_f854b05] - """ - operation_name = "list_asr_evaluations_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrEvaluations' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'locale' in params: - query_params.append(('locale', params['locale'])) - if 'stage' in params: - query_params.append(('stage', params['stage'])) - if 'annotation_set_id' in params: - query_params.append(('annotationSetId', params['annotation_set_id'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response.ListAsrEvaluationsResponse", status_code=200, message="Evaluations are returned.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.evaluations.list_asr_evaluations_response.ListAsrEvaluationsResponse") - - if full_response: - return api_response - return api_response.body - - - def create_asr_evaluation_v1(self, post_asr_evaluations_request, skill_id, **kwargs): - # type: (PostAsrEvaluationsRequestObject_133223f3, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, PostAsrEvaluationsResponseObject_1e0137c3] - """ - Start an evaluation against the ASR model built by the skill's interaction model. - This is an asynchronous API that starts an evaluation against the ASR model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results upon completion. This operation is unified, meaning both internal and external skill developers may use it to evaluate ASR models. - - :param post_asr_evaluations_request: (required) Payload sent to trigger evaluation run. - :type post_asr_evaluations_request: ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param skill_id: (required) The skill ID. - :type skill_id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, PostAsrEvaluationsResponseObject_1e0137c3] - """ - operation_name = "create_asr_evaluation_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'post_asr_evaluations_request' is set - if ('post_asr_evaluations_request' not in params) or (params['post_asr_evaluations_request'] is None): - raise ValueError( - "Missing the required parameter `post_asr_evaluations_request` when calling `" + operation_name + "`") - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/asrEvaluations' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - if 'post_asr_evaluations_request' in params: - body_params = params['post_asr_evaluations_request'] - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object.PostAsrEvaluationsResponseObject", status_code=200, message="Evaluation has successfully begun.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=409, message="The request could not be completed due to a conflict with the current state of the target resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=503, message="Service Unavailable.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.error.Error", status_code=0, message="Internal Server Error.")) - - api_response = self.invoke( - method="POST", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_response_object.PostAsrEvaluationsResponseObject") - - if full_response: - return api_response - return api_response.body - - def end_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/__init__.py deleted file mode 100644 index c557047..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py deleted file mode 100644 index 9b975bd..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - -from .get_asr_annotation_set_annotations_response import GetAsrAnnotationSetAnnotationsResponse -from .create_asr_annotation_set_request_object import CreateAsrAnnotationSetRequestObject -from .create_asr_annotation_set_response import CreateAsrAnnotationSetResponse -from .annotation import Annotation -from .update_asr_annotation_set_properties_request_object import UpdateAsrAnnotationSetPropertiesRequestObject -from .update_asr_annotation_set_contents_payload import UpdateAsrAnnotationSetContentsPayload -from .annotation_with_audio_asset import AnnotationWithAudioAsset -from .list_asr_annotation_sets_response import ListASRAnnotationSetsResponse -from .get_asr_annotation_sets_properties_response import GetASRAnnotationSetsPropertiesResponse -from .annotation_set_metadata import AnnotationSetMetadata -from .annotation_set_items import AnnotationSetItems -from .audio_asset import AudioAsset -from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py deleted file mode 100644 index a9db246..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation.py +++ /dev/null @@ -1,129 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class Annotation(object): - """ - A single test case that describes the audio reference, expected transcriptions, test case weight etc. Each annotation object must have at least expectedTranscription or, uploadId and filePathInUpload in pair. In any case, filePathInUpload and uploadId must be present or missing in pair. - - - :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. - :type upload_id: (optional) str - :param file_path_in_upload: File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present. - :type file_path_in_upload: (optional) str - :param evaluation_weight: Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing. - :type expected_transcription: (optional) str - - """ - deserialized_types = { - 'upload_id': 'str', - 'file_path_in_upload': 'str', - 'evaluation_weight': 'float', - 'expected_transcription': 'str' - } # type: Dict - - attribute_map = { - 'upload_id': 'uploadId', - 'file_path_in_upload': 'filePathInUpload', - 'evaluation_weight': 'evaluationWeight', - 'expected_transcription': 'expectedTranscription' - } # type: Dict - supports_multiple_types = False - - def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str]) -> None - """A single test case that describes the audio reference, expected transcriptions, test case weight etc. Each annotation object must have at least expectedTranscription or, uploadId and filePathInUpload in pair. In any case, filePathInUpload and uploadId must be present or missing in pair. - - :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. - :type upload_id: (optional) str - :param file_path_in_upload: File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present. - :type file_path_in_upload: (optional) str - :param evaluation_weight: Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing. - :type expected_transcription: (optional) str - """ - self.__discriminator_value = None # type: str - - self.upload_id = upload_id - self.file_path_in_upload = file_path_in_upload - self.evaluation_weight = evaluation_weight - self.expected_transcription = expected_transcription - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, Annotation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py deleted file mode 100644 index 1e0beb1..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_items.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_metadata import AnnotationSetMetadata - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class AnnotationSetItems(AnnotationSetMetadata): - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - :param id: The Annotation set id - :type id: (optional) str - - """ - deserialized_types = { - 'name': 'str', - 'annotation_count': 'int', - 'last_updated_timestamp': 'datetime', - 'eligible_for_evaluation': 'bool', - 'id': 'str' - } # type: Dict - - attribute_map = { - 'name': 'name', - 'annotation_count': 'annotationCount', - 'last_updated_timestamp': 'lastUpdatedTimestamp', - 'eligible_for_evaluation': 'eligibleForEvaluation', - 'id': 'id' - } # type: Dict - supports_multiple_types = False - - def __init__(self, name=None, annotation_count=None, last_updated_timestamp=None, eligible_for_evaluation=None, id=None): - # type: (Optional[str], Optional[int], Optional[datetime], Optional[bool], Optional[str]) -> None - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - :param id: The Annotation set id - :type id: (optional) str - """ - self.__discriminator_value = None # type: str - - super(AnnotationSetItems, self).__init__(name=name, annotation_count=annotation_count, last_updated_timestamp=last_updated_timestamp, eligible_for_evaluation=eligible_for_evaluation) - self.id = id - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AnnotationSetItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py deleted file mode 100644 index df3bfe0..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_set_metadata.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class AnnotationSetMetadata(object): - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - - """ - deserialized_types = { - 'name': 'str', - 'annotation_count': 'int', - 'last_updated_timestamp': 'datetime', - 'eligible_for_evaluation': 'bool' - } # type: Dict - - attribute_map = { - 'name': 'name', - 'annotation_count': 'annotationCount', - 'last_updated_timestamp': 'lastUpdatedTimestamp', - 'eligible_for_evaluation': 'eligibleForEvaluation' - } # type: Dict - supports_multiple_types = False - - def __init__(self, name=None, annotation_count=None, last_updated_timestamp=None, eligible_for_evaluation=None): - # type: (Optional[str], Optional[int], Optional[datetime], Optional[bool]) -> None - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - """ - self.__discriminator_value = None # type: str - - self.name = name - self.annotation_count = annotation_count - self.last_updated_timestamp = last_updated_timestamp - self.eligible_for_evaluation = eligible_for_evaluation - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AnnotationSetMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py deleted file mode 100644 index fe562a3..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/annotation_with_audio_asset.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import Annotation - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset import AudioAsset as AudioAsset_24d67d02 - - -class AnnotationWithAudioAsset(Annotation): - """ - Object containing annotation content and audio file download information. - - - :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. - :type upload_id: (optional) str - :param file_path_in_upload: File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present. - :type file_path_in_upload: (optional) str - :param evaluation_weight: Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing. - :type expected_transcription: (optional) str - :param audio_asset: - :type audio_asset: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset.AudioAsset - - """ - deserialized_types = { - 'upload_id': 'str', - 'file_path_in_upload': 'str', - 'evaluation_weight': 'float', - 'expected_transcription': 'str', - 'audio_asset': 'ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset.AudioAsset' - } # type: Dict - - attribute_map = { - 'upload_id': 'uploadId', - 'file_path_in_upload': 'filePathInUpload', - 'evaluation_weight': 'evaluationWeight', - 'expected_transcription': 'expectedTranscription', - 'audio_asset': 'audioAsset' - } # type: Dict - supports_multiple_types = False - - def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAsset_24d67d02]) -> None - """Object containing annotation content and audio file download information. - - :param upload_id: Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present. - :type upload_id: (optional) str - :param file_path_in_upload: File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present. - :type file_path_in_upload: (optional) str - :param evaluation_weight: Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing. - :type expected_transcription: (optional) str - :param audio_asset: - :type audio_asset: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.audio_asset.AudioAsset - """ - self.__discriminator_value = None # type: str - - super(AnnotationWithAudioAsset, self).__init__(upload_id=upload_id, file_path_in_upload=file_path_in_upload, evaluation_weight=evaluation_weight, expected_transcription=expected_transcription) - self.audio_asset = audio_asset - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AnnotationWithAudioAsset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py deleted file mode 100644 index 3762c44..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/audio_asset.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class AudioAsset(object): - """ - Object containing information about downloading audio file - - - :param download_url: S3 presigned download url for downloading the audio file - :type download_url: (optional) str - :param expiry_time: Timestamp when the audio download url expire in ISO 8601 format - :type expiry_time: (optional) str - - """ - deserialized_types = { - 'download_url': 'str', - 'expiry_time': 'str' - } # type: Dict - - attribute_map = { - 'download_url': 'downloadUrl', - 'expiry_time': 'expiryTime' - } # type: Dict - supports_multiple_types = False - - def __init__(self, download_url=None, expiry_time=None): - # type: (Optional[str], Optional[str]) -> None - """Object containing information about downloading audio file - - :param download_url: S3 presigned download url for downloading the audio file - :type download_url: (optional) str - :param expiry_time: Timestamp when the audio download url expire in ISO 8601 format - :type expiry_time: (optional) str - """ - self.__discriminator_value = None # type: str - - self.download_url = download_url - self.expiry_time = expiry_time - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AudioAsset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py deleted file mode 100644 index 4c575af..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_request_object.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class CreateAsrAnnotationSetRequestObject(object): - """ - - :param name: The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted. - :type name: (optional) str - - """ - deserialized_types = { - 'name': 'str' - } # type: Dict - - attribute_map = { - 'name': 'name' - } # type: Dict - supports_multiple_types = False - - def __init__(self, name=None): - # type: (Optional[str]) -> None - """ - - :param name: The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted. - :type name: (optional) str - """ - self.__discriminator_value = None # type: str - - self.name = name - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, CreateAsrAnnotationSetRequestObject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py deleted file mode 100644 index f6773b6..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/create_asr_annotation_set_response.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class CreateAsrAnnotationSetResponse(object): - """ - - :param id: ID used to retrieve the ASR annotation set. - :type id: (optional) str - - """ - deserialized_types = { - 'id': 'str' - } # type: Dict - - attribute_map = { - 'id': 'id' - } # type: Dict - supports_multiple_types = False - - def __init__(self, id=None): - # type: (Optional[str]) -> None - """ - - :param id: ID used to retrieve the ASR annotation set. - :type id: (optional) str - """ - self.__discriminator_value = None # type: str - - self.id = id - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, CreateAsrAnnotationSetResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py deleted file mode 100644 index 1128f7b..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_set_annotations_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationWithAudioAsset_9d046a40 - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as PaginationContext_8c68d512 - - -class GetAsrAnnotationSetAnnotationsResponse(object): - """ - This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download. - - - :param annotations: - :type annotations: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset.AnnotationWithAudioAsset] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext - - """ - deserialized_types = { - 'annotations': 'list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset.AnnotationWithAudioAsset]', - 'pagination_context': 'ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext' - } # type: Dict - - attribute_map = { - 'annotations': 'annotations', - 'pagination_context': 'paginationContext' - } # type: Dict - supports_multiple_types = False - - def __init__(self, annotations=None, pagination_context=None): - # type: (Optional[List[AnnotationWithAudioAsset_9d046a40]], Optional[PaginationContext_8c68d512]) -> None - """This is the payload schema for annotation set contents. Note that when uploadId and filePathInUpload is present, and the payload content type is 'application/json', audioAsset is included in the returned annotation set content payload. For 'text/csv' annotation set content type, audioAssetDownloadUrl and audioAssetDownloadUrlExpiryTime are included in the csv headers for representing the audio download url and the expiry time of the presigned audio download. - - :param annotations: - :type annotations: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_with_audio_asset.AnnotationWithAudioAsset] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext - """ - self.__discriminator_value = None # type: str - - self.annotations = annotations - self.pagination_context = pagination_context - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetAsrAnnotationSetAnnotationsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py deleted file mode 100644 index 1398127..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/get_asr_annotation_sets_properties_response.py +++ /dev/null @@ -1,125 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_metadata import AnnotationSetMetadata - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class GetASRAnnotationSetsPropertiesResponse(AnnotationSetMetadata): - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - - """ - deserialized_types = { - 'name': 'str', - 'annotation_count': 'int', - 'last_updated_timestamp': 'datetime', - 'eligible_for_evaluation': 'bool' - } # type: Dict - - attribute_map = { - 'name': 'name', - 'annotation_count': 'annotationCount', - 'last_updated_timestamp': 'lastUpdatedTimestamp', - 'eligible_for_evaluation': 'eligibleForEvaluation' - } # type: Dict - supports_multiple_types = False - - def __init__(self, name=None, annotation_count=None, last_updated_timestamp=None, eligible_for_evaluation=None): - # type: (Optional[str], Optional[int], Optional[datetime], Optional[bool]) -> None - """ - - :param name: Name of the ASR annotation set - :type name: (optional) str - :param annotation_count: Number of annotations within an annotation set - :type annotation_count: (optional) int - :param last_updated_timestamp: The timestamp for the most recent update of ASR annotation set - :type last_updated_timestamp: (optional) datetime - :param eligible_for_evaluation: Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight. - :type eligible_for_evaluation: (optional) bool - """ - self.__discriminator_value = None # type: str - - super(GetASRAnnotationSetsPropertiesResponse, self).__init__(name=name, annotation_count=annotation_count, last_updated_timestamp=last_updated_timestamp, eligible_for_evaluation=eligible_for_evaluation) - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetASRAnnotationSetsPropertiesResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py deleted file mode 100644 index 69f835b..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/list_asr_annotation_sets_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context import PaginationContext as PaginationContext_8c68d512 - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items import AnnotationSetItems as AnnotationSetItems_b0b5b727 - - -class ListASRAnnotationSetsResponse(object): - """ - - :param annotation_sets: - :type annotation_sets: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items.AnnotationSetItems] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext - - """ - deserialized_types = { - 'annotation_sets': 'list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items.AnnotationSetItems]', - 'pagination_context': 'ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext' - } # type: Dict - - attribute_map = { - 'annotation_sets': 'annotationSets', - 'pagination_context': 'paginationContext' - } # type: Dict - supports_multiple_types = False - - def __init__(self, annotation_sets=None, pagination_context=None): - # type: (Optional[List[AnnotationSetItems_b0b5b727]], Optional[PaginationContext_8c68d512]) -> None - """ - - :param annotation_sets: - :type annotation_sets: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation_set_items.AnnotationSetItems] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.annotation_sets.pagination_context.PaginationContext - """ - self.__discriminator_value = None # type: str - - self.annotation_sets = annotation_sets - self.pagination_context = pagination_context - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ListASRAnnotationSetsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py deleted file mode 100644 index 090ebde..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/pagination_context.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class PaginationContext(object): - """ - This holds all data needed to control pagination from the user. - - - :param next_token: The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned. - :type next_token: (optional) str - - """ - deserialized_types = { - 'next_token': 'str' - } # type: Dict - - attribute_map = { - 'next_token': 'nextToken' - } # type: Dict - supports_multiple_types = False - - def __init__(self, next_token=None): - # type: (Optional[str]) -> None - """This holds all data needed to control pagination from the user. - - :param next_token: The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned. - :type next_token: (optional) str - """ - self.__discriminator_value = None # type: str - - self.next_token = next_token - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PaginationContext): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py deleted file mode 100644 index 1890aa1..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_contents_payload.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.annotation_sets.annotation import Annotation as Annotation_47f32e2d - - -class UpdateAsrAnnotationSetContentsPayload(object): - """ - This is the payload shema for updating asr annotation set contents. Note for text/csv content type, the csv header definitions need to follow the properties of '#/definitions/Annotaion' - - - :param annotations: - :type annotations: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation.Annotation] - - """ - deserialized_types = { - 'annotations': 'list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation.Annotation]' - } # type: Dict - - attribute_map = { - 'annotations': 'annotations' - } # type: Dict - supports_multiple_types = False - - def __init__(self, annotations=None): - # type: (Optional[List[Annotation_47f32e2d]]) -> None - """This is the payload shema for updating asr annotation set contents. Note for text/csv content type, the csv header definitions need to follow the properties of '#/definitions/Annotaion' - - :param annotations: - :type annotations: (optional) list[ask_smapi_model.v1.skill.asr.annotation_sets.annotation.Annotation] - """ - self.__discriminator_value = None # type: str - - self.annotations = annotations - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, UpdateAsrAnnotationSetContentsPayload): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py deleted file mode 100644 index 573747b..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/__init__.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - -from .evaluation_result import EvaluationResult -from .list_asr_evaluations_response import ListAsrEvaluationsResponse -from .post_asr_evaluations_response_object import PostAsrEvaluationsResponseObject -from .error_object import ErrorObject -from .skill import Skill -from .annotation import Annotation -from .annotation_with_audio_asset import AnnotationWithAudioAsset -from .evaluation_result_output import EvaluationResultOutput -from .evaluation_metadata_result import EvaluationMetadataResult -from .get_asr_evaluation_status_response_object import GetAsrEvaluationStatusResponseObject -from .evaluation_metadata import EvaluationMetadata -from .post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject -from .evaluation_items import EvaluationItems -from .get_asr_evaluations_results_response import GetAsrEvaluationsResultsResponse -from .evaluation_result_status import EvaluationResultStatus -from .metrics import Metrics -from .audio_asset import AudioAsset -from .pagination_context import PaginationContext -from .evaluation_status import EvaluationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py deleted file mode 100644 index 46a326c..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation.py +++ /dev/null @@ -1,127 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class Annotation(object): - """ - - :param upload_id: upload id obtained when developer creates an upload using catalog API - :type upload_id: (optional) str - :param file_path_in_upload: file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. - :type file_path_in_upload: (optional) str - :param evaluation_weight: weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters - :type expected_transcription: (optional) str - - """ - deserialized_types = { - 'upload_id': 'str', - 'file_path_in_upload': 'str', - 'evaluation_weight': 'float', - 'expected_transcription': 'str' - } # type: Dict - - attribute_map = { - 'upload_id': 'uploadId', - 'file_path_in_upload': 'filePathInUpload', - 'evaluation_weight': 'evaluationWeight', - 'expected_transcription': 'expectedTranscription' - } # type: Dict - supports_multiple_types = False - - def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str]) -> None - """ - - :param upload_id: upload id obtained when developer creates an upload using catalog API - :type upload_id: (optional) str - :param file_path_in_upload: file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. - :type file_path_in_upload: (optional) str - :param evaluation_weight: weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters - :type expected_transcription: (optional) str - """ - self.__discriminator_value = None # type: str - - self.upload_id = upload_id - self.file_path_in_upload = file_path_in_upload - self.evaluation_weight = evaluation_weight - self.expected_transcription = expected_transcription - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, Annotation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py deleted file mode 100644 index d4162df..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/annotation_with_audio_asset.py +++ /dev/null @@ -1,135 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.evaluations.annotation import Annotation - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.audio_asset import AudioAsset as AudioAsset_5ba858ec - - -class AnnotationWithAudioAsset(Annotation): - """ - object containing annotation content and audio file download information. - - - :param upload_id: upload id obtained when developer creates an upload using catalog API - :type upload_id: (optional) str - :param file_path_in_upload: file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. - :type file_path_in_upload: (optional) str - :param evaluation_weight: weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters - :type expected_transcription: (optional) str - :param audio_asset: - :type audio_asset: (optional) ask_smapi_model.v1.skill.asr.evaluations.audio_asset.AudioAsset - - """ - deserialized_types = { - 'upload_id': 'str', - 'file_path_in_upload': 'str', - 'evaluation_weight': 'float', - 'expected_transcription': 'str', - 'audio_asset': 'ask_smapi_model.v1.skill.asr.evaluations.audio_asset.AudioAsset' - } # type: Dict - - attribute_map = { - 'upload_id': 'uploadId', - 'file_path_in_upload': 'filePathInUpload', - 'evaluation_weight': 'evaluationWeight', - 'expected_transcription': 'expectedTranscription', - 'audio_asset': 'audioAsset' - } # type: Dict - supports_multiple_types = False - - def __init__(self, upload_id=None, file_path_in_upload=None, evaluation_weight=None, expected_transcription=None, audio_asset=None): - # type: (Optional[str], Optional[str], Optional[float], Optional[str], Optional[AudioAsset_5ba858ec]) -> None - """object containing annotation content and audio file download information. - - :param upload_id: upload id obtained when developer creates an upload using catalog API - :type upload_id: (optional) str - :param file_path_in_upload: file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. - :type file_path_in_upload: (optional) str - :param evaluation_weight: weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate. The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results show that only the first annotation test case passed while the rest of the test cases failed. In this case, the overall error rate is (8 / (8 + 1 + 1)) = 0.8 - :type evaluation_weight: (optional) float - :param expected_transcription: expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters - :type expected_transcription: (optional) str - :param audio_asset: - :type audio_asset: (optional) ask_smapi_model.v1.skill.asr.evaluations.audio_asset.AudioAsset - """ - self.__discriminator_value = None # type: str - - super(AnnotationWithAudioAsset, self).__init__(upload_id=upload_id, file_path_in_upload=file_path_in_upload, evaluation_weight=evaluation_weight, expected_transcription=expected_transcription) - self.audio_asset = audio_asset - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AnnotationWithAudioAsset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py deleted file mode 100644 index 752aab9..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/audio_asset.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class AudioAsset(object): - """ - Object containing information about downloading audio file - - - :param download_url: S3 presigned download url for downloading the audio file - :type download_url: (optional) str - :param expiry_time: timestamp when the audio download url expire in ISO 8601 format - :type expiry_time: (optional) str - - """ - deserialized_types = { - 'download_url': 'str', - 'expiry_time': 'str' - } # type: Dict - - attribute_map = { - 'download_url': 'downloadUrl', - 'expiry_time': 'expiryTime' - } # type: Dict - supports_multiple_types = False - - def __init__(self, download_url=None, expiry_time=None): - # type: (Optional[str], Optional[str]) -> None - """Object containing information about downloading audio file - - :param download_url: S3 presigned download url for downloading the audio file - :type download_url: (optional) str - :param expiry_time: timestamp when the audio download url expire in ISO 8601 format - :type expiry_time: (optional) str - """ - self.__discriminator_value = None # type: str - - self.download_url = download_url - self.expiry_time = expiry_time - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AudioAsset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py deleted file mode 100644 index 72534e5..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/error_object.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class ErrorObject(object): - """ - Object containing information about the error occurred during an evaluation run. This filed would present if an unexpected error occurred during an evaluatin run. - - - :param message: human-readable error message - :type message: (optional) str - :param code: machine-readable error code - :type code: (optional) str - - """ - deserialized_types = { - 'message': 'str', - 'code': 'str' - } # type: Dict - - attribute_map = { - 'message': 'message', - 'code': 'code' - } # type: Dict - supports_multiple_types = False - - def __init__(self, message=None, code=None): - # type: (Optional[str], Optional[str]) -> None - """Object containing information about the error occurred during an evaluation run. This filed would present if an unexpected error occurred during an evaluatin run. - - :param message: human-readable error message - :type message: (optional) str - :param code: machine-readable error code - :type code: (optional) str - """ - self.__discriminator_value = None # type: str - - self.message = message - self.code = code - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ErrorObject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py deleted file mode 100644 index cc2667d..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_items.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata import EvaluationMetadata - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 - - -class EvaluationItems(EvaluationMetadata): - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - :param id: evaluation id - :type id: (optional) str - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus', - 'total_evaluation_count': 'float', - 'completed_evaluation_count': 'float', - 'start_timestamp': 'datetime', - 'request': 'ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject', - 'error': 'ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject', - 'result': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult', - 'id': 'str' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'total_evaluation_count': 'totalEvaluationCount', - 'completed_evaluation_count': 'completedEvaluationCount', - 'start_timestamp': 'startTimestamp', - 'request': 'request', - 'error': 'error', - 'result': 'result', - 'id': 'id' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None, id=None): - # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1], Optional[str]) -> None - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - :param id: evaluation id - :type id: (optional) str - """ - self.__discriminator_value = None # type: str - - super(EvaluationItems, self).__init__(status=status, total_evaluation_count=total_evaluation_count, completed_evaluation_count=completed_evaluation_count, start_timestamp=start_timestamp, request=request, error=error, result=result) - self.id = id - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationItems): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py deleted file mode 100644 index d530a36..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata.py +++ /dev/null @@ -1,154 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 - - -class EvaluationMetadata(object): - """ - response body for GetAsrEvaluationsStatus API - - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus', - 'total_evaluation_count': 'float', - 'completed_evaluation_count': 'float', - 'start_timestamp': 'datetime', - 'request': 'ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject', - 'error': 'ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject', - 'result': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'total_evaluation_count': 'totalEvaluationCount', - 'completed_evaluation_count': 'completedEvaluationCount', - 'start_timestamp': 'startTimestamp', - 'request': 'request', - 'error': 'error', - 'result': 'result' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1]) -> None - """response body for GetAsrEvaluationsStatus API - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - """ - self.__discriminator_value = None # type: str - - self.status = status - self.total_evaluation_count = total_evaluation_count - self.completed_evaluation_count = completed_evaluation_count - self.start_timestamp = start_timestamp - self.request = request - self.error = error - self.result = result - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py deleted file mode 100644 index 3ac6bbe..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_metadata_result.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as EvaluationResultStatus_2e2193d - from ask_smapi_model.v1.skill.asr.evaluations.metrics import Metrics as Metrics_7a347fcd - - -class EvaluationMetadataResult(object): - """ - indicate the result of the evaluation. This field would be present if the evaluation status is `COMPLETED` - - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus - :param metrics: - :type metrics: (optional) ask_smapi_model.v1.skill.asr.evaluations.metrics.Metrics - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus', - 'metrics': 'ask_smapi_model.v1.skill.asr.evaluations.metrics.Metrics' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'metrics': 'metrics' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, metrics=None): - # type: (Optional[EvaluationResultStatus_2e2193d], Optional[Metrics_7a347fcd]) -> None - """indicate the result of the evaluation. This field would be present if the evaluation status is `COMPLETED` - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus - :param metrics: - :type metrics: (optional) ask_smapi_model.v1.skill.asr.evaluations.metrics.Metrics - """ - self.__discriminator_value = None # type: str - - self.status = status - self.metrics = metrics - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationMetadataResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py deleted file mode 100644 index 9a885a7..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result.py +++ /dev/null @@ -1,133 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset import AnnotationWithAudioAsset as AnnotationWithAudioAsset_102c10aa - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output import EvaluationResultOutput as EvaluationResultOutput_7d57585d - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status import EvaluationResultStatus as EvaluationResultStatus_2e2193d - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa - - -class EvaluationResult(object): - """ - evaluation detailed result - - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus - :param annotation: - :type annotation: (optional) ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset.AnnotationWithAudioAsset - :param output: - :type output: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output.EvaluationResultOutput - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus', - 'annotation': 'ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset.AnnotationWithAudioAsset', - 'output': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output.EvaluationResultOutput', - 'error': 'ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'annotation': 'annotation', - 'output': 'output', - 'error': 'error' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, annotation=None, output=None, error=None): - # type: (Optional[EvaluationResultStatus_2e2193d], Optional[AnnotationWithAudioAsset_102c10aa], Optional[EvaluationResultOutput_7d57585d], Optional[ErrorObject_27eea4fa]) -> None - """evaluation detailed result - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_status.EvaluationResultStatus - :param annotation: - :type annotation: (optional) ask_smapi_model.v1.skill.asr.evaluations.annotation_with_audio_asset.AnnotationWithAudioAsset - :param output: - :type output: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_result_output.EvaluationResultOutput - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - """ - self.__discriminator_value = None # type: str - - self.status = status - self.annotation = annotation - self.output = output - self.error = error - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py deleted file mode 100644 index f102c4c..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_status.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class EvaluationResultStatus(Enum): - """ - enum indicating the evaluation result status. * `PASSED` - evaluation result is considered passed * `FAILED` - evaluation result is considered failed - - - - Allowed enum values: [PASSED, FAILED] - """ - PASSED = "PASSED" - FAILED = "FAILED" - - def to_dict(self): - # type: () -> Dict[str, Any] - """Returns the model properties as a dict""" - result = {self.name: self.value} - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.value) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (Any) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationResultStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (Any) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py deleted file mode 100644 index d011954..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_status.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class EvaluationStatus(Enum): - """ - Evaluation status: * `IN_PROGRESS` - indicate the evaluation is in progress. * `COMPLETED` - indicate the evaluation has been completed. * `FAILED` - indicate the evaluation has run into an error. - - - - Allowed enum values: [IN_PROGRESS, COMPLETED, FAILED] - """ - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" - FAILED = "FAILED" - - def to_dict(self): - # type: () -> Dict[str, Any] - """Returns the model properties as a dict""" - result = {self.name: self.value} - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.value) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (Any) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, EvaluationStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (Any) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py deleted file mode 100644 index 764ea27..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluation_status_response_object.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata import EvaluationMetadata - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object import PostAsrEvaluationsRequestObject as PostAsrEvaluationsRequestObject_133223f3 - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_status import EvaluationStatus as EvaluationStatus_65f63d72 - from ask_smapi_model.v1.skill.asr.evaluations.error_object import ErrorObject as ErrorObject_27eea4fa - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result import EvaluationMetadataResult as EvaluationMetadataResult_4f735ec1 - - -class GetAsrEvaluationStatusResponseObject(EvaluationMetadata): - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus', - 'total_evaluation_count': 'float', - 'completed_evaluation_count': 'float', - 'start_timestamp': 'datetime', - 'request': 'ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject', - 'error': 'ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject', - 'result': 'ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'total_evaluation_count': 'totalEvaluationCount', - 'completed_evaluation_count': 'completedEvaluationCount', - 'start_timestamp': 'startTimestamp', - 'request': 'request', - 'error': 'error', - 'result': 'result' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, total_evaluation_count=None, completed_evaluation_count=None, start_timestamp=None, request=None, error=None, result=None): - # type: (Optional[EvaluationStatus_65f63d72], Optional[float], Optional[float], Optional[datetime], Optional[PostAsrEvaluationsRequestObject_133223f3], Optional[ErrorObject_27eea4fa], Optional[EvaluationMetadataResult_4f735ec1]) -> None - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_status.EvaluationStatus - :param total_evaluation_count: indicate the total number of evaluations that are supposed to be run in the evaluation request - :type total_evaluation_count: (optional) float - :param completed_evaluation_count: indicate the number of completed evaluations - :type completed_evaluation_count: (optional) float - :param start_timestamp: indicate the start time stamp of the ASR evaluation job. ISO-8601 Format. - :type start_timestamp: (optional) datetime - :param request: - :type request: (optional) ask_smapi_model.v1.skill.asr.evaluations.post_asr_evaluations_request_object.PostAsrEvaluationsRequestObject - :param error: - :type error: (optional) ask_smapi_model.v1.skill.asr.evaluations.error_object.ErrorObject - :param result: - :type result: (optional) ask_smapi_model.v1.skill.asr.evaluations.evaluation_metadata_result.EvaluationMetadataResult - """ - self.__discriminator_value = None # type: str - - super(GetAsrEvaluationStatusResponseObject, self).__init__(status=status, total_evaluation_count=total_evaluation_count, completed_evaluation_count=completed_evaluation_count, start_timestamp=start_timestamp, request=request, error=error, result=result) - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetAsrEvaluationStatusResponseObject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py deleted file mode 100644 index bebaf4c..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/get_asr_evaluations_results_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_result import EvaluationResult as EvaluationResult_8b6638d2 - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as PaginationContext_d7ee8f7c - - -class GetAsrEvaluationsResultsResponse(object): - """ - response for GetAsrEvaluationsResults - - - :param results: array containing all evaluation results. - :type results: (optional) list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_result.EvaluationResult] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext - - """ - deserialized_types = { - 'results': 'list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_result.EvaluationResult]', - 'pagination_context': 'ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext' - } # type: Dict - - attribute_map = { - 'results': 'results', - 'pagination_context': 'paginationContext' - } # type: Dict - supports_multiple_types = False - - def __init__(self, results=None, pagination_context=None): - # type: (Optional[List[EvaluationResult_8b6638d2]], Optional[PaginationContext_d7ee8f7c]) -> None - """response for GetAsrEvaluationsResults - - :param results: array containing all evaluation results. - :type results: (optional) list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_result.EvaluationResult] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext - """ - self.__discriminator_value = None # type: str - - self.results = results - self.pagination_context = pagination_context - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetAsrEvaluationsResultsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py deleted file mode 100644 index fd2117e..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/list_asr_evaluations_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.evaluation_items import EvaluationItems as EvaluationItems_4521721e - from ask_smapi_model.v1.skill.asr.evaluations.pagination_context import PaginationContext as PaginationContext_d7ee8f7c - - -class ListAsrEvaluationsResponse(object): - """ - response body for a list evaluation API - - - :param evaluations: an array containing all evaluations that have ever run by developers based on the filter criteria defined in the request - :type evaluations: (optional) list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_items.EvaluationItems] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext - - """ - deserialized_types = { - 'evaluations': 'list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_items.EvaluationItems]', - 'pagination_context': 'ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext' - } # type: Dict - - attribute_map = { - 'evaluations': 'evaluations', - 'pagination_context': 'paginationContext' - } # type: Dict - supports_multiple_types = False - - def __init__(self, evaluations=None, pagination_context=None): - # type: (Optional[List[EvaluationItems_4521721e]], Optional[PaginationContext_d7ee8f7c]) -> None - """response body for a list evaluation API - - :param evaluations: an array containing all evaluations that have ever run by developers based on the filter criteria defined in the request - :type evaluations: (optional) list[ask_smapi_model.v1.skill.asr.evaluations.evaluation_items.EvaluationItems] - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.asr.evaluations.pagination_context.PaginationContext - """ - self.__discriminator_value = None # type: str - - self.evaluations = evaluations - self.pagination_context = pagination_context - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ListAsrEvaluationsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py deleted file mode 100644 index 467e026..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/metrics.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class Metrics(object): - """ - - :param overall_error_rate: overall error rate for the ASR evaluation run - :type overall_error_rate: (optional) float - - """ - deserialized_types = { - 'overall_error_rate': 'float' - } # type: Dict - - attribute_map = { - 'overall_error_rate': 'overallErrorRate' - } # type: Dict - supports_multiple_types = False - - def __init__(self, overall_error_rate=None): - # type: (Optional[float]) -> None - """ - - :param overall_error_rate: overall error rate for the ASR evaluation run - :type overall_error_rate: (optional) float - """ - self.__discriminator_value = None # type: str - - self.overall_error_rate = overall_error_rate - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, Metrics): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py deleted file mode 100644 index 090ebde..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/pagination_context.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class PaginationContext(object): - """ - This holds all data needed to control pagination from the user. - - - :param next_token: The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned. - :type next_token: (optional) str - - """ - deserialized_types = { - 'next_token': 'str' - } # type: Dict - - attribute_map = { - 'next_token': 'nextToken' - } # type: Dict - supports_multiple_types = False - - def __init__(self, next_token=None): - # type: (Optional[str]) -> None - """This holds all data needed to control pagination from the user. - - :param next_token: The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned. - :type next_token: (optional) str - """ - self.__discriminator_value = None # type: str - - self.next_token = next_token - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PaginationContext): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py deleted file mode 100644 index f475883..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_request_object.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.asr.evaluations.skill import Skill as Skill_9cb28c29 - - -class PostAsrEvaluationsRequestObject(object): - """ - - :param skill: - :type skill: (optional) ask_smapi_model.v1.skill.asr.evaluations.skill.Skill - :param annotation_set_id: ID for annotation set - :type annotation_set_id: (optional) str - - """ - deserialized_types = { - 'skill': 'ask_smapi_model.v1.skill.asr.evaluations.skill.Skill', - 'annotation_set_id': 'str' - } # type: Dict - - attribute_map = { - 'skill': 'skill', - 'annotation_set_id': 'annotationSetId' - } # type: Dict - supports_multiple_types = False - - def __init__(self, skill=None, annotation_set_id=None): - # type: (Optional[Skill_9cb28c29], Optional[str]) -> None - """ - - :param skill: - :type skill: (optional) ask_smapi_model.v1.skill.asr.evaluations.skill.Skill - :param annotation_set_id: ID for annotation set - :type annotation_set_id: (optional) str - """ - self.__discriminator_value = None # type: str - - self.skill = skill - self.annotation_set_id = annotation_set_id - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PostAsrEvaluationsRequestObject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py b/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py deleted file mode 100644 index f6b99cc..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/skill.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.stage_type import StageType as StageType_700be16e - - -class Skill(object): - """ - - :param stage: - :type stage: (optional) ask_smapi_model.v1.stage_type.StageType - :param locale: skill locale in bcp 47 format - :type locale: (optional) str - - """ - deserialized_types = { - 'stage': 'ask_smapi_model.v1.stage_type.StageType', - 'locale': 'str' - } # type: Dict - - attribute_map = { - 'stage': 'stage', - 'locale': 'locale' - } # type: Dict - supports_multiple_types = False - - def __init__(self, stage=None, locale=None): - # type: (Optional[StageType_700be16e], Optional[str]) -> None - """ - - :param stage: - :type stage: (optional) ask_smapi_model.v1.stage_type.StageType - :param locale: skill locale in bcp 47 format - :type locale: (optional) str - """ - self.__discriminator_value = None # type: str - - self.stage = stage - self.locale = locale - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, Skill): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/asr/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 83ab701..67d2fd4 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -15,6 +15,7 @@ from __future__ import absolute_import from .event_name import EventName +from .data_store_package import DataStorePackage from .skill_manifest_envelope import SkillManifestEnvelope from .alexa_search import AlexaSearch from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager @@ -45,6 +46,7 @@ from .video_country_info import VideoCountryInfo from .custom_product_prompts import CustomProductPrompts from .display_interface_apml_version import DisplayInterfaceApmlVersion +from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface from .event_name_type import EventNameType from .viewport_shape import ViewportShape from .dialog_management import DialogManagement @@ -96,6 +98,7 @@ from .demand_response_apis import DemandResponseApis from .subscription_payment_frequency import SubscriptionPaymentFrequency from .manifest_version import ManifestVersion +from .alexa_data_store_package_manager_implemented_interface import AlexaDataStorePackageManagerImplementedInterface from .tax_information import TaxInformation from .custom_task import CustomTask from .permission_name import PermissionName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_implemented_interface.py similarity index 74% rename from ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_implemented_interface.py index 5b93f0a..b6473f6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/annotation_sets/update_asr_annotation_set_properties_request_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_implemented_interface.py @@ -23,34 +23,35 @@ if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.data_store_package import DataStorePackage as DataStorePackage_6d063591 -class UpdateAsrAnnotationSetPropertiesRequestObject(object): +class AlexaDataStorePackageManagerImplementedInterface(object): """ - :param name: The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted. - :type name: (optional) str + :param packages: The list of data store packages that are authored by skill developer. + :type packages: (optional) list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage] """ deserialized_types = { - 'name': 'str' + 'packages': 'list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage]' } # type: Dict attribute_map = { - 'name': 'name' + 'packages': 'packages' } # type: Dict supports_multiple_types = False - def __init__(self, name=None): - # type: (Optional[str]) -> None + def __init__(self, packages=None): + # type: (Optional[List[DataStorePackage_6d063591]]) -> None """ - :param name: The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted. - :type name: (optional) str + :param packages: The list of data store packages that are authored by skill developer. + :type packages: (optional) list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage] """ self.__discriminator_value = None # type: str - self.name = name + self.packages = packages def to_dict(self): # type: () -> Dict[str, object] @@ -95,7 +96,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, UpdateAsrAnnotationSetPropertiesRequestObject): + if not isinstance(other, AlexaDataStorePackageManagerImplementedInterface): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_interface.py similarity index 66% rename from ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_interface.py index 3d6da75..9498445 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/evaluation_result_output.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/alexa_data_store_package_manager_interface.py @@ -18,39 +18,47 @@ import six import typing from enum import Enum +from ask_smapi_model.v1.skill.manifest.interface import Interface if typing.TYPE_CHECKING: from typing import Dict, List, Optional, Union, Any from datetime import datetime + from ask_smapi_model.v1.skill.manifest.data_store_package import DataStorePackage as DataStorePackage_6d063591 -class EvaluationResultOutput(object): +class AlexaDataStorePackageManagerInterface(Interface): """ + Skill use this interface to support functionality related to data store packages. - :param transcription: actual transcription returned from ASR for the audio - :type transcription: (optional) str + + :param packages: List of DataStore packages that the developer authored. + :type packages: (optional) list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage] """ deserialized_types = { - 'transcription': 'str' + 'object_type': 'str', + 'packages': 'list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage]' } # type: Dict attribute_map = { - 'transcription': 'transcription' + 'object_type': 'type', + 'packages': 'packages' } # type: Dict supports_multiple_types = False - def __init__(self, transcription=None): - # type: (Optional[str]) -> None - """ + def __init__(self, packages=None): + # type: (Optional[List[DataStorePackage_6d063591]]) -> None + """Skill use this interface to support functionality related to data store packages. - :param transcription: actual transcription returned from ASR for the audio - :type transcription: (optional) str + :param packages: List of DataStore packages that the developer authored. + :type packages: (optional) list[ask_smapi_model.v1.skill.manifest.data_store_package.DataStorePackage] """ - self.__discriminator_value = None # type: str + self.__discriminator_value = "ALEXA_DATASTORE_PACKAGEMANAGER" # type: str - self.transcription = transcription + self.object_type = self.__discriminator_value + super(AlexaDataStorePackageManagerInterface, self).__init__(object_type=self.__discriminator_value) + self.packages = packages def to_dict(self): # type: () -> Dict[str, object] @@ -95,7 +103,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, EvaluationResultOutput): + if not isinstance(other, AlexaDataStorePackageManagerInterface): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py index 6e39caf..91ebf82 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/suppressed_interface.py @@ -29,7 +29,7 @@ class SuppressedInterface(Enum): """ - Allowed enum values: [AudioPlayer, PlaybackController, Display, VideoPlayer, GameEngine, GadgetController, CanHandleIntentRequest, CanFulfillIntentRequest, AlexaPresentationApl, AlexaPresentationHtml, AlexaDataStore, AlexaDataStorePackageManager, PhotoCaptureController, VideoCaptureController, UploadController, CustomInterface, AlexaAugmentationEffectsController] + Allowed enum values: [AudioPlayer, PlaybackController, Display, VideoPlayer, GameEngine, GadgetController, CanHandleIntentRequest, CanFulfillIntentRequest, AlexaPresentationApl, AlexaPresentationHtml, AlexaDataStore, PhotoCaptureController, VideoCaptureController, UploadController, CustomInterface, AlexaAugmentationEffectsController] """ AudioPlayer = "AudioPlayer" PlaybackController = "PlaybackController" @@ -42,7 +42,6 @@ class SuppressedInterface(Enum): AlexaPresentationApl = "AlexaPresentationApl" AlexaPresentationHtml = "AlexaPresentationHtml" AlexaDataStore = "AlexaDataStore" - AlexaDataStorePackageManager = "AlexaDataStorePackageManager" PhotoCaptureController = "PhotoCaptureController" VideoCaptureController = "VideoCaptureController" UploadController = "UploadController" diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/data_store_package.py similarity index 84% rename from ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py rename to ask-smapi-model/ask_smapi_model/v1/skill/manifest/data_store_package.py index 5e8704c..0e621e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/asr/evaluations/post_asr_evaluations_response_object.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/data_store_package.py @@ -25,10 +25,12 @@ from datetime import datetime -class PostAsrEvaluationsResponseObject(object): +class DataStorePackage(object): """ + Represents a DataStore package authored by skill developer. This contains a reference to the DataStore package and doesn't contain the entire package itself. - :param id: ID used to retrieve the evaluation status/results later. + + :param id: The identifier for the DataStore package. :type id: (optional) str """ @@ -43,9 +45,9 @@ class PostAsrEvaluationsResponseObject(object): def __init__(self, id=None): # type: (Optional[str]) -> None - """ + """Represents a DataStore package authored by skill developer. This contains a reference to the DataStore package and doesn't contain the entire package itself. - :param id: ID used to retrieve the evaluation status/results later. + :param id: The identifier for the DataStore package. :type id: (optional) str """ self.__discriminator_value = None # type: str @@ -95,7 +97,7 @@ def __repr__(self): def __eq__(self, other): # type: (object) -> bool """Returns true if both objects are equal""" - if not isinstance(other, PostAsrEvaluationsResponseObject): + if not isinstance(other, DataStorePackage): return False return self.__dict__ == other.__dict__ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py index b023077..67381c6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface.py @@ -51,6 +51,8 @@ class Interface(object): | | APP_LINKS_V2: :py:class:`ask_smapi_model.v1.skill.manifest.app_link_v2_interface.AppLinkV2Interface`, | + | ALEXA_DATASTORE_PACKAGEMANAGER: :py:class:`ask_smapi_model.v1.skill.manifest.alexa_data_store_package_manager_interface.AlexaDataStorePackageManagerInterface`, + | | RENDER_TEMPLATE: :py:class:`ask_smapi_model.v1.skill.manifest.display_interface.DisplayInterface`, | | GADGET_CONTROLLER: :py:class:`ask_smapi_model.v1.skill.manifest.gadget_controller_interface.GadgetControllerInterface`, @@ -75,6 +77,7 @@ class Interface(object): 'AUDIO_PLAYER': 'ask_smapi_model.v1.skill.manifest.audio_interface.AudioInterface', 'GAME_ENGINE': 'ask_smapi_model.v1.skill.manifest.game_engine_interface.GameEngineInterface', 'APP_LINKS_V2': 'ask_smapi_model.v1.skill.manifest.app_link_v2_interface.AppLinkV2Interface', + 'ALEXA_DATASTORE_PACKAGEMANAGER': 'ask_smapi_model.v1.skill.manifest.alexa_data_store_package_manager_interface.AlexaDataStorePackageManagerInterface', 'RENDER_TEMPLATE': 'ask_smapi_model.v1.skill.manifest.display_interface.DisplayInterface', 'GADGET_CONTROLLER': 'ask_smapi_model.v1.skill.manifest.gadget_controller_interface.GadgetControllerInterface', 'VIDEO_APP': 'ask_smapi_model.v1.skill.manifest.video_app_interface.VideoAppInterface' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py index bc49ef5..f9ede88 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py @@ -31,7 +31,7 @@ class InterfaceType(Enum): - Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2, ALEXA_SEARCH] + Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2, ALEXA_SEARCH, ALEXA_DATASTORE_PACKAGEMANAGER, ALEXA_DATA_STORE] """ AUDIO_PLAYER = "AUDIO_PLAYER" VIDEO_APP = "VIDEO_APP" @@ -49,6 +49,8 @@ class InterfaceType(Enum): ALEXA_EXTENSION = "ALEXA_EXTENSION" APP_LINKS_V2 = "APP_LINKS_V2" ALEXA_SEARCH = "ALEXA_SEARCH" + ALEXA_DATASTORE_PACKAGEMANAGER = "ALEXA_DATASTORE_PACKAGEMANAGER" + ALEXA_DATA_STORE = "ALEXA_DATA_STORE" def to_dict(self): # type: () -> Dict[str, Any] diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 9b4a692..7044d51 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite, dash_vendor_read_endpoints] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite, dash_vendor_read_endpoints, dash_read_endpoints_sensors] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -71,6 +71,7 @@ class PermissionName(Enum): alexa_devices_all_tokenized_geolocation_read = "alexa::devices:all:tokenized_geolocation:read" alexa_measurement_system_readwrite = "alexa::measurement_system::readwrite" dash_vendor_read_endpoints = "dash::vendor:read:endpoints" + dash_read_endpoints_sensors = "dash::read:endpoints:sensors" def to_dict(self): # type: () -> Dict[str, Any] From f61ca55bba42d7d3290eeafea461f780212ec4cf Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 24 May 2023 15:39:23 +0000 Subject: [PATCH 080/111] Release 1.67.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index a1a66f0..6b767d3 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -649,3 +649,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.67.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index db9e75d..dc29387 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.66.0' +__version__ = '1.67.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 78793a9939f8bb51734377e185f1cc04dc20295a Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 24 May 2023 16:09:02 +0000 Subject: [PATCH 081/111] Release 1.21.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 206 ------------------ .../conflict_detection/__init__.py | 25 --- .../conflict_detection_job_status.py | 67 ------ .../conflict_detection/conflict_intent.py | 114 ---------- .../conflict_intent_slot.py | 113 ---------- .../conflict_detection/conflict_result.py | 114 ---------- ..._conflict_detection_job_status_response.py | 114 ---------- .../get_conflicts_response.py | 123 ----------- .../get_conflicts_response_result.py | 114 ---------- .../conflict_detection/paged_response.py | 115 ---------- .../conflict_detection/pagination_context.py | 113 ---------- .../conflict_detection/py.typed | 0 14 files changed, 7 insertions(+), 1219 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/py.typed diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 452d98a..018fc3e 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -338,3 +338,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.21.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index efd31b3..da2fc85 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.20.0' +__version__ = '1.21.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index 627e5a5..e1a55dd 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -34,7 +34,6 @@ from datetime import datetime from ask_smapi_model.v0.development_events.subscription.subscription_info import SubscriptionInfo as SubscriptionInfo_917bdab3 from ask_smapi_model.v0.development_events.subscriber.list_subscribers_response import ListSubscribersResponse as ListSubscribersResponse_d1d01857 - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response import GetConflictsResponse as GetConflictsResponse_502eb394 from ask_smapi_model.v1.skill.alexa_hosted.hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList as HostedSkillRepositoryCredentialsList_d39d5fdf from ask_smapi_model.v1.skill.experiment.update_exposure_request import UpdateExposureRequest as UpdateExposureRequest_ce52ce53 from ask_smapi_model.v1.skill.clone_locale_status_response import CloneLocaleStatusResponse as CloneLocaleStatusResponse_8b6e06ed @@ -86,7 +85,6 @@ from ask_smapi_model.v1.skill.interaction_model.model_type.update_request import UpdateRequest as UpdateRequest_43de537 from ask_smapi_model.v1.skill.certification.list_certifications_response import ListCertificationsResponse as ListCertificationsResponse_f2a417c6 from ask_smapi_model.v1.skill.import_response import ImportResponse as ImportResponse_364fa39f - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse as GetConflictDetectionJobStatusResponse_9e0e2cf1 from ask_smapi_model.v1.skill.nlu.evaluations.list_nlu_evaluations_response import ListNLUEvaluationsResponse as ListNLUEvaluationsResponse_7ef8d08f from ask_smapi_model.v1.isp.create_in_skill_product_request import CreateInSkillProductRequest as CreateInSkillProductRequest_816cf44b from ask_smapi_model.v1.skill.interaction_model.type_version.slot_type_version_data import SlotTypeVersionData as SlotTypeVersionData_1f3ee474 @@ -10928,210 +10926,6 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) return api_response.body - def get_conflict_detection_job_status_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetConflictDetectionJobStatusResponse_9e0e2cf1] - """ - Retrieve conflict detection job status for skill. - This API returns the job status of conflict detection job for a specified interaction model. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param locale: (required) The locale for the model requested e.g. en-GB, en-US, de-DE. - :type locale: str - :param stage: (required) Stage of the interaction model. - :type stage: str - :param version: (required) Version of interaction model. Use \"~current\" to get the model of the current version. - :type version: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetConflictDetectionJobStatusResponse_9e0e2cf1] - """ - operation_name = "get_conflict_detection_job_status_for_interaction_model_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'locale' is set - if ('locale' not in params) or (params['locale'] is None): - raise ValueError( - "Missing the required parameter `locale` when calling `" + operation_name + "`") - # verify the required parameter 'stage' is set - if ('stage' not in params) or (params['stage'] is None): - raise ValueError( - "Missing the required parameter `stage` when calling `" + operation_name + "`") - # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError( - "Missing the required parameter `version` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/stages/{stage}/interactionModel/locales/{locale}/versions/{version}/conflictDetectionJobStatus' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'locale' in params: - path_params['locale'] = params['locale'] - if 'stage' in params: - path_params['stage'] = params['stage'] - if 'version' in params: - path_params['version'] = params['version'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response.GetConflictDetectionJobStatusResponse", status_code=200, message="Get conflict detection results successfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="There is no catalog defined for the catalogId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflict_detection_job_status_response.GetConflictDetectionJobStatusResponse") - - if full_response: - return api_response - return api_response.body - - - def get_conflicts_for_interaction_model_v1(self, skill_id, locale, stage, version, **kwargs): - # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, GetConflictsResponse_502eb394, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - Retrieve conflict detection results for a specified interaction model. - This is a paginated API that retrieves results of conflict detection job for a specified interaction model. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param locale: (required) The locale for the model requested e.g. en-GB, en-US, de-DE. - :type locale: str - :param stage: (required) Stage of the interaction model. - :type stage: str - :param version: (required) Version of interaction model. Use \"~current\" to get the model of the current version. - :type version: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. Defaults to 100. If more results are present, the response will contain a nextToken and a _link.next href. - :type max_results: float - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, GetConflictsResponse_502eb394, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - operation_name = "get_conflicts_for_interaction_model_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'locale' is set - if ('locale' not in params) or (params['locale'] is None): - raise ValueError( - "Missing the required parameter `locale` when calling `" + operation_name + "`") - # verify the required parameter 'stage' is set - if ('stage' not in params) or (params['stage'] is None): - raise ValueError( - "Missing the required parameter `stage` when calling `" + operation_name + "`") - # verify the required parameter 'version' is set - if ('version' not in params) or (params['version'] is None): - raise ValueError( - "Missing the required parameter `version` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/stages/{stage}/interactionModel/locales/{locale}/versions/{version}/conflicts' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'locale' in params: - path_params['locale'] = params['locale'] - if 'stage' in params: - path_params['stage'] = params['stage'] - if 'version' in params: - path_params['version'] = params['version'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response.GetConflictsResponse", status_code=200, message="Get conflict detection results sucessfully.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="There is no catalog defined for the catalogId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response.GetConflictsResponse") - - if full_response: - return api_response - return api_response.body - - def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, ListPrivateDistributionAccountsResponse_8783420d, StandardizedError_f5106a89, BadRequestError_f854b05] """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py deleted file mode 100644 index b4ca420..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - -from .get_conflicts_response import GetConflictsResponse -from .get_conflict_detection_job_status_response import GetConflictDetectionJobStatusResponse -from .get_conflicts_response_result import GetConflictsResponseResult -from .conflict_intent_slot import ConflictIntentSlot -from .conflict_detection_job_status import ConflictDetectionJobStatus -from .paged_response import PagedResponse -from .conflict_result import ConflictResult -from .conflict_intent import ConflictIntent -from .pagination_context import PaginationContext diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py deleted file mode 100644 index 1d9d55e..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_detection_job_status.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class ConflictDetectionJobStatus(Enum): - """ - The status of conflict detection job. - - - - Allowed enum values: [IN_PROGRESS, COMPLETED, FAILED] - """ - IN_PROGRESS = "IN_PROGRESS" - COMPLETED = "COMPLETED" - FAILED = "FAILED" - - def to_dict(self): - # type: () -> Dict[str, Any] - """Returns the model properties as a dict""" - result = {self.name: self.value} - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.value) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (Any) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ConflictDetectionJobStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (Any) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py deleted file mode 100644 index f95947c..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot import ConflictIntentSlot as ConflictIntentSlot_925d4bc8 - - -class ConflictIntent(object): - """ - - :param name: Conflict intent name - :type name: (optional) str - :param slots: List of conflict intent slots - :type slots: (optional) dict(str, ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot.ConflictIntentSlot) - - """ - deserialized_types = { - 'name': 'str', - 'slots': 'dict(str, ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot.ConflictIntentSlot)' - } # type: Dict - - attribute_map = { - 'name': 'name', - 'slots': 'slots' - } # type: Dict - supports_multiple_types = False - - def __init__(self, name=None, slots=None): - # type: (Optional[str], Optional[Dict[str, ConflictIntentSlot_925d4bc8]]) -> None - """ - - :param name: Conflict intent name - :type name: (optional) str - :param slots: List of conflict intent slots - :type slots: (optional) dict(str, ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent_slot.ConflictIntentSlot) - """ - self.__discriminator_value = None # type: str - - self.name = name - self.slots = slots - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ConflictIntent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py deleted file mode 100644 index 76e5350..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_intent_slot.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class ConflictIntentSlot(object): - """ - - :param value: - :type value: (optional) str - :param object_type: - :type object_type: (optional) str - - """ - deserialized_types = { - 'value': 'str', - 'object_type': 'str' - } # type: Dict - - attribute_map = { - 'value': 'value', - 'object_type': 'type' - } # type: Dict - supports_multiple_types = False - - def __init__(self, value=None, object_type=None): - # type: (Optional[str], Optional[str]) -> None - """ - - :param value: - :type value: (optional) str - :param object_type: - :type object_type: (optional) str - """ - self.__discriminator_value = None # type: str - - self.value = value - self.object_type = object_type - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ConflictIntentSlot): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py deleted file mode 100644 index 2172fd9..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/conflict_result.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent import ConflictIntent as ConflictIntent_b2b26bb1 - - -class ConflictResult(object): - """ - - :param sample_utterance: Sample utterance provided by 3P developers for intents. - :type sample_utterance: (optional) str - :param intent: - :type intent: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent.ConflictIntent - - """ - deserialized_types = { - 'sample_utterance': 'str', - 'intent': 'ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent.ConflictIntent' - } # type: Dict - - attribute_map = { - 'sample_utterance': 'sampleUtterance', - 'intent': 'intent' - } # type: Dict - supports_multiple_types = False - - def __init__(self, sample_utterance=None, intent=None): - # type: (Optional[str], Optional[ConflictIntent_b2b26bb1]) -> None - """ - - :param sample_utterance: Sample utterance provided by 3P developers for intents. - :type sample_utterance: (optional) str - :param intent: - :type intent: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_intent.ConflictIntent - """ - self.__discriminator_value = None # type: str - - self.sample_utterance = sample_utterance - self.intent = intent - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ConflictResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py deleted file mode 100644 index 0c8e331..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflict_detection_job_status_response.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status import ConflictDetectionJobStatus as ConflictDetectionJobStatus_4a73678d - - -class GetConflictDetectionJobStatusResponse(object): - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status.ConflictDetectionJobStatus - :param total_conflicts: The total number of conflicts within skill model. - :type total_conflicts: (optional) float - - """ - deserialized_types = { - 'status': 'ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status.ConflictDetectionJobStatus', - 'total_conflicts': 'float' - } # type: Dict - - attribute_map = { - 'status': 'status', - 'total_conflicts': 'totalConflicts' - } # type: Dict - supports_multiple_types = False - - def __init__(self, status=None, total_conflicts=None): - # type: (Optional[ConflictDetectionJobStatus_4a73678d], Optional[float]) -> None - """ - - :param status: - :type status: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_detection_job_status.ConflictDetectionJobStatus - :param total_conflicts: The total number of conflicts within skill model. - :type total_conflicts: (optional) float - """ - self.__discriminator_value = None # type: str - - self.status = status - self.total_conflicts = total_conflicts - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetConflictDetectionJobStatusResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py deleted file mode 100644 index 1da36af..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum -from ask_smapi_model.v1.skill.interaction_model.conflict_detection.paged_response import PagedResponse - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as PaginationContext_25fb50cf - from ask_smapi_model.v1.links import Links as Links_bc43467b - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result import GetConflictsResponseResult as GetConflictsResponseResult_a3ae2661 - - -class GetConflictsResponse(PagedResponse): - """ - - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - :param results: - :type results: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult] - - """ - deserialized_types = { - 'pagination_context': 'ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext', - 'links': 'ask_smapi_model.v1.links.Links', - 'results': 'list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult]' - } # type: Dict - - attribute_map = { - 'pagination_context': 'paginationContext', - 'links': '_links', - 'results': 'results' - } # type: Dict - supports_multiple_types = False - - def __init__(self, pagination_context=None, links=None, results=None): - # type: (Optional[PaginationContext_25fb50cf], Optional[Links_bc43467b], Optional[List[GetConflictsResponseResult_a3ae2661]]) -> None - """ - - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - :param results: - :type results: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.get_conflicts_response_result.GetConflictsResponseResult] - """ - self.__discriminator_value = None # type: str - - super(GetConflictsResponse, self).__init__(pagination_context=pagination_context, links=links) - self.results = results - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetConflictsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py deleted file mode 100644 index eaca9da..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/get_conflicts_response_result.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result import ConflictResult as ConflictResult_e85f1991 - - -class GetConflictsResponseResult(object): - """ - - :param conflicting_utterance: Utterance resolved from sample utterance that causes conflicts among different intents. - :type conflicting_utterance: (optional) str - :param conflicts: - :type conflicts: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result.ConflictResult] - - """ - deserialized_types = { - 'conflicting_utterance': 'str', - 'conflicts': 'list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result.ConflictResult]' - } # type: Dict - - attribute_map = { - 'conflicting_utterance': 'conflictingUtterance', - 'conflicts': 'conflicts' - } # type: Dict - supports_multiple_types = False - - def __init__(self, conflicting_utterance=None, conflicts=None): - # type: (Optional[str], Optional[List[ConflictResult_e85f1991]]) -> None - """ - - :param conflicting_utterance: Utterance resolved from sample utterance that causes conflicts among different intents. - :type conflicting_utterance: (optional) str - :param conflicts: - :type conflicts: (optional) list[ask_smapi_model.v1.skill.interaction_model.conflict_detection.conflict_result.ConflictResult] - """ - self.__discriminator_value = None # type: str - - self.conflicting_utterance = conflicting_utterance - self.conflicts = conflicts - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, GetConflictsResponseResult): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py deleted file mode 100644 index cc726c5..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/paged_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context import PaginationContext as PaginationContext_25fb50cf - from ask_smapi_model.v1.links import Links as Links_bc43467b - - -class PagedResponse(object): - """ - - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - - """ - deserialized_types = { - 'pagination_context': 'ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext', - 'links': 'ask_smapi_model.v1.links.Links' - } # type: Dict - - attribute_map = { - 'pagination_context': 'paginationContext', - 'links': '_links' - } # type: Dict - supports_multiple_types = False - - def __init__(self, pagination_context=None, links=None): - # type: (Optional[PaginationContext_25fb50cf], Optional[Links_bc43467b]) -> None - """ - - :param pagination_context: - :type pagination_context: (optional) ask_smapi_model.v1.skill.interaction_model.conflict_detection.pagination_context.PaginationContext - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - """ - self.__discriminator_value = None # type: str - - self.pagination_context = pagination_context - self.links = links - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PagedResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py deleted file mode 100644 index f973858..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/pagination_context.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class PaginationContext(object): - """ - - :param next_token: A token returned if there are more results for the given inputs than `maxResults` from the request. It should also be used in the next request to retrieve more results. - :type next_token: (optional) str - :param total_count: Total avaliable results for the given query. - :type total_count: (optional) int - - """ - deserialized_types = { - 'next_token': 'str', - 'total_count': 'int' - } # type: Dict - - attribute_map = { - 'next_token': 'nextToken', - 'total_count': 'totalCount' - } # type: Dict - supports_multiple_types = False - - def __init__(self, next_token=None, total_count=None): - # type: (Optional[str], Optional[int]) -> None - """ - - :param next_token: A token returned if there are more results for the given inputs than `maxResults` from the request. It should also be used in the next request to retrieve more results. - :type next_token: (optional) str - :param total_count: Total avaliable results for the given query. - :type total_count: (optional) int - """ - self.__discriminator_value = None # type: str - - self.next_token = next_token - self.total_count = total_count - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PaginationContext): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/conflict_detection/py.typed deleted file mode 100644 index e69de29..0000000 From d0639a2926fad1f8602be9419f585a499aa6fcb9 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 5 Jun 2023 15:39:16 +0000 Subject: [PATCH 082/111] Release 1.68.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 6b767d3..4252e69 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -655,3 +655,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.68.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index dc29387..03405f4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.67.0' +__version__ = '1.68.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From de2d9b6ee9161822ad0e07cc27d81e6da6010b94 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Mon, 5 Jun 2023 16:09:05 +0000 Subject: [PATCH 083/111] Release 1.22.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../ask_smapi_model/v1/skill/manifest/permission_name.py | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 018fc3e..f19b7fe 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -344,3 +344,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.22.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index da2fc85..8f63d6d 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.21.0' +__version__ = '1.22.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py index 7044d51..c46257b 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/permission_name.py @@ -31,7 +31,7 @@ class PermissionName(Enum): - Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_measurement_system_readwrite, dash_vendor_read_endpoints, dash_read_endpoints_sensors] + Allowed enum values: [alexa_device_id_read, alexa_personality_explicit_read, alexa_authenticate_2_mandatory, alexa_devices_all_address_country_and_postal_code_read, alexa_profile_mobile_number_read, alexa_async_event_write, alexa_device_type_read, alexa_skill_proactive_enablement, alexa_personality_explicit_write, alexa_household_lists_read, alexa_utterance_id_read, alexa_user_experience_guidance_read, alexa_devices_all_notifications_write, avs_distributed_audio, alexa_devices_all_address_full_read, alexa_devices_all_notifications_urgent_write, payments_autopay_consent, alexa_alerts_timers_skill_readwrite, alexa_customer_id_read, alexa_skill_cds_monetization, alexa_music_cast, alexa_profile_given_name_read, alexa_alerts_reminders_skill_readwrite, alexa_household_lists_write, alexa_profile_email_read, alexa_profile_name_read, alexa_devices_all_geolocation_read, alexa_raw_person_id_read, alexa_authenticate_2_optional, alexa_health_profile_write, alexa_person_id_read, alexa_skill_products_entitlements, alexa_energy_devices_state_read, alexa_origin_ip_address_read, alexa_devices_all_coarse_location_read, alexa_devices_all_tokenized_geolocation_read, alexa_devices_all_intent_tokens_read, alexa_measurement_system_readwrite, dash_vendor_read_endpoints, dash_read_endpoints_sensors] """ alexa_device_id_read = "alexa::device_id:read" alexa_personality_explicit_read = "alexa::personality:explicit:read" @@ -69,6 +69,7 @@ class PermissionName(Enum): alexa_origin_ip_address_read = "alexa::origin_ip_address:read" alexa_devices_all_coarse_location_read = "alexa::devices:all:coarse_location:read" alexa_devices_all_tokenized_geolocation_read = "alexa::devices:all:tokenized_geolocation:read" + alexa_devices_all_intent_tokens_read = "alexa::devices:all:intent_tokens:read" alexa_measurement_system_readwrite = "alexa::measurement_system::readwrite" dash_vendor_read_endpoints = "dash::vendor:read:endpoints" dash_read_endpoints_sensors = "dash::read:endpoints:sensors" From cb131499ea84d20d30074c2b405ce274659fa333 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 8 Jun 2023 18:50:36 +0000 Subject: [PATCH 084/111] Release 1.69.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__init__.py | 52 ++++----- ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../ask_sdk_model/authorization/__init__.py | 4 +- .../ask_sdk_model/canfulfill/__init__.py | 4 +- .../ask_sdk_model/dialog/__init__.py | 16 +-- .../dynamic_endpoints/__init__.py | 4 +- .../ask_sdk_model/er/dynamic/__init__.py | 4 +- .../events/skillevents/__init__.py | 20 ++-- .../interfaces/alexa/datastore/__init__.py | 10 +- .../datastore/packagemanager/__init__.py | 22 ++-- .../alexa/experimentation/__init__.py | 2 +- .../interfaces/alexa/presentation/__init__.py | 2 +- .../alexa/presentation/apl/__init__.py | 108 +++++++++--------- .../apl/listoperations/__init__.py | 6 +- .../alexa/presentation/apla/__init__.py | 16 +-- .../alexa/presentation/aplt/__init__.py | 22 ++-- .../alexa/presentation/html/__init__.py | 16 +-- .../amazonpay/model/request/__init__.py | 8 +- .../amazonpay/model/response/__init__.py | 6 +- .../interfaces/amazonpay/model/v1/__init__.py | 16 +-- .../interfaces/amazonpay/request/__init__.py | 2 +- .../interfaces/amazonpay/response/__init__.py | 2 +- .../interfaces/amazonpay/v1/__init__.py | 4 +- .../interfaces/applink/__init__.py | 4 +- .../interfaces/audioplayer/__init__.py | 30 ++--- .../interfaces/connections/__init__.py | 4 +- .../connections/requests/__init__.py | 6 +- .../custom_interface_controller/__init__.py | 12 +- .../interfaces/display/__init__.py | 34 +++--- .../interfaces/game_engine/__init__.py | 2 +- .../interfaces/geolocation/__init__.py | 10 +- .../interfaces/playbackcontroller/__init__.py | 4 +- .../interfaces/system/__init__.py | 4 +- .../interfaces/videoapp/__init__.py | 2 +- .../interfaces/viewport/__init__.py | 16 +-- .../interfaces/viewport/size/__init__.py | 2 +- .../ask_sdk_model/services/__init__.py | 12 +- .../services/datastore/v1/__init__.py | 24 ++-- .../services/device_address/__init__.py | 4 +- .../services/directive/__init__.py | 6 +- .../services/endpoint_enumeration/__init__.py | 2 +- .../services/gadget_controller/__init__.py | 4 +- .../services/game_engine/__init__.py | 14 +-- .../services/list_management/__init__.py | 34 +++--- .../ask_sdk_model/services/lwa/__init__.py | 6 +- .../services/monetization/__init__.py | 18 +-- .../services/proactive_events/__init__.py | 8 +- .../services/reminder_management/__init__.py | 38 +++--- .../services/skill_messaging/__init__.py | 2 +- .../services/timer_management/__init__.py | 24 ++-- .../ask_sdk_model/services/ups/__init__.py | 8 +- .../slu/entityresolution/__init__.py | 4 +- ask-sdk-model/ask_sdk_model/ui/__init__.py | 12 +- 54 files changed, 355 insertions(+), 349 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4252e69..16a970e 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -661,3 +661,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.69.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__init__.py b/ask-sdk-model/ask_sdk_model/__init__.py index 4b0035e..8685199 100644 --- a/ask-sdk-model/ask_sdk_model/__init__.py +++ b/ask-sdk-model/ask_sdk_model/__init__.py @@ -14,37 +14,37 @@ # from __future__ import absolute_import +from .request_envelope import RequestEnvelope +from .session_ended_reason import SessionEndedReason +from .intent_request import IntentRequest +from .scope import Scope from .dialog_state import DialogState -from .session_ended_error_type import SessionEndedErrorType -from .status import Status -from .session_resumed_request import SessionResumedRequest -from .slot import Slot -from .slot_confirmation_status import SlotConfirmationStatus -from .connection_completed import ConnectionCompleted -from .request import Request -from .session_ended_request import SessionEndedRequest -from .task import Task -from .response import Response -from .device import Device from .supported_interfaces import SupportedInterfaces -from .response_envelope import ResponseEnvelope -from .person import Person -from .intent_confirmation_status import IntentConfirmationStatus -from .intent import Intent -from .launch_request import LaunchRequest +from .task import Task +from .slot_confirmation_status import SlotConfirmationStatus +from .cause import Cause +from .context import Context +from .list_slot_value import ListSlotValue +from .session_ended_error_type import SessionEndedErrorType +from .directive import Directive from .simple_slot_value import SimpleSlotValue +from .intent_confirmation_status import IntentConfirmationStatus from .slot_value import SlotValue +from .slot import Slot +from .application import Application +from .request import Request +from .session_resumed_request import SessionResumedRequest from .permission_status import PermissionStatus from .permissions import Permissions -from .user import User -from .directive import Directive -from .scope import Scope -from .session_ended_reason import SessionEndedReason +from .intent import Intent from .session_ended_error import SessionEndedError -from .list_slot_value import ListSlotValue -from .request_envelope import RequestEnvelope +from .response_envelope import ResponseEnvelope +from .person import Person +from .response import Response from .session import Session -from .intent_request import IntentRequest -from .cause import Cause -from .application import Application -from .context import Context +from .status import Status +from .user import User +from .launch_request import LaunchRequest +from .session_ended_request import SessionEndedRequest +from .device import Device +from .connection_completed import ConnectionCompleted diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 03405f4..3975f7f 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.68.0' +__version__ = '1.69.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/authorization/__init__.py b/ask-sdk-model/ask_sdk_model/authorization/__init__.py index 3574dfe..c7848ef 100644 --- a/ask-sdk-model/ask_sdk_model/authorization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/authorization/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .grant_type import GrantType from .authorization_grant_body import AuthorizationGrantBody -from .authorization_grant_request import AuthorizationGrantRequest from .grant import Grant -from .grant_type import GrantType +from .authorization_grant_request import AuthorizationGrantRequest diff --git a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py index d4ec275..078b1de 100644 --- a/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py +++ b/ask-sdk-model/ask_sdk_model/canfulfill/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .can_understand_slot_values import CanUnderstandSlotValues from .can_fulfill_intent_values import CanFulfillIntentValues -from .can_fulfill_slot_values import CanFulfillSlotValues from .can_fulfill_intent_request import CanFulfillIntentRequest from .can_fulfill_slot import CanFulfillSlot +from .can_fulfill_slot_values import CanFulfillSlotValues +from .can_understand_slot_values import CanUnderstandSlotValues from .can_fulfill_intent import CanFulfillIntent diff --git a/ask-sdk-model/ask_sdk_model/dialog/__init__.py b/ask-sdk-model/ask_sdk_model/dialog/__init__.py index 91868a1..0313ec2 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dialog/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .delegation_period import DelegationPeriod +from .elicit_slot_directive import ElicitSlotDirective +from .delegate_request_directive import DelegateRequestDirective from .delegation_period_until import DelegationPeriodUntil +from .confirm_slot_directive import ConfirmSlotDirective from .confirm_intent_directive import ConfirmIntentDirective +from .updated_request import UpdatedRequest from .delegate_directive import DelegateDirective -from .dynamic_entities_directive import DynamicEntitiesDirective -from .elicit_slot_directive import ElicitSlotDirective -from .updated_intent_request import UpdatedIntentRequest -from .delegate_request_directive import DelegateRequestDirective +from .input_request import InputRequest from .input import Input -from .updated_request import UpdatedRequest -from .confirm_slot_directive import ConfirmSlotDirective +from .updated_intent_request import UpdatedIntentRequest from .updated_input_request import UpdatedInputRequest -from .input_request import InputRequest +from .delegation_period import DelegationPeriod +from .dynamic_entities_directive import DynamicEntitiesDirective diff --git a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py index a64d520..c090fd0 100644 --- a/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py +++ b/ask-sdk-model/ask_sdk_model/dynamic_endpoints/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .request import Request -from .failure_response import FailureResponse from .success_response import SuccessResponse +from .failure_response import FailureResponse +from .request import Request from .base_response import BaseResponse diff --git a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py index 5f872bc..5ca97d6 100644 --- a/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py +++ b/ask-sdk-model/ask_sdk_model/er/dynamic/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .update_behavior import UpdateBehavior from .entity_list_item import EntityListItem -from .entity_value_and_synonyms import EntityValueAndSynonyms +from .update_behavior import UpdateBehavior from .entity import Entity +from .entity_value_and_synonyms import EntityValueAndSynonyms diff --git a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py index b6c30e6..53e599b 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .permission import Permission -from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody -from .permission_accepted_request import PermissionAcceptedRequest -from .notification_subscription_event import NotificationSubscriptionEvent +from .notification_subscription_changed_request import NotificationSubscriptionChangedRequest +from .account_linked_body import AccountLinkedBody +from .skill_disabled_request import SkillDisabledRequest from .permission_changed_request import PermissionChangedRequest -from .notification_subscription_changed_body import NotificationSubscriptionChangedBody from .proactive_subscription_event import ProactiveSubscriptionEvent -from .notification_subscription_changed_request import NotificationSubscriptionChangedRequest -from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest -from .permission_body import PermissionBody from .skill_enabled_request import SkillEnabledRequest +from .permission_body import PermissionBody +from .permission import Permission +from .proactive_subscription_changed_body import ProactiveSubscriptionChangedBody +from .notification_subscription_event import NotificationSubscriptionEvent from .account_linked_request import AccountLinkedRequest -from .account_linked_body import AccountLinkedBody -from .skill_disabled_request import SkillDisabledRequest +from .permission_accepted_request import PermissionAcceptedRequest +from .proactive_subscription_changed_request import ProactiveSubscriptionChangedRequest +from .notification_subscription_changed_body import NotificationSubscriptionChangedBody diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py index 5393134..fa6cdd0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .storage_limit_execeeded_error import StorageLimitExeceededError -from .execution_error_content import ExecutionErrorContent -from .device_permanantly_unavailable_error import DevicePermanantlyUnavailableError -from .dispatch_error_content import DispatchErrorContent from .commands_error import CommandsError +from .error import Error from .data_store_internal_error import DataStoreInternalError +from .execution_error_content import ExecutionErrorContent +from .storage_limit_execeeded_error import StorageLimitExeceededError from .device_unavailable_error import DeviceUnavailableError -from .error import Error +from .dispatch_error_content import DispatchErrorContent +from .device_permanantly_unavailable_error import DevicePermanantlyUnavailableError from .data_store_error import DataStoreError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py index b71c9b5..8d2ad84 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/datastore/packagemanager/__init__.py @@ -14,18 +14,18 @@ # from __future__ import absolute_import -from .package_state_information import PackageStateInformation -from .package_remove_usage import PackageRemoveUsage -from .usages_removed_request import UsagesRemovedRequest -from .locations import Locations -from .installation_error import InstallationError -from .usages_installed import UsagesInstalled -from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface -from .package_install_usage import PackageInstallUsage from .usages_removed import UsagesRemoved from .update_request import UpdateRequest -from .package_error import PackageError +from .error_type import ErrorType +from .package_install_usage import PackageInstallUsage from .package import Package -from .package_manager_state import PackageManagerState +from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface +from .locations import Locations +from .usages_installed import UsagesInstalled +from .installation_error import InstallationError +from .usages_removed_request import UsagesRemovedRequest +from .package_remove_usage import PackageRemoveUsage from .usages_install_request import UsagesInstallRequest -from .error_type import ErrorType +from .package_error import PackageError +from .package_manager_state import PackageManagerState +from .package_state_information import PackageStateInformation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py index 7e76963..26b0f3c 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/experimentation/__init__.py @@ -15,6 +15,6 @@ from __future__ import absolute_import from .experimentation_state import ExperimentationState -from .treatment_id import TreatmentId from .experiment_trigger_response import ExperimentTriggerResponse +from .treatment_id import TreatmentId from .experiment_assignment import ExperimentAssignment diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py index fcd89a9..965d018 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .presentation_state import PresentationState from .presentation_state_context import PresentationStateContext from .apl_presentation_state_context import AplPresentationStateContext -from .presentation_state import PresentationState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py index 92bbacf..f5e9ccf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/__init__.py @@ -14,72 +14,72 @@ # from __future__ import absolute_import -from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag -from .position import Position -from .control_media_command import ControlMediaCommand -from .auto_page_command import AutoPageCommand -from .show_overlay_command import ShowOverlayCommand -from .animated_transform_property import AnimatedTransformProperty +from .back_type import BackType +from .transform_property import TransformProperty +from .runtime import Runtime +from .clear_focus_command import ClearFocusCommand from .component_visible_on_screen_pager_tag import ComponentVisibleOnScreenPagerTag -from .list_runtime_error import ListRuntimeError -from .scroll_to_component_command import ScrollToComponentCommand -from .update_index_list_data_directive import UpdateIndexListDataDirective -from .parallel_command import ParallelCommand +from .component_state import ComponentState from .component_entity import ComponentEntity -from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag -from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag -from .reinflate_command import ReinflateCommand -from .scroll_to_index_command import ScrollToIndexCommand -from .clear_focus_command import ClearFocusCommand -from .animate_item_command import AnimateItemCommand -from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum -from .highlight_mode import HighlightMode -from .runtime_error_event import RuntimeErrorEvent -from .send_event_command import SendEventCommand -from .speak_list_command import SpeakListCommand +from .open_url_command import OpenUrlCommand +from .speak_item_command import SpeakItemCommand +from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag from .list_runtime_error_reason import ListRuntimeErrorReason -from .set_value_command import SetValueCommand -from .set_state_command import SetStateCommand -from .move_transform_property import MoveTransformProperty from .skew_transform_property import SkewTransformProperty -from .send_token_list_data_directive import SendTokenListDataDirective -from .scroll_command import ScrollCommand -from .user_event import UserEvent -from .scale_transform_property import ScaleTransformProperty -from .idle_command import IdleCommand +from .reinflate_command import ReinflateCommand +from .animated_transform_property import AnimatedTransformProperty +from .set_page_command import SetPageCommand from .set_focus_command import SetFocusCommand -from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag -from .sequential_command import SequentialCommand +from .position import Position from .command import Command -from .media_command_type import MediaCommandType -from .send_index_list_data_directive import SendIndexListDataDirective -from .transform_property import TransformProperty -from .speak_item_command import SpeakItemCommand -from .set_page_command import SetPageCommand -from .animated_property import AnimatedProperty -from .play_media_command import PlayMediaCommand from .animated_opacity_property import AnimatedOpacityProperty -from .animate_item_repeat_mode import AnimateItemRepeatMode -from .video_source import VideoSource -from .open_url_command import OpenUrlCommand -from .back_type import BackType -from .hide_overlay_command import HideOverlayCommand -from .runtime_error import RuntimeError -from .render_document_directive import RenderDocumentDirective -from .load_token_list_data_event import LoadTokenListDataEvent +from .component_visible_on_screen_scrollable_tag import ComponentVisibleOnScreenScrollableTag +from .play_media_command import PlayMediaCommand +from .audio_track import AudioTrack +from .send_event_command import SendEventCommand +from .component_visible_on_screen_list_item_tag import ComponentVisibleOnScreenListItemTag from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .set_state_command import SetStateCommand +from .animate_item_repeat_mode import AnimateItemRepeatMode +from .sequential_command import SequentialCommand +from .update_index_list_data_directive import UpdateIndexListDataDirective +from .idle_command import IdleCommand from .go_back_command import GoBackCommand from .component_visible_on_screen_scrollable_tag_direction_enum import ComponentVisibleOnScreenScrollableTagDirectionEnum -from .component_visible_on_screen_list_tag import ComponentVisibleOnScreenListTag -from .audio_track import AudioTrack +from .media_command_type import MediaCommandType +from .component_visible_on_screen import ComponentVisibleOnScreen +from .speak_list_command import SpeakListCommand +from .parallel_command import ParallelCommand +from .auto_page_command import AutoPageCommand +from .scroll_command import ScrollCommand +from .show_overlay_command import ShowOverlayCommand +from .runtime_error_event import RuntimeErrorEvent +from .hide_overlay_command import HideOverlayCommand from .align import Align -from .select_command import SelectCommand -from .runtime import Runtime +from .render_document_directive import RenderDocumentDirective +from .rotate_transform_property import RotateTransformProperty +from .component_visible_on_screen_media_tag_state_enum import ComponentVisibleOnScreenMediaTagStateEnum +from .animate_item_command import AnimateItemCommand +from .scale_transform_property import ScaleTransformProperty +from .set_value_command import SetValueCommand +from .rendered_document_state import RenderedDocumentState +from .list_runtime_error import ListRuntimeError from .execute_commands_directive import ExecuteCommandsDirective -from .component_state import ComponentState +from .component_visible_on_screen_media_tag import ComponentVisibleOnScreenMediaTag +from .runtime_error import RuntimeError +from .control_media_command import ControlMediaCommand from .finish_command import FinishCommand -from .component_visible_on_screen import ComponentVisibleOnScreen -from .rendered_document_state import RenderedDocumentState +from .animated_property import AnimatedProperty +from .highlight_mode import HighlightMode from .load_index_list_data_event import LoadIndexListDataEvent -from .rotate_transform_property import RotateTransformProperty +from .scroll_to_index_command import ScrollToIndexCommand +from .scroll_to_component_command import ScrollToComponentCommand +from .load_token_list_data_event import LoadTokenListDataEvent +from .move_transform_property import MoveTransformProperty +from .send_index_list_data_directive import SendIndexListDataDirective +from .component_visible_on_screen_viewport_tag import ComponentVisibleOnScreenViewportTag +from .user_event import UserEvent from .component_visible_on_screen_tags import ComponentVisibleOnScreenTags +from .select_command import SelectCommand +from .video_source import VideoSource +from .send_token_list_data_directive import SendTokenListDataDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py index ec7f7fc..261e22d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/listoperations/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .operation import Operation -from .set_item_operation import SetItemOperation +from .delete_multiple_items_operation import DeleteMultipleItemsOperation from .insert_multiple_items_operation import InsertMultipleItemsOperation from .delete_item_operation import DeleteItemOperation -from .delete_multiple_items_operation import DeleteMultipleItemsOperation +from .set_item_operation import SetItemOperation from .insert_item_operation import InsertItemOperation +from .operation import Operation diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py index 5438dbe..e663c26 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apla/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .audio_source_error_reason import AudioSourceErrorReason -from .runtime_error_event import RuntimeErrorEvent -from .document_error_reason import DocumentErrorReason -from .render_error_reason import RenderErrorReason -from .link_error_reason import LinkErrorReason from .audio_source_runtime_error import AudioSourceRuntimeError -from .render_runtime_error import RenderRuntimeError -from .runtime_error import RuntimeError -from .render_document_directive import RenderDocumentDirective from .document_runtime_error import DocumentRuntimeError +from .render_error_reason import RenderErrorReason +from .render_runtime_error import RenderRuntimeError from .link_runtime_error import LinkRuntimeError +from .audio_source_error_reason import AudioSourceErrorReason +from .link_error_reason import LinkErrorReason +from .document_error_reason import DocumentErrorReason +from .runtime_error_event import RuntimeErrorEvent +from .render_document_directive import RenderDocumentDirective +from .runtime_error import RuntimeError diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py index 943dbef..47b9f84 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import +from .runtime import Runtime +from .set_page_command import SetPageCommand from .position import Position -from .auto_page_command import AutoPageCommand -from .parallel_command import ParallelCommand +from .command import Command from .send_event_command import SendEventCommand -from .set_value_command import SetValueCommand -from .scroll_command import ScrollCommand -from .user_event import UserEvent -from .idle_command import IdleCommand from .sequential_command import SequentialCommand -from .command import Command -from .set_page_command import SetPageCommand -from .target_profile import TargetProfile +from .idle_command import IdleCommand +from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface +from .parallel_command import ParallelCommand +from .auto_page_command import AutoPageCommand +from .scroll_command import ScrollCommand from .render_document_directive import RenderDocumentDirective -from .runtime import Runtime +from .set_value_command import SetValueCommand from .execute_commands_directive import ExecuteCommandsDirective -from .alexa_presentation_aplt_interface import AlexaPresentationApltInterface +from .target_profile import TargetProfile +from .user_event import UserEvent diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py index 55bd95c..91ec955 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/html/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .start_request import StartRequest +from .runtime import Runtime +from .transformer_type import TransformerType from .runtime_error_reason import RuntimeErrorReason -from .start_request_method import StartRequestMethod -from .runtime_error_request import RuntimeErrorRequest +from .message_request import MessageRequest +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface from .handle_message_directive import HandleMessageDirective -from .configuration import Configuration from .transformer import Transformer -from .message_request import MessageRequest -from .transformer_type import TransformerType from .runtime_error import RuntimeError -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .runtime import Runtime +from .configuration import Configuration +from .start_request_method import StartRequestMethod +from .start_request import StartRequest +from .runtime_error_request import RuntimeErrorRequest from .start_directive import StartDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py index ff58fcb..4fa15d0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/request/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .authorize_attributes import AuthorizeAttributes +from .provider_attributes import ProviderAttributes from .price import Price from .seller_order_attributes import SellerOrderAttributes -from .provider_attributes import ProviderAttributes +from .authorize_attributes import AuthorizeAttributes from .provider_credit import ProviderCredit -from .billing_agreement_attributes import BillingAgreementAttributes -from .base_amazon_pay_entity import BaseAmazonPayEntity from .payment_action import PaymentAction +from .base_amazon_pay_entity import BaseAmazonPayEntity from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes from .billing_agreement_type import BillingAgreementType +from .billing_agreement_attributes import BillingAgreementAttributes diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py index 02dcef3..bff9b24 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/response/__init__.py @@ -15,9 +15,9 @@ from __future__ import absolute_import from .state import State +from .billing_agreement_details import BillingAgreementDetails +from .authorization_details import AuthorizationDetails from .price import Price -from .destination import Destination from .release_environment import ReleaseEnvironment from .authorization_status import AuthorizationStatus -from .billing_agreement_details import BillingAgreementDetails -from .authorization_details import AuthorizationDetails +from .destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py index 32b246f..25d4c9f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/model/v1/__init__.py @@ -14,19 +14,19 @@ # from __future__ import absolute_import -from .authorize_attributes import AuthorizeAttributes from .state import State -from .billing_agreement_status import BillingAgreementStatus +from .billing_agreement_details import BillingAgreementDetails +from .authorization_details import AuthorizationDetails +from .provider_attributes import ProviderAttributes from .price import Price from .seller_order_attributes import SellerOrderAttributes -from .destination import Destination from .release_environment import ReleaseEnvironment -from .provider_attributes import ProviderAttributes +from .authorize_attributes import AuthorizeAttributes from .provider_credit import ProviderCredit -from .authorization_status import AuthorizationStatus -from .billing_agreement_attributes import BillingAgreementAttributes -from .billing_agreement_details import BillingAgreementDetails from .payment_action import PaymentAction from .seller_billing_agreement_attributes import SellerBillingAgreementAttributes -from .authorization_details import AuthorizationDetails from .billing_agreement_type import BillingAgreementType +from .billing_agreement_attributes import BillingAgreementAttributes +from .authorization_status import AuthorizationStatus +from .billing_agreement_status import BillingAgreementStatus +from .destination import Destination diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py index fc1ff28..a3f2b1d 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/request/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .setup_amazon_pay_request import SetupAmazonPayRequest from .charge_amazon_pay_request import ChargeAmazonPayRequest +from .setup_amazon_pay_request import SetupAmazonPayRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py index f8fe460..84a6617 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/response/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse +from .setup_amazon_pay_result import SetupAmazonPayResult diff --git a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py index fba19fd..d178cf6 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/amazonpay/v1/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .charge_amazon_pay import ChargeAmazonPay -from .setup_amazon_pay_result import SetupAmazonPayResult from .charge_amazon_pay_result import ChargeAmazonPayResult from .amazon_pay_error_response import AmazonPayErrorResponse from .setup_amazon_pay import SetupAmazonPay +from .charge_amazon_pay import ChargeAmazonPay +from .setup_amazon_pay_result import SetupAmazonPayResult diff --git a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py index b0f43e3..c34ef21 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/applink/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .app_link_state import AppLinkState +from .catalog_types import CatalogTypes from .app_link_interface import AppLinkInterface from .direct_launch import DirectLaunch -from .catalog_types import CatalogTypes from .send_to_device import SendToDevice -from .app_link_state import AppLinkState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py index a262ccf..c5ab860 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/__init__.py @@ -14,24 +14,24 @@ # from __future__ import absolute_import -from .play_directive import PlayDirective -from .player_activity import PlayerActivity from .current_playback_state import CurrentPlaybackState -from .stop_directive import StopDirective -from .clear_queue_directive import ClearQueueDirective -from .caption_data import CaptionData -from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest from .clear_behavior import ClearBehavior -from .audio_item_metadata import AudioItemMetadata +from .stop_directive import StopDirective from .stream import Stream -from .caption_type import CaptionType -from .play_behavior import PlayBehavior +from .error_type import ErrorType +from .error import Error +from .audio_item_metadata import AudioItemMetadata +from .playback_finished_request import PlaybackFinishedRequest +from .player_activity import PlayerActivity +from .audio_player_state import AudioPlayerState from .audio_player_interface import AudioPlayerInterface from .playback_stopped_request import PlaybackStoppedRequest -from .playback_finished_request import PlaybackFinishedRequest -from .error import Error -from .playback_started_request import PlaybackStartedRequest -from .playback_failed_request import PlaybackFailedRequest +from .caption_type import CaptionType from .audio_item import AudioItem -from .audio_player_state import AudioPlayerState -from .error_type import ErrorType +from .play_directive import PlayDirective +from .caption_data import CaptionData +from .playback_nearly_finished_request import PlaybackNearlyFinishedRequest +from .play_behavior import PlayBehavior +from .clear_queue_directive import ClearQueueDirective +from .playback_failed_request import PlaybackFailedRequest +from .playback_started_request import PlaybackStartedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py index 533937a..c565a81 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .on_completion import OnCompletion from .connections_response import ConnectionsResponse -from .send_response_directive import SendResponseDirective from .send_request_directive import SendRequestDirective +from .send_response_directive import SendResponseDirective from .connections_request import ConnectionsRequest from .connections_status import ConnectionsStatus -from .on_completion import OnCompletion diff --git a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py index ec7fa88..fb85d38 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/connections/requests/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import +from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest +from .print_pdf_request import PrintPDFRequest from .base_request import BaseRequest -from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest from .print_web_page_request import PrintWebPageRequest -from .print_pdf_request import PrintPDFRequest -from .schedule_food_establishment_reservation_request import ScheduleFoodEstablishmentReservationRequest from .print_image_request import PrintImageRequest +from .schedule_taxi_reservation_request import ScheduleTaxiReservationRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py index 06ffd6d..0e4b95b 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/custom_interface_controller/__init__.py @@ -15,13 +15,13 @@ from __future__ import absolute_import from .header import Header -from .start_event_handler_directive import StartEventHandlerDirective +from .send_directive_directive import SendDirectiveDirective from .event_filter import EventFilter -from .stop_event_handler_directive import StopEventHandlerDirective +from .expiration import Expiration +from .filter_match_action import FilterMatchAction from .events_received_request import EventsReceivedRequest +from .stop_event_handler_directive import StopEventHandlerDirective from .event import Event -from .expired_request import ExpiredRequest -from .send_directive_directive import SendDirectiveDirective +from .start_event_handler_directive import StartEventHandlerDirective from .endpoint import Endpoint -from .filter_match_action import FilterMatchAction -from .expiration import Expiration +from .expired_request import ExpiredRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py index 02aafb8..babe181 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/__init__.py @@ -14,27 +14,27 @@ # from __future__ import absolute_import +from .element_selected_request import ElementSelectedRequest +from .body_template6 import BodyTemplate6 +from .list_template2 import ListTemplate2 +from .body_template7 import BodyTemplate7 +from .render_template_directive import RenderTemplateDirective from .hint_directive import HintDirective -from .list_item import ListItem -from .template import Template from .text_content import TextContent -from .back_button_behavior import BackButtonBehavior +from .body_template3 import BodyTemplate3 +from .image import Image +from .image_size import ImageSize +from .template import Template +from .body_template2 import BodyTemplate2 from .list_template1 import ListTemplate1 +from .hint import Hint from .rich_text import RichText -from .text_field import TextField -from .body_template6 import BodyTemplate6 from .plain_text_hint import PlainTextHint -from .image_instance import ImageInstance -from .image_size import ImageSize -from .hint import Hint -from .image import Image -from .body_template1 import BodyTemplate1 -from .element_selected_request import ElementSelectedRequest -from .render_template_directive import RenderTemplateDirective -from .display_interface import DisplayInterface from .plain_text import PlainText -from .body_template3 import BodyTemplate3 -from .list_template2 import ListTemplate2 -from .body_template2 import BodyTemplate2 +from .body_template1 import BodyTemplate1 +from .list_item import ListItem +from .image_instance import ImageInstance +from .back_button_behavior import BackButtonBehavior +from .text_field import TextField from .display_state import DisplayState -from .body_template7 import BodyTemplate7 +from .display_interface import DisplayInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py index a32c67f..35b5562 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/game_engine/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .stop_input_handler_directive import StopInputHandlerDirective from .start_input_handler_directive import StartInputHandlerDirective from .input_handler_event_request import InputHandlerEventRequest +from .stop_input_handler_directive import StopInputHandlerDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py index f50c82f..0976bdc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .speed import Speed from .heading import Heading -from .status import Status -from .geolocation_state import GeolocationState from .altitude import Altitude +from .access import Access from .location_services import LocationServices +from .speed import Speed +from .geolocation_state import GeolocationState from .coordinate import Coordinate -from .geolocation_common_state import GeolocationCommonState -from .access import Access from .geolocation_interface import GeolocationInterface +from .status import Status +from .geolocation_common_state import GeolocationCommonState diff --git a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py index 7a9bcfe..94b2efa 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/playbackcontroller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .next_command_issued_request import NextCommandIssuedRequest +from .pause_command_issued_request import PauseCommandIssuedRequest from .previous_command_issued_request import PreviousCommandIssuedRequest +from .next_command_issued_request import NextCommandIssuedRequest from .play_command_issued_request import PlayCommandIssuedRequest -from .pause_command_issued_request import PauseCommandIssuedRequest diff --git a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py index 819fe31..5e465d2 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .error_type import ErrorType +from .error import Error from .error_cause import ErrorCause from .exception_encountered_request import ExceptionEncounteredRequest from .system_state import SystemState -from .error import Error -from .error_type import ErrorType diff --git a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py index 36327da..e55ea27 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .launch_directive import LaunchDirective from .metadata import Metadata from .video_item import VideoItem -from .launch_directive import LaunchDirective from .video_app_interface import VideoAppInterface diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py index 697c3ee..9f636a0 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/__init__.py @@ -14,16 +14,16 @@ # from __future__ import absolute_import -from .experience import Experience -from .viewport_video import ViewportVideo -from .presentation_type import PresentationType +from .shape import Shape from .viewport_state_video import ViewportStateVideo -from .keyboard import Keyboard -from .typed_viewport_state import TypedViewportState +from .aplt_viewport_state import APLTViewportState from .dialog import Dialog -from .mode import Mode from .apl_viewport_state import APLViewportState +from .viewport_video import ViewportVideo +from .mode import Mode +from .presentation_type import PresentationType +from .keyboard import Keyboard from .viewport_state import ViewportState -from .aplt_viewport_state import APLTViewportState +from .typed_viewport_state import TypedViewportState +from .experience import Experience from .touch import Touch -from .shape import Shape diff --git a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py index 3e2475c..ab93696 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/size/__init__.py @@ -15,5 +15,5 @@ from __future__ import absolute_import from .discrete_viewport_size import DiscreteViewportSize -from .viewport_size import ViewportSize from .continuous_viewport_size import ContinuousViewportSize +from .viewport_size import ViewportSize diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index d58bf7a..916b205 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import +from .base_service_client import BaseServiceClient from .api_configuration import ApiConfiguration -from .api_client_message import ApiClientMessage from .api_response import ApiResponse -from .base_service_client import BaseServiceClient -from .service_client_factory import ServiceClientFactory -from .api_client_response import ApiClientResponse from .service_client_response import ServiceClientResponse -from .authentication_configuration import AuthenticationConfiguration from .api_client import ApiClient +from .service_client_factory import ServiceClientFactory +from .api_client_response import ApiClientResponse +from .service_exception import ServiceException from .serializer import Serializer +from .api_client_message import ApiClientMessage +from .authentication_configuration import AuthenticationConfiguration from .api_client_request import ApiClientRequest -from .service_exception import ServiceException diff --git a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py index 45a9191..90d14c1 100644 --- a/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/datastore/v1/__init__.py @@ -14,24 +14,24 @@ # from __future__ import absolute_import -from .clear_command import ClearCommand +from .cancel_commands_request_error_type import CancelCommandsRequestErrorType +from .put_object_command import PutObjectCommand from .commands_request_error import CommandsRequestError +from .put_namespace_command import PutNamespaceCommand +from .commands_request import CommandsRequest from .commands_response import CommandsResponse -from .remove_object_command import RemoveObjectCommand -from .commands_request_error_type import CommandsRequestErrorType -from .cancel_commands_request_error_type import CancelCommandsRequestErrorType +from .command import Command from .remove_namespace_command import RemoveNamespaceCommand +from .queued_result_request_error import QueuedResultRequestError +from .remove_object_command import RemoveObjectCommand from .target import Target from .commands_dispatch_result import CommandsDispatchResult -from .put_object_command import PutObjectCommand -from .command import Command -from .response_pagination_context import ResponsePaginationContext +from .clear_command import ClearCommand +from .queued_result_request_error_type import QueuedResultRequestErrorType from .cancel_commands_request_error import CancelCommandsRequestError from .queued_result_response import QueuedResultResponse -from .commands_request import CommandsRequest +from .devices import Devices +from .commands_request_error_type import CommandsRequestErrorType +from .response_pagination_context import ResponsePaginationContext from .user import User -from .queued_result_request_error_type import QueuedResultRequestErrorType from .dispatch_result_type import DispatchResultType -from .devices import Devices -from .queued_result_request_error import QueuedResultRequestError -from .put_namespace_command import PutNamespaceCommand diff --git a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py index 5ebc60d..081ec3f 100644 --- a/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/device_address/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .short_address import ShortAddress -from .device_address_service_client import DeviceAddressServiceClient from .error import Error +from .device_address_service_client import DeviceAddressServiceClient +from .short_address import ShortAddress from .address import Address diff --git a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py index 989aeb5..c5eb145 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .speak_directive import SpeakDirective from .header import Header from .send_directive_request import SendDirectiveRequest -from .directive_service_client import DirectiveServiceClient -from .directive import Directive from .error import Error +from .directive import Directive +from .speak_directive import SpeakDirective +from .directive_service_client import DirectiveServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py index 194fc1d..52c78be 100644 --- a/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/endpoint_enumeration/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import +from .error import Error from .endpoint_enumeration_service_client import EndpointEnumerationServiceClient from .endpoint_info import EndpointInfo from .endpoint_enumeration_response import EndpointEnumerationResponse from .endpoint_capability import EndpointCapability -from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py index ac7e5c1..f883b33 100644 --- a/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/gadget_controller/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import +from .trigger_event_type import TriggerEventType from .light_animation import LightAnimation -from .set_light_parameters import SetLightParameters from .animation_step import AnimationStep -from .trigger_event_type import TriggerEventType +from .set_light_parameters import SetLightParameters diff --git a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py index 389d922..7b82d40 100644 --- a/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/game_engine/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .pattern import Pattern -from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType +from .input_event_action_type import InputEventActionType from .input_event import InputEvent -from .deviation_recognizer import DeviationRecognizer -from .event import Event +from .pattern_recognizer import PatternRecognizer from .progress_recognizer import ProgressRecognizer -from .input_event_action_type import InputEventActionType from .input_handler_event import InputHandlerEvent -from .recognizer import Recognizer from .event_reporting_type import EventReportingType -from .pattern_recognizer import PatternRecognizer +from .event import Event +from .pattern import Pattern +from .pattern_recognizer_anchor_type import PatternRecognizerAnchorType +from .deviation_recognizer import DeviationRecognizer +from .recognizer import Recognizer diff --git a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py index b7871c7..320661d 100644 --- a/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/list_management/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .list_management_service_client import ListManagementServiceClient -from .forbidden_error import ForbiddenError -from .create_list_item_request import CreateListItemRequest -from .status import Status -from .list_created_event_request import ListCreatedEventRequest -from .list_items_updated_event_request import ListItemsUpdatedEventRequest from .list_body import ListBody -from .list_items_created_event_request import ListItemsCreatedEventRequest +from .list_created_event_request import ListCreatedEventRequest +from .update_list_item_request import UpdateListItemRequest +from .list_deleted_event_request import ListDeletedEventRequest +from .forbidden_error import ForbiddenError from .list_item_state import ListItemState -from .alexa_lists_metadata import AlexaListsMetadata -from .list_state import ListState -from .list_items_deleted_event_request import ListItemsDeletedEventRequest -from .alexa_list_item import AlexaListItem +from .error import Error from .links import Links -from .list_deleted_event_request import ListDeletedEventRequest from .alexa_list_metadata import AlexaListMetadata -from .update_list_item_request import UpdateListItemRequest -from .list_updated_event_request import ListUpdatedEventRequest -from .list_item_body import ListItemBody -from .error import Error -from .create_list_request import CreateListRequest +from .alexa_lists_metadata import AlexaListsMetadata +from .list_items_deleted_event_request import ListItemsDeletedEventRequest +from .list_state import ListState from .update_list_request import UpdateListRequest +from .create_list_request import CreateListRequest +from .list_items_updated_event_request import ListItemsUpdatedEventRequest +from .list_updated_event_request import ListUpdatedEventRequest +from .list_items_created_event_request import ListItemsCreatedEventRequest +from .list_management_service_client import ListManagementServiceClient +from .create_list_item_request import CreateListItemRequest from .alexa_list import AlexaList +from .list_item_body import ListItemBody +from .status import Status +from .alexa_list_item import AlexaListItem diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py index 378a775..cf832f0 100644 --- a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .access_token_request import AccessTokenRequest from .access_token import AccessToken -from .lwa_client import LwaClient -from .access_token_response import AccessTokenResponse from .error import Error +from .access_token_request import AccessTokenRequest +from .access_token_response import AccessTokenResponse +from .lwa_client import LwaClient diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py index 2424b27..3e89e16 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .metadata import Metadata from .transactions import Transactions -from .status import Status -from .in_skill_products_response import InSkillProductsResponse -from .monetization_service_client import MonetizationServiceClient -from .result_set import ResultSet +from .error import Error from .purchase_mode import PurchaseMode -from .entitlement_reason import EntitlementReason -from .in_skill_product import InSkillProduct -from .product_type import ProductType from .entitled_state import EntitledState from .in_skill_product_transactions_response import InSkillProductTransactionsResponse -from .error import Error +from .metadata import Metadata +from .in_skill_product import InSkillProduct +from .entitlement_reason import EntitlementReason +from .product_type import ProductType +from .result_set import ResultSet from .purchasable_state import PurchasableState +from .status import Status +from .in_skill_products_response import InSkillProductsResponse +from .monetization_service_client import MonetizationServiceClient diff --git a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py index 8b749fd..6fde86a 100644 --- a/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import -from .relevant_audience_type import RelevantAudienceType -from .proactive_events_service_client import ProactiveEventsServiceClient -from .create_proactive_event_request import CreateProactiveEventRequest +from .error import Error from .skill_stage import SkillStage from .event import Event -from .error import Error +from .proactive_events_service_client import ProactiveEventsServiceClient +from .relevant_audience_type import RelevantAudienceType from .relevant_audience import RelevantAudience +from .create_proactive_event_request import CreateProactiveEventRequest diff --git a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py index 57110df..9549959 100644 --- a/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/reminder_management/__init__.py @@ -14,28 +14,28 @@ # from __future__ import absolute_import -from .get_reminders_response import GetRemindersResponse -from .reminder_deleted_event import ReminderDeletedEvent from .get_reminder_response import GetReminderResponse -from .status import Status -from .push_notification_status import PushNotificationStatus -from .alert_info import AlertInfo -from .recurrence_day import RecurrenceDay -from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .reminder_request import ReminderRequest +from .recurrence_freq import RecurrenceFreq from .spoken_text import SpokenText -from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest +from .error import Error from .reminder_started_event_request import ReminderStartedEventRequest -from .push_notification import PushNotification -from .spoken_info import SpokenInfo -from .recurrence import Recurrence -from .reminder_response import ReminderResponse -from .event import Event -from .reminder import Reminder -from .reminder_management_service_client import ReminderManagementServiceClient from .reminder_created_event_request import ReminderCreatedEventRequest +from .reminder import Reminder from .reminder_deleted_event_request import ReminderDeletedEventRequest -from .reminder_request import ReminderRequest -from .trigger import Trigger +from .recurrence_day import RecurrenceDay +from .reminder_status_changed_event_request import ReminderStatusChangedEventRequest +from .push_notification_status import PushNotificationStatus +from .event import Event +from .reminder_management_service_client import ReminderManagementServiceClient +from .get_reminders_response import GetRemindersResponse +from .reminder_response import ReminderResponse +from .spoken_info import SpokenInfo +from .alert_info import AlertInfo +from .reminder_deleted_event import ReminderDeletedEvent +from .reminder_updated_event_request import ReminderUpdatedEventRequest +from .status import Status from .trigger_type import TriggerType -from .error import Error -from .recurrence_freq import RecurrenceFreq +from .push_notification import PushNotification +from .trigger import Trigger +from .recurrence import Recurrence diff --git a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py index e2dbf05..5daa7ba 100644 --- a/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/skill_messaging/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .error import Error from .skill_messaging_service_client import SkillMessagingServiceClient from .send_skill_messaging_request import SendSkillMessagingRequest -from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py index 4459432..a733f91 100644 --- a/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/timer_management/__init__.py @@ -14,21 +14,21 @@ # from __future__ import absolute_import -from .operation import Operation -from .status import Status from .visibility import Visibility -from .notify_only_operation import NotifyOnlyOperation -from .launch_task_operation import LaunchTaskOperation +from .text_to_announce import TextToAnnounce +from .notification_config import NotificationConfig +from .error import Error from .task import Task -from .display_experience import DisplayExperience from .timer_management_service_client import TimerManagementServiceClient -from .creation_behavior import CreationBehavior -from .text_to_confirm import TextToConfirm -from .timer_response import TimerResponse -from .notification_config import NotificationConfig -from .announce_operation import AnnounceOperation +from .launch_task_operation import LaunchTaskOperation from .timers_response import TimersResponse +from .notify_only_operation import NotifyOnlyOperation from .timer_request import TimerRequest -from .error import Error +from .display_experience import DisplayExperience from .triggering_behavior import TriggeringBehavior -from .text_to_announce import TextToAnnounce +from .creation_behavior import CreationBehavior +from .timer_response import TimerResponse +from .announce_operation import AnnounceOperation +from .text_to_confirm import TextToConfirm +from .status import Status +from .operation import Operation diff --git a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py index f6da64e..3b2281a 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .ups_service_client import UpsServiceClient +from .error import Error +from .distance_units import DistanceUnits +from .temperature_unit import TemperatureUnit from .error_code import ErrorCode +from .ups_service_client import UpsServiceClient from .phone_number import PhoneNumber -from .temperature_unit import TemperatureUnit -from .distance_units import DistanceUnits -from .error import Error diff --git a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py index ece83ea..66bd56e 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .status_code import StatusCode -from .status import Status from .resolutions import Resolutions from .resolution import Resolution from .value_wrapper import ValueWrapper from .value import Value +from .status import Status +from .status_code import StatusCode diff --git a/ask-sdk-model/ask_sdk_model/ui/__init__.py b/ask-sdk-model/ask_sdk_model/ui/__init__.py index 4c0b1bd..feb6586 100644 --- a/ask-sdk-model/ask_sdk_model/ui/__init__.py +++ b/ask-sdk-model/ask_sdk_model/ui/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .standard_card import StandardCard from .plain_text_output_speech import PlainTextOutputSpeech +from .output_speech import OutputSpeech from .link_account_card import LinkAccountCard -from .ask_for_permissions_consent_card import AskForPermissionsConsentCard +from .image import Image +from .ssml_output_speech import SsmlOutputSpeech +from .standard_card import StandardCard from .simple_card import SimpleCard from .reprompt import Reprompt -from .play_behavior import PlayBehavior from .card import Card -from .output_speech import OutputSpeech -from .image import Image -from .ssml_output_speech import SsmlOutputSpeech +from .play_behavior import PlayBehavior +from .ask_for_permissions_consent_card import AskForPermissionsConsentCard From 393c39973cf4de04a8782bb59b0efc25a2e8482a Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Fri, 9 Jun 2023 14:24:38 +0000 Subject: [PATCH 085/111] Release 1.23.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 + .../ask_smapi_model/__version__.py | 2 +- .../ask_smapi_model/v0/__init__.py | 2 +- .../ask_smapi_model/v0/catalog/__init__.py | 8 +- .../v0/catalog/upload/__init__.py | 20 +- .../development_events/subscriber/__init__.py | 14 +- .../subscription/__init__.py | 6 +- .../v0/event_schema/__init__.py | 10 +- .../alexa_development_event/__init__.py | 4 +- .../ask_smapi_model/v1/__init__.py | 6 +- .../ask_smapi_model/v1/audit_logs/__init__.py | 22 +- .../ask_smapi_model/v1/catalog/__init__.py | 2 +- .../v1/catalog/upload/__init__.py | 14 +- .../ask_smapi_model/v1/isp/__init__.py | 48 ++-- .../ask_smapi_model/v1/skill/__init__.py | 110 ++++----- .../v1/skill/account_linking/__init__.py | 8 +- .../v1/skill/alexa_hosted/__init__.py | 18 +- .../v1/skill/beta_test/__init__.py | 2 +- .../v1/skill/beta_test/testers/__init__.py | 6 +- .../v1/skill/certification/__init__.py | 8 +- .../v1/skill/evaluations/__init__.py | 18 +- .../v1/skill/experiment/__init__.py | 56 ++--- .../v1/skill/history/__init__.py | 20 +- .../v1/skill/interaction_model/__init__.py | 54 ++--- .../interaction_model/catalog/__init__.py | 12 +- .../skill/interaction_model/jobs/__init__.py | 34 +-- .../interaction_model/model_type/__init__.py | 20 +- .../type_version/__init__.py | 10 +- .../interaction_model/version/__init__.py | 12 +- .../v1/skill/invocations/__init__.py | 12 +- .../v1/skill/manifest/__init__.py | 216 +++++++++--------- .../v1/skill/manifest/custom/__init__.py | 6 +- .../v1/skill/metrics/__init__.py | 4 +- .../v1/skill/nlu/annotation_sets/__init__.py | 12 +- .../v1/skill/nlu/evaluations/__init__.py | 44 ++-- .../v1/skill/private/__init__.py | 2 +- .../v1/skill/publication/__init__.py | 2 +- .../v1/skill/simulations/__init__.py | 22 +- .../v1/skill/validations/__init__.py | 8 +- .../v1/smart_home_evaluation/__init__.py | 32 +-- .../ask_smapi_model/v2/__init__.py | 2 +- .../ask_smapi_model/v2/skill/__init__.py | 2 +- .../v2/skill/invocations/__init__.py | 6 +- .../v2/skill/simulations/__init__.py | 32 +-- 44 files changed, 480 insertions(+), 474 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index f19b7fe..e608f86 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -350,3 +350,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.23.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 8f63d6d..210b712 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.22.0' +__version__ = '1.23.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v0/__init__.py b/ask-smapi-model/ask_smapi_model/v0/__init__.py index a044fbc..7bf567d 100644 --- a/ask-smapi-model/ask_smapi_model/v0/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .error import Error from .bad_request_error import BadRequestError +from .error import Error diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py index b3b9978..f597548 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .catalog_summary import CatalogSummary -from .catalog_usage import CatalogUsage -from .catalog_details import CatalogDetails -from .create_catalog_request import CreateCatalogRequest from .list_catalogs_response import ListCatalogsResponse from .catalog_type import CatalogType +from .catalog_details import CatalogDetails +from .catalog_usage import CatalogUsage +from .catalog_summary import CatalogSummary +from .create_catalog_request import CreateCatalogRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py index 3e53c70..03650b9 100644 --- a/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/catalog/upload/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .create_content_upload_response import CreateContentUploadResponse -from .content_upload_file_summary import ContentUploadFileSummary -from .get_content_upload_response import GetContentUploadResponse +from .complete_upload_request import CompleteUploadRequest +from .ingestion_status import IngestionStatus +from .presigned_upload_part import PresignedUploadPart from .upload_ingestion_step import UploadIngestionStep -from .ingestion_step_name import IngestionStepName -from .upload_status import UploadStatus -from .list_uploads_response import ListUploadsResponse from .file_upload_status import FileUploadStatus -from .presigned_upload_part import PresignedUploadPart -from .content_upload_summary import ContentUploadSummary from .create_content_upload_request import CreateContentUploadRequest -from .ingestion_status import IngestionStatus +from .list_uploads_response import ListUploadsResponse +from .upload_status import UploadStatus from .pre_signed_url_item import PreSignedUrlItem -from .complete_upload_request import CompleteUploadRequest +from .content_upload_file_summary import ContentUploadFileSummary +from .content_upload_summary import ContentUploadSummary +from .ingestion_step_name import IngestionStepName +from .create_content_upload_response import CreateContentUploadResponse +from .get_content_upload_response import GetContentUploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py index 9a147b4..2315688 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscriber/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .subscriber_summary import SubscriberSummary -from .create_subscriber_request import CreateSubscriberRequest +from .endpoint_authorization import EndpointAuthorization +from .list_subscribers_response import ListSubscribersResponse +from .endpoint_aws_authorization import EndpointAwsAuthorization +from .update_subscriber_request import UpdateSubscriberRequest from .endpoint_authorization_type import EndpointAuthorizationType +from .endpoint import Endpoint +from .subscriber_summary import SubscriberSummary from .subscriber_info import SubscriberInfo -from .update_subscriber_request import UpdateSubscriberRequest from .subscriber_status import SubscriberStatus -from .list_subscribers_response import ListSubscribersResponse -from .endpoint import Endpoint -from .endpoint_aws_authorization import EndpointAwsAuthorization -from .endpoint_authorization import EndpointAuthorization +from .create_subscriber_request import CreateSubscriberRequest diff --git a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py index 7c00ef8..2a926f9 100644 --- a/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/development_events/subscription/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .list_subscriptions_response import ListSubscriptionsResponse -from .subscription_info import SubscriptionInfo -from .subscription_summary import SubscriptionSummary from .event import Event -from .update_subscription_request import UpdateSubscriptionRequest from .create_subscription_request import CreateSubscriptionRequest +from .subscription_info import SubscriptionInfo +from .update_subscription_request import UpdateSubscriptionRequest +from .subscription_summary import SubscriptionSummary diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py index 070c806..0b65dc0 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import +from .actor_attributes import ActorAttributes +from .skill_event_attributes import SkillEventAttributes +from .skill_review_event_attributes import SkillReviewEventAttributes from .interaction_model_event_attributes import InteractionModelEventAttributes +from .subscription_attributes import SubscriptionAttributes from .base_schema import BaseSchema from .skill_review_attributes import SkillReviewAttributes -from .skill_event_attributes import SkillEventAttributes -from .interaction_model_attributes import InteractionModelAttributes -from .skill_review_event_attributes import SkillReviewEventAttributes from .request_status import RequestStatus -from .subscription_attributes import SubscriptionAttributes +from .interaction_model_attributes import InteractionModelAttributes from .skill_attributes import SkillAttributes -from .actor_attributes import ActorAttributes diff --git a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py index 6bb81c2..6d608a5 100644 --- a/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v0/event_schema/alexa_development_event/__init__.py @@ -14,7 +14,7 @@ # from __future__ import absolute_import -from .skill_publish import SkillPublish -from .skill_certification import SkillCertification from .manifest_update import ManifestUpdate from .interaction_model_update import InteractionModelUpdate +from .skill_publish import SkillPublish +from .skill_certification import SkillCertification diff --git a/ask-smapi-model/ask_smapi_model/v1/__init__.py b/ask-smapi-model/ask_smapi_model/v1/__init__.py index b81b034..5c3dc38 100644 --- a/ask-smapi-model/ask_smapi_model/v1/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import from .link import Link -from .stage_type import StageType -from .links import Links -from .error import Error from .bad_request_error import BadRequestError +from .error import Error +from .links import Links +from .stage_type import StageType from .stage_v2_type import StageV2Type diff --git a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py index 555e1e5..93f020f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/audit_logs/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .audit_logs_request import AuditLogsRequest -from .operation import Operation -from .resource import Resource from .requester import Requester +from .request_filters import RequestFilters +from .sort_direction import SortDirection +from .client_filter import ClientFilter +from .resource import Resource +from .audit_logs_response import AuditLogsResponse +from .requester_filter import RequesterFilter +from .resource_filter import ResourceFilter +from .sort_field import SortField from .client import Client -from .resource_type_enum import ResourceTypeEnum from .response_pagination_context import ResponsePaginationContext +from .resource_type_enum import ResourceTypeEnum from .operation_filter import OperationFilter from .request_pagination_context import RequestPaginationContext -from .resource_filter import ResourceFilter -from .sort_direction import SortDirection -from .sort_field import SortField -from .requester_filter import RequesterFilter -from .audit_logs_response import AuditLogsResponse -from .client_filter import ClientFilter +from .operation import Operation +from .audit_logs_request import AuditLogsRequest from .audit_log import AuditLog -from .request_filters import RequestFilters diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py index cc9dfa7..a051feb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .presigned_upload_part_items import PresignedUploadPartItems from .create_content_upload_url_request import CreateContentUploadUrlRequest from .create_content_upload_url_response import CreateContentUploadUrlResponse +from .presigned_upload_part_items import PresignedUploadPartItems diff --git a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py index adfc3f0..6a0e7bd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/catalog/upload/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .catalog_upload_base import CatalogUploadBase -from .content_upload_file_summary import ContentUploadFileSummary -from .get_content_upload_response import GetContentUploadResponse -from .upload_ingestion_step import UploadIngestionStep -from .ingestion_step_name import IngestionStepName +from .ingestion_status import IngestionStatus from .pre_signed_url import PreSignedUrl -from .upload_status import UploadStatus +from .upload_ingestion_step import UploadIngestionStep from .file_upload_status import FileUploadStatus -from .ingestion_status import IngestionStatus +from .upload_status import UploadStatus +from .catalog_upload_base import CatalogUploadBase from .pre_signed_url_item import PreSignedUrlItem +from .content_upload_file_summary import ContentUploadFileSummary +from .ingestion_step_name import IngestionStepName from .location import Location +from .get_content_upload_response import GetContentUploadResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py index 70b407d..418f4bd 100644 --- a/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/isp/__init__.py @@ -14,34 +14,34 @@ # from __future__ import absolute_import -from .localized_publishing_information import LocalizedPublishingInformation -from .promotable_state import PromotableState -from .publishing_information import PublishingInformation -from .price_listing import PriceListing -from .privacy_and_compliance import PrivacyAndCompliance -from .status import Status -from .list_in_skill_product_response import ListInSkillProductResponse -from .in_skill_product_summary import InSkillProductSummary -from .subscription_information import SubscriptionInformation -from .summary_marketplace_pricing import SummaryMarketplacePricing -from .in_skill_product_definition_response import InSkillProductDefinitionResponse -from .distribution_countries import DistributionCountries -from .custom_product_prompts import CustomProductPrompts -from .currency import Currency -from .editable_state import EditableState from .create_in_skill_product_request import CreateInSkillProductRequest -from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance -from .summary_price_listing import SummaryPriceListing -from .update_in_skill_product_request import UpdateInSkillProductRequest +from .custom_product_prompts import CustomProductPrompts +from .summary_marketplace_pricing import SummaryMarketplacePricing +from .list_in_skill_product import ListInSkillProduct +from .promotable_state import PromotableState from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .product_type import ProductType +from .in_skill_product_definition import InSkillProductDefinition +from .isp_summary_links import IspSummaryLinks +from .marketplace_pricing import MarketplacePricing from .tax_information import TaxInformation -from .in_skill_product_summary_response import InSkillProductSummaryResponse +from .editable_state import EditableState +from .update_in_skill_product_request import UpdateInSkillProductRequest from .associated_skill_response import AssociatedSkillResponse +from .list_in_skill_product_response import ListInSkillProductResponse +from .price_listing import PriceListing from .product_response import ProductResponse -from .list_in_skill_product import ListInSkillProduct -from .marketplace_pricing import MarketplacePricing +from .in_skill_product_summary_response import InSkillProductSummaryResponse +from .currency import Currency +from .distribution_countries import DistributionCountries +from .privacy_and_compliance import PrivacyAndCompliance +from .localized_publishing_information import LocalizedPublishingInformation +from .in_skill_product_definition_response import InSkillProductDefinitionResponse +from .product_type import ProductType from .tax_information_category import TaxInformationCategory +from .subscription_information import SubscriptionInformation +from .publishing_information import PublishingInformation +from .summary_price_listing import SummaryPriceListing from .purchasable_state import PurchasableState -from .in_skill_product_definition import InSkillProductDefinition -from .isp_summary_links import IspSummaryLinks +from .status import Status +from .in_skill_product_summary import InSkillProductSummary +from .localized_privacy_and_compliance import LocalizedPrivacyAndCompliance diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py index 84d5e4c..0233aee 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/__init__.py @@ -14,71 +14,71 @@ # from __future__ import absolute_import -from .response_status import ResponseStatus -from .skill_messaging_credentials import SkillMessagingCredentials -from .agreement_type import AgreementType -from .version_submission_status import VersionSubmissionStatus -from .skill_status import SkillStatus -from .create_skill_with_package_request import CreateSkillWithPackageRequest -from .validation_feature import ValidationFeature -from .resource_import_status import ResourceImportStatus from .hosted_skill_deployment_status import HostedSkillDeploymentStatus -from .image_size_unit import ImageSizeUnit +from .version_submission import VersionSubmission +from .rollback_request_status import RollbackRequestStatus from .clone_locale_status import CloneLocaleStatus -from .validation_endpoint import ValidationEndpoint +from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus +from .image_attributes import ImageAttributes +from .publication_status import PublicationStatus +from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest +from .skill_summary import SkillSummary +from .clone_locale_request_status import CloneLocaleRequestStatus +from .clone_locale_resource_status import CloneLocaleResourceStatus +from .publication_method import PublicationMethod +from .list_skill_response import ListSkillResponse +from .validation_failure_reason import ValidationFailureReason +from .update_skill_with_package_request import UpdateSkillWithPackageRequest +from .create_skill_response import CreateSkillResponse +from .skill_status import SkillStatus +from .skill_resources_enum import SkillResourcesEnum +from .image_size_unit import ImageSizeUnit from .validation_failure_type import ValidationFailureType -from .status import Status -from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest -from .skill_credentials import SkillCredentials from .build_step_name import BuildStepName -from .clone_locale_request_status import CloneLocaleRequestStatus +from .manifest_last_update_request import ManifestLastUpdateRequest from .format import Format -from .update_skill_with_package_request import UpdateSkillWithPackageRequest -from .skill_interaction_model_status import SkillInteractionModelStatus -from .clone_locale_status_response import CloneLocaleStatusResponse -from .image_dimension import ImageDimension -from .regional_ssl_certificate import RegionalSSLCertificate +from .action import Action from .create_rollback_request import CreateRollbackRequest -from .hosted_skill_provisioning_status import HostedSkillProvisioningStatus from .clone_locale_stage_type import CloneLocaleStageType -from .create_skill_request import CreateSkillRequest -from .import_response import ImportResponse -from .interaction_model_last_update_request import InteractionModelLastUpdateRequest -from .clone_locale_resource_status import CloneLocaleResourceStatus -from .overwrite_mode import OverwriteMode -from .validation_failure_reason import ValidationFailureReason -from .action import Action -from .instance import Instance -from .version_submission import VersionSubmission -from .skill_summary_apis import SkillSummaryApis -from .hosted_skill_provisioning_last_update_request import HostedSkillProvisioningLastUpdateRequest -from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest -from .build_step import BuildStep -from .import_response_skill import ImportResponseSkill -from .rollback_request_status import RollbackRequestStatus -from .skill_resources_enum import SkillResourcesEnum +from .skill_messaging_credentials import SkillMessagingCredentials from .image_size import ImageSize -from .skill_summary import SkillSummary -from .list_skill_response import ListSkillResponse -from .rollback_request_status_types import RollbackRequestStatusTypes -from .manifest_last_update_request import ManifestLastUpdateRequest -from .manifest_status import ManifestStatus -from .withdraw_request import WithdrawRequest -from .create_skill_response import CreateSkillResponse -from .list_skill_versions_response import ListSkillVersionsResponse +from .validation_details import ValidationDetails +from .reason import Reason from .ssl_certificate_payload import SSLCertificatePayload +from .build_step import BuildStep +from .create_skill_request import CreateSkillRequest +from .skill_credentials import SkillCredentials +from .export_response_skill import ExportResponseSkill +from .create_skill_with_package_request import CreateSkillWithPackageRequest +from .version_submission_status import VersionSubmissionStatus +from .clone_locale_status_response import CloneLocaleStatusResponse from .hosted_skill_deployment_details import HostedSkillDeploymentDetails -from .build_details import BuildDetails -from .skill_version import SkillVersion -from .image_attributes import ImageAttributes -from .upload_response import UploadResponse +from .instance import Instance +from .regional_ssl_certificate import RegionalSSLCertificate +from .import_response import ImportResponse +from .validation_feature import ValidationFeature +from .validation_endpoint import ValidationEndpoint +from .agreement_type import AgreementType from .create_rollback_response import CreateRollbackResponse -from .publication_method import PublicationMethod -from .validation_details import ValidationDetails +from .export_response import ExportResponse +from .manifest_status import ManifestStatus +from .resource_import_status import ResourceImportStatus +from .standardized_error import StandardizedError +from .response_status import ResponseStatus +from .import_response_skill import ImportResponseSkill +from .list_skill_versions_response import ListSkillVersionsResponse from .validation_data_types import ValidationDataTypes +from .overwrite_mode import OverwriteMode +from .skill_interaction_model_status import SkillInteractionModelStatus +from .upload_response import UploadResponse +from .rollback_request_status_types import RollbackRequestStatusTypes +from .submit_skill_for_certification_request import SubmitSkillForCertificationRequest +from .skill_version import SkillVersion +from .interaction_model_last_update_request import InteractionModelLastUpdateRequest from .clone_locale_request import CloneLocaleRequest -from .standardized_error import StandardizedError -from .publication_status import PublicationStatus -from .reason import Reason -from .export_response_skill import ExportResponseSkill -from .export_response import ExportResponse +from .skill_summary_apis import SkillSummaryApis +from .status import Status +from .withdraw_request import WithdrawRequest +from .build_details import BuildDetails +from .hosted_skill_deployment_status_last_update_request import HostedSkillDeploymentStatusLastUpdateRequest +from .image_dimension import ImageDimension diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py index 7a68675..66f25d8 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/account_linking/__init__.py @@ -14,11 +14,11 @@ # from __future__ import absolute_import +from .access_token_scheme_type import AccessTokenSchemeType from .account_linking_request_payload import AccountLinkingRequestPayload -from .account_linking_response import AccountLinkingResponse -from .account_linking_request import AccountLinkingRequest +from .account_linking_type import AccountLinkingType from .platform_type import PlatformType +from .account_linking_response import AccountLinkingResponse from .voice_forward_account_linking_status import VoiceForwardAccountLinkingStatus -from .account_linking_type import AccountLinkingType from .account_linking_platform_authorization_url import AccountLinkingPlatformAuthorizationUrl -from .access_token_scheme_type import AccessTokenSchemeType +from .account_linking_request import AccountLinkingRequest diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py index 3b3f1df..1e35c83 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/alexa_hosted/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .hosted_skill_repository import HostedSkillRepository from .hosted_skill_runtime import HostedSkillRuntime -from .hosted_skill_info import HostedSkillInfo from .hosted_skill_repository_credentials_request import HostedSkillRepositoryCredentialsRequest -from .hosted_skill_repository_info import HostedSkillRepositoryInfo -from .alexa_hosted_config import AlexaHostedConfig -from .hosted_skill_permission import HostedSkillPermission -from .hosted_skill_region import HostedSkillRegion from .hosted_skill_permission_type import HostedSkillPermissionType -from .hosted_skill_permission_status import HostedSkillPermissionStatus from .hosting_configuration import HostingConfiguration -from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials -from .hosted_skill_metadata import HostedSkillMetadata +from .hosted_skill_info import HostedSkillInfo +from .hosted_skill_permission_status import HostedSkillPermissionStatus +from .hosted_skill_permission import HostedSkillPermission +from .hosted_skill_repository import HostedSkillRepository from .hosted_skill_repository_credentials_list import HostedSkillRepositoryCredentialsList +from .hosted_skill_metadata import HostedSkillMetadata +from .hosted_skill_repository_credentials import HostedSkillRepositoryCredentials +from .hosted_skill_repository_info import HostedSkillRepositoryInfo +from .alexa_hosted_config import AlexaHostedConfig +from .hosted_skill_region import HostedSkillRegion diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py index 6e23315..8075ee6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .status import Status from .beta_test import BetaTest from .test_body import TestBody +from .status import Status diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py index 4a977c8..23aeae5 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/beta_test/testers/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .testers_list import TestersList -from .tester_with_details import TesterWithDetails -from .list_testers_response import ListTestersResponse from .tester import Tester +from .list_testers_response import ListTestersResponse +from .tester_with_details import TesterWithDetails +from .testers_list import TestersList from .invitation_status import InvitationStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py index e5caf1a..ad71a5e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/certification/__init__.py @@ -15,12 +15,12 @@ from __future__ import absolute_import from .certification_response import CertificationResponse +from .list_certifications_response import ListCertificationsResponse from .estimation_update import EstimationUpdate -from .certification_result import CertificationResult from .review_tracking_info import ReviewTrackingInfo -from .list_certifications_response import ListCertificationsResponse +from .distribution_info import DistributionInfo +from .review_tracking_info_summary import ReviewTrackingInfoSummary from .publication_failure import PublicationFailure +from .certification_result import CertificationResult from .certification_summary import CertificationSummary from .certification_status import CertificationStatus -from .review_tracking_info_summary import ReviewTrackingInfoSummary -from .distribution_info import DistributionInfo diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py index 75135b9..e9434e0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/evaluations/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .profile_nlu_request import ProfileNluRequest +from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems +from .profile_nlu_response import ProfileNluResponse +from .multi_turn import MultiTurn from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .slot import Slot -from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .slot_resolutions import SlotResolutions -from .dialog_act_type import DialogActType +from .dialog_act import DialogAct +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .profile_nlu_request import ProfileNluRequest from .intent import Intent +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .confirmation_status_type import ConfirmationStatusType -from .multi_turn import MultiTurn -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode from .profile_nlu_selected_intent import ProfileNluSelectedIntent -from .dialog_act import DialogAct -from .profile_nlu_response import ProfileNluResponse +from .dialog_act_type import DialogActType +from .slot_resolutions import SlotResolutions diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py index bdf5d3a..f66d162 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/experiment/__init__.py @@ -14,39 +14,39 @@ # from __future__ import absolute_import -from .experiment_summary import ExperimentSummary -from .state import State -from .experiment_trigger import ExperimentTrigger +from .experiment_history import ExperimentHistory +from .state_transition_error import StateTransitionError from .create_experiment_request import CreateExperimentRequest +from .experiment_information import ExperimentInformation +from .manage_experiment_state_request import ManageExperimentStateRequest +from .state import State +from .target_state import TargetState +from .state_transition_status import StateTransitionStatus from .metric import Metric -from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse -from .experiment_history import ExperimentHistory -from .update_experiment_request import UpdateExperimentRequest -from .destination_state import DestinationState -from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse from .get_experiment_state_response import GetExperimentStateResponse -from .treatment_id import TreatmentId -from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse -from .metric_change_direction import MetricChangeDirection -from .metric_values import MetricValues from .metric_configuration import MetricConfiguration +from .pagination_context import PaginationContext +from .experiment_type import ExperimentType from .create_experiment_input import CreateExperimentInput -from .metric_snapshot_status import MetricSnapshotStatus -from .target_state import TargetState -from .update_exposure_request import UpdateExposureRequest -from .update_experiment_input import UpdateExperimentInput -from .metric_type import MetricType -from .state_transition_error_type import StateTransitionErrorType -from .experiment_last_state_transition import ExperimentLastStateTransition -from .manage_experiment_state_request import ManageExperimentStateRequest -from .experiment_stopped_reason import ExperimentStoppedReason +from .metric_snapshot import MetricSnapshot +from .metric_change_direction import MetricChangeDirection from .source_state import SourceState from .get_experiment_response import GetExperimentResponse -from .state_transition_error import StateTransitionError -from .experiment_information import ExperimentInformation -from .state_transition_status import StateTransitionStatus -from .list_experiments_response import ListExperimentsResponse -from .metric_snapshot import MetricSnapshot -from .experiment_type import ExperimentType +from .get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse +from .update_experiment_request import UpdateExperimentRequest +from .metric_type import MetricType +from .state_transition_error_type import StateTransitionErrorType from .set_customer_treatment_override_request import SetCustomerTreatmentOverrideRequest -from .pagination_context import PaginationContext +from .metric_snapshot_status import MetricSnapshotStatus +from .list_experiments_response import ListExperimentsResponse +from .get_experiment_metric_snapshot_response import GetExperimentMetricSnapshotResponse +from .list_experiment_metric_snapshots_response import ListExperimentMetricSnapshotsResponse +from .treatment_id import TreatmentId +from .experiment_stopped_reason import ExperimentStoppedReason +from .update_experiment_input import UpdateExperimentInput +from .experiment_summary import ExperimentSummary +from .update_exposure_request import UpdateExposureRequest +from .destination_state import DestinationState +from .experiment_last_state_transition import ExperimentLastStateTransition +from .experiment_trigger import ExperimentTrigger +from .metric_values import MetricValues diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py index 67d53e7..894c729 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/history/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .intent_request_locales import IntentRequestLocales +from .intent_request import IntentRequest +from .publication_status import PublicationStatus +from .dialog_act_name import DialogActName from .sort_field_for_intent_request_type import SortFieldForIntentRequestType from .slot import Slot -from .confidence import Confidence -from .intent import Intent -from .dialog_act_name import DialogActName -from .intent_confidence_bin import IntentConfidenceBin -from .locale_in_query import LocaleInQuery -from .intent_requests import IntentRequests +from .interaction_type import InteractionType from .dialog_act import DialogAct -from .intent_request import IntentRequest -from .publication_status import PublicationStatus +from .locale_in_query import LocaleInQuery from .confidence_bin import ConfidenceBin -from .interaction_type import InteractionType +from .intent_requests import IntentRequests +from .intent import Intent +from .intent_request_locales import IntentRequestLocales +from .intent_confidence_bin import IntentConfidenceBin +from .confidence import Confidence diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py index b6887c4..0f9af1f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/__init__.py @@ -14,38 +14,38 @@ # from __future__ import absolute_import -from .language_model import LanguageModel -from .value_supplier import ValueSupplier -from .slot_type import SlotType +from .prompt_items_type import PromptItemsType +from .slot_validation import SlotValidation +from .multiple_values_config import MultipleValuesConfig +from .type_value_object import TypeValueObject +from .dialog_intents import DialogIntents +from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo +from .dialog_slot_items import DialogSlotItems +from .interaction_model_data import InteractionModelData from .is_greater_than import IsGreaterThan -from .prompt import Prompt +from .model_configuration import ModelConfiguration from .is_less_than import IsLessThan -from .has_entity_resolution_match import HasEntityResolutionMatch -from .is_greater_than_or_equal_to import IsGreaterThanOrEqualTo -from .type_value import TypeValue +from .dialog import Dialog from .fallback_intent_sensitivity import FallbackIntentSensitivity -from .slot_validation import SlotValidation from .dialog_intents_prompts import DialogIntentsPrompts -from .type_value_object import TypeValueObject -from .is_less_than_or_equal_to import IsLessThanOrEqualTo -from .prompt_items import PromptItems -from .is_not_in_set import IsNotInSet -from .intent import Intent -from .dialog_slot_items import DialogSlotItems +from .value_catalog import ValueCatalog +from .slot_type import SlotType +from .prompt import Prompt from .inline_value_supplier import InlineValueSupplier -from .dialog import Dialog from .catalog_value_supplier import CatalogValueSupplier -from .delegation_strategy_type import DelegationStrategyType -from .dialog_intents import DialogIntents -from .interaction_model_schema import InteractionModelSchema -from .dialog_prompts import DialogPrompts -from .is_in_duration import IsInDuration -from .is_not_in_duration import IsNotInDuration -from .prompt_items_type import PromptItemsType +from .is_not_in_set import IsNotInSet from .slot_definition import SlotDefinition -from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel -from .interaction_model_data import InteractionModelData -from .value_catalog import ValueCatalog +from .is_not_in_duration import IsNotInDuration from .is_in_set import IsInSet -from .model_configuration import ModelConfiguration -from .multiple_values_config import MultipleValuesConfig +from .is_in_duration import IsInDuration +from .type_value import TypeValue +from .intent import Intent +from .dialog_prompts import DialogPrompts +from .interaction_model_schema import InteractionModelSchema +from .language_model import LanguageModel +from .fallback_intent_sensitivity_level import FallbackIntentSensitivityLevel +from .has_entity_resolution_match import HasEntityResolutionMatch +from .value_supplier import ValueSupplier +from .delegation_strategy_type import DelegationStrategyType +from .is_less_than_or_equal_to import IsLessThanOrEqualTo +from .prompt_items import PromptItems diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py index 8495105..eebd362 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/catalog/__init__.py @@ -14,14 +14,14 @@ # from __future__ import absolute_import -from .list_catalog_response import ListCatalogResponse from .catalog_definition_output import CatalogDefinitionOutput -from .catalog_item import CatalogItem -from .catalog_entity import CatalogEntity +from .update_request import UpdateRequest from .definition_data import DefinitionData -from .catalog_status_type import CatalogStatusType -from .last_update_request import LastUpdateRequest from .catalog_status import CatalogStatus -from .update_request import UpdateRequest from .catalog_input import CatalogInput +from .catalog_status_type import CatalogStatusType from .catalog_response import CatalogResponse +from .catalog_item import CatalogItem +from .last_update_request import LastUpdateRequest +from .catalog_entity import CatalogEntity +from .list_catalog_response import ListCatalogResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py index 6620285..fcf2dc6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/jobs/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .create_job_definition_request import CreateJobDefinitionRequest -from .scheduled import Scheduled -from .job_error_details import JobErrorDetails -from .job_definition import JobDefinition -from .reference_version_update import ReferenceVersionUpdate -from .job_api_pagination_context import JobAPIPaginationContext -from .execution import Execution +from .create_job_definition_response import CreateJobDefinitionResponse +from .validation_errors import ValidationErrors from .slot_type_reference import SlotTypeReference -from .execution_metadata import ExecutionMetadata -from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .reference_version_update import ReferenceVersionUpdate +from .create_job_definition_request import CreateJobDefinitionRequest from .update_job_status_request import UpdateJobStatusRequest -from .catalog import Catalog +from .execution_metadata import ExecutionMetadata from .list_job_definitions_response import ListJobDefinitionsResponse -from .validation_errors import ValidationErrors -from .trigger import Trigger -from .create_job_definition_response import CreateJobDefinitionResponse -from .catalog_auto_refresh import CatalogAutoRefresh -from .job_definition_status import JobDefinitionStatus -from .job_definition_metadata import JobDefinitionMetadata -from .dynamic_update_error import DynamicUpdateError from .get_executions_response import GetExecutionsResponse +from .referenced_resource_jobs_complete import ReferencedResourceJobsComplete +from .catalog_auto_refresh import CatalogAutoRefresh from .resource_object import ResourceObject +from .job_error_details import JobErrorDetails +from .catalog import Catalog +from .execution import Execution +from .job_definition import JobDefinition +from .job_api_pagination_context import JobAPIPaginationContext from .interaction_model import InteractionModel +from .job_definition_metadata import JobDefinitionMetadata +from .scheduled import Scheduled +from .dynamic_update_error import DynamicUpdateError +from .job_definition_status import JobDefinitionStatus +from .trigger import Trigger diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py index 6b4c1b1..d5adbcb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/__init__.py @@ -14,17 +14,17 @@ # from __future__ import absolute_import -from .slot_type_response import SlotTypeResponse -from .slot_type_input import SlotTypeInput -from .definition_data import DefinitionData -from .slot_type_status import SlotTypeStatus -from .last_update_request import LastUpdateRequest -from .slot_type_definition_output import SlotTypeDefinitionOutput -from .warning import Warning -from .update_request import UpdateRequest -from .slot_type_response_entity import SlotTypeResponseEntity from .slot_type_status_type import SlotTypeStatusType from .slot_type_item import SlotTypeItem +from .update_request import UpdateRequest +from .slot_type_definition_output import SlotTypeDefinitionOutput +from .definition_data import DefinitionData from .error import Error -from .slot_type_update_definition import SlotTypeUpdateDefinition +from .warning import Warning +from .slot_type_input import SlotTypeInput from .list_slot_type_response import ListSlotTypeResponse +from .slot_type_update_definition import SlotTypeUpdateDefinition +from .slot_type_status import SlotTypeStatus +from .last_update_request import LastUpdateRequest +from .slot_type_response import SlotTypeResponse +from .slot_type_response_entity import SlotTypeResponseEntity diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py index bd30eb9..eed4bdf 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/type_version/__init__.py @@ -14,12 +14,12 @@ # from __future__ import absolute_import -from .version_data import VersionData +from .value_supplier_object import ValueSupplierObject +from .slot_type_version_item import SlotTypeVersionItem +from .slot_type_version_data import SlotTypeVersionData from .slot_type_update_object import SlotTypeUpdateObject +from .version_data_object import VersionDataObject from .slot_type_version_data_object import SlotTypeVersionDataObject +from .version_data import VersionData from .list_slot_type_version_response import ListSlotTypeVersionResponse -from .version_data_object import VersionDataObject -from .slot_type_version_data import SlotTypeVersionData -from .value_supplier_object import ValueSupplierObject -from .slot_type_version_item import SlotTypeVersionItem from .slot_type_update import SlotTypeUpdate diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py index 642acf5..886576f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/__init__.py @@ -14,15 +14,15 @@ # from __future__ import absolute_import -from .version_items import VersionItems -from .value_schema import ValueSchema -from .version_data import VersionData -from .catalog_version_data import CatalogVersionData -from .catalog_entity_version import CatalogEntityVersion from .catalog_update import CatalogUpdate from .list_catalog_entity_versions_response import ListCatalogEntityVersionsResponse from .input_source import InputSource +from .links import Links from .catalog_values import CatalogValues +from .catalog_entity_version import CatalogEntityVersion from .list_response import ListResponse -from .links import Links +from .catalog_version_data import CatalogVersionData +from .version_data import VersionData +from .version_items import VersionItems +from .value_schema import ValueSchema from .value_schema_name import ValueSchemaName diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py index 9bde65f..1567398 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/invocations/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .skill_execution_info import SkillExecutionInfo -from .invocation_response_status import InvocationResponseStatus from .invoke_skill_request import InvokeSkillRequest -from .request import Request -from .skill_request import SkillRequest -from .response import Response from .invocation_response_result import InvocationResponseResult -from .invoke_skill_response import InvokeSkillResponse from .end_point_regions import EndPointRegions +from .skill_request import SkillRequest +from .invoke_skill_response import InvokeSkillResponse +from .request import Request +from .skill_execution_info import SkillExecutionInfo from .metrics import Metrics +from .response import Response +from .invocation_response_status import InvocationResponseStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py index 67d2fd4..b2bd35e 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/__init__.py @@ -14,133 +14,133 @@ # from __future__ import absolute_import -from .event_name import EventName -from .data_store_package import DataStorePackage -from .skill_manifest_envelope import SkillManifestEnvelope -from .alexa_search import AlexaSearch -from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager -from .version import Version -from .flash_briefing_genre import FlashBriefingGenre -from .distribution_mode import DistributionMode -from .custom_connections import CustomConnections -from .video_apis import VideoApis +from .audio_interface import AudioInterface +from .interface import Interface +from .free_trial_information import FreeTrialInformation +from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .demand_response_apis import DemandResponseApis +from .automatic_distribution import AutomaticDistribution +from .video_region import VideoRegion +from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid from .music_content_name import MusicContentName -from .house_hold_list import HouseHoldList -from .skill_manifest_endpoint import SkillManifestEndpoint -from .game_engine_interface import GameEngineInterface -from .video_apis_locale import VideoApisLocale -from .knowledge_apis import KnowledgeApis -from .custom_apis import CustomApis -from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation -from .app_link_interface import AppLinkInterface -from .music_capability import MusicCapability -from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel -from .localized_music_info import LocalizedMusicInfo -from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName -from .video_catalog_info import VideoCatalogInfo -from .subscription_information import SubscriptionInformation -from .shopping_kit import ShoppingKit -from .dialog_manager import DialogManager -from .supported_controls import SupportedControls -from .distribution_countries import DistributionCountries -from .video_country_info import VideoCountryInfo from .custom_product_prompts import CustomProductPrompts -from .display_interface_apml_version import DisplayInterfaceApmlVersion -from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface from .event_name_type import EventNameType -from .viewport_shape import ViewportShape -from .dialog_management import DialogManagement -from .offer_type import OfferType -from .localized_flash_briefing_info import LocalizedFlashBriefingInfo +from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance +from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .friendly_name import FriendlyName from .up_channel_items import UpChannelItems +from .health_interface import HealthInterface +from .subscription_payment_frequency import SubscriptionPaymentFrequency +from .source_language_for_locales import SourceLanguageForLocales from .flash_briefing_update_frequency import FlashBriefingUpdateFrequency -from .flash_briefing_apis import FlashBriefingApis -from .authorized_client_lwa_application_android import AuthorizedClientLwaApplicationAndroid -from .smart_home_apis import SmartHomeApis -from .currency import Currency -from .video_fire_tv_catalog_ingestion import VideoFireTvCatalogIngestion +from .smart_home_protocol import SmartHomeProtocol +from .lambda_endpoint import LambdaEndpoint from .video_prompt_name import VideoPromptName -from .authorized_client_lwa import AuthorizedClientLwa -from .skill_manifest_publishing_information import SkillManifestPublishingInformation -from .catalog_name import CatalogName -from .extension_request import ExtensionRequest -from .gadget_support_requirement import GadgetSupportRequirement -from .app_link_v2_interface import AppLinkV2Interface -from .skill_manifest_apis import SkillManifestApis -from .viewport_specification import ViewportSpecification -from .display_interface_template_version import DisplayInterfaceTemplateVersion -from .play_store_common_scheme_name import PlayStoreCommonSchemeName -from .region import Region +from .event_name import EventName +from .music_content_type import MusicContentType +from .music_apis import MusicApis from .music_alias import MusicAlias -from .video_region import VideoRegion -from .video_feature import VideoFeature -from .android_common_intent_name import AndroidCommonIntentName -from .catalog_info import CatalogInfo +from .knowledge_apis import KnowledgeApis from .manifest_gadget_support import ManifestGadgetSupport +from .dialog_management import DialogManagement +from .offer_type import OfferType +from .house_hold_list import HouseHoldList +from .linked_common_schemes import LinkedCommonSchemes from .interface_type import InterfaceType +from .authorized_client_lwa import AuthorizedClientLwa +from .lambda_region import LambdaRegion +from .video_catalog_info import VideoCatalogInfo from .extension_initialization_request import ExtensionInitializationRequest -from .skill_manifest_localized_privacy_and_compliance import SkillManifestLocalizedPrivacyAndCompliance -from .friendly_name import FriendlyName -from .localized_knowledge_information import LocalizedKnowledgeInformation -from .automatic_distribution import AutomaticDistribution -from .skill_manifest_events import SkillManifestEvents +from .dialog_manager import DialogManager +from .custom_apis import CustomApis +from .voice_profile_feature import VoiceProfileFeature +from .skill_manifest import SkillManifest +from .data_store_package import DataStorePackage +from .alexa_data_store_package_manager_interface import AlexaDataStorePackageManagerInterface +from .automatic_cloned_locale import AutomaticClonedLocale +from .marketplace_pricing import MarketplacePricing +from .alexa_presentation_apl_interface import AlexaPresentationAplInterface +from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface +from .tax_information import TaxInformation +from .viewport_specification import ViewportSpecification +from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance +from .authorized_client import AuthorizedClient from .permission_items import PermissionItems -from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .alexa_for_business_interface import AlexaForBusinessInterface +from .version import Version +from .app_link import AppLink +from .alexa_search import AlexaSearch +from .music_interfaces import MusicInterfaces +from .region import Region +from .alexa_for_business_apis import AlexaForBusinessApis from .authorized_client_lwa_application import AuthorizedClientLwaApplication +from .supported_controls_type import SupportedControlsType +from .skill_manifest_events import SkillManifestEvents +from .custom_connections import CustomConnections +from .extension_request import ExtensionRequest +from .flash_briefing_genre import FlashBriefingGenre from .alexa_for_business_interface_request import AlexaForBusinessInterfaceRequest -from .linked_common_schemes import LinkedCommonSchemes -from .authorized_client import AuthorizedClient -from .smart_home_protocol import SmartHomeProtocol -from .audio_interface import AudioInterface -from .custom_localized_information import CustomLocalizedInformation -from .music_apis import MusicApis +from .smart_home_apis import SmartHomeApis +from .localized_music_info import LocalizedMusicInfo +from .video_prompt_name_type import VideoPromptNameType +from .amazon_conversations_dialog_manager import AMAZONConversationsDialogManager +from .play_store_common_scheme_name import PlayStoreCommonSchemeName +from .catalog_type import CatalogType +from .knowledge_apis_enablement_channel import KnowledgeApisEnablementChannel +from .app_link_interface import AppLinkInterface from .music_request import MusicRequest -from .demand_response_apis import DemandResponseApis -from .subscription_payment_frequency import SubscriptionPaymentFrequency -from .manifest_version import ManifestVersion -from .alexa_data_store_package_manager_implemented_interface import AlexaDataStorePackageManagerImplementedInterface -from .tax_information import TaxInformation -from .custom_task import CustomTask from .permission_name import PermissionName -from .skill_manifest import SkillManifest -from .ssl_certificate_type import SSLCertificateType -from .linked_android_common_intent import LinkedAndroidCommonIntent -from .lambda_endpoint import LambdaEndpoint -from .alexa_presentation_html_interface import AlexaPresentationHtmlInterface -from .alexa_presentation_apl_interface import AlexaPresentationAplInterface -from .alexa_for_business_apis import AlexaForBusinessApis -from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems -from .viewport_mode import ViewportMode -from .source_language_for_locales import SourceLanguageForLocales -from .music_content_type import MusicContentType +from .display_interface_template_version import DisplayInterfaceTemplateVersion +from .skill_manifest_localized_publishing_information import SkillManifestLocalizedPublishingInformation +from .custom_task import CustomTask +from .skill_manifest_envelope import SkillManifestEnvelope +from .dialog_delegation_strategy import DialogDelegationStrategy from .locales_by_automatic_cloned_locale import LocalesByAutomaticClonedLocale -from .event_publications import EventPublications -from .voice_profile_feature import VoiceProfileFeature -from .free_trial_information import FreeTrialInformation +from .currency import Currency +from .distribution_countries import DistributionCountries +from .localized_name import LocalizedName +from .linked_application import LinkedApplication +from .distribution_mode import DistributionMode from .custom_localized_information_dialog_management import CustomLocalizedInformationDialogManagement -from .video_prompt_name_type import VideoPromptNameType -from .interface import Interface -from .display_interface import DisplayInterface -from .automatic_cloned_locale import AutomaticClonedLocale +from .supported_controls import SupportedControls +from .video_apis import VideoApis +from .localized_knowledge_information import LocalizedKnowledgeInformation +from .linked_android_common_intent import LinkedAndroidCommonIntent from .gadget_controller_interface import GadgetControllerInterface -from .paid_skill_information import PaidSkillInformation -from .marketplace_pricing import MarketplacePricing +from .event_publications import EventPublications +from .connections_payload import ConnectionsPayload +from .shopping_kit import ShoppingKit +from .ios_app_store_common_scheme_name import IOSAppStoreCommonSchemeName +from .manifest_version import ManifestVersion +from .viewport_shape import ViewportShape +from .alexa_data_store_package_manager_implemented_interface import AlexaDataStorePackageManagerImplementedInterface +from .catalog_info import CatalogInfo +from .display_interface_apml_version import DisplayInterfaceApmlVersion +from .video_app_interface import VideoAppInterface from .tax_information_category import TaxInformationCategory -from .lambda_region import LambdaRegion -from .localized_name import LocalizedName +from .android_common_intent_name import AndroidCommonIntentName +from .music_capability import MusicCapability +from .subscription_information import SubscriptionInformation +from .viewport_mode import ViewportMode +from .flash_briefing_apis import FlashBriefingApis +from .flash_briefing_content_type import FlashBriefingContentType +from .custom_localized_information import CustomLocalizedInformation +from .gadget_support_requirement import GadgetSupportRequirement +from .game_engine_interface import GameEngineInterface +from .localized_flash_briefing_info_items import LocalizedFlashBriefingInfoItems +from .catalog_name import CatalogName +from .skill_manifest_endpoint import SkillManifestEndpoint from .music_wordmark import MusicWordmark -from .health_interface import HealthInterface -from .catalog_type import CatalogType -from .music_feature import MusicFeature -from .music_interfaces import MusicInterfaces -from .connections_payload import ConnectionsPayload -from .alexa_for_business_interface import AlexaForBusinessInterface -from .dialog_delegation_strategy import DialogDelegationStrategy -from .app_link import AppLink +from .paid_skill_information import PaidSkillInformation +from .video_feature import VideoFeature +from .skill_manifest_publishing_information import SkillManifestPublishingInformation from .android_custom_intent import AndroidCustomIntent -from .linked_application import LinkedApplication -from .supported_controls_type import SupportedControlsType -from .flash_briefing_content_type import FlashBriefingContentType -from .skill_manifest_privacy_and_compliance import SkillManifestPrivacyAndCompliance -from .video_app_interface import VideoAppInterface +from .app_link_v2_interface import AppLinkV2Interface +from .video_apis_locale import VideoApisLocale +from .music_feature import MusicFeature +from .ssl_certificate_type import SSLCertificateType +from .alexa_for_business_interface_request_name import AlexaForBusinessInterfaceRequestName +from .video_country_info import VideoCountryInfo from .lambda_ssl_certificate_type import LambdaSSLCertificateType +from .skill_manifest_apis import SkillManifestApis +from .display_interface import DisplayInterface diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py index 325f7c2..a9aa7aa 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/custom/__init__.py @@ -14,8 +14,8 @@ # from __future__ import absolute_import -from .target_runtime import TargetRuntime -from .target_runtime_device import TargetRuntimeDevice from .suppressed_interface import SuppressedInterface -from .target_runtime_type import TargetRuntimeType +from .target_runtime import TargetRuntime from .connection import Connection +from .target_runtime_type import TargetRuntimeType +from .target_runtime_device import TargetRuntimeDevice diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py index efdb518..33f0082 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/metrics/__init__.py @@ -15,7 +15,7 @@ from __future__ import absolute_import from .metric import Metric +from .stage_for_metric import StageForMetric from .skill_type import SkillType -from .get_metric_data_response import GetMetricDataResponse from .period import Period -from .stage_for_metric import StageForMetric +from .get_metric_data_response import GetMetricDataResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py index 10b4da5..5fe6807 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/annotation_sets/__init__.py @@ -14,13 +14,13 @@ # from __future__ import absolute_import -from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest -from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse from .create_nlu_annotation_set_request import CreateNLUAnnotationSetRequest -from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse -from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .update_nlu_annotation_set_annotations_request import UpdateNLUAnnotationSetAnnotationsRequest +from .annotation_set import AnnotationSet +from .pagination_context import PaginationContext from .links import Links from .annotation_set_entity import AnnotationSetEntity -from .annotation_set import AnnotationSet +from .get_nlu_annotation_set_properties_response import GetNLUAnnotationSetPropertiesResponse from .list_nlu_annotation_sets_response import ListNLUAnnotationSetsResponse -from .pagination_context import PaginationContext +from .update_nlu_annotation_set_properties_request import UpdateNLUAnnotationSetPropertiesRequest +from .create_nlu_annotation_set_response import CreateNLUAnnotationSetResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py index 6c360f3..18f344f 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/nlu/evaluations/__init__.py @@ -14,35 +14,35 @@ # from __future__ import absolute_import +from .source import Source +from .evaluation_inputs import EvaluationInputs +from .pagination_context import PaginationContext from .evaluation_entity import EvaluationEntity +from .actual import Actual +from .links import Links +from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .slots_props import SlotsProps +from .paged_results_response import PagedResultsResponse +from .get_nlu_evaluation_response import GetNLUEvaluationResponse from .get_nlu_evaluation_response_links import GetNLUEvaluationResponseLinks -from .inputs import Inputs -from .expected import Expected -from .list_nlu_evaluations_response import ListNLUEvaluationsResponse -from .status import Status +from .evaluate_response import EvaluateResponse from .resolutions import Resolutions -from .results import Results -from .get_nlu_evaluation_response import GetNLUEvaluationResponse -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .actual import Actual +from .evaluation import Evaluation from .resolutions_per_authority import ResolutionsPerAuthority from .test_case import TestCase -from .expected_intent import ExpectedIntent -from .source import Source -from .evaluate_response import EvaluateResponse -from .evaluation_inputs import EvaluationInputs -from .intent import Intent -from .paged_response import PagedResponse -from .resolutions_per_authority_value import ResolutionsPerAuthorityValue +from .list_nlu_evaluations_response import ListNLUEvaluationsResponse from .results_status import ResultsStatus -from .slots_props import SlotsProps -from .evaluation import Evaluation -from .links import Links -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .paged_results_response import PagedResultsResponse from .evaluate_nlu_request import EvaluateNLURequest from .confirmation_status import ConfirmationStatus +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .paged_response import PagedResponse +from .intent import Intent +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus from .expected_intent_slots_props import ExpectedIntentSlotsProps -from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext -from .pagination_context import PaginationContext +from .expected_intent import ExpectedIntent +from .expected import Expected from .get_nlu_evaluation_results_response import GetNLUEvaluationResultsResponse +from .inputs import Inputs +from .paged_results_response_pagination_context import PagedResultsResponsePaginationContext +from .status import Status +from .results import Results diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py index 8706db0..e6e9f1c 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import -from .accept_status import AcceptStatus from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse from .private_distribution_account import PrivateDistributionAccount +from .accept_status import AcceptStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py index cb36b28..96f1400 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/publication/__init__.py @@ -14,6 +14,6 @@ # from __future__ import absolute_import +from .skill_publication_response import SkillPublicationResponse from .publish_skill_request import PublishSkillRequest from .skill_publication_status import SkillPublicationStatus -from .skill_publication_response import SkillPublicationResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py index 54c2d0a..7db54eb 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/simulations/__init__.py @@ -14,20 +14,20 @@ # from __future__ import absolute_import -from .simulation_result import SimulationResult -from .alexa_response import AlexaResponse +from .alexa_execution_info import AlexaExecutionInfo from .invocation import Invocation +from .invocation_response import InvocationResponse from .session_mode import SessionMode -from .device import Device -from .simulation import Simulation -from .alexa_execution_info import AlexaExecutionInfo +from .alexa_response_content import AlexaResponseContent +from .alexa_response import AlexaResponse +from .invocation_request import InvocationRequest from .simulations_api_response import SimulationsApiResponse -from .input import Input -from .invocation_response import InvocationResponse +from .simulation import Simulation from .simulations_api_response_status import SimulationsApiResponseStatus -from .session import Session +from .input import Input +from .simulation_result import SimulationResult from .simulations_api_request import SimulationsApiRequest -from .simulation_type import SimulationType from .metrics import Metrics -from .invocation_request import InvocationRequest -from .alexa_response_content import AlexaResponseContent +from .simulation_type import SimulationType +from .session import Session +from .device import Device diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py index 92aa838..2ef4731 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/validations/__init__.py @@ -14,10 +14,10 @@ # from __future__ import absolute_import +from .response_validation_importance import ResponseValidationImportance +from .validations_api_response_status import ValidationsApiResponseStatus +from .response_validation_status import ResponseValidationStatus +from .validations_api_response import ValidationsApiResponse from .response_validation import ResponseValidation from .validations_api_response_result import ValidationsApiResponseResult -from .response_validation_status import ResponseValidationStatus from .validations_api_request import ValidationsApiRequest -from .validations_api_response_status import ValidationsApiResponseStatus -from .response_validation_importance import ResponseValidationImportance -from .validations_api_response import ValidationsApiResponse diff --git a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py index a9fa436..d3387b0 100644 --- a/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v1/smart_home_evaluation/__init__.py @@ -14,26 +14,26 @@ # from __future__ import absolute_import -from .pagination_context_token import PaginationContextToken -from .stage import Stage -from .sh_capability_response import SHCapabilityResponse -from .test_case_result import TestCaseResult +from .sh_capability_error import SHCapabilityError +from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse from .sh_capability_directive import SHCapabilityDirective -from .sh_capability_error_code import SHCapabilityErrorCode -from .evaluation_entity_status import EvaluationEntityStatus -from .sh_capability_state import SHCapabilityState +from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse +from .pagination_context import PaginationContext from .list_sh_test_plan_item import ListSHTestPlanItem -from .sh_capability_error import SHCapabilityError -from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse -from .paged_response import PagedResponse -from .sh_evaluation_results_metric import SHEvaluationResultsMetric from .test_case_result_status import TestCaseResultStatus -from .get_sh_capability_evaluation_response import GetSHCapabilityEvaluationResponse -from .evaluation_object import EvaluationObject -from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest -from .list_sh_capability_evaluations_response import ListSHCapabilityEvaluationsResponse +from .evaluate_sh_capability_response import EvaluateSHCapabilityResponse +from .sh_capability_response import SHCapabilityResponse from .capability_test_plan import CapabilityTestPlan +from .sh_capability_state import SHCapabilityState +from .evaluation_object import EvaluationObject from .get_sh_capability_evaluation_results_response import GetSHCapabilityEvaluationResultsResponse +from .sh_evaluation_results_metric import SHEvaluationResultsMetric +from .sh_capability_error_code import SHCapabilityErrorCode from .endpoint import Endpoint -from .pagination_context import PaginationContext +from .pagination_context_token import PaginationContextToken +from .evaluation_entity_status import EvaluationEntityStatus +from .paged_response import PagedResponse +from .test_case_result import TestCaseResult +from .stage import Stage +from .evaluate_sh_capability_request import EvaluateSHCapabilityRequest from .list_sh_capability_test_plans_response import ListSHCapabilityTestPlansResponse diff --git a/ask-smapi-model/ask_smapi_model/v2/__init__.py b/ask-smapi-model/ask_smapi_model/v2/__init__.py index a044fbc..7bf567d 100644 --- a/ask-smapi-model/ask_smapi_model/v2/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/__init__.py @@ -14,5 +14,5 @@ # from __future__ import absolute_import -from .error import Error from .bad_request_error import BadRequestError +from .error import Error diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py index cfd043e..6de2a29 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/__init__.py @@ -16,5 +16,5 @@ from .invocation import Invocation from .invocation_response import InvocationResponse -from .metrics import Metrics from .invocation_request import InvocationRequest +from .metrics import Metrics diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py index 0b2cb78..d493b06 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/invocations/__init__.py @@ -14,9 +14,9 @@ # from __future__ import absolute_import -from .invocation_response_status import InvocationResponseStatus -from .skill_request import SkillRequest -from .invocations_api_request import InvocationsApiRequest from .invocations_api_response import InvocationsApiResponse from .invocation_response_result import InvocationResponseResult from .end_point_regions import EndPointRegions +from .skill_request import SkillRequest +from .invocations_api_request import InvocationsApiRequest +from .invocation_response_status import InvocationResponseStatus diff --git a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py index f6ad1e1..7db5b1b 100644 --- a/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py +++ b/ask-smapi-model/ask_smapi_model/v2/skill/simulations/__init__.py @@ -14,25 +14,25 @@ # from __future__ import absolute_import -from .resolutions_per_authority_items import ResolutionsPerAuthorityItems -from .skill_execution_info import SkillExecutionInfo -from .simulation_result import SimulationResult +from .alexa_execution_info import AlexaExecutionInfo +from .session_mode import SessionMode +from .alexa_response_content import AlexaResponseContent from .alexa_response import AlexaResponse -from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus -from .slot import Slot from .resolutions_per_authority_value_items import ResolutionsPerAuthorityValueItems -from .session_mode import SessionMode -from .slot_resolutions import SlotResolutions -from .device import Device -from .simulation import Simulation -from .alexa_execution_info import AlexaExecutionInfo -from .intent import Intent -from .confirmation_status_type import ConfirmationStatusType from .simulations_api_response import SimulationsApiResponse -from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode -from .input import Input +from .simulation import Simulation +from .resolutions_per_authority_items import ResolutionsPerAuthorityItems from .simulations_api_response_status import SimulationsApiResponseStatus -from .session import Session +from .input import Input +from .slot import Slot +from .resolutions_per_authority_status_code import ResolutionsPerAuthorityStatusCode +from .skill_execution_info import SkillExecutionInfo +from .simulation_result import SimulationResult from .simulations_api_request import SimulationsApiRequest +from .intent import Intent +from .resolutions_per_authority_status import ResolutionsPerAuthorityStatus +from .confirmation_status_type import ConfirmationStatusType from .simulation_type import SimulationType -from .alexa_response_content import AlexaResponseContent +from .session import Session +from .slot_resolutions import SlotResolutions +from .device import Device From fbdc12b0ab77d9cfceae80eb6daca5767d1c0626 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 15 Jun 2023 15:39:58 +0000 Subject: [PATCH 086/111] Release 1.70.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 16a970e..25f75b0 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -667,3 +667,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.70.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3975f7f..1cd34fa 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.69.0' +__version__ = '1.70.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From b81f51f2cb32a24e45a919969c2c9bc4f8769718 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 15 Jun 2023 16:07:36 +0000 Subject: [PATCH 087/111] Release 1.24.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index e608f86..e03e082 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -356,3 +356,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.24.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 210b712..09f5c46 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.23.0' +__version__ = '1.24.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From a83f3e7814b3265e64f36ac3a32dcb848a485553 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 20 Jun 2023 15:40:00 +0000 Subject: [PATCH 088/111] Release 1.71.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 25f75b0..c091164 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -673,3 +673,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.71.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 1cd34fa..d671fe4 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.70.0' +__version__ = '1.71.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From e66942f95b88f2278825979e11fb1ea9d75f9ed7 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Tue, 20 Jun 2023 16:07:38 +0000 Subject: [PATCH 089/111] Release 1.25.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../ask_smapi_model/v1/skill/manifest/event_name_type.py | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index e03e082..5ebefc9 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -362,3 +362,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.25.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 09f5c46..ff7482d 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.24.0' +__version__ = '1.25.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py index 6039371..5b8c9e6 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/event_name_type.py @@ -31,7 +31,7 @@ class EventNameType(Enum): - Allowed enum values: [Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_ListModel_DeleteItemRequest, Legacy_MediaPlayer_SequenceModified, Legacy_PlaybackController_ButtonCommand, EffectsController_RequestEffectChangeRequest, Legacy_ExternalMediaPlayer_RequestToken, ITEMS_UPDATED, Alexa_Video_Xray_ShowDetailsSuccessful, PlaybackController_NextCommandIssued, Legacy_MediaPlayer_PlaybackFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, SKILL_DISABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, CustomInterfaceController_EventsReceived, Legacy_DeviceNotification_NotificationStarted, REMINDER_UPDATED, AUDIO_ITEM_PLAYBACK_STOPPED, Legacy_AuxController_InputActivityStateChanged, LocalApplication_MShopPurchasing_Event, Legacy_ExternalMediaPlayer_AuthorizationComplete, LocalApplication_HHOPhotos_Event, Alexa_Presentation_APL_UserEvent, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_BluetoothNetwork_DeviceUnpairFailure, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Alexa_FileManager_UploadController_UploadFailed, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_AudioPlayer_AudioStutter, Alexa_Camera_VideoCaptureController_CaptureStarted, Legacy_Speaker_MuteChanged, CardRenderer_DisplayContentFinished, Legacy_SpeechSynthesizer_SpeechStarted, AudioPlayer_PlaybackStopped, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, CardRenderer_DisplayContentStarted, LocalApplication_NotificationsApp_Event, AudioPlayer_PlaybackStarted, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_SetNotificationFailed, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_HomeAutoWifiController_HttpNotified, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, SKILL_ACCOUNT_LINKED, LIST_UPDATED, Legacy_DeviceNotification_NotificationSync, Legacy_SconeRemoteControl_VolumeDown, Legacy_MediaPlayer_PlaybackPaused, Legacy_Presentation_PresentationUserEvent, PlaybackController_PlayCommandIssued, Legacy_ListModel_UpdateItemRequest, Messaging_MessageReceived, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, AUDIO_ITEM_PLAYBACK_FAILED, LocalApplication_DeviceMessaging_Event, Alexa_Camera_PhotoCaptureController_CaptureFailed, Legacy_AudioPlayer_PlaybackIdle, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_AudioPlayer_PlaybackError, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_SpeechSynthesizer_SpeechInterrupted, PlaybackController_PreviousCommandIssued, Legacy_AudioPlayer_PlaybackFinished, Legacy_System_UserInactivity, Display_UserEvent, Legacy_PhoneCallController_Event, Legacy_DeviceNotification_SetNotificationSucceeded, LocalApplication_Photos_Event, LocalApplication_VideoExperienceService_Event, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_PlaybackController_PlayCommand, Legacy_PlaylistController_ErrorResponse, Legacy_SconeRemoteControl_VolumeUp, MessagingController_UpdateConversationsStatus, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, LocalApplication_Communications_Event, AUDIO_ITEM_PLAYBACK_STARTED, Legacy_BluetoothNetwork_DevicePairFailure, LIST_DELETED, Legacy_PlaybackController_ToggleCommand, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_MediaPlayer_PlaybackError, AudioPlayer_PlaybackFinished, Legacy_DeviceNotification_NotificationStopped, Legacy_SipClient_Event, Display_ElementSelected, LocalApplication_MShop_Event, Legacy_ListModel_AddItemRequest, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_MediaPlayer_PlaybackStopped, Legacy_AudioPlayerGui_ButtonClickedEvent, LocalApplication_AlexaVoiceLayer_Event, Legacy_PlaybackController_PreviousCommand, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_BluetoothNetwork_DeviceConnectedSuccess, LIST_CREATED, Legacy_ActivityManager_ActivityContextRemovedEvent, ALL_LISTS_CHANGED, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_MediaGrouping_GroupChangeNotificationEvent, LocalApplication_Sentry_Event, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, SKILL_NOTIFICATION_SUBSCRIPTION_CHANGED, REMINDER_CREATED, Alexa_Presentation_HTML_Event, FitnessSessionController_FitnessSessionError, Legacy_SconeRemoteControl_Next, Alexa_Camera_VideoCaptureController_CaptureFinished, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_PlaybackController_PauseCommand, LocalApplication_AlexaVision_Event, LocalApplication_Closet_Event, Alexa_FileManager_UploadController_CancelUploadFailed, Legacy_MediaPlayer_PlaybackResumed, SKILL_PERMISSION_ACCEPTED, FitnessSessionController_FitnessSessionPaused, Legacy_AudioPlayer_PlaybackPaused, Alexa_Presentation_HTML_LifecycleStateChanged, LocalApplication_SipUserAgent_Event, Legacy_MediaPlayer_PlaybackStarted, REMINDER_STATUS_CHANGED, MessagingController_UploadConversations, ITEMS_DELETED, Legacy_AuxController_PluggedStateChanged, Legacy_AudioPlayer_PlaybackStarted, Alexa_FileManager_UploadController_UploadStarted, ITEMS_CREATED, Legacy_ExternalMediaPlayer_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_KnightContacts_Event, LocalApplication_Calendar_Event, Legacy_AlertsController_DismissCommand, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, LocalApplication_SipClient_Event, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_Speaker_VolumeChanged, CardRenderer_ReadContentFinished, LocalApplication_HomeAutomationMedia_Event, Legacy_BluetoothNetwork_CancelPairingMode, LocalApplication_DigitalDash_Event, CardRenderer_ReadContentStarted, Legacy_GameEngine_GameInputEvent, LocalApplication_LocalVoiceUI_Event, Legacy_Microphone_AudioRecording, LocalApplication_AlexaPlatformTestSpeechlet_Event, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Legacy_HomeAutoWifiController_DeviceReconnected, SKILL_ENABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, MessagingController_UpdateMessagesStatusRequest, REMINDER_STARTED, CustomInterfaceController_Expired, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_WebVideoPlayer_Event, Legacy_HomeAutoWifiController_SsdpServiceTerminated, LocalApplication_FireflyShopping_Event, Legacy_PlaybackController_NextCommand, LocalApplication_Gallery_Event, Alexa_Presentation_PresentationDismissed, EffectsController_StateReceiptChangeRequest, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, REMINDER_DELETED, GameEngine_InputHandlerEvent, Legacy_PlaylistController_Response, LocalApplication_KnightHome_Event, Legacy_ListRenderer_ListItemEvent, AudioPlayer_PlaybackFailed, LocalApplication_KnightHomeThingsToTry_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_ExternalMediaPlayer_Logout, Alexa_FileManager_UploadController_UploadFinished, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_SnoozeCommand, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_ListRenderer_GetListPageByToken, MessagingController_UpdateSendMessageStatusRequest, FitnessSessionController_FitnessSessionEnded, Alexa_Presentation_APL_RuntimeError, Legacy_ListRenderer_GetListPageByOrdinal, FitnessSessionController_FitnessSessionResumed, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Alexa_Video_Xray_ShowDetailsFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Legacy_SconeRemoteControl_PlayPause, Legacy_DeviceNotification_NotificationEnteredBackground, SKILL_PERMISSION_CHANGED, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PlaybackStutterStarted, AUDIO_ITEM_PLAYBACK_FINISHED, EffectsController_RequestGuiChangeRequest, FitnessSessionController_FitnessSessionStarted, Legacy_PlaybackController_LyricsViewedEvent, Legacy_ExternalMediaPlayer_Login, PlaybackController_PauseCommandIssued, Legacy_MediaPlayer_PlaybackIdle, Legacy_SconeRemoteControl_Previous, DeviceSetup_SetupCompleted, Legacy_MediaPlayer_PlaybackNearlyFinished, LocalApplication_todoRenderer_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Alexa_Presentation_APL_LoadIndexListData, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_AuxController_EnabledStateChanged, Legacy_FavoritesController_Response, Legacy_ListModel_ListStateUpdateRequest, Legacy_EqualizerController_EqualizerChanged, Legacy_MediaGrouping_GroupSyncEvent, Legacy_FavoritesController_Error, Legacy_ListModel_GetPageByTokenRequest, Legacy_ActivityManager_ActivityInterrupted, Legacy_MeetingClientController_Event, Legacy_Presentation_PresentationDismissedEvent, Legacy_Spotify_Event, Legacy_ExternalMediaPlayer_Error, Legacy_AuxController_DirectionChanged, AudioPlayer_PlaybackNearlyFinished, Alexa_Camera_PhotoCaptureController_CaptureFinished, Legacy_UDPController_BroadcastResponse, Legacy_AudioPlayer_PlaybackResumed, Legacy_DeviceNotification_DeleteNotificationFailed] + Allowed enum values: [Legacy_AudioPlayerGui_LyricsViewedEvent, Legacy_ListModel_DeleteItemRequest, Legacy_MediaPlayer_SequenceModified, Legacy_PlaybackController_ButtonCommand, EffectsController_RequestEffectChangeRequest, Legacy_ExternalMediaPlayer_RequestToken, ITEMS_UPDATED, Alexa_Video_Xray_ShowDetailsSuccessful, PlaybackController_NextCommandIssued, Legacy_MediaPlayer_PlaybackFinished, Alexa_Camera_VideoCaptureController_CaptureFailed, SKILL_DISABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFailed, CustomInterfaceController_EventsReceived, Legacy_DeviceNotification_NotificationStarted, REMINDER_UPDATED, AUDIO_ITEM_PLAYBACK_STOPPED, Legacy_AuxController_InputActivityStateChanged, LocalApplication_MShopPurchasing_Event, Legacy_ExternalMediaPlayer_AuthorizationComplete, LocalApplication_HHOPhotos_Event, Alexa_Presentation_APL_UserEvent, Legacy_AudioPlayer_PlaybackInterrupted, Legacy_BluetoothNetwork_DeviceUnpairFailure, IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED, Alexa_FileManager_UploadController_UploadFailed, Legacy_BluetoothNetwork_DeviceConnectedFailure, Legacy_AudioPlayer_AudioStutter, Alexa_Camera_VideoCaptureController_CaptureStarted, Legacy_Speaker_MuteChanged, CardRenderer_DisplayContentFinished, Legacy_SpeechSynthesizer_SpeechStarted, AudioPlayer_PlaybackStopped, Legacy_SoftwareUpdate_CheckSoftwareUpdateReport, CardRenderer_DisplayContentStarted, LocalApplication_NotificationsApp_Event, AudioPlayer_PlaybackStarted, Legacy_DeviceNotification_NotificationEnteredForground, Legacy_DeviceNotification_SetNotificationFailed, Legacy_AudioPlayer_PeriodicPlaybackProgressReport, Legacy_HomeAutoWifiController_HttpNotified, Alexa_Camera_PhotoCaptureController_CancelCaptureFailed, SKILL_ACCOUNT_LINKED, SKILL_ACCOUNT_UNLINKED, LIST_UPDATED, Legacy_DeviceNotification_NotificationSync, Legacy_SconeRemoteControl_VolumeDown, Legacy_MediaPlayer_PlaybackPaused, Legacy_Presentation_PresentationUserEvent, PlaybackController_PlayCommandIssued, Legacy_ListModel_UpdateItemRequest, Messaging_MessageReceived, Legacy_SoftwareUpdate_InitiateSoftwareUpdateReport, AUDIO_ITEM_PLAYBACK_FAILED, LocalApplication_DeviceMessaging_Event, Alexa_Camera_PhotoCaptureController_CaptureFailed, Legacy_AudioPlayer_PlaybackIdle, Legacy_BluetoothNetwork_EnterPairingModeSuccess, Legacy_AudioPlayer_PlaybackError, Legacy_ListModel_GetPageByOrdinalRequest, Legacy_MediaGrouping_GroupChangeResponseEvent, Legacy_BluetoothNetwork_DeviceDisconnectedFailure, Legacy_BluetoothNetwork_EnterPairingModeFailure, Legacy_SpeechSynthesizer_SpeechInterrupted, PlaybackController_PreviousCommandIssued, Legacy_AudioPlayer_PlaybackFinished, Legacy_System_UserInactivity, Display_UserEvent, Legacy_PhoneCallController_Event, Legacy_DeviceNotification_SetNotificationSucceeded, LocalApplication_Photos_Event, LocalApplication_VideoExperienceService_Event, Legacy_ContentManager_ContentPlaybackTerminated, Legacy_PlaybackController_PlayCommand, Legacy_PlaylistController_ErrorResponse, Legacy_SconeRemoteControl_VolumeUp, MessagingController_UpdateConversationsStatus, Legacy_BluetoothNetwork_DeviceDisconnectedSuccess, LocalApplication_Communications_Event, AUDIO_ITEM_PLAYBACK_STARTED, Legacy_BluetoothNetwork_DevicePairFailure, LIST_DELETED, Legacy_PlaybackController_ToggleCommand, Legacy_BluetoothNetwork_DevicePairSuccess, Legacy_MediaPlayer_PlaybackError, AudioPlayer_PlaybackFinished, Legacy_DeviceNotification_NotificationStopped, Legacy_SipClient_Event, Display_ElementSelected, LocalApplication_MShop_Event, Legacy_ListModel_AddItemRequest, Legacy_BluetoothNetwork_ScanDevicesReport, Legacy_MediaPlayer_PlaybackStopped, Legacy_AudioPlayerGui_ButtonClickedEvent, LocalApplication_AlexaVoiceLayer_Event, Legacy_PlaybackController_PreviousCommand, Legacy_AudioPlayer_InitialPlaybackProgressReport, Legacy_BluetoothNetwork_DeviceConnectedSuccess, LIST_CREATED, Legacy_ActivityManager_ActivityContextRemovedEvent, ALL_LISTS_CHANGED, Legacy_AudioPlayer_PlaybackNearlyFinished, Legacy_MediaGrouping_GroupChangeNotificationEvent, LocalApplication_Sentry_Event, SKILL_PROACTIVE_SUBSCRIPTION_CHANGED, SKILL_NOTIFICATION_SUBSCRIPTION_CHANGED, REMINDER_CREATED, Alexa_Presentation_HTML_Event, FitnessSessionController_FitnessSessionError, Legacy_SconeRemoteControl_Next, Alexa_Camera_VideoCaptureController_CaptureFinished, Legacy_MediaPlayer_SequenceItemsRequested, Legacy_PlaybackController_PauseCommand, LocalApplication_AlexaVision_Event, LocalApplication_Closet_Event, Alexa_FileManager_UploadController_CancelUploadFailed, Legacy_MediaPlayer_PlaybackResumed, SKILL_PERMISSION_ACCEPTED, FitnessSessionController_FitnessSessionPaused, Legacy_AudioPlayer_PlaybackPaused, Alexa_Presentation_HTML_LifecycleStateChanged, LocalApplication_SipUserAgent_Event, Legacy_MediaPlayer_PlaybackStarted, REMINDER_STATUS_CHANGED, MessagingController_UploadConversations, ITEMS_DELETED, Legacy_AuxController_PluggedStateChanged, Legacy_AudioPlayer_PlaybackStarted, Alexa_FileManager_UploadController_UploadStarted, ITEMS_CREATED, Legacy_ExternalMediaPlayer_Event, LocalApplication_LocalMediaPlayer_Event, LocalApplication_KnightContacts_Event, LocalApplication_Calendar_Event, Legacy_AlertsController_DismissCommand, Legacy_AudioPlayer_PlaybackStutterFinished, Legacy_SpeechSynthesizer_SpeechFinished, Legacy_ExternalMediaPlayer_ReportDiscoveredPlayers, LocalApplication_SipClient_Event, Legacy_BluetoothNetwork_DeviceUnpairSuccess, Legacy_Speaker_VolumeChanged, CardRenderer_ReadContentFinished, LocalApplication_HomeAutomationMedia_Event, Legacy_BluetoothNetwork_CancelPairingMode, LocalApplication_DigitalDash_Event, CardRenderer_ReadContentStarted, Legacy_GameEngine_GameInputEvent, LocalApplication_LocalVoiceUI_Event, Legacy_Microphone_AudioRecording, LocalApplication_AlexaPlatformTestSpeechlet_Event, Legacy_HomeAutoWifiController_SsdpServiceDiscovered, Alexa_Camera_PhotoCaptureController_CancelCaptureFinished, Legacy_HomeAutoWifiController_DeviceReconnected, SKILL_ENABLED, Alexa_Camera_VideoCaptureController_CancelCaptureFinished, MessagingController_UpdateMessagesStatusRequest, REMINDER_STARTED, CustomInterfaceController_Expired, LocalApplication_AvaPhysicalShopping_Event, LocalApplication_WebVideoPlayer_Event, Legacy_HomeAutoWifiController_SsdpServiceTerminated, LocalApplication_FireflyShopping_Event, Legacy_PlaybackController_NextCommand, LocalApplication_Gallery_Event, Alexa_Presentation_PresentationDismissed, EffectsController_StateReceiptChangeRequest, LocalApplication_Alexa_Translation_LiveTranslation_Event, LocalApplication_AlexaNotifications_Event, REMINDER_DELETED, GameEngine_InputHandlerEvent, Legacy_PlaylistController_Response, LocalApplication_KnightHome_Event, Legacy_ListRenderer_ListItemEvent, AudioPlayer_PlaybackFailed, LocalApplication_KnightHomeThingsToTry_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesFailed, Legacy_ExternalMediaPlayer_Logout, Alexa_FileManager_UploadController_UploadFinished, Legacy_ActivityManager_FocusChanged, Legacy_AlertsController_SnoozeCommand, Legacy_SpeechRecognizer_WakeWordChanged, Legacy_ListRenderer_GetListPageByToken, MessagingController_UpdateSendMessageStatusRequest, FitnessSessionController_FitnessSessionEnded, Alexa_Presentation_APL_RuntimeError, Legacy_ListRenderer_GetListPageByOrdinal, FitnessSessionController_FitnessSessionResumed, IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED, Legacy_DeviceNotification_DeleteNotificationSucceeded, Legacy_SpeechSynthesizer_SpeechSynthesizerError, Alexa_Video_Xray_ShowDetailsFailed, Alexa_FileManager_UploadController_CancelUploadFinished, Legacy_SconeRemoteControl_PlayPause, Legacy_DeviceNotification_NotificationEnteredBackground, SKILL_PERMISSION_CHANGED, Legacy_AudioPlayer_Metadata, Legacy_AudioPlayer_PlaybackStutterStarted, AUDIO_ITEM_PLAYBACK_FINISHED, EffectsController_RequestGuiChangeRequest, FitnessSessionController_FitnessSessionStarted, Legacy_PlaybackController_LyricsViewedEvent, Legacy_ExternalMediaPlayer_Login, PlaybackController_PauseCommandIssued, Legacy_MediaPlayer_PlaybackIdle, Legacy_SconeRemoteControl_Previous, DeviceSetup_SetupCompleted, Legacy_MediaPlayer_PlaybackNearlyFinished, LocalApplication_todoRenderer_Event, Legacy_BluetoothNetwork_SetDeviceCategoriesSucceeded, Legacy_BluetoothNetwork_MediaControlSuccess, Legacy_HomeAutoWifiController_SsdpDiscoveryFinished, Alexa_Presentation_APL_LoadIndexListData, IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED, Legacy_BluetoothNetwork_MediaControlFailure, Legacy_AuxController_EnabledStateChanged, Legacy_FavoritesController_Response, Legacy_ListModel_ListStateUpdateRequest, Legacy_EqualizerController_EqualizerChanged, Legacy_MediaGrouping_GroupSyncEvent, Legacy_FavoritesController_Error, Legacy_ListModel_GetPageByTokenRequest, Legacy_ActivityManager_ActivityInterrupted, Legacy_MeetingClientController_Event, Legacy_Presentation_PresentationDismissedEvent, Legacy_Spotify_Event, Legacy_ExternalMediaPlayer_Error, Legacy_AuxController_DirectionChanged, AudioPlayer_PlaybackNearlyFinished, Alexa_Camera_PhotoCaptureController_CaptureFinished, Legacy_UDPController_BroadcastResponse, Legacy_AudioPlayer_PlaybackResumed, Legacy_DeviceNotification_DeleteNotificationFailed] """ Legacy_AudioPlayerGui_LyricsViewedEvent = "Legacy.AudioPlayerGui.LyricsViewedEvent" Legacy_ListModel_DeleteItemRequest = "Legacy.ListModel.DeleteItemRequest" @@ -76,6 +76,7 @@ class EventNameType(Enum): Legacy_HomeAutoWifiController_HttpNotified = "Legacy.HomeAutoWifiController.HttpNotified" Alexa_Camera_PhotoCaptureController_CancelCaptureFailed = "Alexa.Camera.PhotoCaptureController.CancelCaptureFailed" SKILL_ACCOUNT_LINKED = "SKILL_ACCOUNT_LINKED" + SKILL_ACCOUNT_UNLINKED = "SKILL_ACCOUNT_UNLINKED" LIST_UPDATED = "LIST_UPDATED" Legacy_DeviceNotification_NotificationSync = "Legacy.DeviceNotification.NotificationSync" Legacy_SconeRemoteControl_VolumeDown = "Legacy.SconeRemoteControl.VolumeDown" From a8a75c8ba36af06b47e7ef76bb77df8fff46f2f5 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 22 Jun 2023 15:39:25 +0000 Subject: [PATCH 090/111] Release 1.72.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index c091164..9efb115 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -679,3 +679,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.72.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index d671fe4..6061bdf 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.71.0' +__version__ = '1.72.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 6ef5048a3d972b65f16eff9d68bacbcff5308420 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 22 Jun 2023 16:07:40 +0000 Subject: [PATCH 091/111] Release 1.26.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 5ebefc9..549d122 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -368,3 +368,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.26.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index ff7482d..0a02ea2 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.25.0' +__version__ = '1.26.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 69c30a0a6956248d68906b984b02ba5c466e0473 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 26 Jun 2023 15:39:16 +0000 Subject: [PATCH 092/111] Release 1.73.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 9efb115..e57572c 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -685,3 +685,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.73.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 6061bdf..6144e7e 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.72.0' +__version__ = '1.73.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 26f3f32bbc02f8605f9f7b1a358ba3f0487f5ee7 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Mon, 26 Jun 2023 16:07:38 +0000 Subject: [PATCH 093/111] Release 1.27.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 549d122..b192222 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -374,3 +374,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.27.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 0a02ea2..517f7a1 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.26.0' +__version__ = '1.27.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From fbaeb14b32894a7b97bfad2ec6e56773f4fc9545 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 28 Jun 2023 15:39:40 +0000 Subject: [PATCH 094/111] Release 1.74.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/directive.py | 3 + .../interfaces/alexa/smartvision/__init__.py | 16 +++ .../interfaces/alexa/smartvision/py.typed | 0 .../smartvision/snapshotprovider/__init__.py | 17 +++ .../get_snapshot_directive.py | 113 ++++++++++++++++++ .../smartvision/snapshotprovider/py.typed | 0 8 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/get_snapshot_directive.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/py.typed diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index e57572c..b25486e 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -691,3 +691,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.74.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 6144e7e..b67745a 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.73.0' +__version__ = '1.74.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index a81c852..1d71962 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -65,6 +65,8 @@ class Directive(object): | | Alexa.Presentation.HTML.Start: :py:class:`ask_sdk_model.interfaces.alexa.presentation.html.start_directive.StartDirective`, | + | Alexa.SmartVision.SnapshotProvider.GetSnapshotDirective: :py:class:`ask_sdk_model.interfaces.alexa.smartvision.snapshotprovider.get_snapshot_directive.GetSnapshotDirective`, + | | AudioPlayer.Stop: :py:class:`ask_sdk_model.interfaces.audioplayer.stop_directive.StopDirective`, | | Dialog.ConfirmSlot: :py:class:`ask_sdk_model.dialog.confirm_slot_directive.ConfirmSlotDirective`, @@ -130,6 +132,7 @@ class Directive(object): 'Alexa.Presentation.APLA.RenderDocument': 'ask_sdk_model.interfaces.alexa.presentation.apla.render_document_directive.RenderDocumentDirective', 'Dialog.ElicitSlot': 'ask_sdk_model.dialog.elicit_slot_directive.ElicitSlotDirective', 'Alexa.Presentation.HTML.Start': 'ask_sdk_model.interfaces.alexa.presentation.html.start_directive.StartDirective', + 'Alexa.SmartVision.SnapshotProvider.GetSnapshotDirective': 'ask_sdk_model.interfaces.alexa.smartvision.snapshotprovider.get_snapshot_directive.GetSnapshotDirective', 'AudioPlayer.Stop': 'ask_sdk_model.interfaces.audioplayer.stop_directive.StopDirective', 'Dialog.ConfirmSlot': 'ask_sdk_model.dialog.confirm_slot_directive.ConfirmSlotDirective', 'AudioPlayer.Play': 'ask_sdk_model.interfaces.audioplayer.play_directive.PlayDirective', diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/__init__.py new file mode 100644 index 0000000..57220ec --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/__init__.py @@ -0,0 +1,16 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/__init__.py new file mode 100644 index 0000000..0f1ba5a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/__init__.py @@ -0,0 +1,17 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .get_snapshot_directive import GetSnapshotDirective diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/get_snapshot_directive.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/get_snapshot_directive.py new file mode 100644 index 0000000..b17e5f8 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/get_snapshot_directive.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.directive import Directive + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class GetSnapshotDirective(Directive): + """ + This directive is used to request latest snapshot from camera skill on a particular endpoint. + + + :param prefer_on_demand_snapshot: This property defines that an on-demand snapshot is preferred over a cached snapshot from camera skill. + :type prefer_on_demand_snapshot: (optional) bool + + """ + deserialized_types = { + 'object_type': 'str', + 'prefer_on_demand_snapshot': 'bool' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'prefer_on_demand_snapshot': 'preferOnDemandSnapshot' + } # type: Dict + supports_multiple_types = False + + def __init__(self, prefer_on_demand_snapshot=None): + # type: (Optional[bool]) -> None + """This directive is used to request latest snapshot from camera skill on a particular endpoint. + + :param prefer_on_demand_snapshot: This property defines that an on-demand snapshot is preferred over a cached snapshot from camera skill. + :type prefer_on_demand_snapshot: (optional) bool + """ + self.__discriminator_value = "Alexa.SmartVision.SnapshotProvider.GetSnapshotDirective" # type: str + + self.object_type = self.__discriminator_value + super(GetSnapshotDirective, self).__init__(object_type=self.__discriminator_value) + self.prefer_on_demand_snapshot = prefer_on_demand_snapshot + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, GetSnapshotDirective): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/smartvision/snapshotprovider/py.typed new file mode 100644 index 0000000..e69de29 From c7f8c1caee78227c52de4b06a8e4282f2767f353 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 28 Jun 2023 16:07:44 +0000 Subject: [PATCH 095/111] Release 1.28.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index b192222..dcc3f0e 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -380,3 +380,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.28.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 517f7a1..6341f4f 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.27.0' +__version__ = '1.28.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From d45393eb5ee9ab27f1279610dd30921dbedbb1c7 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 29 Jun 2023 15:39:22 +0000 Subject: [PATCH 096/111] Release 1.75.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index b25486e..4c64736 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -697,3 +697,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.75.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index b67745a..054bb01 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.74.0' +__version__ = '1.75.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From a9637de8ca962c4918ec126ebdb4173e45f35010 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 29 Jun 2023 16:07:36 +0000 Subject: [PATCH 097/111] Release 1.29.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 + .../ask_smapi_model/__version__.py | 2 +- .../skill_management_service_client.py | 268 ------------------ .../v1/skill/private/__init__.py | 19 -- .../v1/skill/private/accept_status.py | 66 ----- ..._private_distribution_accounts_response.py | 124 -------- .../private/private_distribution_account.py | 116 -------- .../ask_smapi_model/v1/skill/private/py.typed | 0 8 files changed, 7 insertions(+), 594 deletions(-) delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py delete mode 100644 ask-smapi-model/ask_smapi_model/v1/skill/private/py.typed diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index dcc3f0e..ed5caa3 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -386,3 +386,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.29.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 6341f4f..41de4f0 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.28.0' +__version__ = '1.29.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py index e1a55dd..e0d7918 100644 --- a/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py +++ b/ask-smapi-model/ask_smapi_model/services/skill_management/skill_management_service_client.py @@ -76,7 +76,6 @@ from ask_smapi_model.v1.skill.simulations.simulations_api_request import SimulationsApiRequest as SimulationsApiRequest_606eed02 from ask_smapi_model.v1.skill.experiment.get_customer_treatment_override_response import GetCustomerTreatmentOverrideResponse as GetCustomerTreatmentOverrideResponse_f64f689f from ask_smapi_model.v1.skill.history.dialog_act_name import DialogActName as DialogActName_df8326d6 - from ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse as ListPrivateDistributionAccountsResponse_8783420d from ask_smapi_model.v1.skill.ssl_certificate_payload import SSLCertificatePayload as SSLCertificatePayload_97891902 from ask_smapi_model.v1.skill.withdraw_request import WithdrawRequest as WithdrawRequest_d09390b7 from ask_smapi_model.v1.isp.associated_skill_response import AssociatedSkillResponse as AssociatedSkillResponse_12067635 @@ -10926,273 +10925,6 @@ def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs) return api_response.body - def list_private_distribution_accounts_v1(self, skill_id, stage, **kwargs): - # type: (str, str, **Any) -> Union[ApiResponse, object, ListPrivateDistributionAccountsResponse_8783420d, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - List private distribution accounts. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param stage: (required) Stage for skill. - :type stage: str - :param next_token: When response to this API call is truncated (that is, isTruncated response element value is true), the response also includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that Skill Management API understands. Token has expiry of 24 hours. - :type next_token: str - :param max_results: Sets the maximum number of results returned in the response body. If you want to retrieve fewer than upper limit of 50 results, you can add this parameter to your request. maxResults should not exceed the upper limit. The response might contain fewer results than maxResults, but it will never contain more. If there are additional results that satisfy the search criteria, but these results were not returned, the response contains isTruncated = true. - :type max_results: int - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, ListPrivateDistributionAccountsResponse_8783420d, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - operation_name = "list_private_distribution_accounts_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'stage' is set - if ('stage' not in params) or (params['stage'] is None): - raise ValueError( - "Missing the required parameter `stage` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'stage' in params: - path_params['stage'] = params['stage'] - - query_params = [] # type: List - if 'next_token' in params: - query_params.append(('nextToken', params['next_token'])) - if 'max_results' in params: - query_params.append(('maxResults', params['max_results'])) - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response.ListPrivateDistributionAccountsResponse", status_code=200, message="Returns list of private distribution accounts on success.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) - - api_response = self.invoke( - method="GET", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type="ask_smapi_model.v1.skill.private.list_private_distribution_accounts_response.ListPrivateDistributionAccountsResponse") - - if full_response: - return api_response - return api_response.body - - - def delete_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - Remove an id from the private distribution accounts. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param stage: (required) Stage for skill. - :type stage: str - :param id: (required) ARN that a skill can be privately distributed to. - :type id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - operation_name = "delete_private_distribution_account_id_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'stage' is set - if ('stage' not in params) or (params['stage'] is None): - raise ValueError( - "Missing the required parameter `stage` when calling `" + operation_name + "`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError( - "Missing the required parameter `id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts/{id}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'stage' in params: - path_params['stage'] = params['stage'] - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) - - api_response = self.invoke( - method="DELETE", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - - def set_private_distribution_account_id_v1(self, skill_id, stage, id, **kwargs): - # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - Add an id to the private distribution accounts. - - :param skill_id: (required) The skill ID. - :type skill_id: str - :param stage: (required) Stage for skill. - :type stage: str - :param id: (required) ARN that a skill can be privately distributed to. - :type id: str - :param full_response: Boolean value to check if response should contain headers and status code information. - This value had to be passed through keyword arguments, by default the parameter value is set to False. - :type full_response: boolean - :rtype: Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] - """ - operation_name = "set_private_distribution_account_id_v1" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - # verify the required parameter 'skill_id' is set - if ('skill_id' not in params) or (params['skill_id'] is None): - raise ValueError( - "Missing the required parameter `skill_id` when calling `" + operation_name + "`") - # verify the required parameter 'stage' is set - if ('stage' not in params) or (params['stage'] is None): - raise ValueError( - "Missing the required parameter `stage` when calling `" + operation_name + "`") - # verify the required parameter 'id' is set - if ('id' not in params) or (params['id'] is None): - raise ValueError( - "Missing the required parameter `id` when calling `" + operation_name + "`") - - resource_path = '/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts/{id}' - resource_path = resource_path.replace('{format}', 'json') - - path_params = {} # type: Dict - if 'skill_id' in params: - path_params['skillId'] = params['skill_id'] - if 'stage' in params: - path_params['stage'] = params['stage'] - if 'id' in params: - path_params['id'] = params['id'] - - query_params = [] # type: List - - header_params = [] # type: List - - body_params = None - header_params.append(('Content-type', 'application/json')) - header_params.append(('User-Agent', self.user_agent)) - - # Response Type - full_response = False - if 'full_response' in params: - full_response = params['full_response'] - - # Authentication setting - access_token = self._lwa_service_client.get_access_token_from_refresh_token() - authorization_value = "Bearer " + access_token - header_params.append(('Authorization', authorization_value)) - - error_definitions = [] # type: List - error_definitions.append(ServiceClientResponse(response_type=None, status_code=204, message="Success.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=400, message="Server cannot process the request due to a client error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=401, message="The auth token is invalid/expired or doesn't have access to the resource.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.bad_request_error.BadRequestError", status_code=403, message="The operation being requested is not allowed.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=404, message="The resource being requested is not found.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=429, message="Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=500, message="Internal Server Error.")) - error_definitions.append(ServiceClientResponse(response_type="ask_smapi_model.v1.skill.standardized_error.StandardizedError", status_code=503, message="Service Unavailable.")) - - api_response = self.invoke( - method="PUT", - endpoint=self._api_endpoint, - path=resource_path, - path_params=path_params, - query_params=query_params, - header_params=header_params, - body=body_params, - response_definitions=error_definitions, - response_type=None) - - if full_response: - return api_response - - return None - def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] """ diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py deleted file mode 100644 index e6e9f1c..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# -from __future__ import absolute_import - -from .list_private_distribution_accounts_response import ListPrivateDistributionAccountsResponse -from .private_distribution_account import PrivateDistributionAccount -from .accept_status import AcceptStatus diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py deleted file mode 100644 index fbd4203..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/accept_status.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - - -class AcceptStatus(Enum): - """ - Enterprise IT administrators' action on the private distribution. - - - - Allowed enum values: [ACCEPTED, PENDING] - """ - ACCEPTED = "ACCEPTED" - PENDING = "PENDING" - - def to_dict(self): - # type: () -> Dict[str, Any] - """Returns the model properties as a dict""" - result = {self.name: self.value} - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.value) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (Any) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, AcceptStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (Any) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py deleted file mode 100644 index af448c3..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/list_private_distribution_accounts_response.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.links import Links as Links_bc43467b - from ask_smapi_model.v1.skill.private.private_distribution_account import PrivateDistributionAccount as PrivateDistributionAccount_f2cc4575 - - -class ListPrivateDistributionAccountsResponse(object): - """ - Response of ListPrivateDistributionAccounts. - - - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - :param private_distribution_accounts: List of PrivateDistributionAccounts. - :type private_distribution_accounts: (optional) list[ask_smapi_model.v1.skill.private.private_distribution_account.PrivateDistributionAccount] - :param next_token: - :type next_token: (optional) str - - """ - deserialized_types = { - 'links': 'ask_smapi_model.v1.links.Links', - 'private_distribution_accounts': 'list[ask_smapi_model.v1.skill.private.private_distribution_account.PrivateDistributionAccount]', - 'next_token': 'str' - } # type: Dict - - attribute_map = { - 'links': '_links', - 'private_distribution_accounts': 'privateDistributionAccounts', - 'next_token': 'nextToken' - } # type: Dict - supports_multiple_types = False - - def __init__(self, links=None, private_distribution_accounts=None, next_token=None): - # type: (Optional[Links_bc43467b], Optional[List[PrivateDistributionAccount_f2cc4575]], Optional[str]) -> None - """Response of ListPrivateDistributionAccounts. - - :param links: - :type links: (optional) ask_smapi_model.v1.links.Links - :param private_distribution_accounts: List of PrivateDistributionAccounts. - :type private_distribution_accounts: (optional) list[ask_smapi_model.v1.skill.private.private_distribution_account.PrivateDistributionAccount] - :param next_token: - :type next_token: (optional) str - """ - self.__discriminator_value = None # type: str - - self.links = links - self.private_distribution_accounts = private_distribution_accounts - self.next_token = next_token - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, ListPrivateDistributionAccountsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py b/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py deleted file mode 100644 index a2fc748..0000000 --- a/ask-smapi-model/ask_smapi_model/v1/skill/private/private_distribution_account.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding: utf-8 - -# -# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file -# except in compliance with the License. A copy of the License is located at -# -# http://aws.amazon.com/apache2.0/ -# -# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for -# the specific language governing permissions and limitations under the License. -# - -import pprint -import re # noqa: F401 -import six -import typing -from enum import Enum - - -if typing.TYPE_CHECKING: - from typing import Dict, List, Optional, Union, Any - from datetime import datetime - from ask_smapi_model.v1.skill.private.accept_status import AcceptStatus as AcceptStatus_98754010 - - -class PrivateDistributionAccount(object): - """ - Contains information of the private distribution account with given id. - - - :param principal: 12-digit numerical account ID for AWS account holders. - :type principal: (optional) str - :param accept_status: - :type accept_status: (optional) ask_smapi_model.v1.skill.private.accept_status.AcceptStatus - - """ - deserialized_types = { - 'principal': 'str', - 'accept_status': 'ask_smapi_model.v1.skill.private.accept_status.AcceptStatus' - } # type: Dict - - attribute_map = { - 'principal': 'principal', - 'accept_status': 'acceptStatus' - } # type: Dict - supports_multiple_types = False - - def __init__(self, principal=None, accept_status=None): - # type: (Optional[str], Optional[AcceptStatus_98754010]) -> None - """Contains information of the private distribution account with given id. - - :param principal: 12-digit numerical account ID for AWS account holders. - :type principal: (optional) str - :param accept_status: - :type accept_status: (optional) ask_smapi_model.v1.skill.private.accept_status.AcceptStatus - """ - self.__discriminator_value = None # type: str - - self.principal = principal - self.accept_status = accept_status - - def to_dict(self): - # type: () -> Dict[str, object] - """Returns the model properties as a dict""" - result = {} # type: Dict - - for attr, _ in six.iteritems(self.deserialized_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else - x.value if isinstance(x, Enum) else x, - value - )) - elif isinstance(value, Enum): - result[attr] = value.value - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else - (item[0], item[1].value) - if isinstance(item[1], Enum) else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - # type: () -> str - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - # type: () -> str - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - # type: (object) -> bool - """Returns true if both objects are equal""" - if not isinstance(other, PrivateDistributionAccount): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - # type: (object) -> bool - """Returns true if both objects are not equal""" - return not self == other diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/private/py.typed b/ask-smapi-model/ask_smapi_model/v1/skill/private/py.typed deleted file mode 100644 index e69de29..0000000 From f481c3b1a86dfae4f51e75cc85861861f5189055 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 19 Jul 2023 15:39:41 +0000 Subject: [PATCH 098/111] Release 1.76.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 4c64736..1655183 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -703,3 +703,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.76.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 054bb01..5a7ebc2 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.75.0' +__version__ = '1.76.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 175d201d17c93792b1043b672c4fa366a93803ca Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 19 Jul 2023 16:07:34 +0000 Subject: [PATCH 099/111] Release 1.30.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index ed5caa3..b66c929 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -392,3 +392,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.30.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 41de4f0..091a5dc 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.29.0' +__version__ = '1.30.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From f43f4d04623beeda728ff34c185e8b5592358170 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Tue, 25 Jul 2023 15:39:58 +0000 Subject: [PATCH 100/111] Release 1.77.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 1655183..60f6c3b 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -709,3 +709,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.77.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 5a7ebc2..ae474ea 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.76.0' +__version__ = '1.77.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 2e923f7dd1b86e5254a103feac389dc66b6613f3 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Tue, 25 Jul 2023 16:07:32 +0000 Subject: [PATCH 101/111] Release 1.31.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index b66c929..95066e8 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -398,3 +398,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.31.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 091a5dc..6a17e79 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.30.0' +__version__ = '1.31.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 0d890b9bd5c4dca3e808139a9a360a623fa4f948 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Tue, 1 Aug 2023 16:05:25 +0000 Subject: [PATCH 102/111] Release 1.32.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 95066e8..f402541 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -404,3 +404,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.32.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 6a17e79..7abf404 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.31.0' +__version__ = '1.32.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 41f5282345d6919a32000690b29d419cd6d81019 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 2 Aug 2023 15:36:34 +0000 Subject: [PATCH 103/111] Release 1.78.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 60f6c3b..8c68293 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -715,3 +715,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.78.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index ae474ea..930f8c7 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.77.0' +__version__ = '1.78.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From f7e0713d7a934a6a62d4f75b5d91c6902cab7185 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 7 Aug 2023 15:36:38 +0000 Subject: [PATCH 104/111] Release 1.79.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- .../services/monetization/entitlement_reason.py | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 8c68293..74bfe5f 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -721,3 +721,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.79.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 930f8c7..c6af3ce 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.78.0' +__version__ = '1.79.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py b/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py index 17d3d2f..1a3418a 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/entitlement_reason.py @@ -27,15 +27,16 @@ class EntitlementReason(Enum): """ - Reason for the entitlement status. * 'PURCHASED' - The user is entitled to the product because they purchased it. * 'NOT_PURCHASED' - The user is not entitled to the product because they have not purchased it. * 'AUTO_ENTITLED' - The user is auto entitled to the product because they have subscribed to a broader service. + Reason for the entitlement status. * 'PURCHASED' - The user is entitled to the product because they purchased it directly. * 'NOT_PURCHASED' - The user is not entitled to the product because they have not purchased it. * 'AUTO_ENTITLED' - The user is auto entitled to the product because they have subscribed to a broader service. * 'BUNDLE_ENTITLED' - The user is entitled to the product because they purchased it indirectly as part of a bundle. If the user is entitled via both PURCHASED and BUNDLE_ENTITLED, then BUNDLE_ENTITLED takes priority. - Allowed enum values: [PURCHASED, NOT_PURCHASED, AUTO_ENTITLED] + Allowed enum values: [PURCHASED, NOT_PURCHASED, AUTO_ENTITLED, BUNDLE_ENTITLED] """ PURCHASED = "PURCHASED" NOT_PURCHASED = "NOT_PURCHASED" AUTO_ENTITLED = "AUTO_ENTITLED" + BUNDLE_ENTITLED = "BUNDLE_ENTITLED" def to_dict(self): # type: () -> Dict[str, Any] From 9341aef8a63facdc3f6fea9b41875534e6c1395b Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Mon, 7 Aug 2023 16:04:51 +0000 Subject: [PATCH 105/111] Release 1.33.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index f402541..84859c0 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -410,3 +410,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.33.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 7abf404..17127d5 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.32.0' +__version__ = '1.33.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From e7125895707c5baffa3f49d5976e62725e235149 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Wed, 9 Aug 2023 15:36:52 +0000 Subject: [PATCH 106/111] Release 1.80.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 74bfe5f..436ccf9 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -727,3 +727,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.80.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index c6af3ce..3452c69 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.79.0' +__version__ = '1.80.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 4c0ed534640000850a9bccd619633051cc6ee642 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Wed, 9 Aug 2023 16:04:57 +0000 Subject: [PATCH 107/111] Release 1.34.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- .../ask_smapi_model/v1/skill/manifest/interface_type.py | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 84859c0..39e7e84 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -416,3 +416,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.34.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 17127d5..1462bf3 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.33.0' +__version__ = '1.34.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py index f9ede88..4e6dd28 100644 --- a/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py +++ b/ask-smapi-model/ask_smapi_model/v1/skill/manifest/interface_type.py @@ -31,7 +31,7 @@ class InterfaceType(Enum): - Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2, ALEXA_SEARCH, ALEXA_DATASTORE_PACKAGEMANAGER, ALEXA_DATA_STORE] + Allowed enum values: [AUDIO_PLAYER, VIDEO_APP, RENDER_TEMPLATE, GAME_ENGINE, GADGET_CONTROLLER, CAN_FULFILL_INTENT_REQUEST, ALEXA_PRESENTATION_APL, ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER, ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER, ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER, CUSTOM_INTERFACE, ALEXA_AUGMENTATION_EFFECTS_CONTROLLER, APP_LINKS, ALEXA_EXTENSION, APP_LINKS_V2, ALEXA_SEARCH, ALEXA_DATASTORE_PACKAGEMANAGER, ALEXA_DATA_STORE, CUSTOMER_UTTERANCE_TRANSCRIPT] """ AUDIO_PLAYER = "AUDIO_PLAYER" VIDEO_APP = "VIDEO_APP" @@ -51,6 +51,7 @@ class InterfaceType(Enum): ALEXA_SEARCH = "ALEXA_SEARCH" ALEXA_DATASTORE_PACKAGEMANAGER = "ALEXA_DATASTORE_PACKAGEMANAGER" ALEXA_DATA_STORE = "ALEXA_DATA_STORE" + CUSTOMER_UTTERANCE_TRANSCRIPT = "CUSTOMER_UTTERANCE_TRANSCRIPT" def to_dict(self): # type: () -> Dict[str, Any] From 31f6b66a0ae0685db8270a3ed06d89b415d9c674 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Thu, 10 Aug 2023 15:36:44 +0000 Subject: [PATCH 108/111] Release 1.81.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 ++++++ ask-sdk-model/ask_sdk_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 436ccf9..cc813be 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -733,3 +733,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.81.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 3452c69..8d325d0 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.80.0' +__version__ = '1.81.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 87009a883c3eea4c8146e6616e886374e793a298 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Thu, 10 Aug 2023 16:04:59 +0000 Subject: [PATCH 109/111] Release 1.35.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 39e7e84..741faa2 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -422,3 +422,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.35.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 1462bf3..12cc56c 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.34.0' +__version__ = '1.35.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' From 6bcd8d04fa5ade2ed66ce5a96e394888a90f07c8 Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Mon, 21 Aug 2023 15:36:55 +0000 Subject: [PATCH 110/111] Release 1.82.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 6 + ask-sdk-model/ask_sdk_model/__version__.py | 2 +- ask-sdk-model/ask_sdk_model/directive.py | 3 + .../alexa/advertisement/__init__.py | 23 +++ .../alexa/advertisement/ad_completed.py | 131 +++++++++++++++++ .../alexa/advertisement/ad_not_rendered.py | 132 +++++++++++++++++ .../alexa_advertisement_interface.py | 100 +++++++++++++ .../alexa/advertisement/inject_ads.py | 111 ++++++++++++++ .../interfaces/alexa/advertisement/py.typed | 0 .../advertisement/ready_to_enqueue_audio.py | 138 ++++++++++++++++++ .../interfaces/alexa/advertisement/reason.py | 116 +++++++++++++++ .../alexa/advertisement/reason_code.py | 70 +++++++++ ask-sdk-model/ask_sdk_model/request.py | 9 ++ .../ask_sdk_model/supported_interfaces.py | 12 +- 14 files changed, 850 insertions(+), 3 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_completed.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_not_rendered.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/alexa_advertisement_interface.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/inject_ads.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/py.typed create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ready_to_enqueue_audio.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason.py create mode 100644 ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason_code.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index cc813be..b32d0db 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -739,3 +739,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.82.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 8d325d0..aac9a6b 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-sdk-model' __description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.81.0' +__version__ = '1.82.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0' diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index 1d71962..fb543b4 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -55,6 +55,8 @@ class Directive(object): | | Dialog.ConfirmIntent: :py:class:`ask_sdk_model.dialog.confirm_intent_directive.ConfirmIntentDirective`, | + | Alexa.Advertisement.InjectAds: :py:class:`ask_sdk_model.interfaces.alexa.advertisement.inject_ads.InjectAds`, + | | CustomInterfaceController.SendDirective: :py:class:`ask_sdk_model.interfaces.custom_interface_controller.send_directive_directive.SendDirectiveDirective`, | | Alexa.Presentation.HTML.HandleMessage: :py:class:`ask_sdk_model.interfaces.alexa.presentation.html.handle_message_directive.HandleMessageDirective`, @@ -127,6 +129,7 @@ class Directive(object): 'Alexa.Presentation.APL.SendIndexListData': 'ask_sdk_model.interfaces.alexa.presentation.apl.send_index_list_data_directive.SendIndexListDataDirective', 'Dialog.Delegate': 'ask_sdk_model.dialog.delegate_directive.DelegateDirective', 'Dialog.ConfirmIntent': 'ask_sdk_model.dialog.confirm_intent_directive.ConfirmIntentDirective', + 'Alexa.Advertisement.InjectAds': 'ask_sdk_model.interfaces.alexa.advertisement.inject_ads.InjectAds', 'CustomInterfaceController.SendDirective': 'ask_sdk_model.interfaces.custom_interface_controller.send_directive_directive.SendDirectiveDirective', 'Alexa.Presentation.HTML.HandleMessage': 'ask_sdk_model.interfaces.alexa.presentation.html.handle_message_directive.HandleMessageDirective', 'Alexa.Presentation.APLA.RenderDocument': 'ask_sdk_model.interfaces.alexa.presentation.apla.render_document_directive.RenderDocumentDirective', diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/__init__.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/__init__.py new file mode 100644 index 0000000..b90fec0 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/__init__.py @@ -0,0 +1,23 @@ +# coding: utf-8 + +# +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# +from __future__ import absolute_import + +from .alexa_advertisement_interface import AlexaAdvertisementInterface +from .reason import Reason +from .ad_completed import AdCompleted +from .reason_code import ReasonCode +from .ad_not_rendered import AdNotRendered +from .ready_to_enqueue_audio import ReadyToEnqueueAudio +from .inject_ads import InjectAds diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_completed.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_completed.py new file mode 100644 index 0000000..95041eb --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_completed.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AdCompleted(Request): + """ + The skill receives this event when the ad playback is finished. More details: https://tiny.amazon.com/tbfio2ru/wamazbinviewAlexTeamASKTInSk + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The current token representing the ad stream being played. + :type token: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'token': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'token': 'token' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, token=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str]) -> None + """The skill receives this event when the ad playback is finished. More details: https://tiny.amazon.com/tbfio2ru/wamazbinviewAlexTeamASKTInSk + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The current token representing the ad stream being played. + :type token: (optional) str + """ + self.__discriminator_value = "Alexa.Advertisement.AdCompleted" # type: str + + self.object_type = self.__discriminator_value + super(AdCompleted, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.token = token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AdCompleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_not_rendered.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_not_rendered.py new file mode 100644 index 0000000..31e3288 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ad_not_rendered.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.advertisement.reason import Reason as Reason_83932c76 + + +class AdNotRendered(Request): + """ + The skill receives this event when the ad cannot be displayed or played due to certain reasons. More details: https://tiny.amazon.com/16bnoj5db/wamazbinviewAlexTeamASKTInSk + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param reason: The object encapsulates information regarding the reasons why the ad is not being rendered. + :type reason: (optional) ask_sdk_model.interfaces.alexa.advertisement.reason.Reason + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'reason': 'ask_sdk_model.interfaces.alexa.advertisement.reason.Reason' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'reason': 'reason' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, reason=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[Reason_83932c76]) -> None + """The skill receives this event when the ad cannot be displayed or played due to certain reasons. More details: https://tiny.amazon.com/16bnoj5db/wamazbinviewAlexTeamASKTInSk + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param reason: The object encapsulates information regarding the reasons why the ad is not being rendered. + :type reason: (optional) ask_sdk_model.interfaces.alexa.advertisement.reason.Reason + """ + self.__discriminator_value = "Alexa.Advertisement.AdNotRendered" # type: str + + self.object_type = self.__discriminator_value + super(AdNotRendered, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.reason = reason + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AdNotRendered): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/alexa_advertisement_interface.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/alexa_advertisement_interface.py new file mode 100644 index 0000000..936b039 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/alexa_advertisement_interface.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class AlexaAdvertisementInterface(object): + """ + The interface provides skills with the ability to seamlessly integrate advertisements during their interactions with users. + + + + """ + deserialized_types = { + } # type: Dict + + attribute_map = { + } # type: Dict + supports_multiple_types = False + + def __init__(self): + # type: () -> None + """The interface provides skills with the ability to seamlessly integrate advertisements during their interactions with users. + + """ + self.__discriminator_value = None # type: str + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, AlexaAdvertisementInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/inject_ads.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/inject_ads.py new file mode 100644 index 0000000..fbe633b --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/inject_ads.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.directive import Directive + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class InjectAds(Directive): + """ + + :param expected_previous_token: The optional expected previous token represents the content currently being played, and it is utilized to enqueue the advertisement after the ongoing audio content. More details: https://tiny.amazon.com/l9h6ejjr/wamazbinviewAlexTeamASKTInSk + :type expected_previous_token: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'expected_previous_token': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'expected_previous_token': 'expectedPreviousToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, expected_previous_token=None): + # type: (Optional[str]) -> None + """ + + :param expected_previous_token: The optional expected previous token represents the content currently being played, and it is utilized to enqueue the advertisement after the ongoing audio content. More details: https://tiny.amazon.com/l9h6ejjr/wamazbinviewAlexTeamASKTInSk + :type expected_previous_token: (optional) str + """ + self.__discriminator_value = "Alexa.Advertisement.InjectAds" # type: str + + self.object_type = self.__discriminator_value + super(InjectAds, self).__init__(object_type=self.__discriminator_value) + self.expected_previous_token = expected_previous_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, InjectAds): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/py.typed b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ready_to_enqueue_audio.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ready_to_enqueue_audio.py new file mode 100644 index 0000000..7b4b03e --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/ready_to_enqueue_audio.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum +from ask_sdk_model.request import Request + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ReadyToEnqueueAudio(Request): + """ + This event is sent to the skill as a signal that it can enqueue the next audio content in the audio player. This allows the third-party skill to resume content playback after the advertisement. + + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The token currently representing the ad stream being played can be used as the expectedPreviousToken in the AudioPlayer.Play directive. This allows the skill to enqueue the next content seamlessly after the ad stream. + :type token: (optional) str + :param previous_token: The expectedPreviousToken passed in the InjectAds request, which can be utilized by a skill to maintain an ordered list and find the next content from the current content. + :type previous_token: (optional) str + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'token': 'str', + 'previous_token': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'token': 'token', + 'previous_token': 'previousToken' + } # type: Dict + supports_multiple_types = False + + def __init__(self, request_id=None, timestamp=None, locale=None, token=None, previous_token=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[str], Optional[str]) -> None + """This event is sent to the skill as a signal that it can enqueue the next audio content in the audio player. This allows the third-party skill to resume content playback after the advertisement. + + :param request_id: Represents the unique identifier for the specific request. + :type request_id: (optional) str + :param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service. + :type timestamp: (optional) datetime + :param locale: A string indicating the user’s locale. For example: en-US. This value is only provided with certain request types. + :type locale: (optional) str + :param token: The token currently representing the ad stream being played can be used as the expectedPreviousToken in the AudioPlayer.Play directive. This allows the skill to enqueue the next content seamlessly after the ad stream. + :type token: (optional) str + :param previous_token: The expectedPreviousToken passed in the InjectAds request, which can be utilized by a skill to maintain an ordered list and find the next content from the current content. + :type previous_token: (optional) str + """ + self.__discriminator_value = "Alexa.Advertisement.ReadyToEnqueueAudio" # type: str + + self.object_type = self.__discriminator_value + super(ReadyToEnqueueAudio, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale) + self.token = token + self.previous_token = previous_token + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ReadyToEnqueueAudio): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason.py new file mode 100644 index 0000000..0eed486 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + from ask_sdk_model.interfaces.alexa.advertisement.reason_code import ReasonCode as ReasonCode_3e4eb6ef + + +class Reason(object): + """ + The object encapsulates information regarding the reasons why the ad is not being rendered. + + + :param object_type: The enum represents various details explaining why the ad is not being rendered. + :type object_type: (optional) ask_sdk_model.interfaces.alexa.advertisement.reason_code.ReasonCode + :param message: The message provides an explanation of the specific details as to why the ad is not being rendered. + :type message: (optional) str + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.interfaces.alexa.advertisement.reason_code.ReasonCode', + 'message': 'str' + } # type: Dict + + attribute_map = { + 'object_type': 'type', + 'message': 'message' + } # type: Dict + supports_multiple_types = False + + def __init__(self, object_type=None, message=None): + # type: (Optional[ReasonCode_3e4eb6ef], Optional[str]) -> None + """The object encapsulates information regarding the reasons why the ad is not being rendered. + + :param object_type: The enum represents various details explaining why the ad is not being rendered. + :type object_type: (optional) ask_sdk_model.interfaces.alexa.advertisement.reason_code.ReasonCode + :param message: The message provides an explanation of the specific details as to why the ad is not being rendered. + :type message: (optional) str + """ + self.__discriminator_value = None # type: str + + self.object_type = object_type + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} # type: Dict + + for attr, _ in six.iteritems(self.deserialized_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else + x.value if isinstance(x, Enum) else x, + value + )) + elif isinstance(value, Enum): + result[attr] = value.value + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else + (item[0], item[1].value) + if isinstance(item[1], Enum) else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (object) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, Reason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (object) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason_code.py b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason_code.py new file mode 100644 index 0000000..b75f827 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/interfaces/alexa/advertisement/reason_code.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# the specific language governing permissions and limitations under the License. +# + +import pprint +import re # noqa: F401 +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional, Union, Any + from datetime import datetime + + +class ReasonCode(Enum): + """ + The enum represents various details explaining why the ad is not being rendered. + + + + Allowed enum values: [DEVICE_OCCUPIED, UNSUPPORTED_DEVICE, SKILL_DAILY_CAP_LIMIT_REACHED, DOMAIN_DAILY_CAP_LIMIT_REACHED, INTERNAL_SERVER_ERROR, AD_NOT_AVAILABLE] + """ + DEVICE_OCCUPIED = "DEVICE_OCCUPIED" + UNSUPPORTED_DEVICE = "UNSUPPORTED_DEVICE" + SKILL_DAILY_CAP_LIMIT_REACHED = "SKILL_DAILY_CAP_LIMIT_REACHED" + DOMAIN_DAILY_CAP_LIMIT_REACHED = "DOMAIN_DAILY_CAP_LIMIT_REACHED" + INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" + AD_NOT_AVAILABLE = "AD_NOT_AVAILABLE" + + def to_dict(self): + # type: () -> Dict[str, Any] + """Returns the model properties as a dict""" + result = {self.name: self.value} + return result + + def to_str(self): + # type: () -> str + """Returns the string representation of the model""" + return pprint.pformat(self.value) + + def __repr__(self): + # type: () -> str + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + # type: (Any) -> bool + """Returns true if both objects are equal""" + if not isinstance(other, ReasonCode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + # type: (Any) -> bool + """Returns true if both objects are not equal""" + return not self == other diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index 0b12ab1..e02e345 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -45,6 +45,8 @@ class Request(object): This is an abstract class. Use the following mapping, to figure out the model class to be instantiated, that sets ``type`` variable. + | Alexa.Advertisement.AdNotRendered: :py:class:`ask_sdk_model.interfaces.alexa.advertisement.ad_not_rendered.AdNotRendered`, + | | Alexa.DataStore.PackageManager.InstallationError: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.installation_error.InstallationError`, | | AlexaSkillEvent.SkillEnabled: :py:class:`ask_sdk_model.events.skillevents.skill_enabled_request.SkillEnabledRequest`, @@ -83,6 +85,8 @@ class Request(object): | | Alexa.Presentation.APLT.UserEvent: :py:class:`ask_sdk_model.interfaces.alexa.presentation.aplt.user_event.UserEvent`, | + | Alexa.Advertisement.ReadyToEnqueueAudio: :py:class:`ask_sdk_model.interfaces.alexa.advertisement.ready_to_enqueue_audio.ReadyToEnqueueAudio`, + | | AlexaHouseholdListEvent.ItemsUpdated: :py:class:`ask_sdk_model.services.list_management.list_items_updated_event_request.ListItemsUpdatedEventRequest`, | | AlexaHouseholdListEvent.ListCreated: :py:class:`ask_sdk_model.services.list_management.list_created_event_request.ListCreatedEventRequest`, @@ -119,6 +123,8 @@ class Request(object): | | Reminders.ReminderUpdated: :py:class:`ask_sdk_model.services.reminder_management.reminder_updated_event_request.ReminderUpdatedEventRequest`, | + | Alexa.Advertisement.AdCompleted: :py:class:`ask_sdk_model.interfaces.alexa.advertisement.ad_completed.AdCompleted`, + | | Alexa.DataStore.PackageManager.UpdateRequest: :py:class:`ask_sdk_model.interfaces.alexa.datastore.packagemanager.update_request.UpdateRequest`, | | Alexa.Presentation.APL.RuntimeError: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error_event.RuntimeErrorEvent`, @@ -174,6 +180,7 @@ class Request(object): supports_multiple_types = False discriminator_value_class_map = { + 'Alexa.Advertisement.AdNotRendered': 'ask_sdk_model.interfaces.alexa.advertisement.ad_not_rendered.AdNotRendered', 'Alexa.DataStore.PackageManager.InstallationError': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.installation_error.InstallationError', 'AlexaSkillEvent.SkillEnabled': 'ask_sdk_model.events.skillevents.skill_enabled_request.SkillEnabledRequest', 'AlexaHouseholdListEvent.ListUpdated': 'ask_sdk_model.services.list_management.list_updated_event_request.ListUpdatedEventRequest', @@ -193,6 +200,7 @@ class Request(object): 'Alexa.Authorization.Grant': 'ask_sdk_model.authorization.authorization_grant_request.AuthorizationGrantRequest', 'Reminders.ReminderCreated': 'ask_sdk_model.services.reminder_management.reminder_created_event_request.ReminderCreatedEventRequest', 'Alexa.Presentation.APLT.UserEvent': 'ask_sdk_model.interfaces.alexa.presentation.aplt.user_event.UserEvent', + 'Alexa.Advertisement.ReadyToEnqueueAudio': 'ask_sdk_model.interfaces.alexa.advertisement.ready_to_enqueue_audio.ReadyToEnqueueAudio', 'AlexaHouseholdListEvent.ItemsUpdated': 'ask_sdk_model.services.list_management.list_items_updated_event_request.ListItemsUpdatedEventRequest', 'AlexaHouseholdListEvent.ListCreated': 'ask_sdk_model.services.list_management.list_created_event_request.ListCreatedEventRequest', 'AudioPlayer.PlaybackStarted': 'ask_sdk_model.interfaces.audioplayer.playback_started_request.PlaybackStartedRequest', @@ -211,6 +219,7 @@ class Request(object): 'Display.ElementSelected': 'ask_sdk_model.interfaces.display.element_selected_request.ElementSelectedRequest', 'AlexaSkillEvent.SkillPermissionChanged': 'ask_sdk_model.events.skillevents.permission_changed_request.PermissionChangedRequest', 'Reminders.ReminderUpdated': 'ask_sdk_model.services.reminder_management.reminder_updated_event_request.ReminderUpdatedEventRequest', + 'Alexa.Advertisement.AdCompleted': 'ask_sdk_model.interfaces.alexa.advertisement.ad_completed.AdCompleted', 'Alexa.DataStore.PackageManager.UpdateRequest': 'ask_sdk_model.interfaces.alexa.datastore.packagemanager.update_request.UpdateRequest', 'Alexa.Presentation.APL.RuntimeError': 'ask_sdk_model.interfaces.alexa.presentation.apl.runtime_error_event.RuntimeErrorEvent', 'Alexa.Presentation.HTML.RuntimeError': 'ask_sdk_model.interfaces.alexa.presentation.html.runtime_error_request.RuntimeErrorRequest', diff --git a/ask-sdk-model/ask_sdk_model/supported_interfaces.py b/ask-sdk-model/ask_sdk_model/supported_interfaces.py index f8c166c..65c8799 100644 --- a/ask-sdk-model/ask_sdk_model/supported_interfaces.py +++ b/ask-sdk-model/ask_sdk_model/supported_interfaces.py @@ -27,6 +27,7 @@ from ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface import AlexaPresentationAplInterface as AlexaPresentationAplInterface_58fc19ef from ask_sdk_model.interfaces.navigation.navigation_interface import NavigationInterface as NavigationInterface_aa96009b from ask_sdk_model.interfaces.audioplayer.audio_player_interface import AudioPlayerInterface as AudioPlayerInterface_24d2b051 + from ask_sdk_model.interfaces.alexa.advertisement.alexa_advertisement_interface import AlexaAdvertisementInterface as AlexaAdvertisementInterface_b42bb74 from ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface import AlexaPresentationApltInterface as AlexaPresentationApltInterface_95b3be2b from ask_sdk_model.interfaces.applink.app_link_interface import AppLinkInterface as AppLinkInterface_4aa78e23 from ask_sdk_model.interfaces.display.display_interface import DisplayInterface as DisplayInterface_c1477bd9 @@ -39,6 +40,8 @@ class SupportedInterfaces(object): An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. + :param alexa_advertisement: + :type alexa_advertisement: (optional) ask_sdk_model.interfaces.alexa.advertisement.alexa_advertisement_interface.AlexaAdvertisementInterface :param alexa_presentation_apl: :type alexa_presentation_apl: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface.AlexaPresentationAplInterface :param alexa_presentation_aplt: @@ -60,6 +63,7 @@ class SupportedInterfaces(object): """ deserialized_types = { + 'alexa_advertisement': 'ask_sdk_model.interfaces.alexa.advertisement.alexa_advertisement_interface.AlexaAdvertisementInterface', 'alexa_presentation_apl': 'ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface.AlexaPresentationAplInterface', 'alexa_presentation_aplt': 'ask_sdk_model.interfaces.alexa.presentation.aplt.alexa_presentation_aplt_interface.AlexaPresentationApltInterface', 'alexa_presentation_html': 'ask_sdk_model.interfaces.alexa.presentation.html.alexa_presentation_html_interface.AlexaPresentationHtmlInterface', @@ -72,6 +76,7 @@ class SupportedInterfaces(object): } # type: Dict attribute_map = { + 'alexa_advertisement': 'Alexa.Advertisement', 'alexa_presentation_apl': 'Alexa.Presentation.APL', 'alexa_presentation_aplt': 'Alexa.Presentation.APLT', 'alexa_presentation_html': 'Alexa.Presentation.HTML', @@ -84,10 +89,12 @@ class SupportedInterfaces(object): } # type: Dict supports_multiple_types = False - def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, alexa_presentation_html=None, app_link=None, audio_player=None, display=None, video_app=None, geolocation=None, navigation=None): - # type: (Optional[AlexaPresentationAplInterface_58fc19ef], Optional[AlexaPresentationApltInterface_95b3be2b], Optional[AlexaPresentationHtmlInterface_b20f808f], Optional[AppLinkInterface_4aa78e23], Optional[AudioPlayerInterface_24d2b051], Optional[DisplayInterface_c1477bd9], Optional[VideoAppInterface_f245c658], Optional[GeolocationInterface_d5c5128d], Optional[NavigationInterface_aa96009b]) -> None + def __init__(self, alexa_advertisement=None, alexa_presentation_apl=None, alexa_presentation_aplt=None, alexa_presentation_html=None, app_link=None, audio_player=None, display=None, video_app=None, geolocation=None, navigation=None): + # type: (Optional[AlexaAdvertisementInterface_b42bb74], Optional[AlexaPresentationAplInterface_58fc19ef], Optional[AlexaPresentationApltInterface_95b3be2b], Optional[AlexaPresentationHtmlInterface_b20f808f], Optional[AppLinkInterface_4aa78e23], Optional[AudioPlayerInterface_24d2b051], Optional[DisplayInterface_c1477bd9], Optional[VideoAppInterface_f245c658], Optional[GeolocationInterface_d5c5128d], Optional[NavigationInterface_aa96009b]) -> None """An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface. + :param alexa_advertisement: + :type alexa_advertisement: (optional) ask_sdk_model.interfaces.alexa.advertisement.alexa_advertisement_interface.AlexaAdvertisementInterface :param alexa_presentation_apl: :type alexa_presentation_apl: (optional) ask_sdk_model.interfaces.alexa.presentation.apl.alexa_presentation_apl_interface.AlexaPresentationAplInterface :param alexa_presentation_aplt: @@ -109,6 +116,7 @@ def __init__(self, alexa_presentation_apl=None, alexa_presentation_aplt=None, al """ self.__discriminator_value = None # type: str + self.alexa_advertisement = alexa_advertisement self.alexa_presentation_apl = alexa_presentation_apl self.alexa_presentation_aplt = alexa_presentation_aplt self.alexa_presentation_html = alexa_presentation_html From 751e6dbbb829ceb34dd7405eb77235c06b19c612 Mon Sep 17 00:00:00 2001 From: Alexa <> Date: Mon, 21 Aug 2023 16:04:58 +0000 Subject: [PATCH 111/111] Release 1.36.0. For changelog, check CHANGELOG.rst --- ask-smapi-model/CHANGELOG.rst | 6 ++++++ ask-smapi-model/ask_smapi_model/__version__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ask-smapi-model/CHANGELOG.rst b/ask-smapi-model/CHANGELOG.rst index 741faa2..bf5972b 100644 --- a/ask-smapi-model/CHANGELOG.rst +++ b/ask-smapi-model/CHANGELOG.rst @@ -428,3 +428,9 @@ General bug fixes and updates ~~~~~~ General bug fixes and updates + + +1.36.0 +~~~~~~ + +General bug fixes and updates diff --git a/ask-smapi-model/ask_smapi_model/__version__.py b/ask-smapi-model/ask_smapi_model/__version__.py index 12cc56c..9c67af0 100644 --- a/ask-smapi-model/ask_smapi_model/__version__.py +++ b/ask-smapi-model/ask_smapi_model/__version__.py @@ -14,7 +14,7 @@ __pip_package_name__ = 'ask-smapi-model' __description__ = 'The SMAPI SDK Model package provides model definitions for making Skill Management API calls.' __url__ = 'https://github.com/alexa/alexa-apis-for-python' -__version__ = '1.35.0' +__version__ = '1.36.0' __author__ = 'Alexa Skills Kit' __author_email__ = 'ask-sdk-dynamic@amazon.com' __license__ = 'Apache 2.0'