Skip to content

Commit 9d8da2c

Browse files
authored
Merge pull request #9 from OneSignal/api
Dependency Update
2 parents cc31874 + cea2e8d commit 9d8da2c

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

docs/ExportPlayersRequestBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**extra_fields** | **[str]** | Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256. | [optional]
88
**last_active_since** | **str** | Export all devices with a last_active timestamp greater than this time. Unixtime in seconds. | [optional]
9-
**segment_name** | **str** | Export al ldevices belonging to the segment. | [optional]
9+
**segment_name** | **str** | Export all devices belonging to the segment. | [optional]
1010
**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]
1111

1212
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Player.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | **str** | The device's OneSignal ID | [readonly]
87
**device_type** | **int** | Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS |
8+
**id** | **str** | The device's OneSignal ID | [optional] [readonly]
99
**invalid_identifier** | **bool** | If true, this is the equivalent of a user being Unsubscribed | [optional] [readonly]
1010
**app_id** | **str** | | [optional]
1111
**external_user_id** | **str, none_type** | a custom user ID | [optional]

onesignal/model/export_players_request_body.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
141141
_visited_composed_classes = (Animal,)
142142
extra_fields ([str]): Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.. [optional] # noqa: E501
143143
last_active_since (str): Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.. [optional] # noqa: E501
144-
segment_name (str): Export al ldevices belonging to the segment.. [optional] # noqa: E501
144+
segment_name (str): Export all devices belonging to the segment.. [optional] # noqa: E501
145145
"""
146146

147147
_check_type = kwargs.pop('_check_type', True)
@@ -229,7 +229,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
229229
_visited_composed_classes = (Animal,)
230230
extra_fields ([str]): Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.. [optional] # noqa: E501
231231
last_active_since (str): Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.. [optional] # noqa: E501
232-
segment_name (str): Export al ldevices belonging to the segment.. [optional] # noqa: E501
232+
segment_name (str): Export all devices belonging to the segment.. [optional] # noqa: E501
233233
"""
234234

235235
_check_type = kwargs.pop('_check_type', True)

onesignal/model/player.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def openapi_types():
8282
and the value is attribute type.
8383
"""
8484
return {
85-
'id': (str,), # noqa: E501
8685
'device_type': (int,), # noqa: E501
86+
'id': (str,), # noqa: E501
8787
'invalid_identifier': (bool,), # noqa: E501
8888
'app_id': (str,), # noqa: E501
8989
'external_user_id': (str, none_type,), # noqa: E501
@@ -117,8 +117,8 @@ def discriminator():
117117

118118

119119
attribute_map = {
120-
'id': 'id', # noqa: E501
121120
'device_type': 'device_type', # noqa: E501
121+
'id': 'id', # noqa: E501
122122
'invalid_identifier': 'invalid_identifier', # noqa: E501
123123
'app_id': 'app_id', # noqa: E501
124124
'external_user_id': 'external_user_id', # noqa: E501
@@ -155,11 +155,10 @@ def discriminator():
155155

156156
@classmethod
157157
@convert_js_args_to_python_args
158-
def _from_openapi_data(cls, id, device_type, *args, **kwargs): # noqa: E501
158+
def _from_openapi_data(cls, device_type, *args, **kwargs): # noqa: E501
159159
"""Player - a model defined in OpenAPI
160160
161161
Args:
162-
id (str): The device's OneSignal ID
163162
device_type (int): Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS
164163
165164
Keyword Args:
@@ -193,6 +192,7 @@ def _from_openapi_data(cls, id, device_type, *args, **kwargs): # noqa: E501
193192
Animal class but this time we won't travel
194193
through its discriminator because we passed in
195194
_visited_composed_classes = (Animal,)
195+
id (str): The device's OneSignal ID. [optional] # noqa: E501
196196
invalid_identifier (bool): If true, this is the equivalent of a user being Unsubscribed. [optional] # noqa: E501
197197
app_id (str): [optional] # noqa: E501
198198
external_user_id (str, none_type): a custom user ID. [optional] # noqa: E501
@@ -249,7 +249,6 @@ def _from_openapi_data(cls, id, device_type, *args, **kwargs): # noqa: E501
249249
self._configuration = _configuration
250250
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
251251

252-
self.id = id
253252
self.device_type = device_type
254253
for var_name, var_value in kwargs.items():
255254
if var_name not in self.attribute_map and \
@@ -274,6 +273,7 @@ def _from_openapi_data(cls, id, device_type, *args, **kwargs): # noqa: E501
274273
def __init__(self, device_type, *args, **kwargs): # noqa: E501
275274
"""Player - a model defined in OpenAPI
276275
276+
Args:
277277
device_type (int): Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS
278278
279279
Keyword Args:
@@ -307,6 +307,7 @@ def __init__(self, device_type, *args, **kwargs): # noqa: E501
307307
Animal class but this time we won't travel
308308
through its discriminator because we passed in
309309
_visited_composed_classes = (Animal,)
310+
id (str): The device's OneSignal ID. [optional] # noqa: E501
310311
invalid_identifier (bool): If true, this is the equivalent of a user being Unsubscribed. [optional] # noqa: E501
311312
app_id (str): [optional] # noqa: E501
312313
external_user_id (str, none_type): a custom user ID. [optional] # noqa: E501

0 commit comments

Comments
 (0)