Skip to content

Commit

Permalink
codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
alzheltkovskiy-hubspot committed Sep 6, 2024
1 parent e7236f8 commit 5b37958
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hubspot/crm/line_items/models/simple_public_object_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def __init__(self, properties=None, local_vars_configuration=None): # noqa: E50
self._properties = None
self.discriminator = None

if properties is not None:
self.properties = properties
self.properties = properties

@property
def properties(self):
Expand All @@ -69,6 +68,8 @@ def properties(self, properties):
:param properties: The properties of this SimplePublicObjectInput. # noqa: E501
:type properties: dict[str, str]
"""
if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501
raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501

self._properties = properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def __init__(self, associations=None, properties=None, local_vars_configuration=
self.discriminator = None

self.associations = associations
if properties is not None:
self.properties = properties
self.properties = properties

@property
def associations(self):
Expand Down Expand Up @@ -94,6 +93,8 @@ def properties(self, properties):
:param properties: The properties of this SimplePublicObjectInputForCreate. # noqa: E501
:type properties: dict[str, str]
"""
if self.local_vars_configuration.client_side_validation and properties is None: # noqa: E501
raise ValueError("Invalid value for `properties`, must not be `None`") # noqa: E501

self._properties = properties

Expand Down

0 comments on commit 5b37958

Please sign in to comment.