Skip to content

Commit

Permalink
Release 1.20.0. For changelog, check CHANGELOG.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ask-pyth committed Dec 4, 2019
1 parent 7b63a4f commit c60f60d
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 30 deletions.
8 changes: 8 additions & 0 deletions ask-sdk-model/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,11 @@ This release contains the following changes :
- Alexa Presentation Language HTML Interface support. Apply for preview request `here <https://build.amazonalexadev.com/AlexaWebAPIforGamesDeveloperPreview_AlexaWebAPIforGames.html>`__.
- Update service client methods to return an `ApiResponse` instance, in case a full response is required instead of just the response body.
- mypy fix for `AuthenticationConfiguration` class.


1.20.0
~~~~~~

This release contains the following changes :

- captions support in `audioplayer play directive <https://developer.amazon.com/docs/custom-skills/audioplayer-interface-reference.html#play>`__.
2 changes: 1 addition & 1 deletion ask-sdk-model/ask_sdk_model/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.19.0'
__version__ = '1.20.0'
__author__ = 'Alexa Skills Kit'
__author_email__ = '[email protected]'
__license__ = 'Apache 2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
class DeviceAddressServiceClient(BaseServiceClient):
"""ServiceClient for calling the DeviceAddressService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class DirectiveServiceClient(BaseServiceClient):
"""ServiceClient for calling the DirectiveService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class EndpointEnumerationServiceClient(BaseServiceClient):
"""ServiceClient for calling the EndpointEnumerationService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
class ListManagementServiceClient(BaseServiceClient):
"""ServiceClient for calling the ListManagementService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class MonetizationServiceClient(BaseServiceClient):
"""ServiceClient for calling the MonetizationService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class ProactiveEventsServiceClient(BaseServiceClient):
"""ServiceClient for calling the ProactiveEventsService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
: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):
Expand All @@ -49,7 +49,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N
: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`,
: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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,35 @@
# -*- coding: utf-8 -*-
# coding: utf-8

#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights
# Reserved.
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
# OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the
# License.
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for
# 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
from typing import Dict, List, Optional, Union
from datetime import datetime


class SkillStage(Enum):
"""Stage for creating Proactive events.
"""
Stage for creating Proactive events. Since proactive events can be created on the DEVELOPMENT and LIVE stages of the skill, this enum provides the stage values that can be used to pass to the service call.
Since proactive events can be created on the DEVELOPMENT and LIVE
stages of the skill, this enum provides the stage values that can
be used to pass to the service call.
Allowed enum values: [DEVELOPMENT, LIVE]
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class ReminderManagementServiceClient(BaseServiceClient):
"""ServiceClient for calling the ReminderManagementService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
from .ups import UpsServiceClient

if typing.TYPE_CHECKING:
from .api_configuration import ApiConfiguration
from ask_sdk_model.services.api_configuration import ApiConfiguration


class ServiceClientFactory(object):
"""ServiceClientFactory class to help build service clients.
:param api_configuration: API Configuration for calling services
:type api_configuration: ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
# type: (ApiConfiguration) -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
class SkillMessagingServiceClient(BaseServiceClient):
"""ServiceClient for calling the SkillMessagingService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
: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):
Expand All @@ -48,7 +48,7 @@ def __init__(self, api_configuration, authentication_configuration, lwa_client=N
: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`,
: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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class UpsServiceClient(BaseServiceClient):
"""ServiceClient for calling the UpsService APIs.
:param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration`
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration
"""
def __init__(self, api_configuration):
Expand Down
2 changes: 2 additions & 0 deletions ask-sdk-model/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
six >= 1.10
setuptools >= 21.0.0
python_dateutil
enum34; python_version == '2.7'
typing; python_version == '2.7'

0 comments on commit c60f60d

Please sign in to comment.