Skip to content

Commit

Permalink
Release 1.21.0. For changelog, check CHANGELOG.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ask-pyth committed Mar 2, 2020
1 parent d74c073 commit b4a7388
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
8 changes: 8 additions & 0 deletions ask-sdk-model/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,11 @@ This release contains the following changes :

- Fix the discriminator value for Alexa HTML message request object.
- Add Alexa HTML Runtime Error definitions.


1.21.0
~~~~~~

This release contains the following changes :

- Updated `rules for recurrence creation <https://developer.amazon.com/en-US/docs/alexa/smapi/alexa-reminders-api-reference.html#in-session-and-out-of-session-behavior-for-alexa-reminders-api>`__ in reminders.
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.20.2'
__version__ = '1.21.0'
__author__ = 'Alexa Skills Kit'
__author_email__ = 'ask-sdk-dynamic@amazon.com'
__license__ = 'Apache 2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,35 @@ class Recurrence(object):
:type by_day: (optional) list[ask_sdk_model.services.reminder_management.recurrence_day.RecurrenceDay]
:param interval: contains a positive integer representing at which intervals the recurrence rule repeats
:type interval: (optional) int
:param start_date_time: Valid ISO 8601 format - optional start DateTime of recurrence.
:type start_date_time: (optional) datetime
:param end_date_time: Valid ISO 8601 format - optional end DateTime of recurrence
:type end_date_time: (optional) datetime
:param recurrence_rules:
:type recurrence_rules: (optional) list[str]
"""
deserialized_types = {
'freq': 'ask_sdk_model.services.reminder_management.recurrence_freq.RecurrenceFreq',
'by_day': 'list[ask_sdk_model.services.reminder_management.recurrence_day.RecurrenceDay]',
'interval': 'int'
'interval': 'int',
'start_date_time': 'datetime',
'end_date_time': 'datetime',
'recurrence_rules': 'list[str]'
} # type: Dict

attribute_map = {
'freq': 'freq',
'by_day': 'byDay',
'interval': 'interval'
'interval': 'interval',
'start_date_time': 'startDateTime',
'end_date_time': 'endDateTime',
'recurrence_rules': 'recurrenceRules'
} # type: Dict
supports_multiple_types = False

def __init__(self, freq=None, by_day=None, interval=None):
# type: (Optional[RecurrenceFreq], Optional[List[RecurrenceDay]], Optional[int]) -> None
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
"""Recurring date/time using the RFC 5545 standard in JSON object form
:param freq:
Expand All @@ -63,12 +75,21 @@ def __init__(self, freq=None, by_day=None, interval=None):
:type by_day: (optional) list[ask_sdk_model.services.reminder_management.recurrence_day.RecurrenceDay]
:param interval: contains a positive integer representing at which intervals the recurrence rule repeats
:type interval: (optional) int
:param start_date_time: Valid ISO 8601 format - optional start DateTime of recurrence.
:type start_date_time: (optional) datetime
:param end_date_time: Valid ISO 8601 format - optional end DateTime of recurrence
:type end_date_time: (optional) datetime
:param recurrence_rules:
:type recurrence_rules: (optional) list[str]
"""
self.__discriminator_value = None # type: str

self.freq = freq
self.by_day = by_day
self.interval = interval
self.start_date_time = start_date_time
self.end_date_time = end_date_time
self.recurrence_rules = recurrence_rules

def to_dict(self):
# type: () -> Dict[str, object]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class RecurrenceDay(Enum):
"""
Day of recurrence
Day of recurrence. Deprecated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class RecurrenceFreq(Enum):
"""
Frequency of recurrence
Frequency of recurrence. Deprecated.
Expand Down

0 comments on commit b4a7388

Please sign in to comment.