Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions adzerk_decision_sdk/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,33 @@ class User(object):
"""
openapi_types = {
'key': 'str',
'group': 'int'
'group': 'int',
'segments': 'list[int]'
}

attribute_map = {
'key': 'key',
'group': 'group'
'group': 'group',
'segments': 'segments'
}

def __init__(self, key=None, group=None, local_vars_configuration=None): # noqa: E501
def __init__(self, key=None, group=None, segments=None, local_vars_configuration=None): # noqa: E501
"""User - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration

self._key = None
self._group = None
self._segments = None
self.discriminator = None

if key is not None:
self.key = key
if group is not None:
self.group = group
if segments is not None:
self.segments = segments

@property
def key(self):
Expand Down Expand Up @@ -103,6 +108,29 @@ def group(self, group):

self._group = group

@property
def segments(self):
"""Gets the segments of this User. # noqa: E501

Array of Segment Ids that will override any set on the UserDB record for the User # noqa: E501

:return: The segments of this User. # noqa: E501
:rtype: list[int]
"""
return self._segments

@segments.setter
def segments(self, segments):
"""Sets the segments of this User.

Array of Segment Ids that will override any set on the UserDB record for the User # noqa: E501

:param segments: The segments of this User. # noqa: E501
:type: list[int]
"""

self._segments = segments

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
1 change: 1 addition & 0 deletions docs/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **str** | The UserKey used for UserDB Targeting | [optional]
**group** | **int** | The assigned cohort for the User | [optional]
**segments** | **list[int]** | Array of Segment Ids that will override any set on the UserDB record for the User | [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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "adzerk-decision-sdk"
VERSION = "1.0.0-beta.20"
VERSION = "1.0.0-beta.21"
# To install the library, run the following
#
# python setup.py install
Expand Down