diff --git a/zitadel_client/api/feature_service_api.py b/zitadel_client/api/feature_service_api.py index 79527a4b..9d60962b 100644 --- a/zitadel_client/api/feature_service_api.py +++ b/zitadel_client/api/feature_service_api.py @@ -69,9 +69,9 @@ def feature_service_get_instance_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetInstanceFeaturesResponse: - """Get instance level features + """Get Instance Features - Returns all configured features for an instance. Unset fields mean the feature is the current system default. + Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none :param inheritance: Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the instance, it will be omitted from the response or Not Found is returned when the instance has no features flags at all. :type inheritance: bool @@ -138,9 +138,9 @@ def feature_service_get_instance_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceGetInstanceFeaturesResponse]: - """Get instance level features + """Get Instance Features - Returns all configured features for an instance. Unset fields mean the feature is the current system default. + Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none :param inheritance: Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the instance, it will be omitted from the response or Not Found is returned when the instance has no features flags at all. :type inheritance: bool @@ -207,9 +207,9 @@ def feature_service_get_instance_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get instance level features + """Get Instance Features - Returns all configured features for an instance. Unset fields mean the feature is the current system default. + Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none :param inheritance: Inherit unset features from the resource owners. This option is recursive: if the flag is set, the resource's ancestors are consulted up to system defaults. If this option is disabled and the feature is not set on the instance, it will be omitted from the response or Not Found is returned when the instance has no features flags at all. :type inheritance: bool @@ -339,9 +339,9 @@ def feature_service_get_organization_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetOrganizationFeaturesResponse: - """Get organization level features + """Get Organization Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to :param organization_id: (required) :type organization_id: str @@ -412,9 +412,9 @@ def feature_service_get_organization_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceGetOrganizationFeaturesResponse]: - """Get organization level features + """Get Organization Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to :param organization_id: (required) :type organization_id: str @@ -485,9 +485,9 @@ def feature_service_get_organization_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get organization level features + """Get Organization Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to :param organization_id: (required) :type organization_id: str @@ -621,9 +621,9 @@ def feature_service_get_system_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetSystemFeaturesResponse: - """Get system level features + """Get System Features - Returns all configured features for the system. Unset fields mean the feature is the current system default. + Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -686,9 +686,9 @@ def feature_service_get_system_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceGetSystemFeaturesResponse]: - """Get system level features + """Get System Features - Returns all configured features for the system. Unset fields mean the feature is the current system default. + Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -751,9 +751,9 @@ def feature_service_get_system_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get system level features + """Get System Features - Returns all configured features for the system. Unset fields mean the feature is the current system default. + Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -875,9 +875,9 @@ def feature_service_get_user_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetUserFeaturesResponse: - """Get organization level features + """Get User Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user :param user_id: (required) :type user_id: str @@ -948,9 +948,9 @@ def feature_service_get_user_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceGetUserFeaturesResponse]: - """Get organization level features + """Get User Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user :param user_id: (required) :type user_id: str @@ -1021,9 +1021,9 @@ def feature_service_get_user_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get organization level features + """Get User Features - Returns all configured features for an organization. Unset fields mean the feature is the current instance default. + Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user :param user_id: (required) :type user_id: str @@ -1157,9 +1157,9 @@ def feature_service_reset_instance_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetInstanceFeaturesResponse: - """Reset instance level features + """Reset Instance Features - Deletes ALL configured features for an instance, reverting the behaviors to system defaults. + Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1222,9 +1222,9 @@ def feature_service_reset_instance_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceResetInstanceFeaturesResponse]: - """Reset instance level features + """Reset Instance Features - Deletes ALL configured features for an instance, reverting the behaviors to system defaults. + Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1287,9 +1287,9 @@ def feature_service_reset_instance_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Reset instance level features + """Reset Instance Features - Deletes ALL configured features for an instance, reverting the behaviors to system defaults. + Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1410,9 +1410,9 @@ def feature_service_reset_organization_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetOrganizationFeaturesResponse: - """Reset organization level features + """Reset Organization Features - Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. + Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete :param organization_id: (required) :type organization_id: str @@ -1479,9 +1479,9 @@ def feature_service_reset_organization_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceResetOrganizationFeaturesResponse]: - """Reset organization level features + """Reset Organization Features - Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. + Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete :param organization_id: (required) :type organization_id: str @@ -1548,9 +1548,9 @@ def feature_service_reset_organization_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Reset organization level features + """Reset Organization Features - Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. + Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete :param organization_id: (required) :type organization_id: str @@ -1676,9 +1676,9 @@ def feature_service_reset_system_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetSystemFeaturesResponse: - """Reset system level features + """Reset System Features - Deletes ALL configured features for the system, reverting the behaviors to system defaults. + Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1741,9 +1741,9 @@ def feature_service_reset_system_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceResetSystemFeaturesResponse]: - """Reset system level features + """Reset System Features - Deletes ALL configured features for the system, reverting the behaviors to system defaults. + Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1806,9 +1806,9 @@ def feature_service_reset_system_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Reset system level features + """Reset System Features - Deletes ALL configured features for the system, reverting the behaviors to system defaults. + Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1929,9 +1929,9 @@ def feature_service_reset_user_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetUserFeaturesResponse: - """Reset user level features + """Reset User Features - Deletes ALL configured features for a user, reverting the behaviors to organization defaults. + Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete :param user_id: (required) :type user_id: str @@ -1998,9 +1998,9 @@ def feature_service_reset_user_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceResetUserFeaturesResponse]: - """Reset user level features + """Reset User Features - Deletes ALL configured features for a user, reverting the behaviors to organization defaults. + Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete :param user_id: (required) :type user_id: str @@ -2067,9 +2067,9 @@ def feature_service_reset_user_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Reset user level features + """Reset User Features - Deletes ALL configured features for a user, reverting the behaviors to organization defaults. + Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete :param user_id: (required) :type user_id: str @@ -2196,9 +2196,9 @@ def feature_service_set_instance_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetInstanceFeaturesResponse: - """Set instance level features + """Set Instance Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write :param feature_service_set_instance_features_request: (required) :type feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest @@ -2265,9 +2265,9 @@ def feature_service_set_instance_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceSetInstanceFeaturesResponse]: - """Set instance level features + """Set Instance Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write :param feature_service_set_instance_features_request: (required) :type feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest @@ -2334,9 +2334,9 @@ def feature_service_set_instance_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Set instance level features + """Set Instance Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write :param feature_service_set_instance_features_request: (required) :type feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest @@ -2476,9 +2476,9 @@ def feature_service_set_organization_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetOrganizationFeaturesResponse: - """Set organization level features + """Set Organization Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write :param organization_id: (required) :type organization_id: str @@ -2545,9 +2545,9 @@ def feature_service_set_organization_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceSetOrganizationFeaturesResponse]: - """Set organization level features + """Set Organization Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write :param organization_id: (required) :type organization_id: str @@ -2614,9 +2614,9 @@ def feature_service_set_organization_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Set organization level features + """Set Organization Features - Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write :param organization_id: (required) :type organization_id: str @@ -2756,9 +2756,9 @@ def feature_service_set_system_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetSystemFeaturesResponse: - """Set system level features + """Set System Features - Configure and set features that apply to the complete system. Only fields present in the request are set or unset. + Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write :param feature_service_set_system_features_request: (required) :type feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest @@ -2825,9 +2825,9 @@ def feature_service_set_system_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceSetSystemFeaturesResponse]: - """Set system level features + """Set System Features - Configure and set features that apply to the complete system. Only fields present in the request are set or unset. + Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write :param feature_service_set_system_features_request: (required) :type feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest @@ -2894,9 +2894,9 @@ def feature_service_set_system_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Set system level features + """Set System Features - Configure and set features that apply to the complete system. Only fields present in the request are set or unset. + Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write :param feature_service_set_system_features_request: (required) :type feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest @@ -3036,9 +3036,9 @@ def feature_service_set_user_features( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetUserFeaturesResponse: - """Set user level features + """Set User Features - Configure and set features that apply to an user. Only fields present in the request are set or unset. + Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write :param user_id: (required) :type user_id: str @@ -3105,9 +3105,9 @@ def feature_service_set_user_features_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FeatureServiceSetUserFeaturesResponse]: - """Set user level features + """Set User Features - Configure and set features that apply to an user. Only fields present in the request are set or unset. + Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write :param user_id: (required) :type user_id: str @@ -3174,9 +3174,9 @@ def feature_service_set_user_features_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Set user level features + """Set User Features - Configure and set features that apply to an user. Only fields present in the request are set or unset. + Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write :param user_id: (required) :type user_id: str diff --git a/zitadel_client/api/user_service_api.py b/zitadel_client/api/user_service_api.py index 0d991c29..2c7f5c25 100644 --- a/zitadel_client/api/user_service_api.py +++ b/zitadel_client/api/user_service_api.py @@ -3182,13 +3182,13 @@ def _user_service_list_authentication_factors_serialize( _path_params['userId'] = user_id # process the query parameters if auth_factors is not None: - + _query_params.append(('authFactors', auth_factors)) - + if states is not None: - + _query_params.append(('states', states)) - + # process the header parameters # process the form parameters # process the body parameter @@ -3483,13 +3483,13 @@ def _user_service_list_authentication_method_types_serialize( _path_params['userId'] = user_id # process the query parameters if domain_query_include_without_domain is not None: - + _query_params.append(('domainQuery.includeWithoutDomain', domain_query_include_without_domain)) - + if domain_query_domain is not None: - + _query_params.append(('domainQuery.domain', domain_query_domain)) - + # process the header parameters # process the form parameters # process the body parameter diff --git a/zitadel_client/models/user_service_retrieve_identity_provider_intent_response.py b/zitadel_client/models/user_service_retrieve_identity_provider_intent_response.py index f3a87dd3..4460ba1d 100644 --- a/zitadel_client/models/user_service_retrieve_identity_provider_intent_response.py +++ b/zitadel_client/models/user_service_retrieve_identity_provider_intent_response.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from zitadel_client.models.user_service_add_human_user_request import UserServiceAddHumanUserRequest from zitadel_client.models.user_service_details import UserServiceDetails from zitadel_client.models.user_service_idp_information import UserServiceIDPInformation from typing import Optional, Set @@ -31,8 +32,9 @@ class UserServiceRetrieveIdentityProviderIntentResponse(BaseModel): details: Optional[UserServiceDetails] = None idp_information: Optional[UserServiceIDPInformation] = Field(default=None, alias="idpInformation") user_id: Optional[StrictStr] = Field(default=None, description="ID of the user in ZITADEL if external user is linked", alias="userId") + add_human_user: Optional[UserServiceAddHumanUserRequest] = Field(default=None, alias="addHumanUser") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["details", "idpInformation", "userId"] + __properties: ClassVar[List[str]] = ["details", "idpInformation", "userId", "addHumanUser"] model_config = ConfigDict( populate_by_name=True, @@ -81,6 +83,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of idp_information if self.idp_information: _dict['idpInformation'] = self.idp_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of add_human_user + if self.add_human_user: + _dict['addHumanUser'] = self.add_human_user.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -100,7 +105,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "details": UserServiceDetails.from_dict(obj["details"]) if obj.get("details") is not None else None, "idpInformation": UserServiceIDPInformation.from_dict(obj["idpInformation"]) if obj.get("idpInformation") is not None else None, - "userId": obj.get("userId") + "userId": obj.get("userId"), + "addHumanUser": UserServiceAddHumanUserRequest.from_dict(obj["addHumanUser"]) if obj.get("addHumanUser") is not None else None }) # store additional fields in additional_properties for _key in obj.keys():