Skip to content

Commit

Permalink
Automated update by SDK Generator version:1.4.0 commit:b34042b
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 26, 2024
1 parent f9d835a commit 6338f62
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/apis/HrisApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,7 @@ with apideck.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hris_api.HrisApi(api_client)
employee = Employee(
id="12345",
first_name="Elon",
last_name="Musk",
middle_name="D.",
Expand Down Expand Up @@ -2354,6 +2355,7 @@ with apideck.ApiClient(configuration) as api_client:
api_instance = hris_api.HrisApi(api_client)
id = "id_example" # str | ID of the record you are acting upon.
employee = Employee(
id="12345",
first_name="Elon",
last_name="Musk",
middle_name="D.",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | A unique identifier for an object. | [readonly]
**id** | **str, none_type** | A unique identifier for an object. |
**first_name** | **str, none_type** | The first name of the person. | [optional]
**last_name** | **str, none_type** | The last name of the person. | [optional]
**middle_name** | **str, none_type** | Middle name of the person. | [optional]
Expand Down
11 changes: 7 additions & 4 deletions src/apideck/model/employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def openapi_types():
"""
lazy_import()
return {
'id': (str,), # noqa: E501
'id': (str, none_type,), # noqa: E501
'first_name': (str, none_type,), # noqa: E501
'last_name': (str, none_type,), # noqa: E501
'middle_name': (str, none_type,), # noqa: E501
Expand Down Expand Up @@ -264,7 +264,6 @@ def discriminator():
}

read_only_vars = {
'id', # noqa: E501
'custom_mappings', # noqa: E501
'updated_by', # noqa: E501
'created_by', # noqa: E501
Expand All @@ -280,7 +279,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
"""Employee - a model defined in OpenAPI
Args:
id (str): A unique identifier for an object.
id (str, none_type): A unique identifier for an object.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -426,9 +425,12 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
])

@convert_js_args_to_python_args
def __init__(self, *args, **kwargs): # noqa: E501
def __init__(self, id, *args, **kwargs): # noqa: E501
"""Employee - a model defined in OpenAPI
Args:
id (str, none_type): A unique identifier for an object.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
Expand Down Expand Up @@ -550,6 +552,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
self._configuration = _configuration
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.id = id
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down

0 comments on commit 6338f62

Please sign in to comment.