diff --git a/docs/apis/HrisApi.md b/docs/apis/HrisApi.md index 2ab84f3a4..b3ecddba5 100644 --- a/docs/apis/HrisApi.md +++ b/docs/apis/HrisApi.md @@ -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.", @@ -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.", diff --git a/docs/models/Employee.md b/docs/models/Employee.md index 0af6c04e7..c81176c10 100644 --- a/docs/models/Employee.md +++ b/docs/models/Employee.md @@ -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] diff --git a/src/apideck/model/employee.py b/src/apideck/model/employee.py index f2b71e269..bbeec548a 100644 --- a/src/apideck/model/employee.py +++ b/src/apideck/model/employee.py @@ -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 @@ -264,7 +264,6 @@ def discriminator(): } read_only_vars = { - 'id', # noqa: E501 'custom_mappings', # noqa: E501 'updated_by', # noqa: E501 'created_by', # noqa: E501 @@ -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 @@ -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 @@ -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 \