Skip to content

Commit

Permalink
restore is_set for now until transition is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
edeutsch committed Apr 7, 2024
1 parent 7bc2ac0 commit f76eb9b
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class QNode(Model):
Do not edit the class manually.
"""

def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=False, constraints=[], option_group_id=None): # noqa: E501
def __init__(self, ids=None, categories=None, is_set=False, set_interpretation='BATCH', set_id=None, constraints=[], option_group_id=None): # noqa: E501
"""QNode - a model defined in OpenAPI
:param ids: The ids of this QNode. # noqa: E501
:type ids: List[str]
:param categories: The categories of this QNode. # noqa: E501
:type categories: List[str]
:param is_set: The is_set of this QNode. # noqa: E501
:type is_set: bool
:param set_interpretation: The set_interpretation of this QNode. # noqa: E501
:type set_interpretation: str
:param set_id: The set_id of this QNode. # noqa: E501
Expand All @@ -36,6 +38,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F
self.openapi_types = {
'ids': List[str],
'categories': List[str],
'is_set': bool,
'set_interpretation': str,
'set_id': str,
'constraints': List[AttributeConstraint],
Expand All @@ -45,6 +48,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F
self.attribute_map = {
'ids': 'ids',
'categories': 'categories',
'is_set': 'is_set',
'set_interpretation': 'set_interpretation',
'set_id': 'set_id',
'constraints': 'constraints',
Expand All @@ -53,6 +57,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F

self._ids = ids
self._categories = categories
self._is_set = is_set
self._set_interpretation = set_interpretation
self._set_id = set_id
self._constraints = constraints
Expand Down Expand Up @@ -117,6 +122,29 @@ def categories(self, categories):

self._categories = categories

@property
def is_set(self):
"""Gets the is_set of this QNode.
Boolean that if set to true, indicates that this QNode MAY have multiple KnowledgeGraph Nodes bound to it within each Result. The nodes in a set should be considered as a set of independent nodes, rather than a set of dependent nodes, i.e., the answer would still be valid if the nodes in the set were instead returned individually. Multiple QNodes may have is_set=True. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=False, each n1 must be connected to n2. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=True, each n1 must be connected to at least one n2. # noqa: E501
:return: The is_set of this QNode.
:rtype: bool
"""
return self._is_set

@is_set.setter
def is_set(self, is_set):
"""Sets the is_set of this QNode.
Boolean that if set to true, indicates that this QNode MAY have multiple KnowledgeGraph Nodes bound to it within each Result. The nodes in a set should be considered as a set of independent nodes, rather than a set of dependent nodes, i.e., the answer would still be valid if the nodes in the set were instead returned individually. Multiple QNodes may have is_set=True. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=False, each n1 must be connected to n2. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=True, each n1 must be connected to at least one n2. # noqa: E501
:param is_set: The is_set of this QNode.
:type is_set: bool
"""

self._is_set = is_set

@property
def set_interpretation(self):
"""Gets the set_interpretation of this QNode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class QNode(Model):
Do not edit the class manually.
"""

def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=False, constraints=[], option_group_id=None): # noqa: E501
def __init__(self, ids=None, categories=None, is_set=False, set_interpretation='BATCH', set_id=None, constraints=[], option_group_id=None): # noqa: E501
"""QNode - a model defined in OpenAPI
:param ids: The ids of this QNode. # noqa: E501
:type ids: List[str]
:param categories: The categories of this QNode. # noqa: E501
:type categories: List[str]
:param is_set: The is_set of this QNode. # noqa: E501
:type is_set: bool
:param set_interpretation: The set_interpretation of this QNode. # noqa: E501
:type set_interpretation: str
:param set_id: The set_id of this QNode. # noqa: E501
Expand All @@ -36,6 +38,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F
self.openapi_types = {
'ids': List[str],
'categories': List[str],
'is_set': bool,
'set_interpretation': str,
'set_id': str,
'constraints': List[AttributeConstraint],
Expand All @@ -45,6 +48,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F
self.attribute_map = {
'ids': 'ids',
'categories': 'categories',
'is_set': 'is_set',
'set_interpretation': 'set_interpretation',
'set_id': 'set_id',
'constraints': 'constraints',
Expand All @@ -53,6 +57,7 @@ def __init__(self, ids=None, categories=None, set_interpretation=False, set_id=F

self._ids = ids
self._categories = categories
self._is_set = is_set
self._set_interpretation = set_interpretation
self._set_id = set_id
self._constraints = constraints
Expand Down Expand Up @@ -117,6 +122,29 @@ def categories(self, categories):

self._categories = categories

@property
def is_set(self):
"""Gets the is_set of this QNode.
Boolean that if set to true, indicates that this QNode MAY have multiple KnowledgeGraph Nodes bound to it within each Result. The nodes in a set should be considered as a set of independent nodes, rather than a set of dependent nodes, i.e., the answer would still be valid if the nodes in the set were instead returned individually. Multiple QNodes may have is_set=True. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=False, each n1 must be connected to n2. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=True, each n1 must be connected to at least one n2. # noqa: E501
:return: The is_set of this QNode.
:rtype: bool
"""
return self._is_set

@is_set.setter
def is_set(self, is_set):
"""Sets the is_set of this QNode.
Boolean that if set to true, indicates that this QNode MAY have multiple KnowledgeGraph Nodes bound to it within each Result. The nodes in a set should be considered as a set of independent nodes, rather than a set of dependent nodes, i.e., the answer would still be valid if the nodes in the set were instead returned individually. Multiple QNodes may have is_set=True. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=False, each n1 must be connected to n2. If a QNode (n1) with is_set=True is connected to a QNode (n2) with is_set=True, each n1 must be connected to at least one n2. # noqa: E501
:param is_set: The is_set of this QNode.
:type is_set: bool
"""

self._is_set = is_set

@property
def set_interpretation(self):
"""Gets the set_interpretation of this QNode.
Expand Down

0 comments on commit f76eb9b

Please sign in to comment.