diff --git a/adzerk_decision_sdk/models/user.py b/adzerk_decision_sdk/models/user.py index dac3c86..955e030 100644 --- a/adzerk_decision_sdk/models/user.py +++ b/adzerk_decision_sdk/models/user.py @@ -34,15 +34,17 @@ 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() @@ -50,12 +52,15 @@ def __init__(self, key=None, group=None, local_vars_configuration=None): # noqa 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): @@ -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 = {} diff --git a/docs/User.md b/docs/User.md index a8b79ec..a597853 100644 --- a/docs/User.md +++ b/docs/User.md @@ -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) diff --git a/setup.py b/setup.py index 3bf002b..dd0e998 100644 --- a/setup.py +++ b/setup.py @@ -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