Skip to content

Commit

Permalink
Regenerate openapi client to include RANDOM selection strategy (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-lightly authored Dec 5, 2022
1 parent b8cd1cc commit 6356b18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class SelectionConfigEntryInput(object):
'key': 'str',
'name': 'SelectionInputPredictionsName',
'dataset_id': 'MongoObjectID',
'tag_name': 'TagName'
'tag_name': 'TagName',
'random_seed': 'int'
}

attribute_map = {
Expand All @@ -49,10 +50,11 @@ class SelectionConfigEntryInput(object):
'key': 'key',
'name': 'name',
'dataset_id': 'datasetId',
'tag_name': 'tagName'
'tag_name': 'tagName',
'random_seed': 'randomSeed'
}

def __init__(self, type=None, task=None, score=None, key=None, name=None, dataset_id=None, tag_name=None, _configuration=None): # noqa: E501
def __init__(self, type=None, task=None, score=None, key=None, name=None, dataset_id=None, tag_name=None, random_seed=None, _configuration=None): # noqa: E501
"""SelectionConfigEntryInput - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
Expand All @@ -65,6 +67,7 @@ def __init__(self, type=None, task=None, score=None, key=None, name=None, datase
self._name = None
self._dataset_id = None
self._tag_name = None
self._random_seed = None
self.discriminator = None

self.type = type
Expand All @@ -80,6 +83,8 @@ def __init__(self, type=None, task=None, score=None, key=None, name=None, datase
self.dataset_id = dataset_id
if tag_name is not None:
self.tag_name = tag_name
if random_seed is not None:
self.random_seed = random_seed

@property
def type(self):
Expand Down Expand Up @@ -230,6 +235,27 @@ def tag_name(self, tag_name):

self._tag_name = tag_name

@property
def random_seed(self):
"""Gets the random_seed of this SelectionConfigEntryInput. # noqa: E501
:return: The random_seed of this SelectionConfigEntryInput. # noqa: E501
:rtype: int
"""
return self._random_seed

@random_seed.setter
def random_seed(self, random_seed):
"""Sets the random_seed of this SelectionConfigEntryInput.
:param random_seed: The random_seed of this SelectionConfigEntryInput. # noqa: E501
:type: int
"""

self._random_seed = random_seed

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class SelectionInputType(object):
SCORES = "SCORES"
METADATA = "METADATA"
PREDICTIONS = "PREDICTIONS"
RANDOM = "RANDOM"

"""
Attributes:
Expand Down

0 comments on commit 6356b18

Please sign in to comment.