From 4429ef8cd9e6f8df9435a9c4a9a6ddd9c4f843f2 Mon Sep 17 00:00:00 2001 From: ask-pyth Date: Thu, 28 Feb 2019 01:19:33 +0000 Subject: [PATCH] Release 1.7.0. For changelog, check CHANGELOG.rst --- ask-sdk-model/CHANGELOG.rst | 9 + ask-sdk-model/LICENSE | 2 +- ask-sdk-model/ask_sdk_model/__version__.py | 4 +- ask-sdk-model/ask_sdk_model/application.py | 2 +- .../canfulfill/can_fulfill_intent.py | 2 +- .../canfulfill/can_fulfill_intent_request.py | 2 +- .../canfulfill/can_fulfill_intent_values.py | 3 +- .../canfulfill/can_fulfill_slot.py | 2 +- .../canfulfill/can_fulfill_slot_values.py | 3 +- .../canfulfill/can_understand_slot_values.py | 3 +- 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/elicit_slot_directive.py | 2 +- ask-sdk-model/ask_sdk_model/dialog_state.py | 3 +- ask-sdk-model/ask_sdk_model/directive.py | 2 +- .../events/skillevents/__init__.py | 3 + .../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 | 106 ++++++++++ .../proactive_subscription_changed_request.py | 131 ++++++++++++ .../proactive_subscription_event.py | 105 ++++++++++ .../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 | 3 +- ask-sdk-model/ask_sdk_model/intent_request.py | 2 +- .../apl/alexa_presentation_apl_interface.py | 2 +- .../alexa/presentation/apl/align.py | 3 +- .../presentation/apl/auto_page_command.py | 2 +- .../alexa/presentation/apl/command.py | 2 +- .../apl/execute_commands_directive.py | 2 +- .../alexa/presentation/apl/highlight_mode.py | 3 +- .../alexa/presentation/apl/position.py | 3 +- .../apl/render_document_directive.py | 2 +- .../alexa/presentation/apl/runtime.py | 2 +- .../presentation/apl/set_page_command.py | 2 +- .../presentation/apl/speak_item_command.py | 2 +- .../alexa/presentation/apl/user_event.py | 2 +- .../model/request/authorize_attributes.py | 2 +- .../model/request/base_amazon_pay_entity.py | 2 +- .../request/billing_agreement_attributes.py | 2 +- .../amazonpay/model/request/payment_action.py | 3 +- .../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 | 2 +- .../amazonpay/model/response/destination.py | 2 +- .../amazonpay/model/response/price.py | 2 +- .../model/response/release_environment.py | 3 +- .../amazonpay/model/response/state.py | 3 +- .../model/v1/authorization_details.py | 2 +- .../model/v1/authorization_status.py | 2 +- .../model/v1/authorize_attributes.py | 2 +- .../model/v1/billing_agreement_attributes.py | 2 +- .../model/v1/billing_agreement_details.py | 2 +- .../model/v1/billing_agreement_status.py | 3 +- .../amazonpay/model/v1/destination.py | 2 +- .../amazonpay/model/v1/payment_action.py | 3 +- .../interfaces/amazonpay/model/v1/price.py | 2 +- .../amazonpay/model/v1/provider_attributes.py | 2 +- .../amazonpay/model/v1/provider_credit.py | 2 +- .../amazonpay/model/v1/release_environment.py | 3 +- .../v1/seller_billing_agreement_attributes.py | 2 +- .../model/v1/seller_order_attributes.py | 2 +- .../interfaces/amazonpay/model/v1/state.py | 3 +- .../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 | 2 +- .../amazonpay/v1/charge_amazon_pay_result.py | 2 +- .../amazonpay/v1/setup_amazon_pay.py | 2 +- .../amazonpay/v1/setup_amazon_pay_result.py | 2 +- .../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/clear_behavior.py | 3 +- .../audioplayer/clear_queue_directive.py | 2 +- .../audioplayer/current_playback_state.py | 2 +- .../interfaces/audioplayer/error.py | 2 +- .../interfaces/audioplayer/error_type.py | 3 +- .../interfaces/audioplayer/play_behavior.py | 3 +- .../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 | 3 +- .../interfaces/audioplayer/stop_directive.py | 2 +- .../interfaces/audioplayer/stream.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 +- .../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 +- .../display/back_button_behavior.py | 3 +- .../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 | 3 +- .../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 | 3 +- .../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 | 3 +- .../messaging/message_received_request.py | 2 +- .../monetization/v1/in_skill_product.py | 2 +- .../monetization/v1/purchase_result.py | 3 +- .../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 | 3 +- .../system/exception_encountered_request.py | 2 +- .../interfaces/system/system_state.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/experience.py | 2 +- .../interfaces/viewport/keyboard.py | 3 +- .../interfaces/viewport/shape.py | 3 +- .../interfaces/viewport/touch.py | 3 +- .../interfaces/viewport/viewport_state.py | 2 +- ask-sdk-model/ask_sdk_model/launch_request.py | 2 +- .../ask_sdk_model/permission_status.py | 3 +- ask-sdk-model/ask_sdk_model/permissions.py | 2 +- ask-sdk-model/ask_sdk_model/request.py | 5 +- .../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 +- .../ask_sdk_model/services/__init__.py | 1 + .../services/authentication_configuration.py | 39 ++++ .../services/device_address/address.py | 2 +- .../device_address_service_client.py | 11 +- .../services/device_address/error.py | 2 +- .../services/device_address/short_address.py | 2 +- .../services/directive/directive.py | 2 +- .../directive/directive_service_client.py | 7 +- .../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 +- .../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 | 3 +- .../game_engine/deviation_recognizer.py | 2 +- .../services/game_engine/event.py | 2 +- .../game_engine/event_reporting_type.py | 3 +- .../services/game_engine/input_event.py | 2 +- .../game_engine/input_event_action_type.py | 3 +- .../game_engine/input_handler_event.py | 2 +- .../services/game_engine/pattern.py | 2 +- .../game_engine/pattern_recognizer.py | 2 +- .../pattern_recognizer_anchor_type.py | 3 +- .../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 | 3 +- .../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 | 39 +++- .../services/list_management/list_state.py | 3 +- .../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 +- .../ask_sdk_model/services/lwa/__init__.py | 21 ++ .../services/lwa/access_token.py | 58 ++++++ .../services/lwa/access_token_request.py | 120 +++++++++++ .../services/lwa/access_token_response.py | 129 ++++++++++++ .../ask_sdk_model/services/lwa/error.py | 110 ++++++++++ .../ask_sdk_model/services/lwa/lwa_client.py | 190 ++++++++++++++++++ .../services/monetization/entitled_state.py | 3 +- .../services/monetization/error.py | 2 +- .../services/monetization/in_skill_product.py | 2 +- .../in_skill_products_response.py | 2 +- .../monetization_service_client.py | 11 +- .../services/monetization/product_type.py | 3 +- .../monetization/purchasable_state.py | 3 +- .../services/monetization/purchase_mode.py | 3 +- .../services/proactive_events/__init__.py | 23 +++ .../create_proactive_event_request.py | 142 +++++++++++++ .../services/proactive_events/error.py | 112 +++++++++++ .../services/proactive_events/event.py | 114 +++++++++++ .../proactive_events_service_client.py | 115 +++++++++++ .../proactive_events/relevant_audience.py | 115 +++++++++++ .../relevant_audience_type.py | 66 ++++++ .../services/proactive_events/skill_stage.py | 67 ++++++ .../reminder_management/alert_info.py | 2 +- .../alert_info_spoken_info.py | 2 +- .../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 | 3 +- .../reminder_management/recurrence.py | 2 +- .../reminder_management/recurrence_day.py | 3 +- .../reminder_management/recurrence_freq.py | 3 +- .../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 | 67 ++---- .../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 | 3 +- .../services/reminder_management/trigger.py | 2 +- .../reminder_management/trigger_type.py | 3 +- .../services/service_client_factory.py | 3 +- .../services/ups/distance_units.py | 3 +- .../ask_sdk_model/services/ups/error.py | 2 +- .../ask_sdk_model/services/ups/error_code.py | 3 +- .../services/ups/phone_number.py | 2 +- .../services/ups/temperature_unit.py | 3 +- .../services/ups/ups_service_client.py | 31 ++- 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 | 3 +- .../ask_sdk_model/session_ended_reason.py | 3 +- .../ask_sdk_model/session_ended_request.py | 2 +- ask-sdk-model/ask_sdk_model/slot.py | 2 +- .../ask_sdk_model/slot_confirmation_status.py | 3 +- .../slu/entityresolution/resolution.py | 2 +- .../slu/entityresolution/resolutions.py | 2 +- .../slu/entityresolution/status.py | 2 +- .../slu/entityresolution/status_code.py | 3 +- .../slu/entityresolution/value.py | 2 +- .../slu/entityresolution/value_wrapper.py | 2 +- .../ask_sdk_model/supported_interfaces.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 | 3 +- 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 +- 316 files changed, 2206 insertions(+), 372 deletions(-) create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.py create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py create mode 100644 ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py create mode 100644 ask-sdk-model/ask_sdk_model/services/authentication_configuration.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/access_token.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/access_token_request.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/access_token_response.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/lwa/lwa_client.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/__init__.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/error.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/event.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py create mode 100644 ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py diff --git a/ask-sdk-model/CHANGELOG.rst b/ask-sdk-model/CHANGELOG.rst index 8629422..0cf3e2d 100644 --- a/ask-sdk-model/CHANGELOG.rst +++ b/ask-sdk-model/CHANGELOG.rst @@ -107,3 +107,12 @@ This release contains the following changes: This release contains the following : - Updated enum values for APL components. + + +1.7.0 +~~~~~~~ + +This release contains the following changes : + +- Support for proactive event calls from out of skill session. +- Remove delete reminders support. diff --git a/ask-sdk-model/LICENSE b/ask-sdk-model/LICENSE index dd8dc66..adcecba 100644 --- a/ask-sdk-model/LICENSE +++ b/ask-sdk-model/LICENSE @@ -1,4 +1,4 @@ -Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/__version__.py b/ask-sdk-model/ask_sdk_model/__version__.py index 7c029d2..f6ea4ca 100644 --- a/ask-sdk-model/ask_sdk_model/__version__.py +++ b/ask-sdk-model/ask_sdk_model/__version__.py @@ -1,5 +1,5 @@ # -# Copyright 2018 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 @@ -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.6.2' +__version__ = '1.7.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/application.py b/ask-sdk-model/ask_sdk_model/application.py index e8ddf91..ea8af6e 100644 --- a/ask-sdk-model/ask_sdk_model/application.py +++ b/ask-sdk-model/ask_sdk_model/application.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a8c725c..2c972a7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 989272e..69d31ec 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 9971d8e..1f1057c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class CanFulfillIntentValues(Enum): YES = "YES" NO = "NO" MAYBE = "MAYBE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 6fdbc6e..40d2f6e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 402e903..f8f31e4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class CanFulfillSlotValues(Enum): """ YES = "YES" NO = "NO" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 1cdb338..a5deb0d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class CanUnderstandSlotValues(Enum): YES = "YES" NO = "NO" MAYBE = "MAYBE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-sdk-model/ask_sdk_model/context.py b/ask-sdk-model/ask_sdk_model/context.py index 98b6970..7a6527e 100644 --- a/ask-sdk-model/ask_sdk_model/context.py +++ b/ask-sdk-model/ask_sdk_model/context.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/device.py b/ask-sdk-model/ask_sdk_model/device.py index 671b954..9ea4e6c 100644 --- a/ask-sdk-model/ask_sdk_model/device.py +++ b/ask-sdk-model/ask_sdk_model/device.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0ecdbe2..5b4b7af 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 684f387..1dc7b78 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b718bae..5e2dcd1 100644 --- a/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py +++ b/ask-sdk-model/ask_sdk_model/dialog/delegate_directive.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 780fb69..a71a357 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/dialog_state.py b/ask-sdk-model/ask_sdk_model/dialog_state.py index 81235ce..4e3cceb 100644 --- a/ask-sdk-model/ask_sdk_model/dialog_state.py +++ b/ask-sdk-model/ask_sdk_model/dialog_state.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class DialogState(Enum): STARTED = "STARTED" IN_PROGRESS = "IN_PROGRESS" COMPLETED = "COMPLETED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-sdk-model/ask_sdk_model/directive.py b/ask-sdk-model/ask_sdk_model/directive.py index 84a7ab2..5b55f82 100644 --- a/ask-sdk-model/ask_sdk_model/directive.py +++ b/ask-sdk-model/ask_sdk_model/directive.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bf12d5c..eedc6d6 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/__init__.py @@ -15,10 +15,13 @@ 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 .account_linked_body import AccountLinkedBody from .skill_enabled_request import SkillEnabledRequest 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/events/skillevents/account_linked_body.py b/ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_body.py index 6e099b4..aba0c7a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 50890a4..c5054ee 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4577db9..16e3597 100644 --- a/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/permission.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e385c76..e6cf9a2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8d98985..cbac327 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6ccb93d..23de64a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 new file mode 100644 index 0000000..58e0c41 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_body.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 + from datetime import datetime + from ask_sdk_model.events.skillevents.proactive_subscription_event import ProactiveSubscriptionEvent + + +class ProactiveSubscriptionChangedBody(object): + """ + + :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. + :type subscriptions: (optional) list[ask_sdk_model.events.skillevents.proactive_subscription_event.ProactiveSubscriptionEvent] + + """ + deserialized_types = { + 'subscriptions': 'list[ask_sdk_model.events.skillevents.proactive_subscription_event.ProactiveSubscriptionEvent]' + } + + attribute_map = { + 'subscriptions': 'subscriptions' + } + + def __init__(self, subscriptions=None): + # type: (Optional[List[ProactiveSubscriptionEvent]]) -> 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. + :type subscriptions: (optional) list[ask_sdk_model.events.skillevents.proactive_subscription_event.ProactiveSubscriptionEvent] + """ + self.__discriminator_value = None + + self.subscriptions = subscriptions + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, ProactiveSubscriptionChangedBody): + 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/proactive_subscription_changed_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.py new file mode 100644 index 0000000..0bbe259 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_changed_request.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 + from datetime import datetime + from ask_sdk_model.events.skillevents.proactive_subscription_changed_body import ProactiveSubscriptionChangedBody + + +class ProactiveSubscriptionChangedRequest(Request): + """ + This event indicates a customer subscription to receive events from your skill and contains information for that user. You need this information to know the userId 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. + :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.proactive_subscription_changed_body.ProactiveSubscriptionChangedBody + + """ + deserialized_types = { + 'object_type': 'str', + 'request_id': 'str', + 'timestamp': 'datetime', + 'locale': 'str', + 'body': 'ask_sdk_model.events.skillevents.proactive_subscription_changed_body.ProactiveSubscriptionChangedBody' + } + + attribute_map = { + 'object_type': 'type', + 'request_id': 'requestId', + 'timestamp': 'timestamp', + 'locale': 'locale', + 'body': 'body' + } + + def __init__(self, request_id=None, timestamp=None, locale=None, body=None): + # type: (Optional[str], Optional[datetime], Optional[str], Optional[ProactiveSubscriptionChangedBody]) -> None + """This event indicates a customer subscription to receive events from your skill and contains information for that user. You need this information to know the userId 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. + :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.proactive_subscription_changed_body.ProactiveSubscriptionChangedBody + """ + self.__discriminator_value = "AlexaSkillEvent.ProactiveSubscriptionChanged" + + self.object_type = self.__discriminator_value + super(ProactiveSubscriptionChangedRequest, 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 = {} + + 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, ProactiveSubscriptionChangedRequest): + 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/proactive_subscription_event.py b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py new file mode 100644 index 0000000..f8101de --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/events/skillevents/proactive_subscription_event.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file +# except in compliance with the License. A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for +# 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 + from datetime import datetime + + +class ProactiveSubscriptionEvent(object): + """ + + :param event_name: + :type event_name: (optional) str + + """ + deserialized_types = { + 'event_name': 'str' + } + + attribute_map = { + 'event_name': 'eventName' + } + + def __init__(self, event_name=None): + # type: (Optional[str]) -> None + """ + + :param event_name: + :type event_name: (optional) str + """ + self.__discriminator_value = None + + self.event_name = event_name + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, ProactiveSubscriptionEvent): + 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/skill_disabled_request.py b/ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py index 4a8cda4..bb4d2b2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3fe02a4..687645d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/intent.py b/ask-sdk-model/ask_sdk_model/intent.py index 1147f2e..3da3e69 100644 --- a/ask-sdk-model/ask_sdk_model/intent.py +++ b/ask-sdk-model/ask_sdk_model/intent.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 26585cd..ddc9eb9 100644 --- a/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py +++ b/ask-sdk-model/ask_sdk_model/intent_confirmation_status.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class IntentConfirmationStatus(Enum): NONE = "NONE" DENIED = "DENIED" CONFIRMED = "CONFIRMED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-sdk-model/ask_sdk_model/intent_request.py b/ask-sdk-model/ask_sdk_model/intent_request.py index d3bfff6..2fb7b0e 100644 --- a/ask-sdk-model/ask_sdk_model/intent_request.py +++ b/ask-sdk-model/ask_sdk_model/intent_request.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 fa4e31f..c93a340 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 67a7948..be80079 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -37,6 +37,7 @@ class Align(Enum): first = "first" last = "last" visible = "visible" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 d294414..7f4dcf2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a51e923..cc0d716 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8815c54..b0c8e3b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f88120e..f939d64 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class HighlightMode(Enum): """ block = "block" line = "line" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 d9aa8a4..5db6019 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class Position(Enum): """ absolute = "absolute" relative = "relative" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 279eddb..1a38b0b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 35be1cf..22f38e1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 24b92db..337d26d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 917e57b..413e751 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e89babf..05297e4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 463db92..aa8cfe1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4733c62..98879e0 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d71acf5..e935bda 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a553f8d..750d318 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PaymentAction(Enum): """ Authorize = "Authorize" AuthorizeAndCapture = "AuthorizeAndCapture" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 215b1f0..99fb7ea 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ad7d466..86b9c37 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bb808ed..b2daee8 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 9c70932..56eb792 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1db909a..0f7ea16 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0e88bf9..a6145fe 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 02b1e16..9077d1a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 659181e..7b68892 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 21eab09..289f3e4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 7f81b95..78e8314 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2f1125e..bf90858 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class ReleaseEnvironment(Enum): """ LIVE = "LIVE" SANDBOX = "SANDBOX" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 49d004a..fb9fdef 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -37,6 +37,7 @@ class State(Enum): Open = "Open" Declined = "Declined" Closed = "Closed" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 6704092..ef8171f 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5eb06ce..ddaaae1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bb4799b..14a060d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d81a0d8..c578acf 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e71df82..128ee60 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 eb3d651..1f4da00 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -38,6 +38,7 @@ class BillingAgreementStatus(Enum): DRAFT = "DRAFT" OPEN = "OPEN" SUSPENDED = "SUSPENDED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 cd45536..a31a42d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a553f8d..750d318 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PaymentAction(Enum): """ Authorize = "Authorize" AuthorizeAndCapture = "AuthorizeAndCapture" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 3bef8c1..96b4bb1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6271b63..ab9e7e1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5e25b6b..d0ccd7d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 62ea4ac..9541b46 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class ReleaseEnvironment(Enum): """ LIVE = "LIVE" SANDBOX = "SANDBOX" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 b618630..16c78cd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 eeff79b..3cda847 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b90df0c..fe744f6 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -38,6 +38,7 @@ class State(Enum): Declined = "Declined" Closed = "Closed" Completed = "Completed" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 1d4ac18..8b5d4b1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 303cd84..8618e05 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 454fe56..7a91eb2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 43b3763..09d3c3e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e49de74..551fbf3 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 da2db40..94a71fb 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4420963..2cdbe34 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5055338..4f41443 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6daf5f3..262ef36 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0edbe62..7a809fb 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4875f01..9f8feea 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d765d68..866003e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 97f3fc3..6f83833 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3aad5da..1d83723 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4a394df..44a91fd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class ClearBehavior(Enum): """ CLEAR_ALL = "CLEAR_ALL" CLEAR_ENQUEUED = "CLEAR_ENQUEUED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 dc6a20f..15395c8 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b813ecb..621a48c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bc32ce1..9ab5b2e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 efda5fe..4ea19f1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class ErrorType(Enum): MEDIA_ERROR_INVALID_REQUEST = "MEDIA_ERROR_INVALID_REQUEST" MEDIA_ERROR_SERVICE_UNAVAILABLE = "MEDIA_ERROR_SERVICE_UNAVAILABLE" MEDIA_ERROR_UNKNOWN = "MEDIA_ERROR_UNKNOWN" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 86489a0..b6bc0a7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -34,6 +34,7 @@ class PlayBehavior(Enum): ENQUEUE = "ENQUEUE" REPLACE_ALL = "REPLACE_ALL" REPLACE_ENQUEUED = "REPLACE_ENQUEUED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 3834a88..ae4d32f 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 29b0fcf..ad918b9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2e42e14..25d9293 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1757147..b356e9a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 7ccba2c..d3727cd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 eff9010..74dc4fc 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f8e014b..a408fea 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -37,6 +37,7 @@ class PlayerActivity(Enum): BUFFER_UNDERRUN = "BUFFER_UNDERRUN" IDLE = "IDLE" STOPPED = "STOPPED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 cb6d99b..e41c68c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e30d4d9..7a2be24 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/audioplayer/stream.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 921960a..661a626 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 eee9838..e4473c9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 fec1cd2..6fb83d5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e3a6fee..1c0aba4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 389683e..bdbdb02 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b7e1eaa..e22c03a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 aefcf3a..c2e0bf2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 9580861..82a0213 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2ae6639..c1aa3bf 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b3689fe..9db2eb2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8be6948..8cedefc 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3d4f81c..d2e3214 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6a07ad2..0e98aa9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ae2585b..f4b28b3 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 06b3de6..01ca226 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class BackButtonBehavior(Enum): """ HIDDEN = "HIDDEN" VISIBLE = "VISIBLE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 72ee7a9..bdd98b9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 704760d..f6343e2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 80e2c3d..67d0db5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1922b2c..7216f5c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e3badaa..5659aab 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5745aad..37fc91d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 34d71e9..94abfc6 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2383f03..ae30535 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 fd9cb03..1cba6ad 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/hint.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 886fd30..98e720a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c80b7d5..524b6a1 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/image.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/image.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 91339b0..50285ac 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1c62998..af22e07 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class ImageSize(Enum): MEDIUM = "MEDIUM" LARGE = "LARGE" X_LARGE = "X_LARGE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 0e558b1..70bb776 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d388fc5..4b1e640 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 aaca8ea..eb2d246 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1ecea2a..bab176c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ab75759..ebf2aed 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 15d8b3b..15862a2 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 47763af..c51d106 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6e4eb57..733840a 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/display/template.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/display/template.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 201f12d..4a206b6 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 cc587fa..7eaedb1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4eac940..b92b3fd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6214810..97f8671 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b76af63..2e4b7cd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6e85917..fb07bb7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f546461..8f8ebd9 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/access.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class Access(Enum): ENABLED = "ENABLED" DISABLED = "DISABLED" UNKNOWN = "UNKNOWN" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 b2f4e27..3010158 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/altitude.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8a94ccd..c323404 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/coordinate.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d8eff4e..8895b8b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bd27262..dbdf4e0 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4b601db..87d1922 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/heading.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d1841e4..e0db7c7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b41b58b..c3d4aec 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/speed.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 06369b9..8565ab4 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/geolocation/status.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class Status(Enum): """ RUNNING = "RUNNING" STOPPED = "STOPPED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 546599c..f92869e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 cc0a63b..00fe188 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2ac62ff..91c3c61 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -38,6 +38,7 @@ class PurchaseResult(Enum): NOT_ENTITLED = "NOT_ENTITLED" ERROR = "ERROR" ALREADY_PURCHASED = "ALREADY_PURCHASED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 0c2ca28..5945f6b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0964861..86ea8c4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f42d22e..f3c27ef 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 7517164..3678c3c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d46f4cb..a797a13 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/system/error.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/system/error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 243c0db..c9281e1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 45ff7e6..b56d193 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -34,6 +34,7 @@ class ErrorType(Enum): INVALID_RESPONSE = "INVALID_RESPONSE" DEVICE_COMMUNICATION_ERROR = "DEVICE_COMMUNICATION_ERROR" INTERNAL_SERVICE_ERROR = "INTERNAL_SERVICE_ERROR" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 b2f004c..ea941a4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 994ea5d..e7ba809 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 571b331..baad836 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4edb57b..c69727f 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/videoapp/metadata.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f8dbfe0..927dc25 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4003a99..0a44bdb 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c49aa22..116cecc 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/experience.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 20c1872..49f4f2e 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/keyboard.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -34,6 +34,7 @@ class Keyboard(Enum): Allowed enum values: [DIRECTION] """ DIRECTION = "DIRECTION" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 2f673b1..94debaf 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/shape.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class Shape(Enum): """ RECTANGLE = "RECTANGLE" ROUND = "ROUND" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 e35afd0..adf4e77 100644 --- a/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py +++ b/ask-sdk-model/ask_sdk_model/interfaces/viewport/touch.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -34,6 +34,7 @@ class Touch(Enum): Allowed enum values: [SINGLE] """ SINGLE = "SINGLE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 7e3ad85..848a107 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/launch_request.py b/ask-sdk-model/ask_sdk_model/launch_request.py index ccf3dec..2797092 100644 --- a/ask-sdk-model/ask_sdk_model/launch_request.py +++ b/ask-sdk-model/ask_sdk_model/launch_request.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/permission_status.py b/ask-sdk-model/ask_sdk_model/permission_status.py index 4fc234b..19c9584 100644 --- a/ask-sdk-model/ask_sdk_model/permission_status.py +++ b/ask-sdk-model/ask_sdk_model/permission_status.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PermissionStatus(Enum): """ GRANTED = "GRANTED" DENIED = "DENIED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-sdk-model/ask_sdk_model/permissions.py b/ask-sdk-model/ask_sdk_model/permissions.py index c54eeb0..59c0db3 100644 --- a/ask-sdk-model/ask_sdk_model/permissions.py +++ b/ask-sdk-model/ask_sdk_model/permissions.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/request.py b/ask-sdk-model/ask_sdk_model/request.py index f925ad9..e6cb5ab 100644 --- a/ask-sdk-model/ask_sdk_model/request.py +++ b/ask-sdk-model/ask_sdk_model/request.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -51,6 +51,8 @@ class Request(object): | | AlexaHouseholdListEvent.ListUpdated: :py:class:`ask_sdk_model.services.list_management.list_updated_event_request.ListUpdatedEventRequest`, | + | AlexaSkillEvent.ProactiveSubscriptionChanged: :py:class:`ask_sdk_model.events.skillevents.proactive_subscription_changed_request.ProactiveSubscriptionChangedRequest`, + | | Alexa.Presentation.APL.UserEvent: :py:class:`ask_sdk_model.interfaces.alexa.presentation.apl.user_event.UserEvent`, | | AlexaSkillEvent.SkillDisabled: :py:class:`ask_sdk_model.events.skillevents.skill_disabled_request.SkillDisabledRequest`, @@ -136,6 +138,7 @@ class Request(object): 'AudioPlayer.PlaybackFinished': 'ask_sdk_model.interfaces.audioplayer.playback_finished_request.PlaybackFinishedRequest', 'AlexaSkillEvent.SkillEnabled': 'ask_sdk_model.events.skillevents.skill_enabled_request.SkillEnabledRequest', 'AlexaHouseholdListEvent.ListUpdated': 'ask_sdk_model.services.list_management.list_updated_event_request.ListUpdatedEventRequest', + 'AlexaSkillEvent.ProactiveSubscriptionChanged': 'ask_sdk_model.events.skillevents.proactive_subscription_changed_request.ProactiveSubscriptionChangedRequest', 'Alexa.Presentation.APL.UserEvent': 'ask_sdk_model.interfaces.alexa.presentation.apl.user_event.UserEvent', 'AlexaSkillEvent.SkillDisabled': 'ask_sdk_model.events.skillevents.skill_disabled_request.SkillDisabledRequest', 'Display.ElementSelected': 'ask_sdk_model.interfaces.display.element_selected_request.ElementSelectedRequest', diff --git a/ask-sdk-model/ask_sdk_model/request_envelope.py b/ask-sdk-model/ask_sdk_model/request_envelope.py index 969939f..3fe7926 100644 --- a/ask-sdk-model/ask_sdk_model/request_envelope.py +++ b/ask-sdk-model/ask_sdk_model/request_envelope.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/response.py b/ask-sdk-model/ask_sdk_model/response.py index 9bb71ba..304f8b4 100644 --- a/ask-sdk-model/ask_sdk_model/response.py +++ b/ask-sdk-model/ask_sdk_model/response.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/response_envelope.py b/ask-sdk-model/ask_sdk_model/response_envelope.py index ce6f85a..dc08f51 100644 --- a/ask-sdk-model/ask_sdk_model/response_envelope.py +++ b/ask-sdk-model/ask_sdk_model/response_envelope.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/scope.py b/ask-sdk-model/ask_sdk_model/scope.py index 1e5f1fa..8bf5984 100644 --- a/ask-sdk-model/ask_sdk_model/scope.py +++ b/ask-sdk-model/ask_sdk_model/scope.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/services/__init__.py b/ask-sdk-model/ask_sdk_model/services/__init__.py index fdf1bf5..d85dca9 100644 --- a/ask-sdk-model/ask_sdk_model/services/__init__.py +++ b/ask-sdk-model/ask_sdk_model/services/__init__.py @@ -24,3 +24,4 @@ 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/authentication_configuration.py b/ask-sdk-model/ask_sdk_model/services/authentication_configuration.py new file mode 100644 index 0000000..5698751 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/authentication_configuration.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. +# + + +class AuthenticationConfiguration(object): + """Represents a class that provides authentication configuration. + + :param client_id: Client ID required for authentication. + :type client_id: str + :param client_secret: Client Secret required for authentication. + :type client_secret: str + """ + + def __init__(self, client_id=None, client_secret=None): + # type: (str, str) -> None + """Represents a class that provides authentication configuration. + + :param client_id: Client ID required for authentication. + :type client_id: str + :param client_secret: Client Secret required for authentication. + :type client_secret: str + """ + self.client_id = client_id + self.client_secret = client_secret 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 3c77164..4cafafa 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e940b7b..2503a94 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -38,7 +38,6 @@ class DeviceAddressServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -66,7 +65,9 @@ def get_country_and_postal_code(self, device_id, **kwargs): raise ValueError( "Missing the required parameter `device_id` when calling `" + operation_name + "`") - resource_path = '/v1/devices/{deviceId}/settings/address/countryAndPostalCode'.replace('{format}', 'json') + resource_path = '/v1/devices/{deviceId}/settings/address/countryAndPostalCode' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'device_id' in params: path_params['deviceId'] = params['device_id'] @@ -120,7 +121,9 @@ def get_full_address(self, device_id, **kwargs): raise ValueError( "Missing the required parameter `device_id` when calling `" + operation_name + "`") - resource_path = '/v1/devices/{deviceId}/settings/address'.replace('{format}', 'json') + resource_path = '/v1/devices/{deviceId}/settings/address' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'device_id' in params: path_params['deviceId'] = params['device_id'] 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 93b7133..23f2661 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 054c8b8..f8d64cf 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b697534..7adc288 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/directive.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/directive.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3171668..2615d61 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -37,7 +37,6 @@ class DirectiveServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -65,7 +64,9 @@ def enqueue(self, send_directive_request, **kwargs): raise ValueError( "Missing the required parameter `send_directive_request` when calling `" + operation_name + "`") - resource_path = '/v1/directives'.replace('{format}', 'json') + resource_path = '/v1/directives' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] 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 187bd20..678c79c 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/error.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d342468..1ea6d02 100644 --- a/ask-sdk-model/ask_sdk_model/services/directive/header.py +++ b/ask-sdk-model/ask_sdk_model/services/directive/header.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 69415fa..11c68d3 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 14b4826..425b0fa 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a2cc6f0..9e7d9ae 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 31a7e45..81a3bef 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c979ac6..fe6574b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d8fdfcb..ce3070b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class TriggerEventType(Enum): buttonDown = "buttonDown" buttonUp = "buttonUp" none = "none" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 cc53d9a..a88c59f 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 a5bf297..6ea826e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6e5c50b..f8629e6 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class EventReportingType(Enum): """ history = "history" matches = "matches" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 7857534..b71cccd 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3e64801..a3cc495 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class InputEventActionType(Enum): """ down = "down" up = "up" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 48ff800..ea02f29 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 97882ed..a18464e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e36555e..cbc49a1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e97a46a..f044601 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class PatternRecognizerAnchorType(Enum): start = "start" end = "end" anywhere = "anywhere" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 bfc746a..70a2df0 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 45f53a2..12ff69c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0e0cb21..9499e19 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f1a7b2c..b5fbfe5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 100a60d..3a1cd80 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c346ae8..e4e33d4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ce8b051..59f114a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6c8bb0d..cdcc285 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d5e1034..e1ed231 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 84125f3..356d35a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3cee3ab..ff5d20c 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 b108013..b9a18ea 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c56ad43..9a6fbbf 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4949e06..6036ff7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1ff0cb7..34233d0 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 6105e30..ec00fce 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class ListItemState(Enum): """ active = "active" completed = "completed" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 f6f9b1a..5036297 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0683d54..b0f8e80 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0ef9c76..e612c4d 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e46786d..606cd28 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -45,7 +45,6 @@ class ListManagementServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -67,7 +66,9 @@ def get_lists_metadata(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/householdlists/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -116,7 +117,9 @@ def delete_list(self, list_id, **kwargs): raise ValueError( "Missing the required parameter `list_id` when calling `" + operation_name + "`") - resource_path = '/v2/householdlists/{listId}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -175,7 +178,9 @@ 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}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -236,7 +241,9 @@ 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}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -303,7 +310,9 @@ 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}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/items/{itemId}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -367,7 +376,9 @@ 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/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/items/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -429,7 +440,9 @@ 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}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -492,7 +505,9 @@ 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}/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/{listId}/{status}/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'list_id' in params: path_params['listId'] = params['list_id'] @@ -548,7 +563,9 @@ 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/'.replace('{format}', 'json') + resource_path = '/v2/householdlists/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] 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 3fc0122..d612254 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class ListState(Enum): """ active = "active" archived = "archived" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 daab608..ce2aa96 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c79b1c6..cd13eea 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 e6b37d6..ea50480 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 25c6afa..67d1979 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py b/ask-sdk-model/ask_sdk_model/services/lwa/__init__.py new file mode 100644 index 0000000..eda0327 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/__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 .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 diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/access_token.py b/ask-sdk-model/ask_sdk_model/services/lwa/access_token.py new file mode 100644 index 0000000..0693719 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/access_token.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights +# Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +# OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the +# License. +# +import typing + +if typing.TYPE_CHECKING: + from datetime import datetime + try: + long + except NameError: + long = int + + +class AccessToken(object): + """Represents the access token provided by LWA (Login With Amazon). + + This is a wrapper class over + :py:class:`ask_sdk_model.services.lwa.access_token_response.AccessTokenResponse` + that retrieves and stores the access token, the expiry time from + LWA response. + + :param token: access token from LWA + :type token: str + :param expiry: exact timestamp in UTC datetime, which is the expiry + time for this access token. This is set as the combined datetime of + current system time when the LWA response is received and the + expiry time in seconds, provided in the LWA response. + :type expiry: datetime + """ + + def __init__(self, token=None, expiry=None): + # type: (str, datetime) -> None + """Represents the access token provided by LWA (Login With Amazon). + + :param token: access token from LWA + :type token: str + :param expiry: exact timestamp in UTC datetime, which is the expiry + time for this access token. This is set as the combined datetime of + current system time when the LWA response is received and the + expiry time in seconds, provided in the LWA response. + :type expiry: datetime + """ + self.token = token + self.expiry = expiry diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/access_token_request.py b/ask-sdk-model/ask_sdk_model/services/lwa/access_token_request.py new file mode 100644 index 0000000..44ca1f2 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/access_token_request.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 six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, Optional + + +class AccessTokenRequest(object): + """Request for retrieving an access token from LWA. + + :param client_id: The ClientId value from developer console + :type client_id: str + :param client_secret: The ClientSecret value from developer console + :type client_secret: str + :param scope: The required scope for which the access token is + requested for + :type scope: str + """ + deserialized_types = { + 'client_id': 'str', + 'client_secret': 'str', + 'scope': 'str' + } + + attribute_map = { + 'client_id': 'client_id', + 'client_secret': 'client_secret', + 'scope': 'scope' + } + + def __init__(self, client_id=None, client_secret=None, scope=None): + # type: (Optional[str], Optional[str], Optional[str]) -> None + """Request for retrieving an access token from LWA. + + :param client_id: The ClientId value from developer console + :type client_id: str + :param client_secret: The ClientSecret value from developer console + :type client_secret: str + :param scope: The required scope for which the access token is + requested for + :type scope: str + """ + self.__discriminator_value = None + + self.client_id = client_id + self.client_secret = client_secret + self.scope = scope + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, AccessTokenRequest): + 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/lwa/access_token_response.py b/ask-sdk-model/ask_sdk_model/services/lwa/access_token_response.py new file mode 100644 index 0000000..d5b4852 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/access_token_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 six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, Optional + + +class AccessTokenResponse(object): + """LWA response for retrieving an access token. + + :param access_token: The access token from LWA + :type access_token: str + :param expires_in: The duration in seconds of the access token + lifetime + :type expires_in: long + :param scope: The scope specified in the access token request + :type scope: str + :param token_type: The type of token issued + :type token_type: str + """ + deserialized_types = { + 'access_token': 'str', + 'expires_in': 'long', + 'scope': 'str', + 'token_type': 'str' + } + + attribute_map = { + 'access_token': 'access_token', + 'expires_in': 'expires_in', + 'scope': 'scope', + 'token_type': 'token_type' + } + + def __init__( + self, access_token=None, expires_in=None, + scope=None, token_type=None): + # type: (Optional[str], Optional[str], Optional[str], Optional[str]) -> None + """LWA response for retrieving an access token. + + :param access_token: The access token from LWA + :type access_token: str + :param expires_in: The duration in seconds of the access token + lifetime + :type expires_in: long + :param scope: The scope specified in the access token request + :type scope: str + :param token_type: The type of token issued + :type token_type: str + """ + self.__discriminator_value = None + + self.access_token = access_token + self.expires_in = expires_in + self.scope = scope + self.token_type = token_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, AccessTokenResponse): + 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/lwa/error.py b/ask-sdk-model/ask_sdk_model/services/lwa/error.py new file mode 100644 index 0000000..38e8f5d --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/error.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights +# Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +# OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the +# License. +# +import pprint +import six +import typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict, Optional + + +class Error(object): + """Error from LWA Client request. + + :param error_description: Description of the error + :type error_description: (optional) str + :param error_type: Type of error + :type error_type: (optional) str + """ + deserialized_types = { + 'error_description': 'str', + 'error_type': 'str' + } + + attribute_map = { + 'error_description': 'error_description', + 'error_type': 'error' + } + + def __init__(self, error_description=None, error_type=None): + # type: (Optional[str], Optional[str]) -> None + """ + :param error_description: Description of the error + :type error_description: (optional) str + :param error_type: Type of error + :type error_type: (optional) str + """ + self.__discriminator_value = None + + self.error_description = error_description + self.error_type = error_type + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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 \ No newline at end of file diff --git a/ask-sdk-model/ask_sdk_model/services/lwa/lwa_client.py b/ask-sdk-model/ask_sdk_model/services/lwa/lwa_client.py new file mode 100644 index 0000000..0b9e4f5 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/lwa/lwa_client.py @@ -0,0 +1,190 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights +# Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"). +# You may not use this file except in compliance with the License. +# A copy of the License is located at +# +# http://aws.amazon.com/apache2.0/ +# +# or in the "license" file accompanying this file. This file is +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +# OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the +# License. +# +import typing +import six + +from dateutil import tz +from datetime import datetime, timedelta +from ..base_service_client import BaseServiceClient +from ..service_client_response import ServiceClientResponse +from .access_token_request import AccessTokenRequest +from .access_token import AccessToken + +if typing.TYPE_CHECKING: + from .access_token_response import AccessTokenResponse + from ..api_configuration import ApiConfiguration + from ..authentication_configuration import AuthenticationConfiguration + + +class LwaClient(BaseServiceClient): + """Client to call Login with Amazon (LWA) to retrieve access tokens. + + :param api_configuration: ApiConfiguration instance with valid + Serializer and ApiClient. The authorization value and api endpoint + is not used by the LWA Client. + :type api_configuration: + ask_sdk_model.services.api_configuration.ApiConfiguration + :param authentication_configuration: AuthenticationConfiguration + instance with valid client id and client secret, for making LWA + calls. + :type authentication_configuration: + ask_sdk_model.services.authentication_configuration.AuthenticationConfiguration + :raises: :py:class:`ValueError` if authentication configuration is not + provided. + """ + EXPIRY_OFFSET_IN_MILLIS = 60000 + + def __init__(self, api_configuration, authentication_configuration): + # type: (ApiConfiguration, AuthenticationConfiguration) -> None + """Client to call Login with Amazon (LWA) to retrieve access tokens. + + :param api_configuration: ApiConfiguration instance with valid + Serializer and ApiClient. The authorization value and api endpoint + is not used by the LWA Client. + :type api_configuration: + ask_sdk_model.services.api_configuration.ApiConfiguration + :param authentication_configuration: AuthenticationConfiguration + instance with valid client id and client secret, for making LWA + calls. + :type authentication_configuration: + ask_sdk_model.services.authentication_configuration.AuthenticationConfiguration + :raises: :py:class:`ValueError` if authentication configuration is not + provided. + """ + super(LwaClient, self).__init__(api_configuration=api_configuration) + + if authentication_configuration is None: + raise ValueError("authentication_configuration must be provided") + self._authentication_configuration = authentication_configuration + self._scoped_token_cache = dict() + + def get_access_token_for_scope(self, scope): + # type: (str) -> str + """Retrieve access token for given scope. + + Return the scoped access token from the ``scoped_token_cache`` + if the token is unexpired. If it is expired or is not present, + then retrieve a new access token for the given scope, using the + client id and client secret in the input + :py:class:`ask_sdk_model.services.authentication_configuration.AuthenticationConfiguration` + instance. + + :param scope: Target scope for the access token + :type scope: str + :return: Retrieved access token for the given scope and + configured client id, client secret + :rtype: str + :raises: :py:class:`ValueError` is no scope is passed. + """ + if scope is None: + raise ValueError("scope must be provided") + + access_token = self._scoped_token_cache.get(scope, None) + local_now = datetime.now(tz.tzutc()) + + if (access_token is not None and + access_token.expiry > + local_now + timedelta( + milliseconds=self.EXPIRY_OFFSET_IN_MILLIS)): + return access_token.token + + access_token_request = AccessTokenRequest( + client_id=self._authentication_configuration.client_id, + client_secret=self._authentication_configuration.client_secret, + scope=scope) + + lwa_response = self._generate_access_token( + access_token_request=access_token_request) + + access_token = AccessToken( + token=lwa_response.access_token, + expiry=local_now + timedelta(seconds=lwa_response.expires_in) + ) + + self._scoped_token_cache[scope] = access_token + return access_token.token + + def _generate_access_token(self, access_token_request, **kwargs): + # type: (AccessTokenRequest) -> AccessTokenResponse + """Generate access token by calling the LWA API. + + :param access_token_request: The access token request with client + information that is used during the API call. + :type access_token_request: + ask_sdk_model.services.lwa.access_token_request.AccessTokenRequest + :return: The access token response from the LWA call. + :rtype: + ask_sdk_model.services.lwa.access_token_response.AccessTokenResponse + """ + operation_name = "get_access_token" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + + endpoint = "https://api.amazon.com" + resource_path = '/auth/O2/token'.replace('{format}', 'json') + path_params = {} + query_params = [] + header_params = [ + ('Content-type', 'application/x-www-form-urlencoded')] + + grant_type_param = "grant_type={}".format("client_credentials") + client_id_param = "client_id={}".format(access_token_request.client_id) + client_secret_param = "client_secret={}".format( + access_token_request.client_secret) + scope_param = "scope={}".format(access_token_request.scope) + body_params = "&".join( + [grant_type_param, client_id_param, client_secret_param, + scope_param]) + + error_definitions = [] + error_definitions.append(ServiceClientResponse( + response_type=( + "ask_sdk_model.services.lwa.access_token_response." + "AccessTokenResponse"), + status_code=200, message="Success")) + error_definitions.append(ServiceClientResponse( + response_type="ask_sdk_model.services.lwa.error.Error", + status_code=400, + message="Bad Request")) + error_definitions.append(ServiceClientResponse( + response_type="ask_sdk_model.services.lwa.error.Error", + status_code=401, + message="Authentication failed")) + error_definitions.append(ServiceClientResponse( + response_type="ask_sdk_model.services.lwa.error.Error", + status_code=500, + message="Internal Server Error")) + error_definitions.append(ServiceClientResponse( + response_type="ask_sdk_model.services.lwa.error.Error", + status_code=503, + message="Service Unavailable")) + + return self.invoke( + method="POST", + endpoint=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.lwa.access_token_response." + "AccessTokenResponse")) 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 16242e6..d398d25 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class EntitledState(Enum): """ ENTITLED = "ENTITLED" NOT_ENTITLED = "NOT_ENTITLED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 c88b7f5..6d9d8a9 100644 --- a/ask-sdk-model/ask_sdk_model/services/monetization/error.py +++ b/ask-sdk-model/ask_sdk_model/services/monetization/error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 c28499f..ab61850 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0c8a03c..dc37280 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8aa4bea..b5bd525 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -38,7 +38,6 @@ class MonetizationServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -76,7 +75,9 @@ def get_in_skill_products(self, accept_language, **kwargs): raise ValueError( "Missing the required parameter `accept_language` when calling `" + operation_name + "`") - resource_path = '/v1/users/~current/skills/~current/inSkillProducts'.replace('{format}', 'json') + resource_path = '/v1/users/~current/skills/~current/inSkillProducts' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -144,7 +145,9 @@ def get_in_skill_product(self, accept_language, product_id, **kwargs): raise ValueError( "Missing the required parameter `product_id` when calling `" + operation_name + "`") - resource_path = '/v1/users/~current/skills/~current/inSkillProducts/{productId}'.replace('{format}', 'json') + resource_path = '/v1/users/~current/skills/~current/inSkillProducts/{productId}' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'product_id' in params: path_params['productId'] = params['product_id'] 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 493d1d1..8b6fca3 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class ProductType(Enum): SUBSCRIPTION = "SUBSCRIPTION" ENTITLEMENT = "ENTITLEMENT" CONSUMABLE = "CONSUMABLE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 c97f29e..ff58e5e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PurchasableState(Enum): """ PURCHASABLE = "PURCHASABLE" NOT_PURCHASABLE = "NOT_PURCHASABLE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 04d0ae8..1a612ae 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PurchaseMode(Enum): """ TEST = "TEST" LIVE = "LIVE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 new file mode 100644 index 0000000..b968548 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/__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 .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 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 new file mode 100644 index 0000000..8058f3b --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/create_proactive_event_request.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 + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional + 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 + + +class CreateProactiveEventRequest(object): + """ + + :param timestamp: The date and time of the event associated with this request, in ISO 8601 format. + :type timestamp: (optional) datetime + :param reference_id: Client-supplied ID for correlating the event with external entities. The allowed characters for the referenceId field are alphanumeric and ~, and the length of the referenceId field must be 1-100 characters. + :type reference_id: (optional) str + :param expiry_time: The date and time, in ISO 8601 format, when the service will automatically delete the notification if it is still in the pending state. + :type expiry_time: (optional) datetime + :param event: + :type event: (optional) ask_sdk_model.services.proactive_events.event.Event + :param localized_attributes: A list of items, each of which contains the set of event attributes that requires localization support. + :type localized_attributes: (optional) list[object] + :param relevant_audience: + :type relevant_audience: (optional) ask_sdk_model.services.proactive_events.relevant_audience.RelevantAudience + + """ + deserialized_types = { + 'timestamp': 'datetime', + 'reference_id': 'str', + 'expiry_time': 'datetime', + 'event': 'ask_sdk_model.services.proactive_events.event.Event', + 'localized_attributes': 'list[object]', + 'relevant_audience': 'ask_sdk_model.services.proactive_events.relevant_audience.RelevantAudience' + } + + attribute_map = { + 'timestamp': 'timestamp', + 'reference_id': 'referenceId', + 'expiry_time': 'expiryTime', + 'event': 'event', + 'localized_attributes': 'localizedAttributes', + 'relevant_audience': 'relevantAudience' + } + + 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 + """ + + :param timestamp: The date and time of the event associated with this request, in ISO 8601 format. + :type timestamp: (optional) datetime + :param reference_id: Client-supplied ID for correlating the event with external entities. The allowed characters for the referenceId field are alphanumeric and ~, and the length of the referenceId field must be 1-100 characters. + :type reference_id: (optional) str + :param expiry_time: The date and time, in ISO 8601 format, when the service will automatically delete the notification if it is still in the pending state. + :type expiry_time: (optional) datetime + :param event: + :type event: (optional) ask_sdk_model.services.proactive_events.event.Event + :param localized_attributes: A list of items, each of which contains the set of event attributes that requires localization support. + :type localized_attributes: (optional) list[object] + :param relevant_audience: + :type relevant_audience: (optional) ask_sdk_model.services.proactive_events.relevant_audience.RelevantAudience + """ + self.__discriminator_value = None + + self.timestamp = timestamp + self.reference_id = reference_id + self.expiry_time = expiry_time + self.event = event + self.localized_attributes = localized_attributes + self.relevant_audience = relevant_audience + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, CreateProactiveEventRequest): + 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/proactive_events/error.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/error.py new file mode 100644 index 0000000..5aebe0a --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/error.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 + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Optional + from datetime import datetime + + +class Error(object): + """ + + :param code: + :type code: (optional) int + :param message: + :type message: (optional) str + + """ + deserialized_types = { + 'code': 'int', + 'message': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message' + } + + def __init__(self, code=None, message=None): + # type: (Optional[int], Optional[str]) -> None + """ + + :param code: + :type code: (optional) int + :param message: + :type message: (optional) str + """ + self.__discriminator_value = None + + self.code = code + self.message = message + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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/services/proactive_events/event.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/event.py new file mode 100644 index 0000000..dc66ae0 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/event.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 + from datetime import datetime + + +class Event(object): + """ + The event data to be sent to customers, conforming to the schema associated with this event. + + + :param name: + :type name: (optional) str + :param payload: + :type payload: (optional) object + + """ + deserialized_types = { + 'name': 'str', + 'payload': 'object' + } + + attribute_map = { + 'name': 'name', + 'payload': 'payload' + } + + def __init__(self, name=None, payload=None): + # type: (Optional[str], Optional[object]) -> None + """The event data to be sent to customers, conforming to the schema associated with this event. + + :param name: + :type name: (optional) str + :param payload: + :type payload: (optional) object + """ + self.__discriminator_value = None + + self.name = name + self.payload = payload + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, Event): + 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/proactive_events/proactive_events_service_client.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.py new file mode 100644 index 0000000..a54ff7d --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/proactive_events_service_client.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 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.authentication_configuration import AuthenticationConfiguration +from ask_sdk_model.services.lwa.lwa_client import LwaClient +from ask_sdk_model.services.proactive_events.skill_stage import SkillStage + + +if typing.TYPE_CHECKING: + from typing import Dict, List, Union + 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 + + +class ProactiveEventsServiceClient(BaseServiceClient): + """ServiceClient for calling the ProactiveEventsService APIs. + + :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` + :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration + """ + def __init__(self, api_configuration, authentication_configuration): + # type: (ApiConfiguration, AuthenticationConfiguration) -> 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 + """ + super(ProactiveEventsServiceClient, self).__init__(api_configuration) + self._lwa_service_client = LwaClient( + api_configuration=api_configuration, + authentication_configuration=authentication_configuration) + + def create_proactive_event(self, create_proactive_event_request, stage, **kwargs): + # type: (CreateProactiveEventRequest, SkillStage) -> Union[Error] + """ + Create a new proactive event in live stage. + + :param create_proactive_event_request: (required) Request to create a new proactive event. + :type create_proactive_event_request: ask_sdk_model.services.proactive_events.create_proactive_event_request.CreateProactiveEventRequest + :rtype: None + """ + operation_name = "create_proactive_event" + params = locals() + for key, val in six.iteritems(params['kwargs']): + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_proactive_event_request' is set + if ('create_proactive_event_request' not in params) or (params['create_proactive_event_request'] is None): + raise ValueError( + "Missing the required parameter `create_proactive_event_request` when calling `" + operation_name + "`") + + resource_path = '/v1/proactiveEvents' + if stage == SkillStage.DEVELOPMENT: + resource_path += "/stages/development" + resource_path = resource_path.replace('{format}', 'json') + + path_params = {} + + query_params = [] + + header_params = [] + + body_params = None + if 'create_proactive_event_request' in params: + body_params = params['create_proactive_event_request'] + header_params.append(('Content-type', 'application/json')) + + # Authentication setting + access_token = self._lwa_service_client.get_access_token_for_scope( + "alexa::proactive_events") + authorization_value = "Bearer " + access_token + header_params.append(('Authorization', authorization_value)) + + error_definitions = [] + error_definitions.append(ServiceClientResponse(response_type=None, status_code=202, message="Request accepted")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=400, message="A required parameter is not present or is incorrectly formatted, or the requested creation of a resource has already been completed by a previous request. ")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=403, message="The authentication token is invalid or doesn't have authentication to access the resource")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=409, message="A skill attempts to create duplicate events using the same referenceId for the same customer.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=429, message="The client has made more calls than the allowed limit.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=500, message="The ProactiveEvents service encounters an internal error for a valid request.")) + error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.proactive_events.error.Error", status_code=0, message="Unexpected error")) + + 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) 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 new file mode 100644 index 0000000..12f2d37 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience.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 + from datetime import datetime + from ask_sdk_model.services.proactive_events.relevant_audience_type import RelevantAudienceType + + +class RelevantAudience(object): + """ + The audience for this event. + + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.proactive_events.relevant_audience_type.RelevantAudienceType + :param payload: If relevantAudience.type is set to Multicast, then the payload object is empty. Otherwise, the userId value for which the event is targeted is required. + :type payload: (optional) object + + """ + deserialized_types = { + 'object_type': 'ask_sdk_model.services.proactive_events.relevant_audience_type.RelevantAudienceType', + 'payload': 'object' + } + + attribute_map = { + 'object_type': 'type', + 'payload': 'payload' + } + + def __init__(self, object_type=None, payload=None): + # type: (Optional[RelevantAudienceType], Optional[object]) -> None + """The audience for this event. + + :param object_type: + :type object_type: (optional) ask_sdk_model.services.proactive_events.relevant_audience_type.RelevantAudienceType + :param payload: If relevantAudience.type is set to Multicast, then the payload object is empty. Otherwise, the userId value for which the event is targeted is required. + :type payload: (optional) object + """ + self.__discriminator_value = None + + self.object_type = object_type + self.payload = payload + + def to_dict(self): + # type: () -> Dict[str, object] + """Returns the model properties as a dict""" + result = {} + + 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, RelevantAudience): + 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/proactive_events/relevant_audience_type.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_type.py new file mode 100644 index 0000000..4a31e30 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/relevant_audience_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 + from datetime import datetime + + +class RelevantAudienceType(Enum): + """ + The audience for this event. Use Multicast to target information to all customers subscribed to that event, or use Unicast to target information containing the actual userId for individual events. + + + + Allowed enum values: [Unicast, Multicast] + """ + Unicast = "Unicast" + Multicast = "Multicast" + + 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, RelevantAudienceType): + 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/proactive_events/skill_stage.py b/ask-sdk-model/ask_sdk_model/services/proactive_events/skill_stage.py new file mode 100644 index 0000000..d48d2c4 --- /dev/null +++ b/ask-sdk-model/ask_sdk_model/services/proactive_events/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 typing +from enum import Enum + + +if typing.TYPE_CHECKING: + from typing import Dict + + +class SkillStage(Enum): + """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. + + Allowed enum values: [DEVELOPMENT, LIVE] + """ + DEVELOPMENT = "DEVELOPMENT" + LIVE = "LIVE" + + 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, SkillStage): + 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/reminder_management/alert_info.py b/ask-sdk-model/ask_sdk_model/services/reminder_management/alert_info.py index ec9a911..1bc6ece 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 270b94f..0ed1def 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5265a82..dcae98e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 034b381..d4e85e5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5c239a8..0966624 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 03eff8a..8bf23f5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2dab3a4..3862d05 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5c7a47a..b338e59 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class PushNotificationStatus(Enum): """ ENABLED = "ENABLED" DISABLED = "DISABLED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 9eba74d..90d23c1 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1376c19..0ef4944 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -40,6 +40,7 @@ class RecurrenceDay(Enum): TH = "TH" FR = "FR" SA = "SA" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 45ce014..dff0dbb 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class RecurrenceFreq(Enum): """ WEEKLY = "WEEKLY" DAILY = "DAILY" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 eecc1fb..867f7b0 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ff52b4a..5eb44d4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 70abf66..63d9438 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 4fcdf8a..199ed22 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 387a2b8..394ebf7 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -40,7 +40,6 @@ class ReminderManagementServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -68,7 +67,9 @@ def delete_reminder(self, alert_token, **kwargs): raise ValueError( "Missing the required parameter `alert_token` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/reminders/{alertToken}'.replace('{format}', 'json') + resource_path = '/v1/alerts/reminders/{alertToken}' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'alert_token' in params: path_params['alertToken'] = params['alert_token'] @@ -120,7 +121,9 @@ def get_reminder(self, alert_token, **kwargs): raise ValueError( "Missing the required parameter `alert_token` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/reminders/{alertToken}'.replace('{format}', 'json') + resource_path = '/v1/alerts/reminders/{alertToken}' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'alert_token' in params: path_params['alertToken'] = params['alert_token'] @@ -178,7 +181,9 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): raise ValueError( "Missing the required parameter `reminder_request` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/reminders/{alertToken}'.replace('{format}', 'json') + resource_path = '/v1/alerts/reminders/{alertToken}' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'alert_token' in params: path_params['alertToken'] = params['alert_token'] @@ -215,50 +220,6 @@ def update_reminder(self, alert_token, reminder_request, **kwargs): response_definitions=error_definitions, response_type="ask_sdk_model.services.reminder_management.reminder_response.ReminderResponse") - def delete_reminders(self, **kwargs): - # type: () -> Union[Error] - """ - This API is invoked by the skill to delete all reminders created by the caller. - - :rtype: None - """ - operation_name = "delete_reminders" - params = locals() - for key, val in six.iteritems(params['kwargs']): - params[key] = val - del params['kwargs'] - - resource_path = '/v1/alerts/reminders/'.replace('{format}', 'json') - path_params = {} - - query_params = [] - - header_params = [] - - body_params = None - header_params.append(('Content-type', 'application/json')) - - # Authentication setting - authorization_value = "Bearer " + self._authorization_value - header_params.append(("Authorization", authorization_value)) - - error_definitions = [] - error_definitions.append(ServiceClientResponse(response_type=None, status_code=200, message="Success")) - error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.reminder_management.error.Error", status_code=401, message="UserAuthenticationException. Request is not authorized/authenticated e.g. If customer does not have permission to create a reminder.")) - error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.reminder_management.error.Error", status_code=429, message="RateExceededException e.g. When the skill is throttled for exceeding the max rate")) - error_definitions.append(ServiceClientResponse(response_type="ask_sdk_model.services.reminder_management.error.Error", status_code=500, message="Internal Server Error")) - - 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) - def get_reminders(self, **kwargs): # type: () -> Union[GetRemindersResponse, Error] """ @@ -272,7 +233,9 @@ def get_reminders(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v1/alerts/reminders/'.replace('{format}', 'json') + resource_path = '/v1/alerts/reminders/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -322,7 +285,9 @@ def create_reminder(self, reminder_request, **kwargs): raise ValueError( "Missing the required parameter `reminder_request` when calling `" + operation_name + "`") - resource_path = '/v1/alerts/reminders/'.replace('{format}', 'json') + resource_path = '/v1/alerts/reminders/' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] 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 2bf9c47..270da96 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 48c42bd..cb79640 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3356b1a..eac9a22 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 82a5067..ec39ea9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 ed8b437..2d56df9 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 085d3a7..e6abff8 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5ff4ca3..bd1cf16 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class Status(Enum): """ ON = "ON" COMPLETED = "COMPLETED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 8bc828d..af37e6b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 1b22ec8..c8cc5af 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -35,6 +35,7 @@ class TriggerType(Enum): """ SCHEDULED_ABSOLUTE = "SCHEDULED_ABSOLUTE" SCHEDULED_RELATIVE = "SCHEDULED_RELATIVE" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 7abeab6..7019708 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -22,6 +22,7 @@ from .directive import DirectiveServiceClient from .list_management import ListManagementServiceClient from .monetization import MonetizationServiceClient +from .proactive_events import ProactiveEventsServiceClient from .reminder_management import ReminderManagementServiceClient from .ups import UpsServiceClient 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 7133fb4..8986608 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class DistanceUnits(Enum): """ METRIC = "METRIC" IMPERIAL = "IMPERIAL" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 f555834..75aa0cf 100644 --- a/ask-sdk-model/ask_sdk_model/services/ups/error.py +++ b/ask-sdk-model/ask_sdk_model/services/ups/error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 524e43f..50b9b0b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -39,6 +39,7 @@ class ErrorCode(Enum): INVALID_URI = "INVALID_URI" DEVICE_UNREACHABLE = "DEVICE_UNREACHABLE" UNKNOWN_ERROR = "UNKNOWN_ERROR" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 6455c7e..2cb1a87 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 bde2784..90464e4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -33,6 +33,7 @@ class TemperatureUnit(Enum): """ CELSIUS = "CELSIUS" FAHRENHEIT = "FAHRENHEIT" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 1f60c12..87d372b 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -40,7 +40,6 @@ class UpsServiceClient(BaseServiceClient): :param api_configuration: Instance of :py:class:`ask_sdk_model.services.api_configuration.ApiConfiguration` :type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration """ - def __init__(self, api_configuration): # type: (ApiConfiguration) -> None """ @@ -62,7 +61,9 @@ def get_profile_email(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/accounts/~current/settings/Profile.email'.replace('{format}', 'json') + resource_path = '/v2/accounts/~current/settings/Profile.email' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -108,7 +109,9 @@ def get_profile_given_name(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/accounts/~current/settings/Profile.givenName'.replace('{format}', 'json') + resource_path = '/v2/accounts/~current/settings/Profile.givenName' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -154,7 +157,9 @@ def get_profile_mobile_number(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/accounts/~current/settings/Profile.mobileNumber'.replace('{format}', 'json') + resource_path = '/v2/accounts/~current/settings/Profile.mobileNumber' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -200,7 +205,9 @@ def get_profile_name(self, **kwargs): params[key] = val del params['kwargs'] - resource_path = '/v2/accounts/~current/settings/Profile.name'.replace('{format}', 'json') + resource_path = '/v2/accounts/~current/settings/Profile.name' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} query_params = [] @@ -252,7 +259,9 @@ def get_system_distance_units(self, device_id, **kwargs): raise ValueError( "Missing the required parameter `device_id` when calling `" + operation_name + "`") - resource_path = '/v2/devices/{deviceId}/settings/System.distanceUnits'.replace('{format}', 'json') + resource_path = '/v2/devices/{deviceId}/settings/System.distanceUnits' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'device_id' in params: path_params['deviceId'] = params['device_id'] @@ -306,7 +315,9 @@ def get_system_temperature_unit(self, device_id, **kwargs): raise ValueError( "Missing the required parameter `device_id` when calling `" + operation_name + "`") - resource_path = '/v2/devices/{deviceId}/settings/System.temperatureUnit'.replace('{format}', 'json') + resource_path = '/v2/devices/{deviceId}/settings/System.temperatureUnit' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'device_id' in params: path_params['deviceId'] = params['device_id'] @@ -360,7 +371,9 @@ def get_system_time_zone(self, device_id, **kwargs): raise ValueError( "Missing the required parameter `device_id` when calling `" + operation_name + "`") - resource_path = '/v2/devices/{deviceId}/settings/System.timeZone'.replace('{format}', 'json') + resource_path = '/v2/devices/{deviceId}/settings/System.timeZone' + resource_path = resource_path.replace('{format}', 'json') + path_params = {} if 'device_id' in params: path_params['deviceId'] = params['device_id'] diff --git a/ask-sdk-model/ask_sdk_model/session.py b/ask-sdk-model/ask_sdk_model/session.py index 4453d1e..1e20a44 100644 --- a/ask-sdk-model/ask_sdk_model/session.py +++ b/ask-sdk-model/ask_sdk_model/session.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 0fb704a..c9cef0b 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_error.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_error.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 2075699..cbf995a 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class SessionEndedErrorType(Enum): INVALID_RESPONSE = "INVALID_RESPONSE" DEVICE_COMMUNICATION_ERROR = "DEVICE_COMMUNICATION_ERROR" INTERNAL_SERVICE_ERROR = "INTERNAL_SERVICE_ERROR" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 3c0f58a..1010207 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_reason.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_reason.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class SessionEndedReason(Enum): USER_INITIATED = "USER_INITIATED" ERROR = "ERROR" EXCEEDED_MAX_REPROMPTS = "EXCEEDED_MAX_REPROMPTS" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 1919190..2352ae9 100644 --- a/ask-sdk-model/ask_sdk_model/session_ended_request.py +++ b/ask-sdk-model/ask_sdk_model/session_ended_request.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/slot.py b/ask-sdk-model/ask_sdk_model/slot.py index 67118ee..047c3f7 100644 --- a/ask-sdk-model/ask_sdk_model/slot.py +++ b/ask-sdk-model/ask_sdk_model/slot.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 3b6a34c..31974ba 100644 --- a/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py +++ b/ask-sdk-model/ask_sdk_model/slot_confirmation_status.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class SlotConfirmationStatus(Enum): NONE = "NONE" DENIED = "DENIED" CONFIRMED = "CONFIRMED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 25d7f6f..0d48f20 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolution.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8bae95b..3c5abf3 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/resolutions.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f3c4761..a90e30e 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/status.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 d36d92c..9ba7c26 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -37,6 +37,7 @@ class StatusCode(Enum): ER_SUCCESS_NO_MATCH = "ER_SUCCESS_NO_MATCH" ER_ERROR_TIMEOUT = "ER_ERROR_TIMEOUT" ER_ERROR_EXCEPTION = "ER_ERROR_EXCEPTION" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" 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 681ff26..d01e16d 100644 --- a/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py +++ b/ask-sdk-model/ask_sdk_model/slu/entityresolution/value.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 9f195e9..638bfa5 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/supported_interfaces.py b/ask-sdk-model/ask_sdk_model/supported_interfaces.py index 5aab9e8..b2ec23a 100644 --- a/ask-sdk-model/ask_sdk_model/supported_interfaces.py +++ b/ask-sdk-model/ask_sdk_model/supported_interfaces.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 05b89fc..b3cd238 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/ui/card.py b/ask-sdk-model/ask_sdk_model/ui/card.py index 4fba5a8..6e595b2 100644 --- a/ask-sdk-model/ask_sdk_model/ui/card.py +++ b/ask-sdk-model/ask_sdk_model/ui/card.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/ui/image.py b/ask-sdk-model/ask_sdk_model/ui/image.py index 91d94ed..23df03e 100644 --- a/ask-sdk-model/ask_sdk_model/ui/image.py +++ b/ask-sdk-model/ask_sdk_model/ui/image.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8ea58ea..c38754e 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 77104aa..25c0d39 100644 --- a/ask-sdk-model/ask_sdk_model/ui/output_speech.py +++ b/ask-sdk-model/ask_sdk_model/ui/output_speech.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 8d84b2e..4d6dbc4 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 65d105a..5fcd9db 100644 --- a/ask-sdk-model/ask_sdk_model/ui/play_behavior.py +++ b/ask-sdk-model/ask_sdk_model/ui/play_behavior.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 @@ -36,6 +36,7 @@ class PlayBehavior(Enum): ENQUEUE = "ENQUEUE" REPLACE_ALL = "REPLACE_ALL" REPLACE_ENQUEUED = "REPLACE_ENQUEUED" + def to_dict(self): # type: () -> Dict[str, object] """Returns the model properties as a dict""" diff --git a/ask-sdk-model/ask_sdk_model/ui/reprompt.py b/ask-sdk-model/ask_sdk_model/ui/reprompt.py index 84c5a38..ba49658 100644 --- a/ask-sdk-model/ask_sdk_model/ui/reprompt.py +++ b/ask-sdk-model/ask_sdk_model/ui/reprompt.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 f3e816b..0c5a8bf 100644 --- a/ask-sdk-model/ask_sdk_model/ui/simple_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/simple_card.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 91fb2b3..4d24b86 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 @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 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 5869390..2213464 100644 --- a/ask-sdk-model/ask_sdk_model/ui/standard_card.py +++ b/ask-sdk-model/ask_sdk_model/ui/standard_card.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/ask_sdk_model/user.py b/ask-sdk-model/ask_sdk_model/user.py index 793f34a..541241c 100644 --- a/ask-sdk-model/ask_sdk_model/user.py +++ b/ask-sdk-model/ask_sdk_model/user.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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 diff --git a/ask-sdk-model/setup.py b/ask-sdk-model/setup.py index 8c93b2f..6963446 100644 --- a/ask-sdk-model/setup.py +++ b/ask-sdk-model/setup.py @@ -1,7 +1,7 @@ # coding: utf-8 # -# Copyright 2018 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