From 925c926f81f9a1249f79be448c0d5a86adcb1bef Mon Sep 17 00:00:00 2001 From: OneSignal <noreply@onesignal.com> Date: Tue, 1 Aug 2023 23:28:12 +0000 Subject: [PATCH] Update Python API --- README.md | 14 +- docs/BasicNotification.md | 3 + docs/BasicNotificationAllOf.md | 3 + docs/CreateSegmentBadRequestResponse.md | 13 - docs/DefaultApi.md | 238 ++++++++++++-- docs/DeletePlayerBadRequestResponse.md | 12 - ...rror.md => ExportEventsSuccessResponse.md} | 4 +- docs/FilterNotificationTarget.md | 23 -- ...nBadRequestResponse.md => GenericError.md} | 4 +- ...orsInner.md => GenericErrorErrorsInner.md} | 2 +- docs/IdentifyUserConflictResponse.md | 12 - docs/Notification.md | 3 + docs/NotificationHistoryBadRequestResponse.md | 13 - docs/NotificationWithMeta.md | 3 + ...RequestResponse.md => RateLimiterError.md} | 4 +- onesignal/__init__.py | 4 +- onesignal/api/default_api.py | 165 +++++++++- onesignal/api_client.py | 6 +- onesignal/configuration.py | 6 +- onesignal/exceptions.py | 2 +- onesignal/model/app.py | 2 +- onesignal/model/apps.py | 2 +- onesignal/model/basic_notification.py | 14 +- onesignal/model/basic_notification_all_of.py | 14 +- ...cation_all_of_android_background_layout.py | 2 +- .../model/begin_live_activity_request.py | 2 +- onesignal/model/button.py | 2 +- onesignal/model/buttons.py | 2 +- .../cancel_notification_success_response.py | 2 +- .../create_notification_success_response.py | 2 +- .../model/create_player_success_response.py | 2 +- .../model/create_segment_conflict_response.py | 2 +- .../model/create_segment_success_response.py | 2 +- .../model/create_subscription_request_body.py | 2 +- .../model/create_user_conflict_response.py | 2 +- ...ate_user_conflict_response_errors_inner.py | 2 +- ...ser_conflict_response_errors_items_meta.py | 2 +- .../delete_player_bad_request_response.py | 264 --------------- .../model/delete_player_not_found_response.py | 2 +- .../model/delete_player_success_response.py | 2 +- .../delete_segment_bad_request_response.py | 264 --------------- .../delete_segment_not_found_response.py | 2 +- .../model/delete_segment_success_response.py | 2 +- onesignal/model/delivery_data.py | 2 +- ...r.py => export_events_success_response.py} | 16 +- .../model/export_players_request_body.py | 2 +- .../model/export_players_success_response.py | 2 +- onesignal/model/filter.py | 2 +- onesignal/model/filter_expressions.py | 2 +- onesignal/model/filter_notification_target.py | 308 ------------------ ...d_request_response.py => generic_error.py} | 20 +- ...inner.py => generic_error_errors_inner.py} | 8 +- .../model/get_notification_request_body.py | 2 +- .../model/identify_user_conflict_response.py | 270 --------------- onesignal/model/identity_object.py | 2 +- onesignal/model/inline_response200.py | 2 +- onesignal/model/inline_response2003.py | 2 +- onesignal/model/inline_response201.py | 2 +- onesignal/model/inline_response202.py | 2 +- onesignal/model/invalid_identifier_error.py | 2 +- onesignal/model/no_subscribers_error.py | 2 +- onesignal/model/notification.py | 14 +- onesignal/model/notification200_errors.py | 2 +- onesignal/model/notification_all_of.py | 2 +- ...tification_history_bad_request_response.py | 268 --------------- .../notification_history_success_response.py | 2 +- onesignal/model/notification_slice.py | 2 +- onesignal/model/notification_target.py | 2 +- onesignal/model/notification_with_meta.py | 14 +- .../model/notification_with_meta_all_of.py | 2 +- onesignal/model/operator.py | 2 +- onesignal/model/outcome_data.py | 2 +- onesignal/model/outcomes_data.py | 2 +- onesignal/model/platform_delivery_data.py | 2 +- .../platform_delivery_data_email_all_of.py | 2 +- .../platform_delivery_data_sms_all_of.py | 2 +- onesignal/model/player.py | 2 +- onesignal/model/player_notification_target.py | 2 +- ...yer_notification_target_include_aliases.py | 2 +- onesignal/model/player_slice.py | 2 +- onesignal/model/players.py | 2 +- onesignal/model/properties_deltas.py | 2 +- onesignal/model/properties_object.py | 2 +- onesignal/model/purchase.py | 2 +- ...uest_response.py => rate_limiter_error.py} | 24 +- onesignal/model/segment.py | 2 +- .../model/segment_notification_target.py | 2 +- onesignal/model/string_map.py | 2 +- onesignal/model/subscription_object.py | 2 +- .../transfer_subscription_request_body.py | 2 +- .../model/update_live_activity_request.py | 2 +- .../update_live_activity_success_response.py | 2 +- .../model/update_player_success_response.py | 2 +- .../model/update_player_tags_request_body.py | 2 +- .../update_player_tags_success_response.py | 2 +- .../model/update_subscription_request_body.py | 2 +- onesignal/model/update_user_request.py | 2 +- onesignal/model/user.py | 2 +- onesignal/model/user_identity_request_body.py | 2 +- onesignal/model/user_identity_response.py | 2 +- onesignal/model/user_subscription_options.py | 2 +- onesignal/model_utils.py | 2 +- onesignal/models/__init__.py | 7 +- onesignal/rest.py | 2 +- setup.py | 4 +- test/test_app.py | 2 +- test/test_apps.py | 2 +- test/test_basic_notification.py | 2 +- test/test_basic_notification_all_of.py | 2 +- ...cation_all_of_android_background_layout.py | 2 +- test/test_begin_live_activity_request.py | 2 +- test/test_button.py | 2 +- test/test_buttons.py | 2 +- ...st_cancel_notification_success_response.py | 2 +- ...st_create_notification_success_response.py | 2 +- test/test_create_player_success_response.py | 2 +- ...est_create_segment_bad_request_response.py | 36 -- test/test_create_segment_conflict_response.py | 2 +- test/test_create_segment_success_response.py | 2 +- test/test_create_subscription_request_body.py | 2 +- test/test_create_user_conflict_response.py | 2 +- ...ate_user_conflict_response_errors_inner.py | 2 +- ...ser_conflict_response_errors_items_meta.py | 2 +- test/test_default_api.py | 11 +- ...test_delete_player_bad_request_response.py | 36 -- test/test_delete_player_not_found_response.py | 2 +- test/test_delete_player_success_response.py | 2 +- .../test_delete_segment_not_found_response.py | 2 +- test/test_delete_segment_success_response.py | 2 +- test/test_delivery_data.py | 2 +- ...=> test_export_events_success_response.py} | 14 +- test/test_export_players_request_body.py | 2 +- test/test_export_players_success_response.py | 2 +- test/test_filter.py | 2 +- test/test_filter_expressions.py | 2 +- ...uest_response.py => test_generic_error.py} | 16 +- ....py => test_generic_error_errors_inner.py} | 14 +- test/test_get_notification_request_body.py | 2 +- test/test_identify_user_conflict_response.py | 38 --- ...ify_user_conflict_response_errors_inner.py | 36 -- test/test_identity_object.py | 2 +- test/test_inline_response200.py | 2 +- test/test_inline_response2003.py | 2 +- test/test_inline_response201.py | 2 +- test/test_inline_response202.py | 2 +- test/test_invalid_identifier_error.py | 2 +- test/test_no_subscribers_error.py | 2 +- test/test_notification.py | 2 +- test/test_notification200_errors.py | 2 +- test/test_notification_all_of.py | 2 +- ...tification_history_bad_request_response.py | 36 -- ...t_notification_history_success_response.py | 2 +- test/test_notification_slice.py | 2 +- test/test_notification_target.py | 2 +- test/test_notification_with_meta.py | 2 +- test/test_notification_with_meta_all_of.py | 2 +- test/test_operator.py | 2 +- test/test_outcome_data.py | 2 +- test/test_outcomes_data.py | 2 +- test/test_platform_delivery_data.py | 2 +- ...est_platform_delivery_data_email_all_of.py | 2 +- .../test_platform_delivery_data_sms_all_of.py | 2 +- test/test_player.py | 2 +- test/test_player_notification_target.py | 2 +- ...yer_notification_target_include_aliases.py | 2 +- test/test_player_slice.py | 2 +- test/test_players.py | 2 +- test/test_properties_deltas.py | 2 +- test/test_properties_object.py | 2 +- test/test_purchase.py | 2 +- ...response.py => test_rate_limiter_error.py} | 16 +- test/test_segment.py | 2 +- test/test_segment_notification_target.py | 2 +- test/test_string_map.py | 2 +- test/test_subscription_object.py | 2 +- ...test_transfer_subscription_request_body.py | 2 +- test/test_update_live_activity_request.py | 2 +- ...t_update_live_activity_success_response.py | 2 +- test/test_update_player_success_response.py | 2 +- test/test_update_player_tags_request_body.py | 2 +- ...est_update_player_tags_success_response.py | 2 +- test/test_update_subscription_request_body.py | 2 +- test/test_update_user_request.py | 2 +- test/test_user.py | 2 +- test/test_user_identity_request_body.py | 2 +- test/test_user_identity_response.py | 2 +- test/test_user_subscription_options.py | 2 +- 187 files changed, 681 insertions(+), 1899 deletions(-) delete mode 100644 docs/CreateSegmentBadRequestResponse.md delete mode 100644 docs/DeletePlayerBadRequestResponse.md rename docs/{BadRequestError.md => ExportEventsSuccessResponse.md} (85%) delete mode 100644 docs/FilterNotificationTarget.md rename docs/{CreateNotificationBadRequestResponse.md => GenericError.md} (80%) rename docs/{IdentifyUserConflictResponseErrorsInner.md => GenericErrorErrorsInner.md} (92%) delete mode 100644 docs/IdentifyUserConflictResponse.md delete mode 100644 docs/NotificationHistoryBadRequestResponse.md rename docs/{DeleteSegmentBadRequestResponse.md => RateLimiterError.md} (80%) delete mode 100644 onesignal/model/delete_player_bad_request_response.py delete mode 100644 onesignal/model/delete_segment_bad_request_response.py rename onesignal/model/{bad_request_error.py => export_events_success_response.py} (96%) delete mode 100644 onesignal/model/filter_notification_target.py rename onesignal/model/{create_notification_bad_request_response.py => generic_error.py} (94%) rename onesignal/model/{identify_user_conflict_response_errors_inner.py => generic_error_errors_inner.py} (97%) delete mode 100644 onesignal/model/identify_user_conflict_response.py delete mode 100644 onesignal/model/notification_history_bad_request_response.py rename onesignal/model/{create_segment_bad_request_response.py => rate_limiter_error.py} (94%) delete mode 100644 test/test_create_segment_bad_request_response.py delete mode 100644 test/test_delete_player_bad_request_response.py rename test/{test_filter_notification_target.py => test_export_events_success_response.py} (56%) rename test/{test_delete_segment_bad_request_response.py => test_generic_error.py} (54%) rename test/{test_bad_request_error.py => test_generic_error_errors_inner.py} (58%) delete mode 100644 test/test_identify_user_conflict_response.py delete mode 100644 test/test_identify_user_conflict_response_errors_inner.py delete mode 100644 test/test_notification_history_bad_request_response.py rename test/{test_create_notification_bad_request_response.py => test_rate_limiter_error.py} (52%) diff --git a/README.md b/README.md index 07ff538..30ff473 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com -- API version: 1.2.1 -- Package version: 2.0.0 +- API version: 1.2.2 +- Package version: 2.0.2 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -97,7 +97,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_subscription**](docs/DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} | *DefaultApi* | [**delete_user**](docs/DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} | *DefaultApi* | [**end_live_activity**](docs/DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity -*DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | CSV export +*DefaultApi* | [**export_events**](docs/DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events +*DefaultApi* | [**export_players**](docs/DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players *DefaultApi* | [**fetch_aliases**](docs/DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity | *DefaultApi* | [**fetch_user**](docs/DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} | *DefaultApi* | [**fetch_user_identity**](docs/DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | @@ -125,7 +126,6 @@ Class | Method | HTTP request | Description - [App](docs/App.md) - [Apps](docs/Apps.md) - - [BadRequestError](docs/BadRequestError.md) - [BasicNotification](docs/BasicNotification.md) - [BasicNotificationAllOf](docs/BasicNotificationAllOf.md) - [BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md) @@ -146,13 +146,14 @@ Class | Method | HTTP request | Description - [DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md) - [DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md) - [DeliveryData](docs/DeliveryData.md) + - [ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md) - [ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md) - [ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md) - [Filter](docs/Filter.md) - [FilterExpressions](docs/FilterExpressions.md) + - [GenericError](docs/GenericError.md) + - [GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md) - [GetNotificationRequestBody](docs/GetNotificationRequestBody.md) - - [IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md) - - [IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md) - [IdentityObject](docs/IdentityObject.md) - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse2003](docs/InlineResponse2003.md) @@ -182,6 +183,7 @@ Class | Method | HTTP request | Description - [PropertiesDeltas](docs/PropertiesDeltas.md) - [PropertiesObject](docs/PropertiesObject.md) - [Purchase](docs/Purchase.md) + - [RateLimiterError](docs/RateLimiterError.md) - [Segment](docs/Segment.md) - [SegmentNotificationTarget](docs/SegmentNotificationTarget.md) - [StringMap](docs/StringMap.md) diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md index c04da99..2691302 100644 --- a/docs/BasicNotification.md +++ b/docs/BasicNotification.md @@ -104,9 +104,12 @@ Name | Type | Description | Notes **email_body** | **str** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | **str, none_type** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | **str, none_type** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] +**email_preheader** | **str, none_type** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] +**include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**[Filter], none_type**](Filter.md) | | [optional] +**custom_data** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md index 75a3773..243126d 100644 --- a/docs/BasicNotificationAllOf.md +++ b/docs/BasicNotificationAllOf.md @@ -90,9 +90,12 @@ Name | Type | Description | Notes **email_body** | **str** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | **str, none_type** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | **str, none_type** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] +**email_preheader** | **str, none_type** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] +**include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**[Filter], none_type**](Filter.md) | | [optional] +**custom_data** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateSegmentBadRequestResponse.md b/docs/CreateSegmentBadRequestResponse.md deleted file mode 100644 index bc2d3c7..0000000 --- a/docs/CreateSegmentBadRequestResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# CreateSegmentBadRequestResponse - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **bool** | | [optional] -**errors** | **[str]** | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c1770e1..5eda22b 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,7 +18,8 @@ Method | HTTP request | Description [**delete_subscription**](DefaultApi.md#delete_subscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} | [**delete_user**](DefaultApi.md#delete_user) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} | [**end_live_activity**](DefaultApi.md#end_live_activity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity -[**export_players**](DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | CSV export +[**export_events**](DefaultApi.md#export_events) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events +[**export_players**](DefaultApi.md#export_players) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players [**fetch_aliases**](DefaultApi.md#fetch_aliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity | [**fetch_user**](DefaultApi.md#fetch_user) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} | [**fetch_user_identity**](DefaultApi.md#fetch_user_identity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | @@ -56,8 +57,9 @@ Starts a Live Activity ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.begin_live_activity_request import BeginLiveActivityRequest -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -108,6 +110,7 @@ void (empty response body) |-------------|-------------|------------------| **204** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -125,8 +128,9 @@ Used to stop a scheduled or currently outgoing notification ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.cancel_notification_success_response import CancelNotificationSuccessResponse -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -173,6 +177,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -191,7 +196,8 @@ Creates a new OneSignal app import onesignal from onesignal.api import default_api from onesignal.model.app import App -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -258,6 +264,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -275,9 +282,10 @@ Sends notifications to your users ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.notification import Notification from onesignal.model.create_notification_success_response import CreateNotificationSuccessResponse -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -322,6 +330,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK, invalid_player_ids, invalid_external_user_ids or No Subscribed Players If a message was successfully created, you will get a 200 response and an id for the notification. If the 200 response contains \"invalid_player_ids\" or \"invalid_external_user_ids\" this will mark devices that exist in the provided app_id but are no longer subscribed. If no id is returned, then a message was not created and the targeted User IDs do not exist under the provided app_id. Any User IDs sent in the request that do not exist under the specified app_id will be ignored. | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -341,7 +350,8 @@ import onesignal from onesignal.api import default_api from onesignal.model.player import Player from onesignal.model.create_player_success_response import CreatePlayerSuccessResponse -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -412,6 +422,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -432,7 +444,8 @@ from onesignal.api import default_api from onesignal.model.create_segment_success_response import CreateSegmentSuccessResponse from onesignal.model.create_segment_conflict_response import CreateSegmentConflictResponse from onesignal.model.segment import Segment -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -495,6 +508,7 @@ Name | Type | Description | Notes **201** | Created | - | **400** | Bad Request | - | **409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -513,6 +527,8 @@ Creates a new Subscription under the User provided. Useful to add email addresse import onesignal from onesignal.api import default_api from onesignal.model.inline_response201 import InlineResponse201 +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.create_subscription_request_body import CreateSubscriptionRequestBody from pprint import pprint @@ -584,6 +600,9 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | CREATED | - | **202** | ACCEPTED | - | +**400** | Bad Request | - | +**409** | Operation is not permitted due to user having the maximum number of subscriptions assigned | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -602,6 +621,8 @@ Creates a User, optionally Subscriptions owned by the User as well as Aliases. A import onesignal from onesignal.api import default_api from onesignal.model.user import User +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.create_user_conflict_response import CreateUserConflictResponse from pprint import pprint @@ -692,9 +713,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| +**200** | CREATED | - | **201** | CREATED | - | **202** | ACCEPTED | - | +**400** | Bad Request | - | **409** | Multiple User Identity Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -712,6 +736,8 @@ Deletes an alias by alias label ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.inline_response200 import InlineResponse200 from pprint import pprint @@ -761,6 +787,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -778,9 +807,10 @@ Delete player - Required: Used to delete a single, specific Player ID record fro ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.delete_player_not_found_response import DeletePlayerNotFoundResponse from onesignal.model.delete_player_success_response import DeletePlayerSuccessResponse -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -828,6 +858,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -846,8 +877,9 @@ Delete segments (not user devices) - Required: OneSignal Paid Plan You can delet import onesignal from onesignal.api import default_api from onesignal.model.delete_segment_success_response import DeleteSegmentSuccessResponse +from onesignal.model.generic_error import GenericError from onesignal.model.delete_segment_not_found_response import DeleteSegmentNotFoundResponse -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -895,6 +927,7 @@ Name | Type | Description | Notes **200** | OK | - | **400** | Bad Request | - | **404** | Not Found | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -912,6 +945,8 @@ Deletes the Subscription. ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -947,7 +982,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -955,6 +990,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **202** | ACCEPTED | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -971,6 +1009,8 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1008,7 +1048,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -1016,6 +1056,9 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1033,7 +1076,8 @@ Stops a Live Activity ```python import onesignal from onesignal.api import default_api -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1081,13 +1125,82 @@ void (empty response body) |-------------|-------------|------------------| **204** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **export_events** +> ExportEventsSuccessResponse export_events(notification_id, app_id) + +Export CSV of Events + +Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. + +### Example + +* Bearer Authentication (app_key): + +```python +import onesignal +from onesignal.api import default_api +from onesignal.model.export_events_success_response import ExportEventsSuccessResponse +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError +from pprint import pprint + +# Enter a context with an instance of the API client +with onesignal.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = default_api.DefaultApi(api_client) + notification_id = "notification_id_example" # The ID of the notification to export events from. + app_id = "app_id_example" # The ID of the app that the notification belongs to. + + # example passing only required values which don't have defaults set + try: + # Export CSV of Events + api_response = api_instance.export_events(notification_id, app_id) + pprint(api_response) + except onesignal.ApiException as e: + print("Exception when calling DefaultApi->export_events: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notification_id** | **str**| The ID of the notification to export events from. | + **app_id** | **str**| The ID of the app that the notification belongs to. | + +### Return type + +[**ExportEventsSuccessResponse**](ExportEventsSuccessResponse.md) + +### Authorization + +[app_key](../README.md#app_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**404** | Not Found | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **export_players** > ExportPlayersSuccessResponse export_players(app_id) -CSV export +Export CSV of Players Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | @@ -1099,8 +1212,9 @@ Generate a compressed CSV export of all of your current user data This method ca import onesignal from onesignal.api import default_api from onesignal.model.export_players_success_response import ExportPlayersSuccessResponse +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.export_players_request_body import ExportPlayersRequestBody -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -1118,7 +1232,7 @@ with onesignal.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set try: - # CSV export + # Export CSV of Players api_response = api_instance.export_players(app_id) pprint(api_response) except onesignal.ApiException as e: @@ -1127,7 +1241,7 @@ with onesignal.ApiClient(configuration) as api_client: # example passing only required values which don't have defaults set # and optional values try: - # CSV export + # Export CSV of Players api_response = api_instance.export_players(app_id, export_players_request_body=export_players_request_body) pprint(api_response) except onesignal.ApiException as e: @@ -1162,6 +1276,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1179,6 +1294,7 @@ Lists all Aliases for the User identified by :subscription_id. ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError from onesignal.model.user_identity_response import UserIdentityResponse from pprint import pprint @@ -1224,6 +1340,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1242,6 +1359,8 @@ Returns the User’s properties, Aliases, and Subscriptions. import onesignal from onesignal.api import default_api from onesignal.model.user import User +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1288,6 +1407,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1305,6 +1426,8 @@ Lists all Aliases for the User identified by (:alias_label, :alias_id). ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.inline_response200 import InlineResponse200 from pprint import pprint @@ -1352,6 +1475,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1370,7 +1495,8 @@ View the details of a single OneSignal app import onesignal from onesignal.api import default_api from onesignal.model.app import App -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1415,6 +1541,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1433,7 +1560,8 @@ View the details of all of your current OneSignal apps import onesignal from onesignal.api import default_api from onesignal.model.apps import Apps -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1474,6 +1602,7 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1492,6 +1621,8 @@ Manifest of In-App Messages the Subscription is eligible to display by the SDK. import onesignal from onesignal.api import default_api from onesignal.model.inline_response2003 import InlineResponse2003 +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1536,6 +1667,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1553,7 +1686,8 @@ View the details of a single notification and outcomes associated with it ```python import onesignal from onesignal.api import default_api -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.notification_with_meta import NotificationWithMeta from pprint import pprint @@ -1601,6 +1735,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1620,7 +1755,8 @@ import onesignal from onesignal.api import default_api from onesignal.model.notification_history_success_response import NotificationHistorySuccessResponse from onesignal.model.get_notification_request_body import GetNotificationRequestBody -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1671,6 +1807,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1689,7 +1826,8 @@ View the details of multiple notifications import onesignal from onesignal.api import default_api from onesignal.model.notification_slice import NotificationSlice -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1749,6 +1887,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1767,7 +1906,8 @@ View the details of all the outcomes associated with your app 🚧 Require import onesignal from onesignal.api import default_api from onesignal.model.outcomes_data import OutcomesData -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1831,6 +1971,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1849,7 +1990,8 @@ View the details of an existing device in one of your OneSignal apps import onesignal from onesignal.api import default_api from onesignal.model.player import Player -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -1907,6 +2049,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1924,7 +2067,8 @@ View the details of multiple devices in one of your OneSignal apps Unavailable f ```python import onesignal from onesignal.api import default_api -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.player_slice import PlayerSlice from pprint import pprint @@ -1983,6 +2127,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2000,8 +2145,9 @@ Upserts one or more Aliases to an existing User identified by (:alias_label, :al ```python import onesignal from onesignal.api import default_api -from onesignal.model.identify_user_conflict_response import IdentifyUserConflictResponse from onesignal.model.user_identity_request_body import UserIdentityRequestBody +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.inline_response200 import InlineResponse200 from pprint import pprint @@ -2053,7 +2199,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | **409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2071,8 +2219,9 @@ Upserts one or more Aliases for the User identified by :subscription_id. ```python import onesignal from onesignal.api import default_api -from onesignal.model.identify_user_conflict_response import IdentifyUserConflictResponse from onesignal.model.user_identity_request_body import UserIdentityRequestBody +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.user_identity_response import UserIdentityResponse from pprint import pprint @@ -2122,7 +2271,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | **409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2141,6 +2292,8 @@ Transfers this Subscription to the User identified by the identity in the payloa import onesignal from onesignal.api import default_api from onesignal.model.transfer_subscription_request_body import TransferSubscriptionRequestBody +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.user_identity_response import UserIdentityResponse from pprint import pprint @@ -2190,6 +2343,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2208,7 +2364,8 @@ Updates the name or configuration settings of an existing OneSignal app import onesignal from onesignal.api import default_api from onesignal.model.app import App -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -2277,6 +2434,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2296,7 +2454,8 @@ import onesignal from onesignal.api import default_api from onesignal.model.update_live_activity_request import UpdateLiveActivityRequest from onesignal.model.update_live_activity_success_response import UpdateLiveActivitySuccessResponse -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -2350,6 +2509,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2368,8 +2528,9 @@ Update an existing device in one of your OneSignal apps import onesignal from onesignal.api import default_api from onesignal.model.player import Player +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.update_player_success_response import UpdatePlayerSuccessResponse -from onesignal.model.bad_request_error import BadRequestError from pprint import pprint # Enter a context with an instance of the API client @@ -2442,6 +2603,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | OK | - | **400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2459,6 +2622,8 @@ Update an existing device's tags in one of your OneSignal apps using the Externa ```python import onesignal from onesignal.api import default_api +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.update_player_tags_request_body import UpdatePlayerTagsRequestBody from onesignal.model.update_player_tags_success_response import UpdatePlayerTagsSuccessResponse from pprint import pprint @@ -2519,6 +2684,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2537,6 +2705,8 @@ Updates an existing Subscription’s properties. import onesignal from onesignal.api import default_api from onesignal.model.update_subscription_request_body import UpdateSubscriptionRequestBody +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -2594,7 +2764,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -2602,6 +2772,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| **202** | ACCEPTED | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2621,6 +2794,8 @@ import onesignal from onesignal.api import default_api from onesignal.model.update_user_request import UpdateUserRequest from onesignal.model.inline_response202 import InlineResponse202 +from onesignal.model.generic_error import GenericError +from onesignal.model.rate_limiter_error import RateLimiterError from pprint import pprint # Enter a context with an instance of the API client @@ -2703,6 +2878,9 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **202** | ACCEPTED | - | +**400** | Bad Request | - | +**409** | Conflict | - | +**429** | Rate Limit Exceeded | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/DeletePlayerBadRequestResponse.md b/docs/DeletePlayerBadRequestResponse.md deleted file mode 100644 index dbe871a..0000000 --- a/docs/DeletePlayerBadRequestResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# DeletePlayerBadRequestResponse - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**erorrs** | **[bool]** | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/BadRequestError.md b/docs/ExportEventsSuccessResponse.md similarity index 85% rename from docs/BadRequestError.md rename to docs/ExportEventsSuccessResponse.md index aac9951..cf0bc56 100644 --- a/docs/BadRequestError.md +++ b/docs/ExportEventsSuccessResponse.md @@ -1,10 +1,10 @@ -# BadRequestError +# ExportEventsSuccessResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | **[str]** | | [optional] +**csv_file_url** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FilterNotificationTarget.md b/docs/FilterNotificationTarget.md deleted file mode 100644 index b7ae7ad..0000000 --- a/docs/FilterNotificationTarget.md +++ /dev/null @@ -1,23 +0,0 @@ -# FilterNotificationTarget - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_session** | **str** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" | [optional] -**first_session** | **str** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" | [optional] -**session_count** | **str** | relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" | [optional] -**session_time** | **str** | relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" | [optional] -**amount_spent** | **str** | relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" | [optional] -**bought_sku** | **str** | relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" | [optional] -**tag** | **str** | relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters | [optional] -**language** | **str** | relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. | [optional] -**app_version** | **str** | relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" | [optional] -**location** | **str** | radius = in meters lat = latitude long = longitude | [optional] -**email** | **str** | value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter | [optional] -**country** | **str** | relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CreateNotificationBadRequestResponse.md b/docs/GenericError.md similarity index 80% rename from docs/CreateNotificationBadRequestResponse.md rename to docs/GenericError.md index db60cbb..21ae775 100644 --- a/docs/CreateNotificationBadRequestResponse.md +++ b/docs/GenericError.md @@ -1,10 +1,10 @@ -# CreateNotificationBadRequestResponse +# GenericError ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**errors** | **[str]** | | [optional] +**errors** | [**[GenericErrorErrorsInner]**](GenericErrorErrorsInner.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/IdentifyUserConflictResponseErrorsInner.md b/docs/GenericErrorErrorsInner.md similarity index 92% rename from docs/IdentifyUserConflictResponseErrorsInner.md rename to docs/GenericErrorErrorsInner.md index 5816d34..9cde40c 100644 --- a/docs/IdentifyUserConflictResponseErrorsInner.md +++ b/docs/GenericErrorErrorsInner.md @@ -1,4 +1,4 @@ -# IdentifyUserConflictResponseErrorsInner +# GenericErrorErrorsInner ## Properties diff --git a/docs/IdentifyUserConflictResponse.md b/docs/IdentifyUserConflictResponse.md deleted file mode 100644 index 9efaed8..0000000 --- a/docs/IdentifyUserConflictResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IdentifyUserConflictResponse - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**[IdentifyUserConflictResponseErrorsInner]**](IdentifyUserConflictResponseErrorsInner.md) | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Notification.md b/docs/Notification.md index 7b80342..86c5ded 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -104,9 +104,12 @@ Name | Type | Description | Notes **email_body** | **str** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | **str, none_type** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | **str, none_type** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] +**email_preheader** | **str, none_type** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] +**include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**[Filter], none_type**](Filter.md) | | [optional] +**custom_data** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] **send_after** | **datetime, none_type** | Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/NotificationHistoryBadRequestResponse.md b/docs/NotificationHistoryBadRequestResponse.md deleted file mode 100644 index 91ca9c1..0000000 --- a/docs/NotificationHistoryBadRequestResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# NotificationHistoryBadRequestResponse - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **str** | | [optional] -**errors** | **[str]** | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md index f44f92c..e1f82ef 100644 --- a/docs/NotificationWithMeta.md +++ b/docs/NotificationWithMeta.md @@ -104,9 +104,12 @@ Name | Type | Description | Notes **email_body** | **str** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional] **email_from_name** | **str, none_type** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional] **email_from_address** | **str, none_type** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional] +**email_preheader** | **str, none_type** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional] +**include_unsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional] **sms_from** | **str, none_type** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional] **sms_media_urls** | **[str], none_type** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional] **filters** | [**[Filter], none_type**](Filter.md) | | [optional] +**custom_data** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional] **successful** | **int** | Number of notifications that were successfully delivered. | [optional] **failed** | **int** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional] **errored** | **int** | Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard. | [optional] diff --git a/docs/DeleteSegmentBadRequestResponse.md b/docs/RateLimiterError.md similarity index 80% rename from docs/DeleteSegmentBadRequestResponse.md rename to docs/RateLimiterError.md index bd0c428..ec4b7f8 100644 --- a/docs/DeleteSegmentBadRequestResponse.md +++ b/docs/RateLimiterError.md @@ -1,10 +1,10 @@ -# DeleteSegmentBadRequestResponse +# RateLimiterError ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**erorrs** | **[str]** | | [optional] +**errors** | [**[GenericErrorErrorsInner]**](GenericErrorErrorsInner.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/onesignal/__init__.py b/onesignal/__init__.py index 630e4f3..1822774 100644 --- a/onesignal/__init__.py +++ b/onesignal/__init__.py @@ -5,13 +5,13 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ -__version__ = "2.0.0" +__version__ = "2.0.2" # import ApiClient from onesignal.api_client import ApiClient diff --git a/onesignal/api/default_api.py b/onesignal/api/default_api.py index 012aa2a..75b92b0 100644 --- a/onesignal/api/default_api.py +++ b/onesignal/api/default_api.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -24,7 +24,6 @@ ) from onesignal.model.app import App from onesignal.model.apps import Apps -from onesignal.model.bad_request_error import BadRequestError from onesignal.model.begin_live_activity_request import BeginLiveActivityRequest from onesignal.model.cancel_notification_success_response import CancelNotificationSuccessResponse from onesignal.model.create_notification_success_response import CreateNotificationSuccessResponse @@ -37,10 +36,11 @@ from onesignal.model.delete_player_success_response import DeletePlayerSuccessResponse from onesignal.model.delete_segment_not_found_response import DeleteSegmentNotFoundResponse from onesignal.model.delete_segment_success_response import DeleteSegmentSuccessResponse +from onesignal.model.export_events_success_response import ExportEventsSuccessResponse from onesignal.model.export_players_request_body import ExportPlayersRequestBody from onesignal.model.export_players_success_response import ExportPlayersSuccessResponse +from onesignal.model.generic_error import GenericError from onesignal.model.get_notification_request_body import GetNotificationRequestBody -from onesignal.model.identify_user_conflict_response import IdentifyUserConflictResponse from onesignal.model.inline_response200 import InlineResponse200 from onesignal.model.inline_response2003 import InlineResponse2003 from onesignal.model.inline_response201 import InlineResponse201 @@ -52,6 +52,7 @@ from onesignal.model.outcomes_data import OutcomesData from onesignal.model.player import Player from onesignal.model.player_slice import PlayerSlice +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.segment import Segment from onesignal.model.transfer_subscription_request_body import TransferSubscriptionRequestBody from onesignal.model.update_live_activity_request import UpdateLiveActivityRequest @@ -772,7 +773,9 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [], + 'accept': [ + 'application/json' + ], 'content_type': [], }, api_client=api_client @@ -831,7 +834,9 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [], + 'accept': [ + 'application/json' + ], 'content_type': [], }, api_client=api_client @@ -899,6 +904,63 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.export_events_endpoint = _Endpoint( + settings={ + 'response_type': (ExportEventsSuccessResponse,), + 'auth': [ + 'app_key' + ], + 'endpoint_path': '/notifications/{notification_id}/export_events?app_id={app_id}', + 'operation_id': 'export_events', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'notification_id', + 'app_id', + ], + 'required': [ + 'notification_id', + 'app_id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'notification_id': + (str,), + 'app_id': + (str,), + }, + 'attribute_map': { + 'notification_id': 'notification_id', + 'app_id': 'app_id', + }, + 'location_map': { + 'notification_id': 'path', + 'app_id': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.export_players_endpoint = _Endpoint( settings={ 'response_type': (ExportPlayersSuccessResponse,), @@ -2175,7 +2237,9 @@ def __init__(self, api_client=None): } }, headers_map={ - 'accept': [], + 'accept': [ + 'application/json' + ], 'content_type': [ 'application/json' ] @@ -3484,12 +3548,99 @@ def end_live_activity( subscription_id return self.end_live_activity_endpoint.call_with_http_info(**kwargs) + def export_events( + self, + notification_id, + app_id, + **kwargs + ): + """Export CSV of Events # noqa: E501 + + Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.export_events(notification_id, app_id, async_req=True) + >>> result = thread.get() + + Args: + notification_id (str): The ID of the notification to export events from. + app_id (str): The ID of the app that the notification belongs to. + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ExportEventsSuccessResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + kwargs['notification_id'] = \ + notification_id + kwargs['app_id'] = \ + app_id + return self.export_events_endpoint.call_with_http_info(**kwargs) + def export_players( self, app_id, **kwargs ): - """CSV export # noqa: E501 + """Export CSV of Players # noqa: E501 Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. | # noqa: E501 This method makes a synchronous HTTP request by default. To make an diff --git a/onesignal/api_client.py b/onesignal/api_client.py index 77599dc..3909bef 100644 --- a/onesignal/api_client.py +++ b/onesignal/api_client.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2.0.0/python' + self.user_agent = 'OpenAPI-Generator/2.0.2/python' def __enter__(self): return self @@ -142,7 +142,7 @@ def __call_api( # header parameters header_params = header_params or {} header_params.update(self.default_headers) - header_params['OS-Usage-Data'] = "kind=sdk, sdk-name=onesignal-python, version=1.2.1" + header_params['OS-Usage-Data'] = "kind=sdk, sdk-name=onesignal-python, version=1.2.2" if self.cookie: header_params['Cookie'] = self.cookie if header_params: diff --git a/onesignal/configuration.py b/onesignal/configuration.py index 72ae291..bee651b 100644 --- a/onesignal/configuration.py +++ b/onesignal/configuration.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -399,8 +399,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.2.1\n"\ - "SDK Package Version: 2.0.0".\ + "Version of the API: 1.2.2\n"\ + "SDK Package Version: 2.0.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/onesignal/exceptions.py b/onesignal/exceptions.py index 5c8c4c0..3fdeb7d 100644 --- a/onesignal/exceptions.py +++ b/onesignal/exceptions.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/app.py b/onesignal/model/app.py index e9e7e1c..ae9ebb3 100644 --- a/onesignal/model/app.py +++ b/onesignal/model/app.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/apps.py b/onesignal/model/apps.py index e11e45b..01fda8e 100644 --- a/onesignal/model/apps.py +++ b/onesignal/model/apps.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/basic_notification.py b/onesignal/model/basic_notification.py index 6e0d170..95608d3 100644 --- a/onesignal/model/basic_notification.py +++ b/onesignal/model/basic_notification.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -209,9 +209,12 @@ def openapi_types(): 'email_body': (str,), # noqa: E501 'email_from_name': (str, none_type,), # noqa: E501 'email_from_address': (str, none_type,), # noqa: E501 + 'email_preheader': (str, none_type,), # noqa: E501 + 'include_unsubscribed': (bool,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([Filter], none_type,), # noqa: E501 + 'custom_data': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 } @cached_property @@ -320,9 +323,12 @@ def discriminator(): 'email_body': 'email_body', # noqa: E501 'email_from_name': 'email_from_name', # noqa: E501 'email_from_address': 'email_from_address', # noqa: E501 + 'email_preheader': 'email_preheader', # noqa: E501 + 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 + 'custom_data': 'custom_data', # noqa: E501 } read_only_vars = { @@ -466,9 +472,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -672,9 +681,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/basic_notification_all_of.py b/onesignal/model/basic_notification_all_of.py index 97af282..4f1e66e 100644 --- a/onesignal/model/basic_notification_all_of.py +++ b/onesignal/model/basic_notification_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -184,9 +184,12 @@ def openapi_types(): 'email_body': (str,), # noqa: E501 'email_from_name': (str, none_type,), # noqa: E501 'email_from_address': (str, none_type,), # noqa: E501 + 'email_preheader': (str, none_type,), # noqa: E501 + 'include_unsubscribed': (bool,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([Filter], none_type,), # noqa: E501 + 'custom_data': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 } @cached_property @@ -281,9 +284,12 @@ def discriminator(): 'email_body': 'email_body', # noqa: E501 'email_from_name': 'email_from_name', # noqa: E501 'email_from_address': 'email_from_address', # noqa: E501 + 'email_preheader': 'email_preheader', # noqa: E501 + 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 + 'custom_data': 'custom_data', # noqa: E501 } read_only_vars = { @@ -415,9 +421,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -589,9 +598,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/basic_notification_all_of_android_background_layout.py b/onesignal/model/basic_notification_all_of_android_background_layout.py index 140b148..fd8eeeb 100644 --- a/onesignal/model/basic_notification_all_of_android_background_layout.py +++ b/onesignal/model/basic_notification_all_of_android_background_layout.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/begin_live_activity_request.py b/onesignal/model/begin_live_activity_request.py index 3bcd13c..6bdb522 100644 --- a/onesignal/model/begin_live_activity_request.py +++ b/onesignal/model/begin_live_activity_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/button.py b/onesignal/model/button.py index 0b75d6e..8ee54aa 100644 --- a/onesignal/model/button.py +++ b/onesignal/model/button.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/buttons.py b/onesignal/model/buttons.py index b5c5786..f6fb95e 100644 --- a/onesignal/model/buttons.py +++ b/onesignal/model/buttons.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/cancel_notification_success_response.py b/onesignal/model/cancel_notification_success_response.py index 91fd8dd..b2aba8c 100644 --- a/onesignal/model/cancel_notification_success_response.py +++ b/onesignal/model/cancel_notification_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_notification_success_response.py b/onesignal/model/create_notification_success_response.py index d60934c..aa0d635 100644 --- a/onesignal/model/create_notification_success_response.py +++ b/onesignal/model/create_notification_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_player_success_response.py b/onesignal/model/create_player_success_response.py index 685f0a7..ecb7d6b 100644 --- a/onesignal/model/create_player_success_response.py +++ b/onesignal/model/create_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_segment_conflict_response.py b/onesignal/model/create_segment_conflict_response.py index 2b7e680..cf509d5 100644 --- a/onesignal/model/create_segment_conflict_response.py +++ b/onesignal/model/create_segment_conflict_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_segment_success_response.py b/onesignal/model/create_segment_success_response.py index 1ca6d90..f4f8c60 100644 --- a/onesignal/model/create_segment_success_response.py +++ b/onesignal/model/create_segment_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_subscription_request_body.py b/onesignal/model/create_subscription_request_body.py index 1aba363..047ac77 100644 --- a/onesignal/model/create_subscription_request_body.py +++ b/onesignal/model/create_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_user_conflict_response.py b/onesignal/model/create_user_conflict_response.py index cde4b7a..f7d1cdc 100644 --- a/onesignal/model/create_user_conflict_response.py +++ b/onesignal/model/create_user_conflict_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_user_conflict_response_errors_inner.py b/onesignal/model/create_user_conflict_response_errors_inner.py index a7b210d..209f0dc 100644 --- a/onesignal/model/create_user_conflict_response_errors_inner.py +++ b/onesignal/model/create_user_conflict_response_errors_inner.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_user_conflict_response_errors_items_meta.py b/onesignal/model/create_user_conflict_response_errors_items_meta.py index b7fb621..83273bf 100644 --- a/onesignal/model/create_user_conflict_response_errors_items_meta.py +++ b/onesignal/model/create_user_conflict_response_errors_items_meta.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/delete_player_bad_request_response.py b/onesignal/model/delete_player_bad_request_response.py deleted file mode 100644 index 128d9b8..0000000 --- a/onesignal/model/delete_player_bad_request_response.py +++ /dev/null @@ -1,264 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from onesignal.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from onesignal.exceptions import ApiAttributeError - - - -class DeletePlayerBadRequestResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'erorrs': ([bool],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'erorrs': 'erorrs', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """DeletePlayerBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - erorrs ([bool]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """DeletePlayerBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - erorrs ([bool]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/onesignal/model/delete_player_not_found_response.py b/onesignal/model/delete_player_not_found_response.py index 4cf4d36..612aadf 100644 --- a/onesignal/model/delete_player_not_found_response.py +++ b/onesignal/model/delete_player_not_found_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/delete_player_success_response.py b/onesignal/model/delete_player_success_response.py index faac510..98d179c 100644 --- a/onesignal/model/delete_player_success_response.py +++ b/onesignal/model/delete_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/delete_segment_bad_request_response.py b/onesignal/model/delete_segment_bad_request_response.py deleted file mode 100644 index 1edc37e..0000000 --- a/onesignal/model/delete_segment_bad_request_response.py +++ /dev/null @@ -1,264 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from onesignal.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from onesignal.exceptions import ApiAttributeError - - - -class DeleteSegmentBadRequestResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'erorrs': ([str],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'erorrs': 'erorrs', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """DeleteSegmentBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - erorrs ([str]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """DeleteSegmentBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - erorrs ([str]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/onesignal/model/delete_segment_not_found_response.py b/onesignal/model/delete_segment_not_found_response.py index 6c31b0e..e23e368 100644 --- a/onesignal/model/delete_segment_not_found_response.py +++ b/onesignal/model/delete_segment_not_found_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/delete_segment_success_response.py b/onesignal/model/delete_segment_success_response.py index fddceb2..c9b81c2 100644 --- a/onesignal/model/delete_segment_success_response.py +++ b/onesignal/model/delete_segment_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/delivery_data.py b/onesignal/model/delivery_data.py index 38ecb9d..1198a29 100644 --- a/onesignal/model/delivery_data.py +++ b/onesignal/model/delivery_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/bad_request_error.py b/onesignal/model/export_events_success_response.py similarity index 96% rename from onesignal/model/bad_request_error.py rename to onesignal/model/export_events_success_response.py index 51be4af..119a31c 100644 --- a/onesignal/model/bad_request_error.py +++ b/onesignal/model/export_events_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class BadRequestError(ModelNormal): +class ExportEventsSuccessResponse(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,7 +82,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'errors': ([str],), # noqa: E501 + 'csv_file_url': (str,), # noqa: E501 } @cached_property @@ -91,7 +91,7 @@ def discriminator(): attribute_map = { - 'errors': 'errors', # noqa: E501 + 'csv_file_url': 'csv_file_url', # noqa: E501 } read_only_vars = { @@ -102,7 +102,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """BadRequestError - a model defined in OpenAPI + """ExportEventsSuccessResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -135,7 +135,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([str]): [optional] # noqa: E501 + csv_file_url (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -188,7 +188,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """BadRequestError - a model defined in OpenAPI + """ExportEventsSuccessResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -221,7 +221,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([str]): [optional] # noqa: E501 + csv_file_url (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/export_players_request_body.py b/onesignal/model/export_players_request_body.py index 6f150e5..1d9fd78 100644 --- a/onesignal/model/export_players_request_body.py +++ b/onesignal/model/export_players_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/export_players_success_response.py b/onesignal/model/export_players_success_response.py index 1303116..2e80807 100644 --- a/onesignal/model/export_players_success_response.py +++ b/onesignal/model/export_players_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/filter.py b/onesignal/model/filter.py index 76b14d4..3754648 100644 --- a/onesignal/model/filter.py +++ b/onesignal/model/filter.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/filter_expressions.py b/onesignal/model/filter_expressions.py index 390fe0b..23c4d51 100644 --- a/onesignal/model/filter_expressions.py +++ b/onesignal/model/filter_expressions.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/filter_notification_target.py b/onesignal/model/filter_notification_target.py deleted file mode 100644 index 5fc5f04..0000000 --- a/onesignal/model/filter_notification_target.py +++ /dev/null @@ -1,308 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from onesignal.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from onesignal.exceptions import ApiAttributeError - - - -class FilterNotificationTarget(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'last_session': (str,), # noqa: E501 - 'first_session': (str,), # noqa: E501 - 'session_count': (str,), # noqa: E501 - 'session_time': (str,), # noqa: E501 - 'amount_spent': (str,), # noqa: E501 - 'bought_sku': (str,), # noqa: E501 - 'tag': (str,), # noqa: E501 - 'language': (str,), # noqa: E501 - 'app_version': (str,), # noqa: E501 - 'location': (str,), # noqa: E501 - 'email': (str,), # noqa: E501 - 'country': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'last_session': 'last_session', # noqa: E501 - 'first_session': 'first_session', # noqa: E501 - 'session_count': 'session_count', # noqa: E501 - 'session_time': 'session_time', # noqa: E501 - 'amount_spent': 'amount_spent', # noqa: E501 - 'bought_sku': 'bought_sku', # noqa: E501 - 'tag': 'tag', # noqa: E501 - 'language': 'language', # noqa: E501 - 'app_version': 'app_version', # noqa: E501 - 'location': 'location', # noqa: E501 - 'email': 'email', # noqa: E501 - 'country': 'country', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """FilterNotificationTarget - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - last_session (str): relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" . [optional] # noqa: E501 - first_session (str): relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" . [optional] # noqa: E501 - session_count (str): relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" . [optional] # noqa: E501 - session_time (str): relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" . [optional] # noqa: E501 - amount_spent (str): relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" . [optional] # noqa: E501 - bought_sku (str): relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" . [optional] # noqa: E501 - tag (str): relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters . [optional] # noqa: E501 - language (str): relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. . [optional] # noqa: E501 - app_version (str): relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" . [optional] # noqa: E501 - location (str): radius = in meters lat = latitude long = longitude . [optional] # noqa: E501 - email (str): value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter . [optional] # noqa: E501 - country (str): relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" . [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """FilterNotificationTarget - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - last_session (str): relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" . [optional] # noqa: E501 - first_session (str): relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" . [optional] # noqa: E501 - session_count (str): relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" . [optional] # noqa: E501 - session_time (str): relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" . [optional] # noqa: E501 - amount_spent (str): relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" . [optional] # noqa: E501 - bought_sku (str): relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" . [optional] # noqa: E501 - tag (str): relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters . [optional] # noqa: E501 - language (str): relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. . [optional] # noqa: E501 - app_version (str): relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" . [optional] # noqa: E501 - location (str): radius = in meters lat = latitude long = longitude . [optional] # noqa: E501 - email (str): value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter . [optional] # noqa: E501 - country (str): relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" . [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/onesignal/model/create_notification_bad_request_response.py b/onesignal/model/generic_error.py similarity index 94% rename from onesignal/model/create_notification_bad_request_response.py rename to onesignal/model/generic_error.py index 69d8cf3..47a821e 100644 --- a/onesignal/model/create_notification_bad_request_response.py +++ b/onesignal/model/generic_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -30,8 +30,12 @@ from onesignal.exceptions import ApiAttributeError +def lazy_import(): + from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner + globals()['GenericErrorErrorsInner'] = GenericErrorErrorsInner -class CreateNotificationBadRequestResponse(ModelNormal): + +class GenericError(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -67,6 +71,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -81,8 +86,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'errors': ([str],), # noqa: E501 + 'errors': ([GenericErrorErrorsInner],), # noqa: E501 } @cached_property @@ -102,7 +108,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CreateNotificationBadRequestResponse - a model defined in OpenAPI + """GenericError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -135,7 +141,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([str]): [optional] # noqa: E501 + errors ([GenericErrorErrorsInner]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -188,7 +194,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CreateNotificationBadRequestResponse - a model defined in OpenAPI + """GenericError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -221,7 +227,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - errors ([str]): [optional] # noqa: E501 + errors ([GenericErrorErrorsInner]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/identify_user_conflict_response_errors_inner.py b/onesignal/model/generic_error_errors_inner.py similarity index 97% rename from onesignal/model/identify_user_conflict_response_errors_inner.py rename to onesignal/model/generic_error_errors_inner.py index 0492aea..2e78ca6 100644 --- a/onesignal/model/identify_user_conflict_response_errors_inner.py +++ b/onesignal/model/generic_error_errors_inner.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class IdentifyUserConflictResponseErrorsInner(ModelNormal): +class GenericErrorErrorsInner(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -104,7 +104,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """IdentifyUserConflictResponseErrorsInner - a model defined in OpenAPI + """GenericErrorErrorsInner - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """IdentifyUserConflictResponseErrorsInner - a model defined in OpenAPI + """GenericErrorErrorsInner - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/onesignal/model/get_notification_request_body.py b/onesignal/model/get_notification_request_body.py index ee2b43d..b805322 100644 --- a/onesignal/model/get_notification_request_body.py +++ b/onesignal/model/get_notification_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/identify_user_conflict_response.py b/onesignal/model/identify_user_conflict_response.py deleted file mode 100644 index d7c12f1..0000000 --- a/onesignal/model/identify_user_conflict_response.py +++ /dev/null @@ -1,270 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.2.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from onesignal.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from onesignal.exceptions import ApiAttributeError - - -def lazy_import(): - from onesignal.model.identify_user_conflict_response_errors_inner import IdentifyUserConflictResponseErrorsInner - globals()['IdentifyUserConflictResponseErrorsInner'] = IdentifyUserConflictResponseErrorsInner - - -class IdentifyUserConflictResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'errors': ([IdentifyUserConflictResponseErrorsInner],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'errors': 'errors', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """IdentifyUserConflictResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - errors ([IdentifyUserConflictResponseErrorsInner]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """IdentifyUserConflictResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - errors ([IdentifyUserConflictResponseErrorsInner]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/onesignal/model/identity_object.py b/onesignal/model/identity_object.py index df925da..5578ae9 100644 --- a/onesignal/model/identity_object.py +++ b/onesignal/model/identity_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/inline_response200.py b/onesignal/model/inline_response200.py index 375b79a..41a8a98 100644 --- a/onesignal/model/inline_response200.py +++ b/onesignal/model/inline_response200.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/inline_response2003.py b/onesignal/model/inline_response2003.py index 0a88d65..0125570 100644 --- a/onesignal/model/inline_response2003.py +++ b/onesignal/model/inline_response2003.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/inline_response201.py b/onesignal/model/inline_response201.py index 433e9c3..d85283e 100644 --- a/onesignal/model/inline_response201.py +++ b/onesignal/model/inline_response201.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/inline_response202.py b/onesignal/model/inline_response202.py index 22d27cf..f7a842b 100644 --- a/onesignal/model/inline_response202.py +++ b/onesignal/model/inline_response202.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/invalid_identifier_error.py b/onesignal/model/invalid_identifier_error.py index 5824aa3..06b3f8e 100644 --- a/onesignal/model/invalid_identifier_error.py +++ b/onesignal/model/invalid_identifier_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/no_subscribers_error.py b/onesignal/model/no_subscribers_error.py index 055fe9e..babc72c 100644 --- a/onesignal/model/no_subscribers_error.py +++ b/onesignal/model/no_subscribers_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification.py b/onesignal/model/notification.py index 22e4949..11038fd 100644 --- a/onesignal/model/notification.py +++ b/onesignal/model/notification.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -209,9 +209,12 @@ def openapi_types(): 'email_body': (str,), # noqa: E501 'email_from_name': (str, none_type,), # noqa: E501 'email_from_address': (str, none_type,), # noqa: E501 + 'email_preheader': (str, none_type,), # noqa: E501 + 'include_unsubscribed': (bool,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([Filter], none_type,), # noqa: E501 + 'custom_data': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'send_after': (datetime, none_type,), # noqa: E501 } @@ -321,9 +324,12 @@ def discriminator(): 'email_body': 'email_body', # noqa: E501 'email_from_name': 'email_from_name', # noqa: E501 'email_from_address': 'email_from_address', # noqa: E501 + 'email_preheader': 'email_preheader', # noqa: E501 + 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 + 'custom_data': 'custom_data', # noqa: E501 'send_after': 'send_after', # noqa: E501 } @@ -468,9 +474,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 send_after (datetime, none_type): Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. . [optional] # noqa: E501 """ @@ -675,9 +684,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 send_after (datetime, none_type): Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. . [optional] # noqa: E501 """ diff --git a/onesignal/model/notification200_errors.py b/onesignal/model/notification200_errors.py index 425799b..4d6273a 100644 --- a/onesignal/model/notification200_errors.py +++ b/onesignal/model/notification200_errors.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification_all_of.py b/onesignal/model/notification_all_of.py index 029e1eb..1416b5d 100644 --- a/onesignal/model/notification_all_of.py +++ b/onesignal/model/notification_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification_history_bad_request_response.py b/onesignal/model/notification_history_bad_request_response.py deleted file mode 100644 index 2da6c7b..0000000 --- a/onesignal/model/notification_history_bad_request_response.py +++ /dev/null @@ -1,268 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from onesignal.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from onesignal.exceptions import ApiAttributeError - - - -class NotificationHistoryBadRequestResponse(ModelNormal): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'success': (str,), # noqa: E501 - 'errors': ([str],), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'success': 'success', # noqa: E501 - 'errors': 'errors', # noqa: E501 - } - - read_only_vars = { - } - - _composed_schemas = {} - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """NotificationHistoryBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - success (str): [optional] # noqa: E501 - errors ([str]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', True) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """NotificationHistoryBadRequestResponse - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - success (str): [optional] # noqa: E501 - errors ([str]): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - for arg in args: - if isinstance(arg, dict): - kwargs.update(arg) - else: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") diff --git a/onesignal/model/notification_history_success_response.py b/onesignal/model/notification_history_success_response.py index db2be34..022372d 100644 --- a/onesignal/model/notification_history_success_response.py +++ b/onesignal/model/notification_history_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification_slice.py b/onesignal/model/notification_slice.py index 154d5d1..22189c5 100644 --- a/onesignal/model/notification_slice.py +++ b/onesignal/model/notification_slice.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification_target.py b/onesignal/model/notification_target.py index eeb58a0..fe23464 100644 --- a/onesignal/model/notification_target.py +++ b/onesignal/model/notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/notification_with_meta.py b/onesignal/model/notification_with_meta.py index 841e973..8707d43 100644 --- a/onesignal/model/notification_with_meta.py +++ b/onesignal/model/notification_with_meta.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -217,9 +217,12 @@ def openapi_types(): 'email_body': (str,), # noqa: E501 'email_from_name': (str, none_type,), # noqa: E501 'email_from_address': (str, none_type,), # noqa: E501 + 'email_preheader': (str, none_type,), # noqa: E501 + 'include_unsubscribed': (bool,), # noqa: E501 'sms_from': (str, none_type,), # noqa: E501 'sms_media_urls': ([str], none_type,), # noqa: E501 'filters': ([Filter], none_type,), # noqa: E501 + 'custom_data': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'successful': (int,), # noqa: E501 'failed': (int,), # noqa: E501 'errored': (int,), # noqa: E501 @@ -339,9 +342,12 @@ def discriminator(): 'email_body': 'email_body', # noqa: E501 'email_from_name': 'email_from_name', # noqa: E501 'email_from_address': 'email_from_address', # noqa: E501 + 'email_preheader': 'email_preheader', # noqa: E501 + 'include_unsubscribed': 'include_unsubscribed', # noqa: E501 'sms_from': 'sms_from', # noqa: E501 'sms_media_urls': 'sms_media_urls', # noqa: E501 'filters': 'filters', # noqa: E501 + 'custom_data': 'custom_data', # noqa: E501 'successful': 'successful', # noqa: E501 'failed': 'failed', # noqa: E501 'errored': 'errored', # noqa: E501 @@ -496,9 +502,12 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 successful (int): Number of notifications that were successfully delivered.. [optional] # noqa: E501 failed (int): Number of notifications that could not be delivered due to those devices being unsubscribed.. [optional] # noqa: E501 errored (int): Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard.. [optional] # noqa: E501 @@ -713,9 +722,12 @@ def __init__(self, *args, **kwargs): # noqa: E501 email_body (str): Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. . [optional] # noqa: E501 email_from_name (str, none_type): Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 email_from_address (str, none_type): Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. . [optional] # noqa: E501 + email_preheader (str, none_type): Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. . [optional] # noqa: E501 + include_unsubscribed (bool): Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared.. [optional] # noqa: E501 sms_from (str, none_type): Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. . [optional] # noqa: E501 sms_media_urls ([str], none_type): Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. . [optional] # noqa: E501 filters ([Filter], none_type): [optional] # noqa: E501 + custom_data ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} . [optional] # noqa: E501 successful (int): Number of notifications that were successfully delivered.. [optional] # noqa: E501 failed (int): Number of notifications that could not be delivered due to those devices being unsubscribed.. [optional] # noqa: E501 errored (int): Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard.. [optional] # noqa: E501 diff --git a/onesignal/model/notification_with_meta_all_of.py b/onesignal/model/notification_with_meta_all_of.py index ca9a260..dd75740 100644 --- a/onesignal/model/notification_with_meta_all_of.py +++ b/onesignal/model/notification_with_meta_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/operator.py b/onesignal/model/operator.py index 8e2c8d1..2320a9d 100644 --- a/onesignal/model/operator.py +++ b/onesignal/model/operator.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/outcome_data.py b/onesignal/model/outcome_data.py index b50d6f5..304d35b 100644 --- a/onesignal/model/outcome_data.py +++ b/onesignal/model/outcome_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/outcomes_data.py b/onesignal/model/outcomes_data.py index fdf25ae..9c642a9 100644 --- a/onesignal/model/outcomes_data.py +++ b/onesignal/model/outcomes_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/platform_delivery_data.py b/onesignal/model/platform_delivery_data.py index 3d740b0..455f07e 100644 --- a/onesignal/model/platform_delivery_data.py +++ b/onesignal/model/platform_delivery_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/platform_delivery_data_email_all_of.py b/onesignal/model/platform_delivery_data_email_all_of.py index d9d1ad1..3fc770a 100644 --- a/onesignal/model/platform_delivery_data_email_all_of.py +++ b/onesignal/model/platform_delivery_data_email_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/platform_delivery_data_sms_all_of.py b/onesignal/model/platform_delivery_data_sms_all_of.py index 017977d..717fd64 100644 --- a/onesignal/model/platform_delivery_data_sms_all_of.py +++ b/onesignal/model/platform_delivery_data_sms_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/player.py b/onesignal/model/player.py index 45aef2b..df02675 100644 --- a/onesignal/model/player.py +++ b/onesignal/model/player.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/player_notification_target.py b/onesignal/model/player_notification_target.py index 71c6c52..722becd 100644 --- a/onesignal/model/player_notification_target.py +++ b/onesignal/model/player_notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/player_notification_target_include_aliases.py b/onesignal/model/player_notification_target_include_aliases.py index e16b617..ebbb8ff 100644 --- a/onesignal/model/player_notification_target_include_aliases.py +++ b/onesignal/model/player_notification_target_include_aliases.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/player_slice.py b/onesignal/model/player_slice.py index bedd903..e63d0c4 100644 --- a/onesignal/model/player_slice.py +++ b/onesignal/model/player_slice.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/players.py b/onesignal/model/players.py index eaa9c1a..4084db5 100644 --- a/onesignal/model/players.py +++ b/onesignal/model/players.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/properties_deltas.py b/onesignal/model/properties_deltas.py index 46a62ca..0085f09 100644 --- a/onesignal/model/properties_deltas.py +++ b/onesignal/model/properties_deltas.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/properties_object.py b/onesignal/model/properties_object.py index e30aa86..0ffd0c4 100644 --- a/onesignal/model/properties_object.py +++ b/onesignal/model/properties_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/purchase.py b/onesignal/model/purchase.py index c85600a..b6df478 100644 --- a/onesignal/model/purchase.py +++ b/onesignal/model/purchase.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/create_segment_bad_request_response.py b/onesignal/model/rate_limiter_error.py similarity index 94% rename from onesignal/model/create_segment_bad_request_response.py rename to onesignal/model/rate_limiter_error.py index 211c121..c7371ae 100644 --- a/onesignal/model/create_segment_bad_request_response.py +++ b/onesignal/model/rate_limiter_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -30,8 +30,12 @@ from onesignal.exceptions import ApiAttributeError +def lazy_import(): + from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner + globals()['GenericErrorErrorsInner'] = GenericErrorErrorsInner -class CreateSegmentBadRequestResponse(ModelNormal): + +class RateLimiterError(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -67,6 +71,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -81,9 +86,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'success': (bool,), # noqa: E501 - 'errors': ([str],), # noqa: E501 + 'errors': ([GenericErrorErrorsInner],), # noqa: E501 } @cached_property @@ -92,7 +97,6 @@ def discriminator(): attribute_map = { - 'success': 'success', # noqa: E501 'errors': 'errors', # noqa: E501 } @@ -104,7 +108,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """CreateSegmentBadRequestResponse - a model defined in OpenAPI + """RateLimiterError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -137,8 +141,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - success (bool): [optional] # noqa: E501 - errors ([str]): [optional] # noqa: E501 + errors ([GenericErrorErrorsInner]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -191,7 +194,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """CreateSegmentBadRequestResponse - a model defined in OpenAPI + """RateLimiterError - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -224,8 +227,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - success (bool): [optional] # noqa: E501 - errors ([str]): [optional] # noqa: E501 + errors ([GenericErrorErrorsInner]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/onesignal/model/segment.py b/onesignal/model/segment.py index c58c858..e5f53de 100644 --- a/onesignal/model/segment.py +++ b/onesignal/model/segment.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/segment_notification_target.py b/onesignal/model/segment_notification_target.py index 3088759..d14fdc9 100644 --- a/onesignal/model/segment_notification_target.py +++ b/onesignal/model/segment_notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/string_map.py b/onesignal/model/string_map.py index 165d31f..f0039f0 100644 --- a/onesignal/model/string_map.py +++ b/onesignal/model/string_map.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/subscription_object.py b/onesignal/model/subscription_object.py index b6a96df..9d3d5a8 100644 --- a/onesignal/model/subscription_object.py +++ b/onesignal/model/subscription_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/transfer_subscription_request_body.py b/onesignal/model/transfer_subscription_request_body.py index 71390e4..22635f9 100644 --- a/onesignal/model/transfer_subscription_request_body.py +++ b/onesignal/model/transfer_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_live_activity_request.py b/onesignal/model/update_live_activity_request.py index e5db3ff..c519f7b 100644 --- a/onesignal/model/update_live_activity_request.py +++ b/onesignal/model/update_live_activity_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_live_activity_success_response.py b/onesignal/model/update_live_activity_success_response.py index 31d5386..b6020e6 100644 --- a/onesignal/model/update_live_activity_success_response.py +++ b/onesignal/model/update_live_activity_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_player_success_response.py b/onesignal/model/update_player_success_response.py index ba31bb9..06affa1 100644 --- a/onesignal/model/update_player_success_response.py +++ b/onesignal/model/update_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_player_tags_request_body.py b/onesignal/model/update_player_tags_request_body.py index bfb8f6e..4598e30 100644 --- a/onesignal/model/update_player_tags_request_body.py +++ b/onesignal/model/update_player_tags_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_player_tags_success_response.py b/onesignal/model/update_player_tags_success_response.py index 7fc21da..4606fb2 100644 --- a/onesignal/model/update_player_tags_success_response.py +++ b/onesignal/model/update_player_tags_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_subscription_request_body.py b/onesignal/model/update_subscription_request_body.py index 6c3d881..a3aba99 100644 --- a/onesignal/model/update_subscription_request_body.py +++ b/onesignal/model/update_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/update_user_request.py b/onesignal/model/update_user_request.py index ae039a8..114a785 100644 --- a/onesignal/model/update_user_request.py +++ b/onesignal/model/update_user_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/user.py b/onesignal/model/user.py index e3e61f9..80ad429 100644 --- a/onesignal/model/user.py +++ b/onesignal/model/user.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/user_identity_request_body.py b/onesignal/model/user_identity_request_body.py index aa07150..c6b8dbe 100644 --- a/onesignal/model/user_identity_request_body.py +++ b/onesignal/model/user_identity_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/user_identity_response.py b/onesignal/model/user_identity_response.py index e9f6000..0cbaab7 100644 --- a/onesignal/model/user_identity_response.py +++ b/onesignal/model/user_identity_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model/user_subscription_options.py b/onesignal/model/user_subscription_options.py index 745fd97..a825467 100644 --- a/onesignal/model/user_subscription_options.py +++ b/onesignal/model/user_subscription_options.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/model_utils.py b/onesignal/model_utils.py index 2e2ae2f..e41ad27 100644 --- a/onesignal/model_utils.py +++ b/onesignal/model_utils.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/onesignal/models/__init__.py b/onesignal/models/__init__.py index eaea7e9..fd2bdf1 100644 --- a/onesignal/models/__init__.py +++ b/onesignal/models/__init__.py @@ -11,7 +11,6 @@ from onesignal.model.app import App from onesignal.model.apps import Apps -from onesignal.model.bad_request_error import BadRequestError from onesignal.model.basic_notification import BasicNotification from onesignal.model.basic_notification_all_of import BasicNotificationAllOf from onesignal.model.basic_notification_all_of_android_background_layout import BasicNotificationAllOfAndroidBackgroundLayout @@ -32,13 +31,14 @@ from onesignal.model.delete_segment_not_found_response import DeleteSegmentNotFoundResponse from onesignal.model.delete_segment_success_response import DeleteSegmentSuccessResponse from onesignal.model.delivery_data import DeliveryData +from onesignal.model.export_events_success_response import ExportEventsSuccessResponse from onesignal.model.export_players_request_body import ExportPlayersRequestBody from onesignal.model.export_players_success_response import ExportPlayersSuccessResponse from onesignal.model.filter import Filter from onesignal.model.filter_expressions import FilterExpressions +from onesignal.model.generic_error import GenericError +from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner from onesignal.model.get_notification_request_body import GetNotificationRequestBody -from onesignal.model.identify_user_conflict_response import IdentifyUserConflictResponse -from onesignal.model.identify_user_conflict_response_errors_inner import IdentifyUserConflictResponseErrorsInner from onesignal.model.identity_object import IdentityObject from onesignal.model.inline_response200 import InlineResponse200 from onesignal.model.inline_response2003 import InlineResponse2003 @@ -68,6 +68,7 @@ from onesignal.model.properties_deltas import PropertiesDeltas from onesignal.model.properties_object import PropertiesObject from onesignal.model.purchase import Purchase +from onesignal.model.rate_limiter_error import RateLimiterError from onesignal.model.segment import Segment from onesignal.model.segment_notification_target import SegmentNotificationTarget from onesignal.model.string_map import StringMap diff --git a/onesignal/rest.py b/onesignal/rest.py index d4cfe00..8f2ff01 100644 --- a/onesignal/rest.py +++ b/onesignal/rest.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index c37e2d2..ae1825d 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "onesignal_python_api" -VERSION = "2.0.0" +VERSION = "2.0.2" # To install the library, run the following # # python setup.py install diff --git a/test/test_app.py b/test/test_app.py index 788b31f..d8c08d4 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_apps.py b/test/test_apps.py index 2d6e4a5..ea0695d 100644 --- a/test/test_apps.py +++ b/test/test_apps.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_basic_notification.py b/test/test_basic_notification.py index f18501b..ec7c73b 100644 --- a/test/test_basic_notification.py +++ b/test/test_basic_notification.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_basic_notification_all_of.py b/test/test_basic_notification_all_of.py index dc49052..669380b 100644 --- a/test/test_basic_notification_all_of.py +++ b/test/test_basic_notification_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_basic_notification_all_of_android_background_layout.py b/test/test_basic_notification_all_of_android_background_layout.py index 43c8b09..6e98e3d 100644 --- a/test/test_basic_notification_all_of_android_background_layout.py +++ b/test/test_basic_notification_all_of_android_background_layout.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_begin_live_activity_request.py b/test/test_begin_live_activity_request.py index af129d2..ea790a2 100644 --- a/test/test_begin_live_activity_request.py +++ b/test/test_begin_live_activity_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_button.py b/test/test_button.py index 1a45607..dea8274 100644 --- a/test/test_button.py +++ b/test/test_button.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_buttons.py b/test/test_buttons.py index 6afa6b8..4bdeb23 100644 --- a/test/test_buttons.py +++ b/test/test_buttons.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_cancel_notification_success_response.py b/test/test_cancel_notification_success_response.py index 755b9a5..5029790 100644 --- a/test/test_cancel_notification_success_response.py +++ b/test/test_cancel_notification_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_notification_success_response.py b/test/test_create_notification_success_response.py index 9ff6ad6..8cd5f66 100644 --- a/test/test_create_notification_success_response.py +++ b/test/test_create_notification_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_player_success_response.py b/test/test_create_player_success_response.py index 38eaf84..0dde5b9 100644 --- a/test/test_create_player_success_response.py +++ b/test/test_create_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_segment_bad_request_response.py b/test/test_create_segment_bad_request_response.py deleted file mode 100644 index 3da29cd..0000000 --- a/test/test_create_segment_bad_request_response.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -import onesignal -from onesignal.model.create_segment_bad_request_response import CreateSegmentBadRequestResponse - - -class TestCreateSegmentBadRequestResponse(unittest.TestCase): - """CreateSegmentBadRequestResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateSegmentBadRequestResponse(self): - """Test CreateSegmentBadRequestResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = CreateSegmentBadRequestResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_create_segment_conflict_response.py b/test/test_create_segment_conflict_response.py index a6a669c..e94be7a 100644 --- a/test/test_create_segment_conflict_response.py +++ b/test/test_create_segment_conflict_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_segment_success_response.py b/test/test_create_segment_success_response.py index 833f278..79f9c8b 100644 --- a/test/test_create_segment_success_response.py +++ b/test/test_create_segment_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_subscription_request_body.py b/test/test_create_subscription_request_body.py index 9e616b6..2563e31 100644 --- a/test/test_create_subscription_request_body.py +++ b/test/test_create_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_user_conflict_response.py b/test/test_create_user_conflict_response.py index f2ce56b..9fb80e0 100644 --- a/test/test_create_user_conflict_response.py +++ b/test/test_create_user_conflict_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_user_conflict_response_errors_inner.py b/test/test_create_user_conflict_response_errors_inner.py index b5dbdb2..427e4df 100644 --- a/test/test_create_user_conflict_response_errors_inner.py +++ b/test/test_create_user_conflict_response_errors_inner.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_user_conflict_response_errors_items_meta.py b/test/test_create_user_conflict_response_errors_items_meta.py index 543a1ea..6cb0051 100644 --- a/test/test_create_user_conflict_response_errors_items_meta.py +++ b/test/test_create_user_conflict_response_errors_items_meta.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_default_api.py b/test/test_default_api.py index 8c6c429..3ccef1b 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -117,10 +117,17 @@ def test_end_live_activity(self): """ pass + def test_export_events(self): + """Test case for export_events + + Export CSV of Events # noqa: E501 + """ + pass + def test_export_players(self): """Test case for export_players - CSV export # noqa: E501 + Export CSV of Players # noqa: E501 """ pass diff --git a/test/test_delete_player_bad_request_response.py b/test/test_delete_player_bad_request_response.py deleted file mode 100644 index 07f9528..0000000 --- a/test/test_delete_player_bad_request_response.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -import onesignal -from onesignal.model.delete_player_bad_request_response import DeletePlayerBadRequestResponse - - -class TestDeletePlayerBadRequestResponse(unittest.TestCase): - """DeletePlayerBadRequestResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeletePlayerBadRequestResponse(self): - """Test DeletePlayerBadRequestResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = DeletePlayerBadRequestResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_delete_player_not_found_response.py b/test/test_delete_player_not_found_response.py index 689b9ab..13ed7ae 100644 --- a/test/test_delete_player_not_found_response.py +++ b/test/test_delete_player_not_found_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_player_success_response.py b/test/test_delete_player_success_response.py index 96f0573..ea6084d 100644 --- a/test/test_delete_player_success_response.py +++ b/test/test_delete_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_segment_not_found_response.py b/test/test_delete_segment_not_found_response.py index 6e89957..4cbd6b1 100644 --- a/test/test_delete_segment_not_found_response.py +++ b/test/test_delete_segment_not_found_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_segment_success_response.py b/test/test_delete_segment_success_response.py index 9181787..b49caea 100644 --- a/test/test_delete_segment_success_response.py +++ b/test/test_delete_segment_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delivery_data.py b/test/test_delivery_data.py index f0068b2..79bd2a8 100644 --- a/test/test_delivery_data.py +++ b/test/test_delivery_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_filter_notification_target.py b/test/test_export_events_success_response.py similarity index 56% rename from test/test_filter_notification_target.py rename to test/test_export_events_success_response.py index a31d93c..46a371e 100644 --- a/test/test_filter_notification_target.py +++ b/test/test_export_events_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import onesignal -from onesignal.model.filter_notification_target import FilterNotificationTarget +from onesignal.model.export_events_success_response import ExportEventsSuccessResponse -class TestFilterNotificationTarget(unittest.TestCase): - """FilterNotificationTarget unit test stubs""" +class TestExportEventsSuccessResponse(unittest.TestCase): + """ExportEventsSuccessResponse unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testFilterNotificationTarget(self): - """Test FilterNotificationTarget""" + def testExportEventsSuccessResponse(self): + """Test ExportEventsSuccessResponse""" # FIXME: construct object with mandatory attributes with example values - # model = FilterNotificationTarget() # noqa: E501 + # model = ExportEventsSuccessResponse() # noqa: E501 pass diff --git a/test/test_export_players_request_body.py b/test/test_export_players_request_body.py index d06c813..151a699 100644 --- a/test/test_export_players_request_body.py +++ b/test/test_export_players_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_export_players_success_response.py b/test/test_export_players_success_response.py index 5c727ab..4345b61 100644 --- a/test/test_export_players_success_response.py +++ b/test/test_export_players_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_filter.py b/test/test_filter.py index 2beef8b..c73f0a6 100644 --- a/test/test_filter.py +++ b/test/test_filter.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_filter_expressions.py b/test/test_filter_expressions.py index 4bd8ee9..29cb935 100644 --- a/test/test_filter_expressions.py +++ b/test/test_filter_expressions.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_delete_segment_bad_request_response.py b/test/test_generic_error.py similarity index 54% rename from test/test_delete_segment_bad_request_response.py rename to test/test_generic_error.py index 87ba920..6247b59 100644 --- a/test/test_delete_segment_bad_request_response.py +++ b/test/test_generic_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -13,11 +13,13 @@ import unittest import onesignal -from onesignal.model.delete_segment_bad_request_response import DeleteSegmentBadRequestResponse +from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner +globals()['GenericErrorErrorsInner'] = GenericErrorErrorsInner +from onesignal.model.generic_error import GenericError -class TestDeleteSegmentBadRequestResponse(unittest.TestCase): - """DeleteSegmentBadRequestResponse unit test stubs""" +class TestGenericError(unittest.TestCase): + """GenericError unit test stubs""" def setUp(self): pass @@ -25,10 +27,10 @@ def setUp(self): def tearDown(self): pass - def testDeleteSegmentBadRequestResponse(self): - """Test DeleteSegmentBadRequestResponse""" + def testGenericError(self): + """Test GenericError""" # FIXME: construct object with mandatory attributes with example values - # model = DeleteSegmentBadRequestResponse() # noqa: E501 + # model = GenericError() # noqa: E501 pass diff --git a/test/test_bad_request_error.py b/test/test_generic_error_errors_inner.py similarity index 58% rename from test/test_bad_request_error.py rename to test/test_generic_error_errors_inner.py index 3b48b70..b7e3f3b 100644 --- a/test/test_bad_request_error.py +++ b/test/test_generic_error_errors_inner.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import onesignal -from onesignal.model.bad_request_error import BadRequestError +from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner -class TestBadRequestError(unittest.TestCase): - """BadRequestError unit test stubs""" +class TestGenericErrorErrorsInner(unittest.TestCase): + """GenericErrorErrorsInner unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testBadRequestError(self): - """Test BadRequestError""" + def testGenericErrorErrorsInner(self): + """Test GenericErrorErrorsInner""" # FIXME: construct object with mandatory attributes with example values - # model = BadRequestError() # noqa: E501 + # model = GenericErrorErrorsInner() # noqa: E501 pass diff --git a/test/test_get_notification_request_body.py b/test/test_get_notification_request_body.py index bb24303..bb39e94 100644 --- a/test/test_get_notification_request_body.py +++ b/test/test_get_notification_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_identify_user_conflict_response.py b/test/test_identify_user_conflict_response.py deleted file mode 100644 index dac232a..0000000 --- a/test/test_identify_user_conflict_response.py +++ /dev/null @@ -1,38 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.2.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -import onesignal -from onesignal.model.identify_user_conflict_response_errors_inner import IdentifyUserConflictResponseErrorsInner -globals()['IdentifyUserConflictResponseErrorsInner'] = IdentifyUserConflictResponseErrorsInner -from onesignal.model.identify_user_conflict_response import IdentifyUserConflictResponse - - -class TestIdentifyUserConflictResponse(unittest.TestCase): - """IdentifyUserConflictResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentifyUserConflictResponse(self): - """Test IdentifyUserConflictResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = IdentifyUserConflictResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_identify_user_conflict_response_errors_inner.py b/test/test_identify_user_conflict_response_errors_inner.py deleted file mode 100644 index 6567808..0000000 --- a/test/test_identify_user_conflict_response_errors_inner.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.2.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -import onesignal -from onesignal.model.identify_user_conflict_response_errors_inner import IdentifyUserConflictResponseErrorsInner - - -class TestIdentifyUserConflictResponseErrorsInner(unittest.TestCase): - """IdentifyUserConflictResponseErrorsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentifyUserConflictResponseErrorsInner(self): - """Test IdentifyUserConflictResponseErrorsInner""" - # FIXME: construct object with mandatory attributes with example values - # model = IdentifyUserConflictResponseErrorsInner() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_identity_object.py b/test/test_identity_object.py index f30ef5b..98bd85a 100644 --- a/test/test_identity_object.py +++ b/test/test_identity_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py index 100ed70..0fc8365 100644 --- a/test/test_inline_response200.py +++ b/test/test_inline_response200.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_inline_response2003.py b/test/test_inline_response2003.py index 0e40a43..c1fe8ba 100644 --- a/test/test_inline_response2003.py +++ b/test/test_inline_response2003.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_inline_response201.py b/test/test_inline_response201.py index 4ca2fd2..bb80956 100644 --- a/test/test_inline_response201.py +++ b/test/test_inline_response201.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_inline_response202.py b/test/test_inline_response202.py index 410fc02..decb0ba 100644 --- a/test/test_inline_response202.py +++ b/test/test_inline_response202.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_invalid_identifier_error.py b/test/test_invalid_identifier_error.py index 83ff729..1692642 100644 --- a/test/test_invalid_identifier_error.py +++ b/test/test_invalid_identifier_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_no_subscribers_error.py b/test/test_no_subscribers_error.py index f247d7f..2e05ab1 100644 --- a/test/test_no_subscribers_error.py +++ b/test/test_no_subscribers_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification.py b/test/test_notification.py index 46273bb..8cb9ebf 100644 --- a/test/test_notification.py +++ b/test/test_notification.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification200_errors.py b/test/test_notification200_errors.py index be4d2c2..7fce42a 100644 --- a/test/test_notification200_errors.py +++ b/test/test_notification200_errors.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_all_of.py b/test/test_notification_all_of.py index f12f5b0..d7c118e 100644 --- a/test/test_notification_all_of.py +++ b/test/test_notification_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_history_bad_request_response.py b/test/test_notification_history_bad_request_response.py deleted file mode 100644 index 4938215..0000000 --- a/test/test_notification_history_bad_request_response.py +++ /dev/null @@ -1,36 +0,0 @@ -""" - OneSignal - - A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - - The version of the OpenAPI document: 1.0.1 - Contact: devrel@onesignal.com - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -import onesignal -from onesignal.model.notification_history_bad_request_response import NotificationHistoryBadRequestResponse - - -class TestNotificationHistoryBadRequestResponse(unittest.TestCase): - """NotificationHistoryBadRequestResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNotificationHistoryBadRequestResponse(self): - """Test NotificationHistoryBadRequestResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = NotificationHistoryBadRequestResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_notification_history_success_response.py b/test/test_notification_history_success_response.py index 51b7fb5..c21c01a 100644 --- a/test/test_notification_history_success_response.py +++ b/test/test_notification_history_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_slice.py b/test/test_notification_slice.py index 37bc8f9..466685b 100644 --- a/test/test_notification_slice.py +++ b/test/test_notification_slice.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_target.py b/test/test_notification_target.py index c5e502e..a56f53f 100644 --- a/test/test_notification_target.py +++ b/test/test_notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_with_meta.py b/test/test_notification_with_meta.py index ca6ef2e..7f2e32b 100644 --- a/test/test_notification_with_meta.py +++ b/test/test_notification_with_meta.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_notification_with_meta_all_of.py b/test/test_notification_with_meta_all_of.py index 75d52da..8108693 100644 --- a/test/test_notification_with_meta_all_of.py +++ b/test/test_notification_with_meta_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_operator.py b/test/test_operator.py index ba82e63..2ec7e58 100644 --- a/test/test_operator.py +++ b/test/test_operator.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_outcome_data.py b/test/test_outcome_data.py index c2ea134..a5af525 100644 --- a/test/test_outcome_data.py +++ b/test/test_outcome_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_outcomes_data.py b/test/test_outcomes_data.py index ed05bfa..5c4682a 100644 --- a/test/test_outcomes_data.py +++ b/test/test_outcomes_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_platform_delivery_data.py b/test/test_platform_delivery_data.py index 8a9f515..519a139 100644 --- a/test/test_platform_delivery_data.py +++ b/test/test_platform_delivery_data.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_platform_delivery_data_email_all_of.py b/test/test_platform_delivery_data_email_all_of.py index bf53d46..50cef01 100644 --- a/test/test_platform_delivery_data_email_all_of.py +++ b/test/test_platform_delivery_data_email_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_platform_delivery_data_sms_all_of.py b/test/test_platform_delivery_data_sms_all_of.py index 7f900b2..80b852a 100644 --- a/test/test_platform_delivery_data_sms_all_of.py +++ b/test/test_platform_delivery_data_sms_all_of.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_player.py b/test/test_player.py index 00362a2..a53bd77 100644 --- a/test/test_player.py +++ b/test/test_player.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_player_notification_target.py b/test/test_player_notification_target.py index 7b4fdc3..1c6fe2d 100644 --- a/test/test_player_notification_target.py +++ b/test/test_player_notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_player_notification_target_include_aliases.py b/test/test_player_notification_target_include_aliases.py index 9fe10a8..2ac7be5 100644 --- a/test/test_player_notification_target_include_aliases.py +++ b/test/test_player_notification_target_include_aliases.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_player_slice.py b/test/test_player_slice.py index 4568c67..505acdc 100644 --- a/test/test_player_slice.py +++ b/test/test_player_slice.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_players.py b/test/test_players.py index a6372ab..1458a6d 100644 --- a/test/test_players.py +++ b/test/test_players.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_properties_deltas.py b/test/test_properties_deltas.py index fb24c31..dea4265 100644 --- a/test/test_properties_deltas.py +++ b/test/test_properties_deltas.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_properties_object.py b/test/test_properties_object.py index dfd66a0..a91384b 100644 --- a/test/test_properties_object.py +++ b/test/test_properties_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_purchase.py b/test/test_purchase.py index 5eacfdf..fa6db54 100644 --- a/test/test_purchase.py +++ b/test/test_purchase.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_create_notification_bad_request_response.py b/test/test_rate_limiter_error.py similarity index 52% rename from test/test_create_notification_bad_request_response.py rename to test/test_rate_limiter_error.py index 18220a0..7558742 100644 --- a/test/test_create_notification_bad_request_response.py +++ b/test/test_rate_limiter_error.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.0.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ @@ -13,11 +13,13 @@ import unittest import onesignal -from onesignal.model.create_notification_bad_request_response import CreateNotificationBadRequestResponse +from onesignal.model.generic_error_errors_inner import GenericErrorErrorsInner +globals()['GenericErrorErrorsInner'] = GenericErrorErrorsInner +from onesignal.model.rate_limiter_error import RateLimiterError -class TestCreateNotificationBadRequestResponse(unittest.TestCase): - """CreateNotificationBadRequestResponse unit test stubs""" +class TestRateLimiterError(unittest.TestCase): + """RateLimiterError unit test stubs""" def setUp(self): pass @@ -25,10 +27,10 @@ def setUp(self): def tearDown(self): pass - def testCreateNotificationBadRequestResponse(self): - """Test CreateNotificationBadRequestResponse""" + def testRateLimiterError(self): + """Test RateLimiterError""" # FIXME: construct object with mandatory attributes with example values - # model = CreateNotificationBadRequestResponse() # noqa: E501 + # model = RateLimiterError() # noqa: E501 pass diff --git a/test/test_segment.py b/test/test_segment.py index b74d279..da274dd 100644 --- a/test/test_segment.py +++ b/test/test_segment.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_segment_notification_target.py b/test/test_segment_notification_target.py index 99ab4cf..2391bc0 100644 --- a/test/test_segment_notification_target.py +++ b/test/test_segment_notification_target.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_string_map.py b/test/test_string_map.py index b388e03..3be89cf 100644 --- a/test/test_string_map.py +++ b/test/test_string_map.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_subscription_object.py b/test/test_subscription_object.py index 8db9b20..3d84614 100644 --- a/test/test_subscription_object.py +++ b/test/test_subscription_object.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_transfer_subscription_request_body.py b/test/test_transfer_subscription_request_body.py index 3ea4e27..6a2fb0a 100644 --- a/test/test_transfer_subscription_request_body.py +++ b/test/test_transfer_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_live_activity_request.py b/test/test_update_live_activity_request.py index 0ceea04..68c5412 100644 --- a/test/test_update_live_activity_request.py +++ b/test/test_update_live_activity_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_live_activity_success_response.py b/test/test_update_live_activity_success_response.py index 2660dd8..d9e4e99 100644 --- a/test/test_update_live_activity_success_response.py +++ b/test/test_update_live_activity_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_player_success_response.py b/test/test_update_player_success_response.py index db73cdc..83b3817 100644 --- a/test/test_update_player_success_response.py +++ b/test/test_update_player_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_player_tags_request_body.py b/test/test_update_player_tags_request_body.py index 4fb36c5..c9b4857 100644 --- a/test/test_update_player_tags_request_body.py +++ b/test/test_update_player_tags_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_player_tags_success_response.py b/test/test_update_player_tags_success_response.py index 7b12c02..9c16b2a 100644 --- a/test/test_update_player_tags_success_response.py +++ b/test/test_update_player_tags_success_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_subscription_request_body.py b/test/test_update_subscription_request_body.py index f0caad9..887ab72 100644 --- a/test/test_update_subscription_request_body.py +++ b/test/test_update_subscription_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_update_user_request.py b/test/test_update_user_request.py index 58ea4b9..6f53879 100644 --- a/test/test_update_user_request.py +++ b/test/test_update_user_request.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_user.py b/test/test_user.py index 90fd76f..2489847 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_user_identity_request_body.py b/test/test_user_identity_request_body.py index 90d3051..ed7e9ac 100644 --- a/test/test_user_identity_request_body.py +++ b/test/test_user_identity_request_body.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_user_identity_response.py b/test/test_user_identity_response.py index 9a446c2..2b7ea95 100644 --- a/test/test_user_identity_response.py +++ b/test/test_user_identity_response.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """ diff --git a/test/test_user_subscription_options.py b/test/test_user_subscription_options.py index 328bd7e..148ffe6 100644 --- a/test/test_user_subscription_options.py +++ b/test/test_user_subscription_options.py @@ -3,7 +3,7 @@ A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501 - The version of the OpenAPI document: 1.2.1 + The version of the OpenAPI document: 1.2.2 Contact: devrel@onesignal.com Generated by: https://openapi-generator.tech """