diff --git a/zitadel_client/api/action_service_api.py b/zitadel_client/api/action_service_api.py index 5afad3ab..ce9b3022 100644 --- a/zitadel_client/api/action_service_api.py +++ b/zitadel_client/api/action_service_api.py @@ -54,20 +54,8 @@ def __init__(self, api_client=None) -> None: @validate_call def action_service_create_target( - self, - action_service_create_target_request: ActionServiceCreateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + action_service_create_target_request: ActionServiceCreateTargetRequest, ) -> ActionServiceBetaCreateTargetResponse: """Create Target @@ -75,34 +63,15 @@ def action_service_create_target( :param action_service_create_target_request: (required) :type action_service_create_target_request: ActionServiceCreateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_create_target_serialize( + _param = self.__action_service_create_target_serialize( action_service_create_target_request=action_service_create_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -112,156 +81,18 @@ def action_service_create_target( '404': "ActionServiceRpcStatus", '409': "object", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_create_target_with_http_info( - self, - action_service_create_target_request: ActionServiceCreateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaCreateTargetResponse]: - """Create Target - - Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` - - :param action_service_create_target_request: (required) - :type action_service_create_target_request: ActionServiceCreateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._action_service_create_target_serialize( - action_service_create_target_request=action_service_create_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaCreateTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - '409': "object", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_create_target_without_preload_content( - self, - action_service_create_target_request: ActionServiceCreateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Target - - Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` - - :param action_service_create_target_request: (required) - :type action_service_create_target_request: ActionServiceCreateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_create_target_serialize( - action_service_create_target_request=action_service_create_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaCreateTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - '409': "object", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_create_target_serialize( + def __action_service_create_target_serialize( self, action_service_create_target_request, _request_auth, @@ -340,20 +171,8 @@ def _action_service_create_target_serialize( @validate_call def action_service_delete_target( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, ) -> ActionServiceBetaDeleteTargetResponse: """Delete Target @@ -361,34 +180,15 @@ def action_service_delete_target( :param id: (required) :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_delete_target_serialize( + _param = self.__action_service_delete_target_serialize( id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -397,154 +197,18 @@ def action_service_delete_target( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_delete_target_with_http_info( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaDeleteTargetResponse]: - """Delete Target - - Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._action_service_delete_target_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaDeleteTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_delete_target_without_preload_content( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Target - - Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_delete_target_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaDeleteTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_delete_target_serialize( + def __action_service_delete_target_serialize( self, id, _request_auth, @@ -610,20 +274,8 @@ def _action_service_delete_target_serialize( @validate_call def action_service_get_target( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, ) -> ActionServiceBetaGetTargetResponse: """Get Target @@ -631,34 +283,15 @@ def action_service_get_target( :param id: (required) :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_get_target_serialize( + _param = self.__action_service_get_target_serialize( id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -667,154 +300,18 @@ def action_service_get_target( '403': "ActionServiceRpcStatus", '404': "object", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_get_target_with_http_info( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaGetTargetResponse]: - """Get Target - - Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._action_service_get_target_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaGetTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "object", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_get_target_without_preload_content( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Target - - Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_get_target_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaGetTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "object", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_get_target_serialize( + def __action_service_get_target_serialize( self, id, _request_auth, @@ -880,51 +377,20 @@ def _action_service_get_target_serialize( @validate_call def action_service_list_execution_functions( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> ActionServiceBetaListExecutionFunctionsResponse: """List Execution Functions List all available functions which can be used as condition for executions. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_list_execution_functions_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__action_service_list_execution_functions_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -932,144 +398,18 @@ def action_service_list_execution_functions( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_list_execution_functions_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaListExecutionFunctionsResponse]: - """List Execution Functions - - List all available functions which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_execution_functions_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionFunctionsResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_list_execution_functions_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Execution Functions - - List all available functions which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_execution_functions_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionFunctionsResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_list_execution_functions_serialize( + def __action_service_list_execution_functions_serialize( self, _request_auth, _content_type, @@ -1132,51 +472,20 @@ def _action_service_list_execution_functions_serialize( @validate_call def action_service_list_execution_methods( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> ActionServiceBetaListExecutionMethodsResponse: """List Execution Methods List all available methods which can be used as condition for executions. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_list_execution_methods_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__action_service_list_execution_methods_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1184,144 +493,18 @@ def action_service_list_execution_methods( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_list_execution_methods_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaListExecutionMethodsResponse]: - """List Execution Methods - - List all available methods which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._action_service_list_execution_methods_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionMethodsResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_list_execution_methods_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Execution Methods - - List all available methods which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_execution_methods_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionMethodsResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_list_execution_methods_serialize( + def __action_service_list_execution_methods_serialize( self, _request_auth, _content_type, @@ -1384,51 +567,20 @@ def _action_service_list_execution_methods_serialize( @validate_call def action_service_list_execution_services( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> ActionServiceBetaListExecutionServicesResponse: """List Execution Services List all available services which can be used as condition for executions. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_list_execution_services_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__action_service_list_execution_services_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1436,144 +588,18 @@ def action_service_list_execution_services( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def action_service_list_execution_services_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaListExecutionServicesResponse]: - """List Execution Services - - List all available services which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_execution_services_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionServicesResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_list_execution_services_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Execution Services - - List all available services which can be used as condition for executions. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_execution_services_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionServicesResponse", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_list_execution_services_serialize( + def __action_service_list_execution_services_serialize( self, _request_auth, _content_type, @@ -1636,23 +662,11 @@ def _action_service_list_execution_services_serialize( @validate_call def action_service_list_executions( - self, - pagination_offset: Annotated[Optional[StrictStr], Field(description="Starting point for retrieval, in combination of offset used to query a set list of objects.")] = None, - pagination_limit: Annotated[Optional[StrictInt], Field(description="limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.")] = None, - pagination_asc: Annotated[Optional[StrictBool], Field(description="Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.")] = None, - sorting_column: Annotated[Optional[StrictStr], Field(description="The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + pagination_offset: Annotated[Optional[StrictStr], Field(description="Starting point for retrieval, in combination of offset used to query a set list of objects.")] = None, + pagination_limit: Annotated[Optional[StrictInt], Field(description="limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.")] = None, + pagination_asc: Annotated[Optional[StrictBool], Field(description="Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.")] = None, + sorting_column: Annotated[Optional[StrictStr], Field(description="The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.")] = None, ) -> ActionServiceBetaListExecutionsResponse: """List Executions @@ -1666,37 +680,18 @@ def action_service_list_executions( :type pagination_asc: bool :param sorting_column: The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. :type sorting_column: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_list_executions_serialize( + _param = self.__action_service_list_executions_serialize( pagination_offset=pagination_offset, pagination_limit=pagination_limit, pagination_asc=pagination_asc, sorting_column=sorting_column, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1705,178 +700,18 @@ def action_service_list_executions( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_list_executions_with_http_info( - self, - pagination_offset: Annotated[Optional[StrictStr], Field(description="Starting point for retrieval, in combination of offset used to query a set list of objects.")] = None, - pagination_limit: Annotated[Optional[StrictInt], Field(description="limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.")] = None, - pagination_asc: Annotated[Optional[StrictBool], Field(description="Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.")] = None, - sorting_column: Annotated[Optional[StrictStr], Field(description="The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaListExecutionsResponse]: - """List Executions - - List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` - - :param pagination_offset: Starting point for retrieval, in combination of offset used to query a set list of objects. - :type pagination_offset: str - :param pagination_limit: limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken. - :type pagination_limit: int - :param pagination_asc: Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending. - :type pagination_asc: bool - :param sorting_column: The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. - :type sorting_column: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_executions_serialize( - pagination_offset=pagination_offset, - pagination_limit=pagination_limit, - pagination_asc=pagination_asc, - sorting_column=sorting_column, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionsResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_list_executions_without_preload_content( - self, - pagination_offset: Annotated[Optional[StrictStr], Field(description="Starting point for retrieval, in combination of offset used to query a set list of objects.")] = None, - pagination_limit: Annotated[Optional[StrictInt], Field(description="limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.")] = None, - pagination_asc: Annotated[Optional[StrictBool], Field(description="Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.")] = None, - sorting_column: Annotated[Optional[StrictStr], Field(description="The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Executions - - List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` - - :param pagination_offset: Starting point for retrieval, in combination of offset used to query a set list of objects. - :type pagination_offset: str - :param pagination_limit: limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken. - :type pagination_limit: int - :param pagination_asc: Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending. - :type pagination_asc: bool - :param sorting_column: The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. - :type sorting_column: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_executions_serialize( - pagination_offset=pagination_offset, - pagination_limit=pagination_limit, - pagination_asc=pagination_asc, - sorting_column=sorting_column, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListExecutionsResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_list_executions_serialize( + def __action_service_list_executions_serialize( self, pagination_offset, pagination_limit, @@ -1959,20 +794,8 @@ def _action_service_list_executions_serialize( @validate_call def action_service_list_targets( - self, - action_service_list_targets_request: ActionServiceListTargetsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + action_service_list_targets_request: ActionServiceListTargetsRequest, ) -> ActionServiceBetaListTargetsResponse: """List targets @@ -1980,34 +803,15 @@ def action_service_list_targets( :param action_service_list_targets_request: (required) :type action_service_list_targets_request: ActionServiceListTargetsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_list_targets_serialize( + _param = self.__action_service_list_targets_serialize( action_service_list_targets_request=action_service_list_targets_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2016,154 +820,18 @@ def action_service_list_targets( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_list_targets_with_http_info( - self, - action_service_list_targets_request: ActionServiceListTargetsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaListTargetsResponse]: - """List targets - - List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` - - :param action_service_list_targets_request: (required) - :type action_service_list_targets_request: ActionServiceListTargetsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_targets_serialize( - action_service_list_targets_request=action_service_list_targets_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListTargetsResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_list_targets_without_preload_content( - self, - action_service_list_targets_request: ActionServiceListTargetsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List targets - - List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` - - :param action_service_list_targets_request: (required) - :type action_service_list_targets_request: ActionServiceListTargetsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_list_targets_serialize( - action_service_list_targets_request=action_service_list_targets_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaListTargetsResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_list_targets_serialize( + def __action_service_list_targets_serialize( self, action_service_list_targets_request, _request_auth, @@ -2242,20 +910,8 @@ def _action_service_list_targets_serialize( @validate_call def action_service_set_execution( - self, - action_service_set_execution_request: ActionServiceSetExecutionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + action_service_set_execution_request: ActionServiceSetExecutionRequest, ) -> ActionServiceBetaSetExecutionResponse: """Set Execution @@ -2263,34 +919,15 @@ def action_service_set_execution( :param action_service_set_execution_request: (required) :type action_service_set_execution_request: ActionServiceSetExecutionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_set_execution_serialize( + _param = self.__action_service_set_execution_serialize( action_service_set_execution_request=action_service_set_execution_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2299,154 +936,18 @@ def action_service_set_execution( '403': "ActionServiceRpcStatus", '404': "ActionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def action_service_set_execution_with_http_info( - self, - action_service_set_execution_request: ActionServiceSetExecutionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaSetExecutionResponse]: - """Set Execution - - Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` - - :param action_service_set_execution_request: (required) - :type action_service_set_execution_request: ActionServiceSetExecutionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_set_execution_serialize( - action_service_set_execution_request=action_service_set_execution_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaSetExecutionResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_set_execution_without_preload_content( - self, - action_service_set_execution_request: ActionServiceSetExecutionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set Execution - - Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` - - :param action_service_set_execution_request: (required) - :type action_service_set_execution_request: ActionServiceSetExecutionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_set_execution_serialize( - action_service_set_execution_request=action_service_set_execution_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaSetExecutionResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "ActionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_set_execution_serialize( + def __action_service_set_execution_serialize( self, action_service_set_execution_request, _request_auth, @@ -2525,21 +1026,9 @@ def _action_service_set_execution_serialize( @validate_call def action_service_update_target( - self, - id: StrictStr, - action_service_update_target_request: ActionServiceUpdateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, + action_service_update_target_request: ActionServiceUpdateTargetRequest, ) -> ActionServiceBetaUpdateTargetResponse: """Update Target @@ -2549,35 +1038,16 @@ def action_service_update_target( :type id: str :param action_service_update_target_request: (required) :type action_service_update_target_request: ActionServiceUpdateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._action_service_update_target_serialize( + _param = self.__action_service_update_target_serialize( id=id, action_service_update_target_request=action_service_update_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2586,162 +1056,18 @@ def action_service_update_target( '403': "ActionServiceRpcStatus", '404': "object", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def action_service_update_target_with_http_info( - self, - id: StrictStr, - action_service_update_target_request: ActionServiceUpdateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActionServiceBetaUpdateTargetResponse]: - """Update Target - - Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` - :param id: (required) - :type id: str - :param action_service_update_target_request: (required) - :type action_service_update_target_request: ActionServiceUpdateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_update_target_serialize( - id=id, - action_service_update_target_request=action_service_update_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaUpdateTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "object", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def action_service_update_target_without_preload_content( - self, - id: StrictStr, - action_service_update_target_request: ActionServiceUpdateTargetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Target - - Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` - - :param id: (required) - :type id: str - :param action_service_update_target_request: (required) - :type action_service_update_target_request: ActionServiceUpdateTargetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._action_service_update_target_serialize( - id=id, - action_service_update_target_request=action_service_update_target_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ActionServiceBetaUpdateTargetResponse", - '400': "object", - '403': "ActionServiceRpcStatus", - '404': "object", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _action_service_update_target_serialize( + def __action_service_update_target_serialize( self, id, action_service_update_target_request, diff --git a/zitadel_client/api/feature_service_api.py b/zitadel_client/api/feature_service_api.py index 9d60962b..e246abeb 100644 --- a/zitadel_client/api/feature_service_api.py +++ b/zitadel_client/api/feature_service_api.py @@ -54,20 +54,8 @@ def __init__(self, api_client=None) -> None: @validate_call def feature_service_get_instance_features( - self, - inheritance: Annotated[Optional[StrictBool], Field(description="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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + inheritance: Annotated[Optional[StrictBool], Field(description="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.")] = None, ) -> FeatureServiceGetInstanceFeaturesResponse: """Get Instance Features @@ -75,34 +63,15 @@ def feature_service_get_instance_features( :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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_get_instance_features_serialize( + _param = self.__feature_service_get_instance_features_serialize( inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -110,152 +79,18 @@ def feature_service_get_instance_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_get_instance_features_with_http_info( - self, - inheritance: Annotated[Optional[StrictBool], Field(description="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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceGetInstanceFeaturesResponse]: - """Get Instance Features - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_instance_features_serialize( - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_get_instance_features_without_preload_content( - self, - inheritance: Annotated[Optional[StrictBool], Field(description="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.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Instance Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_instance_features_serialize( - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_get_instance_features_serialize( + def __feature_service_get_instance_features_serialize( self, inheritance, _request_auth, @@ -323,21 +158,9 @@ def _feature_service_get_instance_features_serialize( @validate_call def feature_service_get_organization_features( - self, - organization_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + organization_id: StrictStr, + inheritance: Annotated[Optional[StrictBool], Field(description="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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.")] = None, ) -> FeatureServiceGetOrganizationFeaturesResponse: """Get Organization Features @@ -347,35 +170,16 @@ def feature_service_get_organization_features( :type organization_id: str :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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all. :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_get_organization_features_serialize( + _param = self.__feature_service_get_organization_features_serialize( organization_id=organization_id, inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -383,160 +187,18 @@ def feature_service_get_organization_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_get_organization_features_with_http_info( - self, - organization_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceGetOrganizationFeaturesResponse]: - """Get Organization Features - 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 - :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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all. - :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_organization_features_serialize( - organization_id=organization_id, - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_get_organization_features_without_preload_content( - self, - organization_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Organization Features - - 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 - :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 organization, it will be omitted from the response or Not Found is returned when the organization has no features flags at all. - :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_organization_features_serialize( - organization_id=organization_id, - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_get_organization_features_serialize( + def __feature_service_get_organization_features_serialize( self, organization_id, inheritance, @@ -607,51 +269,20 @@ def _feature_service_get_organization_features_serialize( @validate_call def feature_service_get_system_features( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> FeatureServiceGetSystemFeaturesResponse: """Get System Features 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_get_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__feature_service_get_system_features_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -659,144 +290,18 @@ def feature_service_get_system_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_get_system_features_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceGetSystemFeaturesResponse]: - """Get System Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_get_system_features_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get System Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_get_system_features_serialize( + def __feature_service_get_system_features_serialize( self, _request_auth, _content_type, @@ -859,21 +364,9 @@ def _feature_service_get_system_features_serialize( @validate_call def feature_service_get_user_features( - self, - user_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + inheritance: Annotated[Optional[StrictBool], Field(description="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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.")] = None, ) -> FeatureServiceGetUserFeaturesResponse: """Get User Features @@ -883,35 +376,16 @@ def feature_service_get_user_features( :type user_id: str :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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all. :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_get_user_features_serialize( + _param = self.__feature_service_get_user_features_serialize( user_id=user_id, inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -919,160 +393,18 @@ def feature_service_get_user_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_get_user_features_with_http_info( - self, - user_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceGetUserFeaturesResponse]: - """Get User Features - - 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 - :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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all. - :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_user_features_serialize( - user_id=user_id, - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_get_user_features_without_preload_content( - self, - user_id: StrictStr, - inheritance: Annotated[Optional[StrictBool], Field(description="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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get User Features - - 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 - :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 user, it will be ommitted from the response or Not Found is returned when the user has no features flags at all. - :type inheritance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_get_user_features_serialize( - user_id=user_id, - inheritance=inheritance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceGetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_get_user_features_serialize( + def __feature_service_get_user_features_serialize( self, user_id, inheritance, @@ -1143,51 +475,20 @@ def _feature_service_get_user_features_serialize( @validate_call def feature_service_reset_instance_features( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> FeatureServiceResetInstanceFeaturesResponse: """Reset Instance Features 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_reset_instance_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__feature_service_reset_instance_features_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1195,144 +496,18 @@ def feature_service_reset_instance_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_reset_instance_features_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceResetInstanceFeaturesResponse]: - """Reset Instance Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_instance_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_reset_instance_features_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Reset Instance Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_instance_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_reset_instance_features_serialize( + def __feature_service_reset_instance_features_serialize( self, _request_auth, _content_type, @@ -1395,20 +570,8 @@ def _feature_service_reset_instance_features_serialize( @validate_call def feature_service_reset_organization_features( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + organization_id: StrictStr, ) -> FeatureServiceResetOrganizationFeaturesResponse: """Reset Organization Features @@ -1416,34 +579,15 @@ def feature_service_reset_organization_features( :param organization_id: (required) :type organization_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_reset_organization_features_serialize( + _param = self.__feature_service_reset_organization_features_serialize( organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1451,152 +595,18 @@ def feature_service_reset_organization_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_reset_organization_features_with_http_info( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceResetOrganizationFeaturesResponse]: - """Reset Organization Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._feature_service_reset_organization_features_serialize( - organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_reset_organization_features_without_preload_content( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Reset Organization Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_organization_features_serialize( - organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_reset_organization_features_serialize( + def __feature_service_reset_organization_features_serialize( self, organization_id, _request_auth, @@ -1662,51 +672,20 @@ def _feature_service_reset_organization_features_serialize( @validate_call def feature_service_reset_system_features( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> FeatureServiceResetSystemFeaturesResponse: """Reset System Features 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_reset_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__feature_service_reset_system_features_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1714,144 +693,18 @@ def feature_service_reset_system_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_reset_system_features_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceResetSystemFeaturesResponse]: - """Reset System Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_reset_system_features_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Reset System Features - - 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 - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_system_features_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_reset_system_features_serialize( + def __feature_service_reset_system_features_serialize( self, _request_auth, _content_type, @@ -1914,20 +767,8 @@ def _feature_service_reset_system_features_serialize( @validate_call def feature_service_reset_user_features( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> FeatureServiceResetUserFeaturesResponse: """Reset User Features @@ -1935,34 +776,15 @@ def feature_service_reset_user_features( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_reset_user_features_serialize( + _param = self.__feature_service_reset_user_features_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1970,152 +792,18 @@ def feature_service_reset_user_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_reset_user_features_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceResetUserFeaturesResponse]: - """Reset User Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_user_features_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_reset_user_features_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Reset User Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_reset_user_features_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceResetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _feature_service_reset_user_features_serialize( + def __feature_service_reset_user_features_serialize( self, user_id, _request_auth, @@ -2181,20 +869,8 @@ def _feature_service_reset_user_features_serialize( @validate_call def feature_service_set_instance_features( - self, - feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest, ) -> FeatureServiceSetInstanceFeaturesResponse: """Set Instance Features @@ -2202,34 +878,15 @@ def feature_service_set_instance_features( :param feature_service_set_instance_features_request: (required) :type feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_set_instance_features_serialize( + _param = self.__feature_service_set_instance_features_serialize( feature_service_set_instance_features_request=feature_service_set_instance_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2237,152 +894,18 @@ def feature_service_set_instance_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def feature_service_set_instance_features_with_http_info( - self, - feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceSetInstanceFeaturesResponse]: - """Set Instance Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_instance_features_serialize( - feature_service_set_instance_features_request=feature_service_set_instance_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_set_instance_features_without_preload_content( - self, - feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set Instance Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_instance_features_serialize( - feature_service_set_instance_features_request=feature_service_set_instance_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetInstanceFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_set_instance_features_serialize( + def __feature_service_set_instance_features_serialize( self, feature_service_set_instance_features_request, _request_auth, @@ -2461,20 +984,8 @@ def _feature_service_set_instance_features_serialize( @validate_call def feature_service_set_organization_features( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + organization_id: StrictStr, ) -> FeatureServiceSetOrganizationFeaturesResponse: """Set Organization Features @@ -2482,34 +993,15 @@ def feature_service_set_organization_features( :param organization_id: (required) :type organization_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_set_organization_features_serialize( + _param = self.__feature_service_set_organization_features_serialize( organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2517,152 +1009,18 @@ def feature_service_set_organization_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_set_organization_features_with_http_info( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceSetOrganizationFeaturesResponse]: - """Set Organization Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_organization_features_serialize( - organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_set_organization_features_without_preload_content( - self, - organization_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set Organization Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_organization_features_serialize( - organization_id=organization_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetOrganizationFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_set_organization_features_serialize( + def __feature_service_set_organization_features_serialize( self, organization_id, _request_auth, @@ -2702,19 +1060,6 @@ def _feature_service_set_organization_features_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2741,20 +1086,8 @@ def _feature_service_set_organization_features_serialize( @validate_call def feature_service_set_system_features( - self, - feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest, ) -> FeatureServiceSetSystemFeaturesResponse: """Set System Features @@ -2762,34 +1095,15 @@ def feature_service_set_system_features( :param feature_service_set_system_features_request: (required) :type feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_set_system_features_serialize( + _param = self.__feature_service_set_system_features_serialize( feature_service_set_system_features_request=feature_service_set_system_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2797,152 +1111,18 @@ def feature_service_set_system_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_set_system_features_with_http_info( - self, - feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceSetSystemFeaturesResponse]: - """Set System Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._feature_service_set_system_features_serialize( - feature_service_set_system_features_request=feature_service_set_system_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_set_system_features_without_preload_content( - self, - feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set System Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_system_features_serialize( - feature_service_set_system_features_request=feature_service_set_system_features_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetSystemFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_set_system_features_serialize( + def __feature_service_set_system_features_serialize( self, feature_service_set_system_features_request, _request_auth, @@ -3021,20 +1201,8 @@ def _feature_service_set_system_features_serialize( @validate_call def feature_service_set_user_features( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> FeatureServiceSetUserFeaturesResponse: """Set User Features @@ -3042,34 +1210,15 @@ def feature_service_set_user_features( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._feature_service_set_user_features_serialize( + _param = self.__feature_service_set_user_features_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -3077,152 +1226,18 @@ def feature_service_set_user_features( '403': "FeatureServiceRpcStatus", '404': "FeatureServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def feature_service_set_user_features_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FeatureServiceSetUserFeaturesResponse]: - """Set User Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._feature_service_set_user_features_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def feature_service_set_user_features_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set User Features - - 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 - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._feature_service_set_user_features_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "FeatureServiceSetUserFeaturesResponse", - '403': "FeatureServiceRpcStatus", - '404': "FeatureServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _feature_service_set_user_features_serialize( + def __feature_service_set_user_features_serialize( self, user_id, _request_auth, @@ -3262,19 +1277,6 @@ def _feature_service_set_user_features_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ diff --git a/zitadel_client/api/identity_provider_service_api.py b/zitadel_client/api/identity_provider_service_api.py index f8c82b16..4c7a61ad 100644 --- a/zitadel_client/api/identity_provider_service_api.py +++ b/zitadel_client/api/identity_provider_service_api.py @@ -39,20 +39,8 @@ def __init__(self, api_client=None) -> None: @validate_call def identity_provider_service_get_idpby_id( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, ) -> IdentityProviderServiceGetIDPByIDResponse: """Get identity provider (IdP) by ID @@ -60,34 +48,15 @@ def identity_provider_service_get_idpby_id( :param id: (required) :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._identity_provider_service_get_idpby_id_serialize( + _param = self.__identity_provider_service_get_idpby_id_serialize( id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -95,152 +64,18 @@ def identity_provider_service_get_idpby_id( '403': "IdentityProviderServiceRpcStatus", '404': "IdentityProviderServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def identity_provider_service_get_idpby_id_with_http_info( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdentityProviderServiceGetIDPByIDResponse]: - """Get identity provider (IdP) by ID - Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._identity_provider_service_get_idpby_id_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdentityProviderServiceGetIDPByIDResponse", - '403': "IdentityProviderServiceRpcStatus", - '404': "IdentityProviderServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def identity_provider_service_get_idpby_id_without_preload_content( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get identity provider (IdP) by ID - - Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._identity_provider_service_get_idpby_id_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdentityProviderServiceGetIDPByIDResponse", - '403': "IdentityProviderServiceRpcStatus", - '404': "IdentityProviderServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _identity_provider_service_get_idpby_id_serialize( + def __identity_provider_service_get_idpby_id_serialize( self, id, _request_auth, diff --git a/zitadel_client/api/oidc_service_api.py b/zitadel_client/api/oidc_service_api.py index 44789c09..0c06b8f2 100644 --- a/zitadel_client/api/oidc_service_api.py +++ b/zitadel_client/api/oidc_service_api.py @@ -45,21 +45,9 @@ def __init__(self, api_client=None) -> None: @validate_call def o_idc_service_authorize_or_deny_device_authorization( - self, - device_authorization_id: Annotated[StrictStr, Field(description="The device authorization id returned when submitting the user code.")], - oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + device_authorization_id: Annotated[StrictStr, Field(description="The device authorization id returned when submitting the user code.")], + oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest, ) -> object: """Authorize or deny device authorization @@ -69,35 +57,16 @@ def o_idc_service_authorize_or_deny_device_authorization( :type device_authorization_id: str :param oidc_service_authorize_or_deny_device_authorization_request: (required) :type oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._o_idc_service_authorize_or_deny_device_authorization_serialize( + _param = self.__o_idc_service_authorize_or_deny_device_authorization_serialize( device_authorization_id=device_authorization_id, oidc_service_authorize_or_deny_device_authorization_request=oidc_service_authorize_or_deny_device_authorization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -105,160 +74,18 @@ def o_idc_service_authorize_or_deny_device_authorization( '403': "OIDCServiceRpcStatus", '404': "OIDCServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def o_idc_service_authorize_or_deny_device_authorization_with_http_info( - self, - device_authorization_id: Annotated[StrictStr, Field(description="The device authorization id returned when submitting the user code.")], - oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Authorize or deny device authorization - - Authorize or deny the device authorization request based on the provided device authorization id. - - :param device_authorization_id: The device authorization id returned when submitting the user code. (required) - :type device_authorization_id: str - :param oidc_service_authorize_or_deny_device_authorization_request: (required) - :type oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._o_idc_service_authorize_or_deny_device_authorization_serialize( - device_authorization_id=device_authorization_id, - oidc_service_authorize_or_deny_device_authorization_request=oidc_service_authorize_or_deny_device_authorization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def o_idc_service_authorize_or_deny_device_authorization_without_preload_content( - self, - device_authorization_id: Annotated[StrictStr, Field(description="The device authorization id returned when submitting the user code.")], - oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Authorize or deny device authorization - - Authorize or deny the device authorization request based on the provided device authorization id. - - :param device_authorization_id: The device authorization id returned when submitting the user code. (required) - :type device_authorization_id: str - :param oidc_service_authorize_or_deny_device_authorization_request: (required) - :type oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_authorize_or_deny_device_authorization_serialize( - device_authorization_id=device_authorization_id, - oidc_service_authorize_or_deny_device_authorization_request=oidc_service_authorize_or_deny_device_authorization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _o_idc_service_authorize_or_deny_device_authorization_serialize( + def __o_idc_service_authorize_or_deny_device_authorization_serialize( self, device_authorization_id, oidc_service_authorize_or_deny_device_authorization_request, @@ -340,21 +167,9 @@ def _o_idc_service_authorize_or_deny_device_authorization_serialize( @validate_call def o_idc_service_create_callback( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request.")], - oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request.")], + oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest, ) -> OIDCServiceCreateCallbackResponse: """Finalize an Auth Request and get the callback URL. @@ -364,35 +179,16 @@ def o_idc_service_create_callback( :type auth_request_id: str :param oidc_service_create_callback_request: (required) :type oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._o_idc_service_create_callback_serialize( + _param = self.__o_idc_service_create_callback_serialize( auth_request_id=auth_request_id, oidc_service_create_callback_request=oidc_service_create_callback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -400,160 +196,18 @@ def o_idc_service_create_callback( '403': "OIDCServiceRpcStatus", '404': "OIDCServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def o_idc_service_create_callback_with_http_info( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request.")], - oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OIDCServiceCreateCallbackResponse]: - """Finalize an Auth Request and get the callback URL. - - Finalize an Auth Request and get the callback URL for success or failure. The user must be redirected to the URL in order to inform the application about the success or failure. On success, the URL contains details for the application to obtain the tokens. This method can only be called once for an Auth request. - - :param auth_request_id: ID of the Auth Request. (required) - :type auth_request_id: str - :param oidc_service_create_callback_request: (required) - :type oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_create_callback_serialize( - auth_request_id=auth_request_id, - oidc_service_create_callback_request=oidc_service_create_callback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceCreateCallbackResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def o_idc_service_create_callback_without_preload_content( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request.")], - oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Finalize an Auth Request and get the callback URL. - - Finalize an Auth Request and get the callback URL for success or failure. The user must be redirected to the URL in order to inform the application about the success or failure. On success, the URL contains details for the application to obtain the tokens. This method can only be called once for an Auth request. - - :param auth_request_id: ID of the Auth Request. (required) - :type auth_request_id: str - :param oidc_service_create_callback_request: (required) - :type oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_create_callback_serialize( - auth_request_id=auth_request_id, - oidc_service_create_callback_request=oidc_service_create_callback_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceCreateCallbackResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _o_idc_service_create_callback_serialize( + def __o_idc_service_create_callback_serialize( self, auth_request_id, oidc_service_create_callback_request, @@ -635,20 +289,8 @@ def _o_idc_service_create_callback_serialize( @validate_call def o_idc_service_get_auth_request( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request, as obtained from the redirect URL.")], ) -> OIDCServiceGetAuthRequestResponse: """Get OIDC Auth Request details @@ -656,34 +298,15 @@ def o_idc_service_get_auth_request( :param auth_request_id: ID of the Auth Request, as obtained from the redirect URL. (required) :type auth_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._o_idc_service_get_auth_request_serialize( + _param = self.__o_idc_service_get_auth_request_serialize( auth_request_id=auth_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -691,152 +314,18 @@ def o_idc_service_get_auth_request( '403': "OIDCServiceRpcStatus", '404': "OIDCServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def o_idc_service_get_auth_request_with_http_info( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OIDCServiceGetAuthRequestResponse]: - """Get OIDC Auth Request details - - Get OIDC Auth Request details by ID, obtained from the redirect URL. Returns details that are parsed from the application's Auth Request. - - :param auth_request_id: ID of the Auth Request, as obtained from the redirect URL. (required) - :type auth_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_get_auth_request_serialize( - auth_request_id=auth_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceGetAuthRequestResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def o_idc_service_get_auth_request_without_preload_content( - self, - auth_request_id: Annotated[StrictStr, Field(description="ID of the Auth Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get OIDC Auth Request details - - Get OIDC Auth Request details by ID, obtained from the redirect URL. Returns details that are parsed from the application's Auth Request. - - :param auth_request_id: ID of the Auth Request, as obtained from the redirect URL. (required) - :type auth_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_get_auth_request_serialize( - auth_request_id=auth_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceGetAuthRequestResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _o_idc_service_get_auth_request_serialize( + def __o_idc_service_get_auth_request_serialize( self, auth_request_id, _request_auth, @@ -902,20 +391,8 @@ def _o_idc_service_get_auth_request_serialize( @validate_call def o_idc_service_get_device_authorization_request( - self, - user_code: Annotated[StrictStr, Field(description="The user_code returned by the device authorization request and provided to the user by the device.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_code: Annotated[StrictStr, Field(description="The user_code returned by the device authorization request and provided to the user by the device.")], ) -> OIDCServiceGetDeviceAuthorizationRequestResponse: """Get device authorization request @@ -923,34 +400,15 @@ def o_idc_service_get_device_authorization_request( :param user_code: The user_code returned by the device authorization request and provided to the user by the device. (required) :type user_code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._o_idc_service_get_device_authorization_request_serialize( + _param = self.__o_idc_service_get_device_authorization_request_serialize( user_code=user_code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -958,152 +416,18 @@ def o_idc_service_get_device_authorization_request( '403': "OIDCServiceRpcStatus", '404': "OIDCServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def o_idc_service_get_device_authorization_request_with_http_info( - self, - user_code: Annotated[StrictStr, Field(description="The user_code returned by the device authorization request and provided to the user by the device.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OIDCServiceGetDeviceAuthorizationRequestResponse]: - """Get device authorization request - - Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. - :param user_code: The user_code returned by the device authorization request and provided to the user by the device. (required) - :type user_code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_get_device_authorization_request_serialize( - user_code=user_code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceGetDeviceAuthorizationRequestResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def o_idc_service_get_device_authorization_request_without_preload_content( - self, - user_code: Annotated[StrictStr, Field(description="The user_code returned by the device authorization request and provided to the user by the device.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get device authorization request - - Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. - - :param user_code: The user_code returned by the device authorization request and provided to the user by the device. (required) - :type user_code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._o_idc_service_get_device_authorization_request_serialize( - user_code=user_code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OIDCServiceGetDeviceAuthorizationRequestResponse", - '403': "OIDCServiceRpcStatus", - '404': "OIDCServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _o_idc_service_get_device_authorization_request_serialize( + def __o_idc_service_get_device_authorization_request_serialize( self, user_code, _request_auth, diff --git a/zitadel_client/api/organization_service_api.py b/zitadel_client/api/organization_service_api.py index cbf423e9..7542b79b 100644 --- a/zitadel_client/api/organization_service_api.py +++ b/zitadel_client/api/organization_service_api.py @@ -41,20 +41,8 @@ def __init__(self, api_client=None) -> None: @validate_call def organization_service_add_organization( - self, - organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest, ) -> OrganizationServiceAddOrganizationResponse: """Create an Organization @@ -62,34 +50,15 @@ def organization_service_add_organization( :param organization_service_add_organization_request: (required) :type organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._organization_service_add_organization_serialize( + _param = self.__organization_service_add_organization_serialize( organization_service_add_organization_request=organization_service_add_organization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -97,152 +66,18 @@ def organization_service_add_organization( '403': "OrganizationServiceRpcStatus", '404': "OrganizationServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def organization_service_add_organization_with_http_info( - self, - organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OrganizationServiceAddOrganizationResponse]: - """Create an Organization - - Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. - - :param organization_service_add_organization_request: (required) - :type organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._organization_service_add_organization_serialize( - organization_service_add_organization_request=organization_service_add_organization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationServiceAddOrganizationResponse", - '403': "OrganizationServiceRpcStatus", - '404': "OrganizationServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def organization_service_add_organization_without_preload_content( - self, - organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create an Organization - - Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. - - :param organization_service_add_organization_request: (required) - :type organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._organization_service_add_organization_serialize( - organization_service_add_organization_request=organization_service_add_organization_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationServiceAddOrganizationResponse", - '403': "OrganizationServiceRpcStatus", - '404': "OrganizationServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _organization_service_add_organization_serialize( + def __organization_service_add_organization_serialize( self, organization_service_add_organization_request, _request_auth, @@ -321,20 +156,8 @@ def _organization_service_add_organization_serialize( @validate_call def organization_service_list_organizations( - self, - organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest, ) -> OrganizationServiceListOrganizationsResponse: """Search Organizations @@ -342,34 +165,15 @@ def organization_service_list_organizations( :param organization_service_list_organizations_request: (required) :type organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._organization_service_list_organizations_serialize( + _param = self.__organization_service_list_organizations_serialize( organization_service_list_organizations_request=organization_service_list_organizations_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -378,154 +182,18 @@ def organization_service_list_organizations( '403': "OrganizationServiceRpcStatus", '404': "OrganizationServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def organization_service_list_organizations_with_http_info( - self, - organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OrganizationServiceListOrganizationsResponse]: - """Search Organizations - - Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. - :param organization_service_list_organizations_request: (required) - :type organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._organization_service_list_organizations_serialize( - organization_service_list_organizations_request=organization_service_list_organizations_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationServiceListOrganizationsResponse", - '400': "OrganizationServiceRpcStatus", - '403': "OrganizationServiceRpcStatus", - '404': "OrganizationServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def organization_service_list_organizations_without_preload_content( - self, - organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Search Organizations - - Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. - - :param organization_service_list_organizations_request: (required) - :type organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._organization_service_list_organizations_serialize( - organization_service_list_organizations_request=organization_service_list_organizations_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationServiceListOrganizationsResponse", - '400': "OrganizationServiceRpcStatus", - '403': "OrganizationServiceRpcStatus", - '404': "OrganizationServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _organization_service_list_organizations_serialize( + def __organization_service_list_organizations_serialize( self, organization_service_list_organizations_request, _request_auth, diff --git a/zitadel_client/api/saml_service_api.py b/zitadel_client/api/saml_service_api.py index b0476a2c..27c75b60 100644 --- a/zitadel_client/api/saml_service_api.py +++ b/zitadel_client/api/saml_service_api.py @@ -42,21 +42,9 @@ def __init__(self, api_client=None) -> None: @validate_call def s_aml_service_create_response( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request.")], - saml_service_create_response_request: SAMLServiceCreateResponseRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request.")], + saml_service_create_response_request: SAMLServiceCreateResponseRequest, ) -> SAMLServiceCreateResponseResponse: """Finalize a SAML Request and get the response. @@ -66,35 +54,16 @@ def s_aml_service_create_response( :type saml_request_id: str :param saml_service_create_response_request: (required) :type saml_service_create_response_request: SAMLServiceCreateResponseRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._s_aml_service_create_response_serialize( + _param = self.__s_aml_service_create_response_serialize( saml_request_id=saml_request_id, saml_service_create_response_request=saml_service_create_response_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -102,160 +71,18 @@ def s_aml_service_create_response( '403': "SAMLServiceRpcStatus", '404': "SAMLServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def s_aml_service_create_response_with_http_info( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request.")], - saml_service_create_response_request: SAMLServiceCreateResponseRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SAMLServiceCreateResponseResponse]: - """Finalize a SAML Request and get the response. - - Finalize a SAML Request and get the response definition for success or failure. The response must be handled as per the SAML definition to inform the application about the success or failure. On success, the response contains details for the application to obtain the SAMLResponse. This method can only be called once for an SAML request. - - :param saml_request_id: ID of the SAML Request. (required) - :type saml_request_id: str - :param saml_service_create_response_request: (required) - :type saml_service_create_response_request: SAMLServiceCreateResponseRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._s_aml_service_create_response_serialize( - saml_request_id=saml_request_id, - saml_service_create_response_request=saml_service_create_response_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SAMLServiceCreateResponseResponse", - '403': "SAMLServiceRpcStatus", - '404': "SAMLServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def s_aml_service_create_response_without_preload_content( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request.")], - saml_service_create_response_request: SAMLServiceCreateResponseRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Finalize a SAML Request and get the response. - - Finalize a SAML Request and get the response definition for success or failure. The response must be handled as per the SAML definition to inform the application about the success or failure. On success, the response contains details for the application to obtain the SAMLResponse. This method can only be called once for an SAML request. - - :param saml_request_id: ID of the SAML Request. (required) - :type saml_request_id: str - :param saml_service_create_response_request: (required) - :type saml_service_create_response_request: SAMLServiceCreateResponseRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._s_aml_service_create_response_serialize( - saml_request_id=saml_request_id, - saml_service_create_response_request=saml_service_create_response_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SAMLServiceCreateResponseResponse", - '403': "SAMLServiceRpcStatus", - '404': "SAMLServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _s_aml_service_create_response_serialize( + def __s_aml_service_create_response_serialize( self, saml_request_id, saml_service_create_response_request, @@ -337,20 +164,8 @@ def _s_aml_service_create_response_serialize( @validate_call def s_aml_service_get_saml_request( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request, as obtained from the redirect URL.")], ) -> SAMLServiceGetSAMLRequestResponse: """Get SAML Request details @@ -358,34 +173,15 @@ def s_aml_service_get_saml_request( :param saml_request_id: ID of the SAML Request, as obtained from the redirect URL. (required) :type saml_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._s_aml_service_get_saml_request_serialize( + _param = self.__s_aml_service_get_saml_request_serialize( saml_request_id=saml_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -393,152 +189,18 @@ def s_aml_service_get_saml_request( '403': "SAMLServiceRpcStatus", '404': "SAMLServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def s_aml_service_get_saml_request_with_http_info( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SAMLServiceGetSAMLRequestResponse]: - """Get SAML Request details - - Get SAML Request details by ID. Returns details that are parsed from the application's SAML Request. - :param saml_request_id: ID of the SAML Request, as obtained from the redirect URL. (required) - :type saml_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._s_aml_service_get_saml_request_serialize( - saml_request_id=saml_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SAMLServiceGetSAMLRequestResponse", - '403': "SAMLServiceRpcStatus", - '404': "SAMLServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def s_aml_service_get_saml_request_without_preload_content( - self, - saml_request_id: Annotated[StrictStr, Field(description="ID of the SAML Request, as obtained from the redirect URL.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get SAML Request details - - Get SAML Request details by ID. Returns details that are parsed from the application's SAML Request. - - :param saml_request_id: ID of the SAML Request, as obtained from the redirect URL. (required) - :type saml_request_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._s_aml_service_get_saml_request_serialize( - saml_request_id=saml_request_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SAMLServiceGetSAMLRequestResponse", - '403': "SAMLServiceRpcStatus", - '404': "SAMLServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _s_aml_service_get_saml_request_serialize( + def __s_aml_service_get_saml_request_serialize( self, saml_request_id, _request_auth, diff --git a/zitadel_client/api/session_service_api.py b/zitadel_client/api/session_service_api.py index f7de7684..71f9a0ac 100644 --- a/zitadel_client/api/session_service_api.py +++ b/zitadel_client/api/session_service_api.py @@ -49,20 +49,8 @@ def __init__(self, api_client=None) -> None: @validate_call def session_service_create_session( - self, - session_service_create_session_request: SessionServiceCreateSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + session_service_create_session_request: SessionServiceCreateSessionRequest, ) -> SessionServiceCreateSessionResponse: """Create a new session @@ -70,34 +58,15 @@ def session_service_create_session( :param session_service_create_session_request: (required) :type session_service_create_session_request: SessionServiceCreateSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._session_service_create_session_serialize( + _param = self.__session_service_create_session_serialize( session_service_create_session_request=session_service_create_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -105,152 +74,18 @@ def session_service_create_session( '403': "SessionServiceRpcStatus", '404': "SessionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def session_service_create_session_with_http_info( - self, - session_service_create_session_request: SessionServiceCreateSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SessionServiceCreateSessionResponse]: - """Create a new session - - Create a new session. A token will be returned, which is required for further updates of the session. - - :param session_service_create_session_request: (required) - :type session_service_create_session_request: SessionServiceCreateSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_create_session_serialize( - session_service_create_session_request=session_service_create_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '201': "SessionServiceCreateSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def session_service_create_session_without_preload_content( - self, - session_service_create_session_request: SessionServiceCreateSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new session - - Create a new session. A token will be returned, which is required for further updates of the session. - - :param session_service_create_session_request: (required) - :type session_service_create_session_request: SessionServiceCreateSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_create_session_serialize( - session_service_create_session_request=session_service_create_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "SessionServiceCreateSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _session_service_create_session_serialize( + def __session_service_create_session_serialize( self, session_service_create_session_request, _request_auth, @@ -329,21 +164,9 @@ def _session_service_create_session_serialize( @validate_call def session_service_delete_session( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to terminate\"")], - session_service_delete_session_request: SessionServiceDeleteSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + session_id: Annotated[StrictStr, Field(description="\"id of the session to terminate\"")], + session_service_delete_session_request: SessionServiceDeleteSessionRequest, ) -> SessionServiceDeleteSessionResponse: """Terminate an existing session @@ -353,35 +176,16 @@ def session_service_delete_session( :type session_id: str :param session_service_delete_session_request: (required) :type session_service_delete_session_request: SessionServiceDeleteSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._session_service_delete_session_serialize( + _param = self.__session_service_delete_session_serialize( session_id=session_id, session_service_delete_session_request=session_service_delete_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -389,160 +193,18 @@ def session_service_delete_session( '403': "SessionServiceRpcStatus", '404': "SessionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def session_service_delete_session_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to terminate\"")], - session_service_delete_session_request: SessionServiceDeleteSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SessionServiceDeleteSessionResponse]: - """Terminate an existing session - - Terminate your own session or if granted any other session. - - :param session_id: \"id of the session to terminate\" (required) - :type session_id: str - :param session_service_delete_session_request: (required) - :type session_service_delete_session_request: SessionServiceDeleteSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_delete_session_serialize( - session_id=session_id, - session_service_delete_session_request=session_service_delete_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceDeleteSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def session_service_delete_session_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to terminate\"")], - session_service_delete_session_request: SessionServiceDeleteSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Terminate an existing session - - Terminate your own session or if granted any other session. - - :param session_id: \"id of the session to terminate\" (required) - :type session_id: str - :param session_service_delete_session_request: (required) - :type session_service_delete_session_request: SessionServiceDeleteSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_delete_session_serialize( - session_id=session_id, - session_service_delete_session_request=session_service_delete_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceDeleteSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _session_service_delete_session_serialize( + def __session_service_delete_session_serialize( self, session_id, session_service_delete_session_request, @@ -624,21 +286,9 @@ def _session_service_delete_session_serialize( @validate_call def session_service_get_session( - self, - session_id: StrictStr, - session_token: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + session_id: StrictStr, + session_token: Optional[StrictStr] = None, ) -> SessionServiceGetSessionResponse: """Get a session @@ -648,35 +298,16 @@ def session_service_get_session( :type session_id: str :param session_token: :type session_token: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._session_service_get_session_serialize( + _param = self.__session_service_get_session_serialize( session_id=session_id, session_token=session_token, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -684,160 +315,18 @@ def session_service_get_session( '403': "SessionServiceRpcStatus", '404': "SessionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def session_service_get_session_with_http_info( - self, - session_id: StrictStr, - session_token: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SessionServiceGetSessionResponse]: - """Get a session - Get a session and all its information like the time of the user or password verification - - :param session_id: (required) - :type session_id: str - :param session_token: - :type session_token: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_get_session_serialize( - session_id=session_id, - session_token=session_token, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceGetSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def session_service_get_session_without_preload_content( - self, - session_id: StrictStr, - session_token: Optional[StrictStr] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a session - - Get a session and all its information like the time of the user or password verification - - :param session_id: (required) - :type session_id: str - :param session_token: - :type session_token: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_get_session_serialize( - session_id=session_id, - session_token=session_token, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceGetSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _session_service_get_session_serialize( + def __session_service_get_session_serialize( self, session_id, session_token, @@ -908,20 +397,8 @@ def _session_service_get_session_serialize( @validate_call def session_service_list_sessions( - self, - session_service_list_sessions_request: SessionServiceListSessionsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + session_service_list_sessions_request: SessionServiceListSessionsRequest, ) -> SessionServiceListSessionsResponse: """Search sessions @@ -929,34 +406,15 @@ def session_service_list_sessions( :param session_service_list_sessions_request: (required) :type session_service_list_sessions_request: SessionServiceListSessionsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._session_service_list_sessions_serialize( + _param = self.__session_service_list_sessions_serialize( session_service_list_sessions_request=session_service_list_sessions_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -965,154 +423,18 @@ def session_service_list_sessions( '403': "SessionServiceRpcStatus", '404': "SessionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def session_service_list_sessions_with_http_info( - self, - session_service_list_sessions_request: SessionServiceListSessionsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SessionServiceListSessionsResponse]: - """Search sessions - - Search for sessions - :param session_service_list_sessions_request: (required) - :type session_service_list_sessions_request: SessionServiceListSessionsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_list_sessions_serialize( - session_service_list_sessions_request=session_service_list_sessions_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceListSessionsResponse", - '400': "SessionServiceRpcStatus", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def session_service_list_sessions_without_preload_content( - self, - session_service_list_sessions_request: SessionServiceListSessionsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Search sessions - - Search for sessions - - :param session_service_list_sessions_request: (required) - :type session_service_list_sessions_request: SessionServiceListSessionsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_list_sessions_serialize( - session_service_list_sessions_request=session_service_list_sessions_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceListSessionsResponse", - '400': "SessionServiceRpcStatus", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _session_service_list_sessions_serialize( + def __session_service_list_sessions_serialize( self, session_service_list_sessions_request, _request_auth, @@ -1191,21 +513,9 @@ def _session_service_list_sessions_serialize( @validate_call def session_service_set_session( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to update\"")], - session_service_set_session_request: SessionServiceSetSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + session_id: Annotated[StrictStr, Field(description="\"id of the session to update\"")], + session_service_set_session_request: SessionServiceSetSessionRequest, ) -> SessionServiceSetSessionResponse: """Update an existing session @@ -1215,35 +525,16 @@ def session_service_set_session( :type session_id: str :param session_service_set_session_request: (required) :type session_service_set_session_request: SessionServiceSetSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._session_service_set_session_serialize( + _param = self.__session_service_set_session_serialize( session_id=session_id, session_service_set_session_request=session_service_set_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1251,160 +542,18 @@ def session_service_set_session( '403': "SessionServiceRpcStatus", '404': "SessionServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def session_service_set_session_with_http_info( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to update\"")], - session_service_set_session_request: SessionServiceSetSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SessionServiceSetSessionResponse]: - """Update an existing session - - Update an existing session with new information. - :param session_id: \"id of the session to update\" (required) - :type session_id: str - :param session_service_set_session_request: (required) - :type session_service_set_session_request: SessionServiceSetSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_set_session_serialize( - session_id=session_id, - session_service_set_session_request=session_service_set_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceSetSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def session_service_set_session_without_preload_content( - self, - session_id: Annotated[StrictStr, Field(description="\"id of the session to update\"")], - session_service_set_session_request: SessionServiceSetSessionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update an existing session - - Update an existing session with new information. - - :param session_id: \"id of the session to update\" (required) - :type session_id: str - :param session_service_set_session_request: (required) - :type session_service_set_session_request: SessionServiceSetSessionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._session_service_set_session_serialize( - session_id=session_id, - session_service_set_session_request=session_service_set_session_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SessionServiceSetSessionResponse", - '403': "SessionServiceRpcStatus", - '404': "SessionServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _session_service_set_session_serialize( + def __session_service_set_session_serialize( self, session_id, session_service_set_session_request, diff --git a/zitadel_client/api/settings_service_api.py b/zitadel_client/api/settings_service_api.py index 2a59f07a..6f45d5d7 100644 --- a/zitadel_client/api/settings_service_api.py +++ b/zitadel_client/api/settings_service_api.py @@ -51,25 +51,13 @@ def __init__(self, api_client=None) -> None: @validate_call def settings_service_get_active_identity_providers( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - creation_allowed: Optional[StrictBool] = None, - linking_allowed: Optional[StrictBool] = None, - auto_creation: Optional[StrictBool] = None, - auto_linking: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, + creation_allowed: Optional[StrictBool] = None, + linking_allowed: Optional[StrictBool] = None, + auto_creation: Optional[StrictBool] = None, + auto_linking: Optional[StrictBool] = None, ) -> SettingsServiceGetActiveIdentityProvidersResponse: """Get the current active identity providers @@ -87,39 +75,20 @@ def settings_service_get_active_identity_providers( :type auto_creation: bool :param auto_linking: :type auto_linking: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_active_identity_providers_serialize( + _param = self.__settings_service_get_active_identity_providers_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, creation_allowed=creation_allowed, linking_allowed=linking_allowed, auto_creation=auto_creation, auto_linking=auto_linking, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -127,192 +96,18 @@ def settings_service_get_active_identity_providers( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_active_identity_providers_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - creation_allowed: Optional[StrictBool] = None, - linking_allowed: Optional[StrictBool] = None, - auto_creation: Optional[StrictBool] = None, - auto_linking: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetActiveIdentityProvidersResponse]: - """Get the current active identity providers - Return the current active identity providers for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param creation_allowed: - :type creation_allowed: bool - :param linking_allowed: - :type linking_allowed: bool - :param auto_creation: - :type auto_creation: bool - :param auto_linking: - :type auto_linking: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_active_identity_providers_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - creation_allowed=creation_allowed, - linking_allowed=linking_allowed, - auto_creation=auto_creation, - auto_linking=auto_linking, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetActiveIdentityProvidersResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_active_identity_providers_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - creation_allowed: Optional[StrictBool] = None, - linking_allowed: Optional[StrictBool] = None, - auto_creation: Optional[StrictBool] = None, - auto_linking: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the current active identity providers - - Return the current active identity providers for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param creation_allowed: - :type creation_allowed: bool - :param linking_allowed: - :type linking_allowed: bool - :param auto_creation: - :type auto_creation: bool - :param auto_linking: - :type auto_linking: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_active_identity_providers_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - creation_allowed=creation_allowed, - linking_allowed=linking_allowed, - auto_creation=auto_creation, - auto_linking=auto_linking, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetActiveIdentityProvidersResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_active_identity_providers_serialize( + def __settings_service_get_active_identity_providers_serialize( self, ctx_org_id, ctx_instance, @@ -405,21 +200,9 @@ def _settings_service_get_active_identity_providers_serialize( @validate_call def settings_service_get_branding_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetBrandingSettingsResponse: """Get the current active branding settings @@ -429,35 +212,16 @@ def settings_service_get_branding_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_branding_settings_serialize( + _param = self.__settings_service_get_branding_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -465,160 +229,18 @@ def settings_service_get_branding_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_branding_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetBrandingSettingsResponse]: - """Get the current active branding settings - - Return the current active branding settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_branding_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetBrandingSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_branding_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the current active branding settings - - Return the current active branding settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_branding_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetBrandingSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_branding_settings_serialize( + def __settings_service_get_branding_settings_serialize( self, ctx_org_id, ctx_instance, @@ -691,21 +313,9 @@ def _settings_service_get_branding_settings_serialize( @validate_call def settings_service_get_domain_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetDomainSettingsResponse: """Get the domain settings @@ -715,35 +325,16 @@ def settings_service_get_domain_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_domain_settings_serialize( + _param = self.__settings_service_get_domain_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -751,160 +342,18 @@ def settings_service_get_domain_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_domain_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetDomainSettingsResponse]: - """Get the domain settings - - Return the domain settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_domain_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetDomainSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_domain_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the domain settings - - Return the domain settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_domain_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetDomainSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_domain_settings_serialize( + def __settings_service_get_domain_settings_serialize( self, ctx_org_id, ctx_instance, @@ -977,51 +426,20 @@ def _settings_service_get_domain_settings_serialize( @validate_call def settings_service_get_general_settings( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> SettingsServiceGetGeneralSettingsResponse: """Get basic information over the instance Return the basic information of the instance for the requested context - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_general_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__settings_service_get_general_settings_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1029,144 +447,18 @@ def settings_service_get_general_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def settings_service_get_general_settings_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetGeneralSettingsResponse]: - """Get basic information over the instance - - Return the basic information of the instance for the requested context - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_general_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetGeneralSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_general_settings_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get basic information over the instance - - Return the basic information of the instance for the requested context - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_general_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetGeneralSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_general_settings_serialize( + def __settings_service_get_general_settings_serialize( self, _request_auth, _content_type, @@ -1229,21 +521,9 @@ def _settings_service_get_general_settings_serialize( @validate_call def settings_service_get_legal_and_support_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetLegalAndSupportSettingsResponse: """Get the legal and support settings @@ -1253,35 +533,16 @@ def settings_service_get_legal_and_support_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_legal_and_support_settings_serialize( + _param = self.__settings_service_get_legal_and_support_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1289,160 +550,18 @@ def settings_service_get_legal_and_support_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_legal_and_support_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetLegalAndSupportSettingsResponse]: - """Get the legal and support settings - - Return the legal settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._settings_service_get_legal_and_support_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLegalAndSupportSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_legal_and_support_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the legal and support settings - - Return the legal settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_legal_and_support_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLegalAndSupportSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_legal_and_support_settings_serialize( + def __settings_service_get_legal_and_support_settings_serialize( self, ctx_org_id, ctx_instance, @@ -1515,21 +634,9 @@ def _settings_service_get_legal_and_support_settings_serialize( @validate_call def settings_service_get_lockout_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetLockoutSettingsResponse: """Get the lockout settings @@ -1539,35 +646,16 @@ def settings_service_get_lockout_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_lockout_settings_serialize( + _param = self.__settings_service_get_lockout_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1575,160 +663,18 @@ def settings_service_get_lockout_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_lockout_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetLockoutSettingsResponse]: - """Get the lockout settings - - Return the lockout settings for the requested context, which define when a user will be locked - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._settings_service_get_lockout_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLockoutSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_lockout_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the lockout settings - - Return the lockout settings for the requested context, which define when a user will be locked - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_lockout_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLockoutSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_lockout_settings_serialize( + def __settings_service_get_lockout_settings_serialize( self, ctx_org_id, ctx_instance, @@ -1792,177 +738,19 @@ def _settings_service_get_lockout_settings_serialize( files=_files, auth_settings=_auth_settings, collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def settings_service_get_login_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SettingsServiceGetLoginSettingsResponse: - """Get the login settings - - Return the settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_login_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLoginSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_login_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetLoginSettingsResponse]: - """Get the login settings - - Return the settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_login_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _host=_host, + _request_auth=_request_auth ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetLoginSettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) + @validate_call - def settings_service_get_login_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: + def settings_service_get_login_settings( + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, + ) -> SettingsServiceGetLoginSettingsResponse: """Get the login settings Return the settings for the requested context @@ -1971,35 +759,16 @@ def settings_service_get_login_settings_without_preload_content( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_login_settings_serialize( + _param = self.__settings_service_get_login_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2007,14 +776,18 @@ def settings_service_get_login_settings_without_preload_content( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _settings_service_get_login_settings_serialize( + def __settings_service_get_login_settings_serialize( self, ctx_org_id, ctx_instance, @@ -2087,21 +860,9 @@ def _settings_service_get_login_settings_serialize( @validate_call def settings_service_get_password_complexity_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetPasswordComplexitySettingsResponse: """Get the password complexity settings @@ -2111,35 +872,16 @@ def settings_service_get_password_complexity_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_password_complexity_settings_serialize( + _param = self.__settings_service_get_password_complexity_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2147,160 +889,18 @@ def settings_service_get_password_complexity_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_password_complexity_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetPasswordComplexitySettingsResponse]: - """Get the password complexity settings - - Return the password complexity settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_password_complexity_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetPasswordComplexitySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_password_complexity_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the password complexity settings - - Return the password complexity settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_password_complexity_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetPasswordComplexitySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_password_complexity_settings_serialize( + def __settings_service_get_password_complexity_settings_serialize( self, ctx_org_id, ctx_instance, @@ -2373,21 +973,9 @@ def _settings_service_get_password_complexity_settings_serialize( @validate_call def settings_service_get_password_expiry_settings( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + ctx_org_id: Optional[StrictStr] = None, + ctx_instance: Optional[StrictBool] = None, ) -> SettingsServiceGetPasswordExpirySettingsResponse: """Get the password expiry settings @@ -2397,35 +985,16 @@ def settings_service_get_password_expiry_settings( :type ctx_org_id: str :param ctx_instance: :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_password_expiry_settings_serialize( + _param = self.__settings_service_get_password_expiry_settings_serialize( ctx_org_id=ctx_org_id, ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2433,160 +1002,18 @@ def settings_service_get_password_expiry_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_get_password_expiry_settings_with_http_info( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetPasswordExpirySettingsResponse]: - """Get the password expiry settings - - Return the password expiry settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_password_expiry_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetPasswordExpirySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_password_expiry_settings_without_preload_content( - self, - ctx_org_id: Optional[StrictStr] = None, - ctx_instance: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get the password expiry settings - - Return the password expiry settings for the requested context - - :param ctx_org_id: - :type ctx_org_id: str - :param ctx_instance: - :type ctx_instance: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_password_expiry_settings_serialize( - ctx_org_id=ctx_org_id, - ctx_instance=ctx_instance, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetPasswordExpirySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_password_expiry_settings_serialize( + def __settings_service_get_password_expiry_settings_serialize( self, ctx_org_id, ctx_instance, @@ -2659,51 +1086,20 @@ def _settings_service_get_password_expiry_settings_serialize( @validate_call def settings_service_get_security_settings( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> SettingsServiceGetSecuritySettingsResponse: """Get Security Settings Returns the security settings of the ZITADEL instance. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_get_security_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__settings_service_get_security_settings_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2711,144 +1107,18 @@ def settings_service_get_security_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def settings_service_get_security_settings_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceGetSecuritySettingsResponse]: - """Get Security Settings - - Returns the security settings of the ZITADEL instance. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_security_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetSecuritySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_get_security_settings_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Security Settings - - Returns the security settings of the ZITADEL instance. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_get_security_settings_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceGetSecuritySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_get_security_settings_serialize( + def __settings_service_get_security_settings_serialize( self, _request_auth, _content_type, @@ -2911,20 +1181,8 @@ def _settings_service_get_security_settings_serialize( @validate_call def settings_service_set_security_settings( - self, - settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest, ) -> SettingsServiceSetSecuritySettingsResponse: """Set Security Settings @@ -2932,34 +1190,15 @@ def settings_service_set_security_settings( :param settings_service_set_security_settings_request: (required) :type settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._settings_service_set_security_settings_serialize( + _param = self.__settings_service_set_security_settings_serialize( settings_service_set_security_settings_request=settings_service_set_security_settings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2967,152 +1206,18 @@ def settings_service_set_security_settings( '403': "SettingsServiceRpcStatus", '404': "SettingsServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def settings_service_set_security_settings_with_http_info( - self, - settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SettingsServiceSetSecuritySettingsResponse]: - """Set Security Settings - - Set the security settings of the ZITADEL instance. - - :param settings_service_set_security_settings_request: (required) - :type settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_set_security_settings_serialize( - settings_service_set_security_settings_request=settings_service_set_security_settings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceSetSecuritySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def settings_service_set_security_settings_without_preload_content( - self, - settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set Security Settings - - Set the security settings of the ZITADEL instance. - - :param settings_service_set_security_settings_request: (required) - :type settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._settings_service_set_security_settings_serialize( - settings_service_set_security_settings_request=settings_service_set_security_settings_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SettingsServiceSetSecuritySettingsResponse", - '403': "SettingsServiceRpcStatus", - '404': "SettingsServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _settings_service_set_security_settings_serialize( + def __settings_service_set_security_settings_serialize( self, settings_service_set_security_settings_request, _request_auth, diff --git a/zitadel_client/api/user_service_api.py b/zitadel_client/api/user_service_api.py index 2c7f5c25..029e973b 100644 --- a/zitadel_client/api/user_service_api.py +++ b/zitadel_client/api/user_service_api.py @@ -109,20 +109,8 @@ def __init__(self, api_client=None) -> None: @validate_call def user_service_add_human_user( - self, - user_service_add_human_user_request: UserServiceAddHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_service_add_human_user_request: UserServiceAddHumanUserRequest, ) -> UserServiceAddHumanUserResponse: """Create a new human user @@ -130,34 +118,15 @@ def user_service_add_human_user( :param user_service_add_human_user_request: (required) :type user_service_add_human_user_request: UserServiceAddHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_add_human_user_serialize( + _param = self.__user_service_add_human_user_serialize( user_service_add_human_user_request=user_service_add_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -165,152 +134,18 @@ def user_service_add_human_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_add_human_user_with_http_info( - self, - user_service_add_human_user_request: UserServiceAddHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceAddHumanUserResponse]: - """Create a new human user - - Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. - :param user_service_add_human_user_request: (required) - :type user_service_add_human_user_request: UserServiceAddHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_human_user_serialize( - user_service_add_human_user_request=user_service_add_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "UserServiceAddHumanUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_add_human_user_without_preload_content( - self, - user_service_add_human_user_request: UserServiceAddHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new human user - - Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. - - :param user_service_add_human_user_request: (required) - :type user_service_add_human_user_request: UserServiceAddHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_human_user_serialize( - user_service_add_human_user_request=user_service_add_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "UserServiceAddHumanUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_add_human_user_serialize( + def __user_service_add_human_user_serialize( self, user_service_add_human_user_request, _request_auth, @@ -389,21 +224,9 @@ def _user_service_add_human_user_serialize( @validate_call def user_service_add_idp_link( - self, - user_id: StrictStr, - user_service_add_idp_link_request: UserServiceAddIDPLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_add_idp_link_request: UserServiceAddIDPLinkRequest, ) -> UserServiceAddIDPLinkResponse: """Add link to an identity provider to an user @@ -413,35 +236,16 @@ def user_service_add_idp_link( :type user_id: str :param user_service_add_idp_link_request: (required) :type user_service_add_idp_link_request: UserServiceAddIDPLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_add_idp_link_serialize( + _param = self.__user_service_add_idp_link_serialize( user_id=user_id, user_service_add_idp_link_request=user_service_add_idp_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -449,160 +253,18 @@ def user_service_add_idp_link( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_add_idp_link_with_http_info( - self, - user_id: StrictStr, - user_service_add_idp_link_request: UserServiceAddIDPLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceAddIDPLinkResponse]: - """Add link to an identity provider to an user - - Add link to an identity provider to an user.. - - :param user_id: (required) - :type user_id: str - :param user_service_add_idp_link_request: (required) - :type user_service_add_idp_link_request: UserServiceAddIDPLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_idp_link_serialize( - user_id=user_id, - user_service_add_idp_link_request=user_service_add_idp_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddIDPLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_add_idp_link_without_preload_content( - self, - user_id: StrictStr, - user_service_add_idp_link_request: UserServiceAddIDPLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Add link to an identity provider to an user - - Add link to an identity provider to an user.. - - :param user_id: (required) - :type user_id: str - :param user_service_add_idp_link_request: (required) - :type user_service_add_idp_link_request: UserServiceAddIDPLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_idp_link_serialize( - user_id=user_id, - user_service_add_idp_link_request=user_service_add_idp_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddIDPLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_add_idp_link_serialize( + def __user_service_add_idp_link_serialize( self, user_id, user_service_add_idp_link_request, @@ -684,20 +346,8 @@ def _user_service_add_idp_link_serialize( @validate_call def user_service_add_otp_email( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceAddOTPEmailResponse: """Add OTP Email for a user @@ -705,34 +355,15 @@ def user_service_add_otp_email( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_add_otp_email_serialize( + _param = self.__user_service_add_otp_email_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -740,152 +371,18 @@ def user_service_add_otp_email( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def user_service_add_otp_email_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceAddOTPEmailResponse]: - """Add OTP Email for a user - - Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_otp_email_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddOTPEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_add_otp_email_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Add OTP Email for a user - - Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_otp_email_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddOTPEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_add_otp_email_serialize( + def __user_service_add_otp_email_serialize( self, user_id, _request_auth, @@ -925,19 +422,6 @@ def _user_service_add_otp_email_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -964,20 +448,8 @@ def _user_service_add_otp_email_serialize( @validate_call def user_service_add_otpsms( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceAddOTPSMSResponse: """Add OTP SMS for a user @@ -985,34 +457,15 @@ def user_service_add_otpsms( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_add_otpsms_serialize( + _param = self.__user_service_add_otpsms_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1020,152 +473,18 @@ def user_service_add_otpsms( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_add_otpsms_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceAddOTPSMSResponse]: - """Add OTP SMS for a user - - Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_add_otpsms_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddOTPSMSResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_add_otpsms_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Add OTP SMS for a user - - Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_add_otpsms_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceAddOTPSMSResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_add_otpsms_serialize( + def __user_service_add_otpsms_serialize( self, user_id, _request_auth, @@ -1205,19 +524,6 @@ def _user_service_add_otpsms_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1244,21 +550,9 @@ def _user_service_add_otpsms_serialize( @validate_call def user_service_create_invite_code( - self, - user_id: StrictStr, - user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest, ) -> UserServiceCreateInviteCodeResponse: """Create an invite code for a user @@ -1268,35 +562,16 @@ def user_service_create_invite_code( :type user_id: str :param user_service_create_invite_code_request: (required) :type user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_create_invite_code_serialize( + _param = self.__user_service_create_invite_code_serialize( user_id=user_id, user_service_create_invite_code_request=user_service_create_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1304,160 +579,18 @@ def user_service_create_invite_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_create_invite_code_with_http_info( - self, - user_id: StrictStr, - user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceCreateInviteCodeResponse]: - """Create an invite code for a user - - Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - :param user_id: (required) - :type user_id: str - :param user_service_create_invite_code_request: (required) - :type user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_create_invite_code_serialize( - user_id=user_id, - user_service_create_invite_code_request=user_service_create_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceCreateInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_create_invite_code_without_preload_content( - self, - user_id: StrictStr, - user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create an invite code for a user - - Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - - :param user_id: (required) - :type user_id: str - :param user_service_create_invite_code_request: (required) - :type user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_create_invite_code_serialize( - user_id=user_id, - user_service_create_invite_code_request=user_service_create_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceCreateInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_create_invite_code_serialize( + def __user_service_create_invite_code_serialize( self, user_id, user_service_create_invite_code_request, @@ -1539,21 +672,9 @@ def _user_service_create_invite_code_serialize( @validate_call def user_service_create_passkey_registration_link( - self, - user_id: StrictStr, - user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest, ) -> UserServiceCreatePasskeyRegistrationLinkResponse: """Create a passkey registration link for a user @@ -1563,35 +684,16 @@ def user_service_create_passkey_registration_link( :type user_id: str :param user_service_create_passkey_registration_link_request: (required) :type user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_create_passkey_registration_link_serialize( + _param = self.__user_service_create_passkey_registration_link_serialize( user_id=user_id, user_service_create_passkey_registration_link_request=user_service_create_passkey_registration_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1599,160 +701,18 @@ def user_service_create_passkey_registration_link( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_create_passkey_registration_link_with_http_info( - self, - user_id: StrictStr, - user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceCreatePasskeyRegistrationLinkResponse]: - """Create a passkey registration link for a user - - Create a passkey registration link which includes a code and either return it or send it to the user.. - - :param user_id: (required) - :type user_id: str - :param user_service_create_passkey_registration_link_request: (required) - :type user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_create_passkey_registration_link_serialize( - user_id=user_id, - user_service_create_passkey_registration_link_request=user_service_create_passkey_registration_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceCreatePasskeyRegistrationLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_create_passkey_registration_link_without_preload_content( - self, - user_id: StrictStr, - user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a passkey registration link for a user - - Create a passkey registration link which includes a code and either return it or send it to the user.. - - :param user_id: (required) - :type user_id: str - :param user_service_create_passkey_registration_link_request: (required) - :type user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_create_passkey_registration_link_serialize( - user_id=user_id, - user_service_create_passkey_registration_link_request=user_service_create_passkey_registration_link_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceCreatePasskeyRegistrationLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_create_passkey_registration_link_serialize( + def __user_service_create_passkey_registration_link_serialize( self, user_id, user_service_create_passkey_registration_link_request, @@ -1834,20 +794,8 @@ def _user_service_create_passkey_registration_link_serialize( @validate_call def user_service_deactivate_user( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceDeactivateUserResponse: """Deactivate user @@ -1855,34 +803,15 @@ def user_service_deactivate_user( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_deactivate_user_serialize( + _param = self.__user_service_deactivate_user_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -1890,152 +819,18 @@ def user_service_deactivate_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_deactivate_user_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceDeactivateUserResponse]: - """Deactivate user - - The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_deactivate_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceDeactivateUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_deactivate_user_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Deactivate user - - The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_deactivate_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceDeactivateUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_deactivate_user_serialize( + def __user_service_deactivate_user_serialize( self, user_id, _request_auth, @@ -2075,19 +870,6 @@ def _user_service_deactivate_user_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2114,20 +896,8 @@ def _user_service_deactivate_user_serialize( @validate_call def user_service_delete_user( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceDeleteUserResponse: """Delete user @@ -2135,34 +905,15 @@ def user_service_delete_user( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_delete_user_serialize( + _param = self.__user_service_delete_user_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2170,152 +921,18 @@ def user_service_delete_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_delete_user_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceDeleteUserResponse]: - """Delete user - - The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_delete_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceDeleteUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_delete_user_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete user - - The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_delete_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceDeleteUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_delete_user_serialize( + def __user_service_delete_user_serialize( self, user_id, _request_auth, @@ -2381,20 +998,8 @@ def _user_service_delete_user_serialize( @validate_call def user_service_get_user_by_id( - self, - user_id: Annotated[StrictStr, Field(description="User ID of the user you like to get.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: Annotated[StrictStr, Field(description="User ID of the user you like to get.")], ) -> UserServiceGetUserByIDResponse: """User by ID @@ -2402,34 +1007,15 @@ def user_service_get_user_by_id( :param user_id: User ID of the user you like to get. (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_get_user_by_id_serialize( + _param = self.__user_service_get_user_by_id_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2437,9 +1023,10 @@ def user_service_get_user_by_id( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( @@ -2447,142 +1034,7 @@ def user_service_get_user_by_id( response_types_map=_response_types_map, ).data - - @validate_call - def user_service_get_user_by_id_with_http_info( - self, - user_id: Annotated[StrictStr, Field(description="User ID of the user you like to get.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceGetUserByIDResponse]: - """User by ID - - Returns the full user object (human or machine) including the profile, email, etc.. - - :param user_id: User ID of the user you like to get. (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_get_user_by_id_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceGetUserByIDResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_get_user_by_id_without_preload_content( - self, - user_id: Annotated[StrictStr, Field(description="User ID of the user you like to get.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """User by ID - - Returns the full user object (human or machine) including the profile, email, etc.. - - :param user_id: User ID of the user you like to get. (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_get_user_by_id_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceGetUserByIDResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _user_service_get_user_by_id_serialize( + def __user_service_get_user_by_id_serialize( self, user_id, _request_auth, @@ -2648,20 +1100,8 @@ def _user_service_get_user_by_id_serialize( @validate_call def user_service_human_mfa_init_skipped( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceHumanMFAInitSkippedResponse: """MFA Init Skipped @@ -2669,34 +1109,15 @@ def user_service_human_mfa_init_skipped( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_human_mfa_init_skipped_serialize( + _param = self.__user_service_human_mfa_init_skipped_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2704,152 +1125,18 @@ def user_service_human_mfa_init_skipped( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_human_mfa_init_skipped_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceHumanMFAInitSkippedResponse]: - """MFA Init Skipped - - Update the last time the user has skipped MFA initialization. The server timestamp is used. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_human_mfa_init_skipped_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceHumanMFAInitSkippedResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_human_mfa_init_skipped_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """MFA Init Skipped - - Update the last time the user has skipped MFA initialization. The server timestamp is used. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_human_mfa_init_skipped_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceHumanMFAInitSkippedResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_human_mfa_init_skipped_serialize( + def __user_service_human_mfa_init_skipped_serialize( self, user_id, _request_auth, @@ -2889,19 +1176,6 @@ def _user_service_human_mfa_init_skipped_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2928,22 +1202,10 @@ def _user_service_human_mfa_init_skipped_serialize( @validate_call def user_service_list_authentication_factors( - self, - user_id: StrictStr, - auth_factors: Annotated[Optional[List[StrictStr]], Field(description="Specify the Auth Factors you are interested in")] = None, - states: Annotated[Optional[List[StrictStr]], Field(description="Specify the state of the Auth Factors")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + auth_factors: Annotated[Optional[List[StrictStr]], Field(description="Specify the Auth Factors you are interested in")] = None, + states: Annotated[Optional[List[StrictStr]], Field(description="Specify the state of the Auth Factors")] = None, ) -> UserServiceListAuthenticationFactorsResponse: """user_service_list_authentication_factors @@ -2954,36 +1216,17 @@ def user_service_list_authentication_factors( :type auth_factors: List[str] :param states: Specify the state of the Auth Factors :type states: List[str] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_list_authentication_factors_serialize( + _param = self.__user_service_list_authentication_factors_serialize( user_id=user_id, auth_factors=auth_factors, states=states, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -2991,166 +1234,18 @@ def user_service_list_authentication_factors( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def user_service_list_authentication_factors_with_http_info( - self, - user_id: StrictStr, - auth_factors: Annotated[Optional[List[StrictStr]], Field(description="Specify the Auth Factors you are interested in")] = None, - states: Annotated[Optional[List[StrictStr]], Field(description="Specify the state of the Auth Factors")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceListAuthenticationFactorsResponse]: - """user_service_list_authentication_factors - - - :param user_id: (required) - :type user_id: str - :param auth_factors: Specify the Auth Factors you are interested in - :type auth_factors: List[str] - :param states: Specify the state of the Auth Factors - :type states: List[str] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_authentication_factors_serialize( - user_id=user_id, - auth_factors=auth_factors, - states=states, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListAuthenticationFactorsResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_list_authentication_factors_without_preload_content( - self, - user_id: StrictStr, - auth_factors: Annotated[Optional[List[StrictStr]], Field(description="Specify the Auth Factors you are interested in")] = None, - states: Annotated[Optional[List[StrictStr]], Field(description="Specify the state of the Auth Factors")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """user_service_list_authentication_factors - - - :param user_id: (required) - :type user_id: str - :param auth_factors: Specify the Auth Factors you are interested in - :type auth_factors: List[str] - :param states: Specify the state of the Auth Factors - :type states: List[str] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_authentication_factors_serialize( - user_id=user_id, - auth_factors=auth_factors, - states=states, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListAuthenticationFactorsResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_list_authentication_factors_serialize( + def __user_service_list_authentication_factors_serialize( self, user_id, auth_factors, @@ -3228,22 +1323,10 @@ def _user_service_list_authentication_factors_serialize( @validate_call def user_service_list_authentication_method_types( - self, - user_id: StrictStr, - domain_query_include_without_domain: Annotated[Optional[StrictBool], Field(description="List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI.")] = None, - domain_query_domain: Annotated[Optional[StrictStr], Field(description="List only auth methods with specific domain.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + domain_query_include_without_domain: Annotated[Optional[StrictBool], Field(description="List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI.")] = None, + domain_query_domain: Annotated[Optional[StrictStr], Field(description="List only auth methods with specific domain.")] = None, ) -> UserServiceListAuthenticationMethodTypesResponse: """List all possible authentication methods of a user @@ -3255,36 +1338,17 @@ def user_service_list_authentication_method_types( :type domain_query_include_without_domain: bool :param domain_query_domain: List only auth methods with specific domain. :type domain_query_domain: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_list_authentication_method_types_serialize( + _param = self.__user_service_list_authentication_method_types_serialize( user_id=user_id, domain_query_include_without_domain=domain_query_include_without_domain, domain_query_domain=domain_query_domain, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -3292,168 +1356,18 @@ def user_service_list_authentication_method_types( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_list_authentication_method_types_with_http_info( - self, - user_id: StrictStr, - domain_query_include_without_domain: Annotated[Optional[StrictBool], Field(description="List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI.")] = None, - domain_query_domain: Annotated[Optional[StrictStr], Field(description="List only auth methods with specific domain.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceListAuthenticationMethodTypesResponse]: - """List all possible authentication methods of a user - - List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. - - :param user_id: (required) - :type user_id: str - :param domain_query_include_without_domain: List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI. - :type domain_query_include_without_domain: bool - :param domain_query_domain: List only auth methods with specific domain. - :type domain_query_domain: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_authentication_method_types_serialize( - user_id=user_id, - domain_query_include_without_domain=domain_query_include_without_domain, - domain_query_domain=domain_query_domain, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListAuthenticationMethodTypesResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_list_authentication_method_types_without_preload_content( - self, - user_id: StrictStr, - domain_query_include_without_domain: Annotated[Optional[StrictBool], Field(description="List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI.")] = None, - domain_query_domain: Annotated[Optional[StrictStr], Field(description="List only auth methods with specific domain.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List all possible authentication methods of a user - - List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. - - :param user_id: (required) - :type user_id: str - :param domain_query_include_without_domain: List also auth method types without domain information like passkey and U2F added through V1 APIs / Login UI. - :type domain_query_include_without_domain: bool - :param domain_query_domain: List only auth methods with specific domain. - :type domain_query_domain: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_authentication_method_types_serialize( - user_id=user_id, - domain_query_include_without_domain=domain_query_include_without_domain, - domain_query_domain=domain_query_domain, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListAuthenticationMethodTypesResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_list_authentication_method_types_serialize( + def __user_service_list_authentication_method_types_serialize( self, user_id, domain_query_include_without_domain, @@ -3529,21 +1443,9 @@ def _user_service_list_authentication_method_types_serialize( @validate_call def user_service_list_idp_links( - self, - user_id: StrictStr, - user_service_list_idp_links_request: UserServiceListIDPLinksRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_list_idp_links_request: UserServiceListIDPLinksRequest, ) -> UserServiceListIDPLinksResponse: """List links to an identity provider of an user @@ -3553,35 +1455,16 @@ def user_service_list_idp_links( :type user_id: str :param user_service_list_idp_links_request: (required) :type user_service_list_idp_links_request: UserServiceListIDPLinksRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_list_idp_links_serialize( + _param = self.__user_service_list_idp_links_serialize( user_id=user_id, user_service_list_idp_links_request=user_service_list_idp_links_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -3589,9 +1472,10 @@ def user_service_list_idp_links( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( @@ -3599,150 +1483,7 @@ def user_service_list_idp_links( response_types_map=_response_types_map, ).data - - @validate_call - def user_service_list_idp_links_with_http_info( - self, - user_id: StrictStr, - user_service_list_idp_links_request: UserServiceListIDPLinksRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceListIDPLinksResponse]: - """List links to an identity provider of an user - - List links to an identity provider of an user. - - :param user_id: (required) - :type user_id: str - :param user_service_list_idp_links_request: (required) - :type user_service_list_idp_links_request: UserServiceListIDPLinksRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_idp_links_serialize( - user_id=user_id, - user_service_list_idp_links_request=user_service_list_idp_links_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListIDPLinksResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_list_idp_links_without_preload_content( - self, - user_id: StrictStr, - user_service_list_idp_links_request: UserServiceListIDPLinksRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List links to an identity provider of an user - - List links to an identity provider of an user. - - :param user_id: (required) - :type user_id: str - :param user_service_list_idp_links_request: (required) - :type user_service_list_idp_links_request: UserServiceListIDPLinksRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_idp_links_serialize( - user_id=user_id, - user_service_list_idp_links_request=user_service_list_idp_links_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListIDPLinksResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _user_service_list_idp_links_serialize( + def __user_service_list_idp_links_serialize( self, user_id, user_service_list_idp_links_request, @@ -3824,20 +1565,8 @@ def _user_service_list_idp_links_serialize( @validate_call def user_service_list_passkeys( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceListPasskeysResponse: """List passkeys of an user @@ -3845,34 +1574,15 @@ def user_service_list_passkeys( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_list_passkeys_serialize( + _param = self.__user_service_list_passkeys_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -3880,152 +1590,18 @@ def user_service_list_passkeys( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_list_passkeys_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceListPasskeysResponse]: - """List passkeys of an user - - List passkeys of an user - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_passkeys_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListPasskeysResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_list_passkeys_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List passkeys of an user - - List passkeys of an user - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_passkeys_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListPasskeysResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_list_passkeys_serialize( + def __user_service_list_passkeys_serialize( self, user_id, _request_auth, @@ -4065,19 +1641,6 @@ def _user_service_list_passkeys_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4104,20 +1667,8 @@ def _user_service_list_passkeys_serialize( @validate_call def user_service_list_users( - self, - user_service_list_users_request: UserServiceListUsersRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_service_list_users_request: UserServiceListUsersRequest, ) -> UserServiceListUsersResponse: """Search Users @@ -4125,34 +1676,15 @@ def user_service_list_users( :param user_service_list_users_request: (required) :type user_service_list_users_request: UserServiceListUsersRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_list_users_serialize( + _param = self.__user_service_list_users_serialize( user_service_list_users_request=user_service_list_users_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -4161,154 +1693,18 @@ def user_service_list_users( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_list_users_with_http_info( - self, - user_service_list_users_request: UserServiceListUsersRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceListUsersResponse]: - """Search Users - - Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. - - :param user_service_list_users_request: (required) - :type user_service_list_users_request: UserServiceListUsersRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_list_users_serialize( - user_service_list_users_request=user_service_list_users_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListUsersResponse", - '400': "UserServiceRpcStatus", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_list_users_without_preload_content( - self, - user_service_list_users_request: UserServiceListUsersRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Search Users - - Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. - - :param user_service_list_users_request: (required) - :type user_service_list_users_request: UserServiceListUsersRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_list_users_serialize( - user_service_list_users_request=user_service_list_users_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceListUsersResponse", - '400': "UserServiceRpcStatus", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_list_users_serialize( + def __user_service_list_users_serialize( self, user_service_list_users_request, _request_auth, @@ -4387,20 +1783,8 @@ def _user_service_list_users_serialize( @validate_call def user_service_lock_user( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceLockUserResponse: """Lock user @@ -4408,34 +1792,15 @@ def user_service_lock_user( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_lock_user_serialize( + _param = self.__user_service_lock_user_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -4443,152 +1808,18 @@ def user_service_lock_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_lock_user_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceLockUserResponse]: - """Lock user - - The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_lock_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceLockUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_lock_user_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Lock user - - The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_lock_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceLockUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_lock_user_serialize( + def __user_service_lock_user_serialize( self, user_id, _request_auth, @@ -4628,19 +1859,6 @@ def _user_service_lock_user_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4667,21 +1885,9 @@ def _user_service_lock_user_serialize( @validate_call def user_service_password_reset( - self, - user_id: StrictStr, - user_service_password_reset_request: UserServicePasswordResetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_password_reset_request: UserServicePasswordResetRequest, ) -> UserServicePasswordResetResponse: """Request a code to reset a password @@ -4691,35 +1897,16 @@ def user_service_password_reset( :type user_id: str :param user_service_password_reset_request: (required) :type user_service_password_reset_request: UserServicePasswordResetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_password_reset_serialize( + _param = self.__user_service_password_reset_serialize( user_id=user_id, user_service_password_reset_request=user_service_password_reset_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -4727,9 +1914,10 @@ def user_service_password_reset( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( @@ -4737,150 +1925,7 @@ def user_service_password_reset( response_types_map=_response_types_map, ).data - - @validate_call - def user_service_password_reset_with_http_info( - self, - user_id: StrictStr, - user_service_password_reset_request: UserServicePasswordResetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServicePasswordResetResponse]: - """Request a code to reset a password - - Request a code to reset a password.. - - :param user_id: (required) - :type user_id: str - :param user_service_password_reset_request: (required) - :type user_service_password_reset_request: UserServicePasswordResetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_password_reset_serialize( - user_id=user_id, - user_service_password_reset_request=user_service_password_reset_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServicePasswordResetResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_password_reset_without_preload_content( - self, - user_id: StrictStr, - user_service_password_reset_request: UserServicePasswordResetRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Request a code to reset a password - - Request a code to reset a password.. - - :param user_id: (required) - :type user_id: str - :param user_service_password_reset_request: (required) - :type user_service_password_reset_request: UserServicePasswordResetRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_password_reset_serialize( - user_id=user_id, - user_service_password_reset_request=user_service_password_reset_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServicePasswordResetResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _user_service_password_reset_serialize( + def __user_service_password_reset_serialize( self, user_id, user_service_password_reset_request, @@ -4962,20 +2007,8 @@ def _user_service_password_reset_serialize( @validate_call def user_service_reactivate_user( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceReactivateUserResponse: """Reactivate user @@ -4983,34 +2016,15 @@ def user_service_reactivate_user( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_reactivate_user_serialize( + _param = self.__user_service_reactivate_user_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -5018,152 +2032,18 @@ def user_service_reactivate_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def user_service_reactivate_user_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceReactivateUserResponse]: - """Reactivate user - - Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_reactivate_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceReactivateUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_reactivate_user_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Reactivate user - - Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_reactivate_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceReactivateUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_reactivate_user_serialize( + def __user_service_reactivate_user_serialize( self, user_id, _request_auth, @@ -5203,19 +2083,6 @@ def _user_service_reactivate_user_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5242,21 +2109,9 @@ def _user_service_reactivate_user_serialize( @validate_call def user_service_register_passkey( - self, - user_id: StrictStr, - user_service_register_passkey_request: UserServiceRegisterPasskeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_register_passkey_request: UserServiceRegisterPasskeyRequest, ) -> UserServiceRegisterPasskeyResponse: """Start the registration of passkey for a user @@ -5266,35 +2121,16 @@ def user_service_register_passkey( :type user_id: str :param user_service_register_passkey_request: (required) :type user_service_register_passkey_request: UserServiceRegisterPasskeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_register_passkey_serialize( + _param = self.__user_service_register_passkey_serialize( user_id=user_id, user_service_register_passkey_request=user_service_register_passkey_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -5302,160 +2138,18 @@ def user_service_register_passkey( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_register_passkey_with_http_info( - self, - user_id: StrictStr, - user_service_register_passkey_request: UserServiceRegisterPasskeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRegisterPasskeyResponse]: - """Start the registration of passkey for a user - Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. - - :param user_id: (required) - :type user_id: str - :param user_service_register_passkey_request: (required) - :type user_service_register_passkey_request: UserServiceRegisterPasskeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_passkey_serialize( - user_id=user_id, - user_service_register_passkey_request=user_service_register_passkey_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterPasskeyResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_register_passkey_without_preload_content( - self, - user_id: StrictStr, - user_service_register_passkey_request: UserServiceRegisterPasskeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Start the registration of passkey for a user - - Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. - - :param user_id: (required) - :type user_id: str - :param user_service_register_passkey_request: (required) - :type user_service_register_passkey_request: UserServiceRegisterPasskeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_passkey_serialize( - user_id=user_id, - user_service_register_passkey_request=user_service_register_passkey_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterPasskeyResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_register_passkey_serialize( + def __user_service_register_passkey_serialize( self, user_id, user_service_register_passkey_request, @@ -5537,20 +2231,8 @@ def _user_service_register_passkey_serialize( @validate_call def user_service_register_totp( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceRegisterTOTPResponse: """Start the registration of a TOTP generator for a user @@ -5558,34 +2240,15 @@ def user_service_register_totp( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_register_totp_serialize( + _param = self.__user_service_register_totp_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -5593,152 +2256,18 @@ def user_service_register_totp( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_register_totp_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRegisterTOTPResponse]: - """Start the registration of a TOTP generator for a user - Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_totp_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterTOTPResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_register_totp_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Start the registration of a TOTP generator for a user - - Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_totp_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterTOTPResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_register_totp_serialize( + def __user_service_register_totp_serialize( self, user_id, _request_auth, @@ -5778,19 +2307,6 @@ def _user_service_register_totp_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -5817,21 +2333,9 @@ def _user_service_register_totp_serialize( @validate_call def user_service_register_u2_f( - self, - user_id: StrictStr, - user_service_register_u2_f_request: UserServiceRegisterU2FRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_register_u2_f_request: UserServiceRegisterU2FRequest, ) -> UserServiceRegisterU2FResponse: """Start the registration of a u2f token for a user @@ -5841,35 +2345,16 @@ def user_service_register_u2_f( :type user_id: str :param user_service_register_u2_f_request: (required) :type user_service_register_u2_f_request: UserServiceRegisterU2FRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_register_u2_f_serialize( + _param = self.__user_service_register_u2_f_serialize( user_id=user_id, user_service_register_u2_f_request=user_service_register_u2_f_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -5877,160 +2362,18 @@ def user_service_register_u2_f( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def user_service_register_u2_f_with_http_info( - self, - user_id: StrictStr, - user_service_register_u2_f_request: UserServiceRegisterU2FRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRegisterU2FResponse]: - """Start the registration of a u2f token for a user - - Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. - - :param user_id: (required) - :type user_id: str - :param user_service_register_u2_f_request: (required) - :type user_service_register_u2_f_request: UserServiceRegisterU2FRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_u2_f_serialize( - user_id=user_id, - user_service_register_u2_f_request=user_service_register_u2_f_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterU2FResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_register_u2_f_without_preload_content( - self, - user_id: StrictStr, - user_service_register_u2_f_request: UserServiceRegisterU2FRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Start the registration of a u2f token for a user - - Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. - - :param user_id: (required) - :type user_id: str - :param user_service_register_u2_f_request: (required) - :type user_service_register_u2_f_request: UserServiceRegisterU2FRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_register_u2_f_serialize( - user_id=user_id, - user_service_register_u2_f_request=user_service_register_u2_f_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRegisterU2FResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_register_u2_f_serialize( + def __user_service_register_u2_f_serialize( self, user_id, user_service_register_u2_f_request, @@ -6109,180 +2452,14 @@ def _user_service_register_u2_f_serialize( - - @validate_call - def user_service_remove_idp_link( - self, - user_id: StrictStr, - idp_id: StrictStr, - linked_user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserServiceRemoveIDPLinkResponse: - """Remove link of an identity provider to an user - - Remove link of an identity provider to an user. - - :param user_id: (required) - :type user_id: str - :param idp_id: (required) - :type idp_id: str - :param linked_user_id: (required) - :type linked_user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_idp_link_serialize( - user_id=user_id, - idp_id=idp_id, - linked_user_id=linked_user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveIDPLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_idp_link_with_http_info( - self, - user_id: StrictStr, - idp_id: StrictStr, - linked_user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemoveIDPLinkResponse]: - """Remove link of an identity provider to an user - - Remove link of an identity provider to an user. - - :param user_id: (required) - :type user_id: str - :param idp_id: (required) - :type idp_id: str - :param linked_user_id: (required) - :type linked_user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_idp_link_serialize( - user_id=user_id, - idp_id=idp_id, - linked_user_id=linked_user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveIDPLinkResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - + @validate_call - def user_service_remove_idp_link_without_preload_content( - self, - user_id: StrictStr, - idp_id: StrictStr, - linked_user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: + def user_service_remove_idp_link( + self, + user_id: StrictStr, + idp_id: StrictStr, + linked_user_id: StrictStr, + ) -> UserServiceRemoveIDPLinkResponse: """Remove link of an identity provider to an user Remove link of an identity provider to an user. @@ -6293,36 +2470,17 @@ def user_service_remove_idp_link_without_preload_content( :type idp_id: str :param linked_user_id: (required) :type linked_user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_idp_link_serialize( + _param = self.__user_service_remove_idp_link_serialize( user_id=user_id, idp_id=idp_id, linked_user_id=linked_user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -6330,14 +2488,18 @@ def user_service_remove_idp_link_without_preload_content( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _user_service_remove_idp_link_serialize( + def __user_service_remove_idp_link_serialize( self, user_id, idp_id, @@ -6383,19 +2545,6 @@ def _user_service_remove_idp_link_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6422,20 +2571,8 @@ def _user_service_remove_idp_link_serialize( @validate_call def user_service_remove_otp_email( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceRemoveOTPEmailResponse: """Remove One-Time Password (OTP) Email from a user @@ -6443,34 +2580,15 @@ def user_service_remove_otp_email( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_otp_email_serialize( + _param = self.__user_service_remove_otp_email_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -6478,152 +2596,18 @@ def user_service_remove_otp_email( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_otp_email_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemoveOTPEmailResponse]: - """Remove One-Time Password (OTP) Email from a user - - Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_otp_email_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveOTPEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_otp_email_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove One-Time Password (OTP) Email from a user - - Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_otp_email_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveOTPEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_remove_otp_email_serialize( + def __user_service_remove_otp_email_serialize( self, user_id, _request_auth, @@ -6689,20 +2673,8 @@ def _user_service_remove_otp_email_serialize( @validate_call def user_service_remove_otpsms( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceRemoveOTPSMSResponse: """Remove One-Time Password (OTP) SMS from a user @@ -6710,34 +2682,15 @@ def user_service_remove_otpsms( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_otpsms_serialize( + _param = self.__user_service_remove_otpsms_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -6745,152 +2698,18 @@ def user_service_remove_otpsms( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_otpsms_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemoveOTPSMSResponse]: - """Remove One-Time Password (OTP) SMS from a user - - Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_otpsms_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveOTPSMSResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_otpsms_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove One-Time Password (OTP) SMS from a user - - Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_otpsms_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveOTPSMSResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_remove_otpsms_serialize( + def __user_service_remove_otpsms_serialize( self, user_id, _request_auth, @@ -6956,21 +2775,9 @@ def _user_service_remove_otpsms_serialize( @validate_call def user_service_remove_passkey( - self, - user_id: StrictStr, - passkey_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + passkey_id: StrictStr, ) -> UserServiceRemovePasskeyResponse: """Remove passkey from a user @@ -6980,35 +2787,16 @@ def user_service_remove_passkey( :type user_id: str :param passkey_id: (required) :type passkey_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_passkey_serialize( + _param = self.__user_service_remove_passkey_serialize( user_id=user_id, passkey_id=passkey_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -7016,160 +2804,18 @@ def user_service_remove_passkey( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_passkey_with_http_info( - self, - user_id: StrictStr, - passkey_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemovePasskeyResponse]: - """Remove passkey from a user - - Remove passkey from a user. - - :param user_id: (required) - :type user_id: str - :param passkey_id: (required) - :type passkey_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_passkey_serialize( - user_id=user_id, - passkey_id=passkey_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemovePasskeyResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_passkey_without_preload_content( - self, - user_id: StrictStr, - passkey_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove passkey from a user - - Remove passkey from a user. - - :param user_id: (required) - :type user_id: str - :param passkey_id: (required) - :type passkey_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_passkey_serialize( - user_id=user_id, - passkey_id=passkey_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemovePasskeyResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_remove_passkey_serialize( + def __user_service_remove_passkey_serialize( self, user_id, passkey_id, @@ -7238,20 +2884,8 @@ def _user_service_remove_passkey_serialize( @validate_call def user_service_remove_phone( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceRemovePhoneResponse: """Delete the user phone @@ -7259,103 +2893,15 @@ def user_service_remove_phone( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_phone_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemovePhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_phone_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemovePhoneResponse]: - """Delete the user phone - - Delete the phone number of a user. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_phone_serialize( + _param = self.__user_service_remove_phone_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -7363,83 +2909,18 @@ def user_service_remove_phone_with_http_info( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_phone_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete the user phone - - Delete the phone number of a user. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_remove_phone_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemovePhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _user_service_remove_phone_serialize( + def __user_service_remove_phone_serialize( self, user_id, _request_auth, @@ -7479,19 +2960,6 @@ def _user_service_remove_phone_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7518,20 +2986,8 @@ def _user_service_remove_phone_serialize( @validate_call def user_service_remove_totp( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceRemoveTOTPResponse: """Remove TOTP generator from a user @@ -7539,34 +2995,15 @@ def user_service_remove_totp( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_totp_serialize( + _param = self.__user_service_remove_totp_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -7574,152 +3011,18 @@ def user_service_remove_totp( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_totp_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemoveTOTPResponse]: - """Remove TOTP generator from a user - - Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_remove_totp_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveTOTPResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_totp_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove TOTP generator from a user - - Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_totp_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveTOTPResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_remove_totp_serialize( + def __user_service_remove_totp_serialize( self, user_id, _request_auth, @@ -7785,21 +3088,9 @@ def _user_service_remove_totp_serialize( @validate_call def user_service_remove_u2_f( - self, - user_id: StrictStr, - u2f_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + u2f_id: StrictStr, ) -> UserServiceRemoveU2FResponse: """Remove u2f token from a user @@ -7809,35 +3100,16 @@ def user_service_remove_u2_f( :type user_id: str :param u2f_id: (required) :type u2f_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_remove_u2_f_serialize( + _param = self.__user_service_remove_u2_f_serialize( user_id=user_id, u2f_id=u2f_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -7845,160 +3117,18 @@ def user_service_remove_u2_f( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_remove_u2_f_with_http_info( - self, - user_id: StrictStr, - u2f_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRemoveU2FResponse]: - """Remove u2f token from a user - - Remove u2f token from a user - - :param user_id: (required) - :type user_id: str - :param u2f_id: (required) - :type u2f_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_u2_f_serialize( - user_id=user_id, - u2f_id=u2f_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveU2FResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_remove_u2_f_without_preload_content( - self, - user_id: StrictStr, - u2f_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove u2f token from a user - - Remove u2f token from a user - - :param user_id: (required) - :type user_id: str - :param u2f_id: (required) - :type u2f_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_remove_u2_f_serialize( - user_id=user_id, - u2f_id=u2f_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRemoveU2FResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_remove_u2_f_serialize( + def __user_service_remove_u2_f_serialize( self, user_id, u2f_id, @@ -8067,21 +3197,9 @@ def _user_service_remove_u2_f_serialize( @validate_call def user_service_resend_email_code( - self, - user_id: StrictStr, - user_service_resend_email_code_request: UserServiceResendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_resend_email_code_request: UserServiceResendEmailCodeRequest, ) -> UserServiceResendEmailCodeResponse: """Resend code to verify user email @@ -8091,35 +3209,16 @@ def user_service_resend_email_code( :type user_id: str :param user_service_resend_email_code_request: (required) :type user_service_resend_email_code_request: UserServiceResendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_resend_email_code_serialize( + _param = self.__user_service_resend_email_code_serialize( user_id=user_id, user_service_resend_email_code_request=user_service_resend_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -8127,160 +3226,18 @@ def user_service_resend_email_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_resend_email_code_with_http_info( - self, - user_id: StrictStr, - user_service_resend_email_code_request: UserServiceResendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceResendEmailCodeResponse]: - """Resend code to verify user email - - Resend code to verify user email. - - :param user_id: (required) - :type user_id: str - :param user_service_resend_email_code_request: (required) - :type user_service_resend_email_code_request: UserServiceResendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_resend_email_code_serialize( - user_id=user_id, - user_service_resend_email_code_request=user_service_resend_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendEmailCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_resend_email_code_without_preload_content( - self, - user_id: StrictStr, - user_service_resend_email_code_request: UserServiceResendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Resend code to verify user email - - Resend code to verify user email. - - :param user_id: (required) - :type user_id: str - :param user_service_resend_email_code_request: (required) - :type user_service_resend_email_code_request: UserServiceResendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_resend_email_code_serialize( - user_id=user_id, - user_service_resend_email_code_request=user_service_resend_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendEmailCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_resend_email_code_serialize( + def __user_service_resend_email_code_serialize( self, user_id, user_service_resend_email_code_request, @@ -8362,20 +3319,8 @@ def _user_service_resend_email_code_serialize( @validate_call def user_service_resend_invite_code( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, ) -> UserServiceResendInviteCodeResponse: """Resend an invite code for a user @@ -8383,34 +3328,15 @@ def user_service_resend_invite_code( :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_resend_invite_code_serialize( + _param = self.__user_service_resend_invite_code_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -8418,152 +3344,18 @@ def user_service_resend_invite_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def user_service_resend_invite_code_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceResendInviteCodeResponse]: - """Resend an invite code for a user - - Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_resend_invite_code_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_resend_invite_code_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Resend an invite code for a user - - Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_resend_invite_code_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _user_service_resend_invite_code_serialize( + def __user_service_resend_invite_code_serialize( self, user_id, _request_auth, @@ -8629,21 +3421,9 @@ def _user_service_resend_invite_code_serialize( @validate_call def user_service_resend_phone_code( - self, - user_id: StrictStr, - user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest, ) -> UserServiceResendPhoneCodeResponse: """Resend code to verify user phone @@ -8653,35 +3433,16 @@ def user_service_resend_phone_code( :type user_id: str :param user_service_resend_phone_code_request: (required) :type user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_resend_phone_code_serialize( + _param = self.__user_service_resend_phone_code_serialize( user_id=user_id, user_service_resend_phone_code_request=user_service_resend_phone_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -8689,160 +3450,18 @@ def user_service_resend_phone_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_resend_phone_code_with_http_info( - self, - user_id: StrictStr, - user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceResendPhoneCodeResponse]: - """Resend code to verify user phone - - Resend code to verify user phone. - - :param user_id: (required) - :type user_id: str - :param user_service_resend_phone_code_request: (required) - :type user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_resend_phone_code_serialize( - user_id=user_id, - user_service_resend_phone_code_request=user_service_resend_phone_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendPhoneCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_resend_phone_code_without_preload_content( - self, - user_id: StrictStr, - user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Resend code to verify user phone - - Resend code to verify user phone. - - :param user_id: (required) - :type user_id: str - :param user_service_resend_phone_code_request: (required) - :type user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_resend_phone_code_serialize( - user_id=user_id, - user_service_resend_phone_code_request=user_service_resend_phone_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceResendPhoneCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_resend_phone_code_serialize( + def __user_service_resend_phone_code_serialize( self, user_id, user_service_resend_phone_code_request, @@ -8924,21 +3543,9 @@ def _user_service_resend_phone_code_serialize( @validate_call def user_service_retrieve_identity_provider_intent( - self, - idp_intent_id: Annotated[StrictStr, Field(description="ID of the idp intent, previously returned on the success response of the IDP callback")], - user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + idp_intent_id: Annotated[StrictStr, Field(description="ID of the idp intent, previously returned on the success response of the IDP callback")], + user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest, ) -> UserServiceRetrieveIdentityProviderIntentResponse: """Retrieve the information returned by the identity provider @@ -8948,35 +3555,16 @@ def user_service_retrieve_identity_provider_intent( :type idp_intent_id: str :param user_service_retrieve_identity_provider_intent_request: (required) :type user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_retrieve_identity_provider_intent_serialize( + _param = self.__user_service_retrieve_identity_provider_intent_serialize( idp_intent_id=idp_intent_id, user_service_retrieve_identity_provider_intent_request=user_service_retrieve_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -8984,160 +3572,18 @@ def user_service_retrieve_identity_provider_intent( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_retrieve_identity_provider_intent_with_http_info( - self, - idp_intent_id: Annotated[StrictStr, Field(description="ID of the idp intent, previously returned on the success response of the IDP callback")], - user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceRetrieveIdentityProviderIntentResponse]: - """Retrieve the information returned by the identity provider - - Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. - - :param idp_intent_id: ID of the idp intent, previously returned on the success response of the IDP callback (required) - :type idp_intent_id: str - :param user_service_retrieve_identity_provider_intent_request: (required) - :type user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_retrieve_identity_provider_intent_serialize( - idp_intent_id=idp_intent_id, - user_service_retrieve_identity_provider_intent_request=user_service_retrieve_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRetrieveIdentityProviderIntentResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_retrieve_identity_provider_intent_without_preload_content( - self, - idp_intent_id: Annotated[StrictStr, Field(description="ID of the idp intent, previously returned on the success response of the IDP callback")], - user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Retrieve the information returned by the identity provider - - Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. - - :param idp_intent_id: ID of the idp intent, previously returned on the success response of the IDP callback (required) - :type idp_intent_id: str - :param user_service_retrieve_identity_provider_intent_request: (required) - :type user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_retrieve_identity_provider_intent_serialize( - idp_intent_id=idp_intent_id, - user_service_retrieve_identity_provider_intent_request=user_service_retrieve_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceRetrieveIdentityProviderIntentResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_retrieve_identity_provider_intent_serialize( + def __user_service_retrieve_identity_provider_intent_serialize( self, idp_intent_id, user_service_retrieve_identity_provider_intent_request, @@ -9219,21 +3665,9 @@ def _user_service_retrieve_identity_provider_intent_serialize( @validate_call def user_service_send_email_code( - self, - user_id: StrictStr, - user_service_send_email_code_request: UserServiceSendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_send_email_code_request: UserServiceSendEmailCodeRequest, ) -> UserServiceSendEmailCodeResponse: """Send code to verify user email @@ -9243,35 +3677,16 @@ def user_service_send_email_code( :type user_id: str :param user_service_send_email_code_request: (required) :type user_service_send_email_code_request: UserServiceSendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_send_email_code_serialize( + _param = self.__user_service_send_email_code_serialize( user_id=user_id, user_service_send_email_code_request=user_service_send_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -9279,160 +3694,18 @@ def user_service_send_email_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_send_email_code_with_http_info( - self, - user_id: StrictStr, - user_service_send_email_code_request: UserServiceSendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceSendEmailCodeResponse]: - """Send code to verify user email - - Send code to verify user email. - - :param user_id: (required) - :type user_id: str - :param user_service_send_email_code_request: (required) - :type user_service_send_email_code_request: UserServiceSendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_send_email_code_serialize( - user_id=user_id, - user_service_send_email_code_request=user_service_send_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSendEmailCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_send_email_code_without_preload_content( - self, - user_id: StrictStr, - user_service_send_email_code_request: UserServiceSendEmailCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Send code to verify user email - - Send code to verify user email. - - :param user_id: (required) - :type user_id: str - :param user_service_send_email_code_request: (required) - :type user_service_send_email_code_request: UserServiceSendEmailCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_send_email_code_serialize( - user_id=user_id, - user_service_send_email_code_request=user_service_send_email_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSendEmailCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_send_email_code_serialize( + def __user_service_send_email_code_serialize( self, user_id, user_service_send_email_code_request, @@ -9513,169 +3786,11 @@ def _user_service_send_email_code_serialize( @validate_call - def user_service_set_email( - self, - user_id: StrictStr, - user_service_set_email_request: UserServiceSetEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserServiceSetEmailResponse: - """Change the user email - - Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_email_request: (required) - :type user_service_set_email_request: UserServiceSetEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_set_email_serialize( - user_id=user_id, - user_service_set_email_request=user_service_set_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_set_email_with_http_info( - self, - user_id: StrictStr, - user_service_set_email_request: UserServiceSetEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceSetEmailResponse]: - """Change the user email - - Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_email_request: (required) - :type user_service_set_email_request: UserServiceSetEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_set_email_serialize( - user_id=user_id, - user_service_set_email_request=user_service_set_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_set_email_without_preload_content( - self, - user_id: StrictStr, - user_service_set_email_request: UserServiceSetEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: + def user_service_set_email( + self, + user_id: StrictStr, + user_service_set_email_request: UserServiceSetEmailRequest, + ) -> UserServiceSetEmailResponse: """Change the user email Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. @@ -9684,35 +3799,16 @@ def user_service_set_email_without_preload_content( :type user_id: str :param user_service_set_email_request: (required) :type user_service_set_email_request: UserServiceSetEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_set_email_serialize( + _param = self.__user_service_set_email_serialize( user_id=user_id, user_service_set_email_request=user_service_set_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -9720,14 +3816,18 @@ def user_service_set_email_without_preload_content( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _user_service_set_email_serialize( + def __user_service_set_email_serialize( self, user_id, user_service_set_email_request, @@ -9809,21 +3909,9 @@ def _user_service_set_email_serialize( @validate_call def user_service_set_password( - self, - user_id: StrictStr, - user_service_set_password_request: UserServiceSetPasswordRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_set_password_request: UserServiceSetPasswordRequest, ) -> UserServiceSetPasswordResponse: """Change password @@ -9833,35 +3921,16 @@ def user_service_set_password( :type user_id: str :param user_service_set_password_request: (required) :type user_service_set_password_request: UserServiceSetPasswordRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_set_password_serialize( + _param = self.__user_service_set_password_serialize( user_id=user_id, user_service_set_password_request=user_service_set_password_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -9869,160 +3938,18 @@ def user_service_set_password( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_set_password_with_http_info( - self, - user_id: StrictStr, - user_service_set_password_request: UserServiceSetPasswordRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceSetPasswordResponse]: - """Change password - - Change the password of a user with either a verification code or the current password.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_password_request: (required) - :type user_service_set_password_request: UserServiceSetPasswordRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - _param = self._user_service_set_password_serialize( - user_id=user_id, - user_service_set_password_request=user_service_set_password_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetPasswordResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_set_password_without_preload_content( - self, - user_id: StrictStr, - user_service_set_password_request: UserServiceSetPasswordRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Change password - - Change the password of a user with either a verification code or the current password.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_password_request: (required) - :type user_service_set_password_request: UserServiceSetPasswordRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_set_password_serialize( - user_id=user_id, - user_service_set_password_request=user_service_set_password_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetPasswordResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_set_password_serialize( + def __user_service_set_password_serialize( self, user_id, user_service_set_password_request, @@ -10104,21 +4031,9 @@ def _user_service_set_password_serialize( @validate_call def user_service_set_phone( - self, - user_id: StrictStr, - user_service_set_phone_request: UserServiceSetPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_set_phone_request: UserServiceSetPhoneRequest, ) -> UserServiceSetPhoneResponse: """Set the user phone @@ -10128,35 +4043,16 @@ def user_service_set_phone( :type user_id: str :param user_service_set_phone_request: (required) :type user_service_set_phone_request: UserServiceSetPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_set_phone_serialize( + _param = self.__user_service_set_phone_serialize( user_id=user_id, user_service_set_phone_request=user_service_set_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -10164,160 +4060,18 @@ def user_service_set_phone( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_set_phone_with_http_info( - self, - user_id: StrictStr, - user_service_set_phone_request: UserServiceSetPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceSetPhoneResponse]: - """Set the user phone - - Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_phone_request: (required) - :type user_service_set_phone_request: UserServiceSetPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_set_phone_serialize( - user_id=user_id, - user_service_set_phone_request=user_service_set_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetPhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_set_phone_without_preload_content( - self, - user_id: StrictStr, - user_service_set_phone_request: UserServiceSetPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Set the user phone - - Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. - - :param user_id: (required) - :type user_id: str - :param user_service_set_phone_request: (required) - :type user_service_set_phone_request: UserServiceSetPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_set_phone_serialize( - user_id=user_id, - user_service_set_phone_request=user_service_set_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceSetPhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_set_phone_serialize( + def __user_service_set_phone_serialize( self, user_id, user_service_set_phone_request, @@ -10399,20 +4153,8 @@ def _user_service_set_phone_serialize( @validate_call def user_service_start_identity_provider_intent( - self, - user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest, ) -> UserServiceStartIdentityProviderIntentResponse: """Start flow with an identity provider @@ -10420,34 +4162,15 @@ def user_service_start_identity_provider_intent( :param user_service_start_identity_provider_intent_request: (required) :type user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_start_identity_provider_intent_serialize( + _param = self.__user_service_start_identity_provider_intent_serialize( user_service_start_identity_provider_intent_request=user_service_start_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -10455,152 +4178,18 @@ def user_service_start_identity_provider_intent( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_start_identity_provider_intent_with_http_info( - self, - user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceStartIdentityProviderIntentResponse]: - """Start flow with an identity provider - - Start a flow with an identity provider, for external login, registration or linking.. - - :param user_service_start_identity_provider_intent_request: (required) - :type user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_start_identity_provider_intent_serialize( - user_service_start_identity_provider_intent_request=user_service_start_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceStartIdentityProviderIntentResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_start_identity_provider_intent_without_preload_content( - self, - user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Start flow with an identity provider - - Start a flow with an identity provider, for external login, registration or linking.. - - :param user_service_start_identity_provider_intent_request: (required) - :type user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_start_identity_provider_intent_serialize( - user_service_start_identity_provider_intent_request=user_service_start_identity_provider_intent_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceStartIdentityProviderIntentResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_start_identity_provider_intent_serialize( + def __user_service_start_identity_provider_intent_serialize( self, user_service_start_identity_provider_intent_request, _request_auth, @@ -10667,205 +4256,36 @@ def _user_service_start_identity_provider_intent_serialize( header_params=_header_params, body=_body_params, post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def user_service_unlock_user( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserServiceUnlockUserResponse: - """Unlock user - - The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_unlock_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceUnlockUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_unlock_user_with_http_info( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceUnlockUserResponse]: - """Unlock user - - The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. - - :param user_id: (required) - :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_unlock_user_serialize( - user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceUnlockUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth ) + + @validate_call - def user_service_unlock_user_without_preload_content( - self, - user_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: + def user_service_unlock_user( + self, + user_id: StrictStr, + ) -> UserServiceUnlockUserResponse: """Unlock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. :param user_id: (required) :type user_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_unlock_user_serialize( + _param = self.__user_service_unlock_user_serialize( user_id=user_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -10873,14 +4293,18 @@ def user_service_unlock_user_without_preload_content( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) - return response_data.response - + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data - def _user_service_unlock_user_serialize( + def __user_service_unlock_user_serialize( self, user_id, _request_auth, @@ -10920,19 +4344,6 @@ def _user_service_unlock_user_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10959,21 +4370,9 @@ def _user_service_unlock_user_serialize( @validate_call def user_service_update_human_user( - self, - user_id: StrictStr, - user_service_update_human_user_request: UserServiceUpdateHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_update_human_user_request: UserServiceUpdateHumanUserRequest, ) -> UserServiceUpdateHumanUserResponse: """Update User @@ -10983,35 +4382,16 @@ def user_service_update_human_user( :type user_id: str :param user_service_update_human_user_request: (required) :type user_service_update_human_user_request: UserServiceUpdateHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_update_human_user_serialize( + _param = self.__user_service_update_human_user_serialize( user_id=user_id, user_service_update_human_user_request=user_service_update_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -11019,160 +4399,18 @@ def user_service_update_human_user( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_update_human_user_with_http_info( - self, - user_id: StrictStr, - user_service_update_human_user_request: UserServiceUpdateHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceUpdateHumanUserResponse]: - """Update User - - Update all information from a user.. - - :param user_id: (required) - :type user_id: str - :param user_service_update_human_user_request: (required) - :type user_service_update_human_user_request: UserServiceUpdateHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_update_human_user_serialize( - user_id=user_id, - user_service_update_human_user_request=user_service_update_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceUpdateHumanUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_update_human_user_without_preload_content( - self, - user_id: StrictStr, - user_service_update_human_user_request: UserServiceUpdateHumanUserRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update User - - Update all information from a user.. - - :param user_id: (required) - :type user_id: str - :param user_service_update_human_user_request: (required) - :type user_service_update_human_user_request: UserServiceUpdateHumanUserRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_update_human_user_serialize( - user_id=user_id, - user_service_update_human_user_request=user_service_update_human_user_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceUpdateHumanUserResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_update_human_user_serialize( + def __user_service_update_human_user_serialize( self, user_id, user_service_update_human_user_request, @@ -11254,21 +4492,9 @@ def _user_service_update_human_user_serialize( @validate_call def user_service_verify_email( - self, - user_id: StrictStr, - user_service_verify_email_request: UserServiceVerifyEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_verify_email_request: UserServiceVerifyEmailRequest, ) -> UserServiceVerifyEmailResponse: """Verify the email @@ -11278,35 +4504,16 @@ def user_service_verify_email( :type user_id: str :param user_service_verify_email_request: (required) :type user_service_verify_email_request: UserServiceVerifyEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_email_serialize( + _param = self.__user_service_verify_email_serialize( user_id=user_id, user_service_verify_email_request=user_service_verify_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -11314,160 +4521,18 @@ def user_service_verify_email( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_verify_email_with_http_info( - self, - user_id: StrictStr, - user_service_verify_email_request: UserServiceVerifyEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyEmailResponse]: - """Verify the email - - Verify the email with the generated code. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_email_request: (required) - :type user_service_verify_email_request: UserServiceVerifyEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_email_serialize( - user_id=user_id, - user_service_verify_email_request=user_service_verify_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_email_without_preload_content( - self, - user_id: StrictStr, - user_service_verify_email_request: UserServiceVerifyEmailRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify the email - - Verify the email with the generated code. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_email_request: (required) - :type user_service_verify_email_request: UserServiceVerifyEmailRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_email_serialize( - user_id=user_id, - user_service_verify_email_request=user_service_verify_email_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyEmailResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_email_serialize( + def __user_service_verify_email_serialize( self, user_id, user_service_verify_email_request, @@ -11549,21 +4614,9 @@ def _user_service_verify_email_serialize( @validate_call def user_service_verify_invite_code( - self, - user_id: StrictStr, - user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest, ) -> UserServiceVerifyInviteCodeResponse: """Verify an invite code for a user @@ -11573,35 +4626,16 @@ def user_service_verify_invite_code( :type user_id: str :param user_service_verify_invite_code_request: (required) :type user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_invite_code_serialize( + _param = self.__user_service_verify_invite_code_serialize( user_id=user_id, user_service_verify_invite_code_request=user_service_verify_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -11609,160 +4643,18 @@ def user_service_verify_invite_code( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_verify_invite_code_with_http_info( - self, - user_id: StrictStr, - user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyInviteCodeResponse]: - """Verify an invite code for a user - - Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_invite_code_request: (required) - :type user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_invite_code_serialize( - user_id=user_id, - user_service_verify_invite_code_request=user_service_verify_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_invite_code_without_preload_content( - self, - user_id: StrictStr, - user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify an invite code for a user - - Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_invite_code_request: (required) - :type user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_invite_code_serialize( - user_id=user_id, - user_service_verify_invite_code_request=user_service_verify_invite_code_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyInviteCodeResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_invite_code_serialize( + def __user_service_verify_invite_code_serialize( self, user_id, user_service_verify_invite_code_request, @@ -11824,120 +4716,31 @@ def _user_service_verify_invite_code_serialize( 'zitadelAccessToken' ] - return self.api_client.param_serialize( - method='POST', - resource_path='/v2/users/{userId}/invite_code/verify', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def user_service_verify_passkey_registration( - self, - user_id: StrictStr, - passkey_id: StrictStr, - user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserServiceVerifyPasskeyRegistrationResponse: - """Verify a passkey for a user - - Verify the passkey registration with the public key credential.. - - :param user_id: (required) - :type user_id: str - :param passkey_id: (required) - :type passkey_id: str - :param user_service_verify_passkey_registration_request: (required) - :type user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_passkey_registration_serialize( - user_id=user_id, - passkey_id=passkey_id, - user_service_verify_passkey_registration_request=user_service_verify_passkey_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyPasskeyRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + return self.api_client.param_serialize( + method='POST', + resource_path='/v2/users/{userId}/invite_code/verify', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data + + @validate_call - def user_service_verify_passkey_registration_with_http_info( - self, - user_id: StrictStr, - passkey_id: StrictStr, - user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyPasskeyRegistrationResponse]: + def user_service_verify_passkey_registration( + self, + user_id: StrictStr, + passkey_id: StrictStr, + user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest, + ) -> UserServiceVerifyPasskeyRegistrationResponse: """Verify a passkey for a user Verify the passkey registration with the public key credential.. @@ -11948,36 +4751,17 @@ def user_service_verify_passkey_registration_with_http_info( :type passkey_id: str :param user_service_verify_passkey_registration_request: (required) :type user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_passkey_registration_serialize( + _param = self.__user_service_verify_passkey_registration_serialize( user_id=user_id, passkey_id=passkey_id, user_service_verify_passkey_registration_request=user_service_verify_passkey_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -11985,91 +4769,18 @@ def user_service_verify_passkey_registration_with_http_info( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } + response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_passkey_registration_without_preload_content( - self, - user_id: StrictStr, - passkey_id: StrictStr, - user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify a passkey for a user - - Verify the passkey registration with the public key credential.. - - :param user_id: (required) - :type user_id: str - :param passkey_id: (required) - :type passkey_id: str - :param user_service_verify_passkey_registration_request: (required) - :type user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_passkey_registration_serialize( - user_id=user_id, - passkey_id=passkey_id, - user_service_verify_passkey_registration_request=user_service_verify_passkey_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyPasskeyRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_passkey_registration_serialize( + def __user_service_verify_passkey_registration_serialize( self, user_id, passkey_id, @@ -12154,21 +4865,9 @@ def _user_service_verify_passkey_registration_serialize( @validate_call def user_service_verify_phone( - self, - user_id: StrictStr, - user_service_verify_phone_request: UserServiceVerifyPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_verify_phone_request: UserServiceVerifyPhoneRequest, ) -> UserServiceVerifyPhoneResponse: """Verify the phone @@ -12178,35 +4877,16 @@ def user_service_verify_phone( :type user_id: str :param user_service_verify_phone_request: (required) :type user_service_verify_phone_request: UserServiceVerifyPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_phone_serialize( + _param = self.__user_service_verify_phone_serialize( user_id=user_id, user_service_verify_phone_request=user_service_verify_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -12214,160 +4894,18 @@ def user_service_verify_phone( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_verify_phone_with_http_info( - self, - user_id: StrictStr, - user_service_verify_phone_request: UserServiceVerifyPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyPhoneResponse]: - """Verify the phone - - Verify the phone with the generated code.. - :param user_id: (required) - :type user_id: str - :param user_service_verify_phone_request: (required) - :type user_service_verify_phone_request: UserServiceVerifyPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_phone_serialize( - user_id=user_id, - user_service_verify_phone_request=user_service_verify_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyPhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_phone_without_preload_content( - self, - user_id: StrictStr, - user_service_verify_phone_request: UserServiceVerifyPhoneRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify the phone - - Verify the phone with the generated code.. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_phone_request: (required) - :type user_service_verify_phone_request: UserServiceVerifyPhoneRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_phone_serialize( - user_id=user_id, - user_service_verify_phone_request=user_service_verify_phone_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyPhoneResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_phone_serialize( + def __user_service_verify_phone_serialize( self, user_id, user_service_verify_phone_request, @@ -12449,21 +4987,9 @@ def _user_service_verify_phone_serialize( @validate_call def user_service_verify_totp_registration( - self, - user_id: StrictStr, - user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest, ) -> UserServiceVerifyTOTPRegistrationResponse: """Verify a TOTP generator for a user @@ -12473,35 +4999,16 @@ def user_service_verify_totp_registration( :type user_id: str :param user_service_verify_totp_registration_request: (required) :type user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_totp_registration_serialize( + _param = self.__user_service_verify_totp_registration_serialize( user_id=user_id, user_service_verify_totp_registration_request=user_service_verify_totp_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -12509,160 +5016,18 @@ def user_service_verify_totp_registration( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_verify_totp_registration_with_http_info( - self, - user_id: StrictStr, - user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyTOTPRegistrationResponse]: - """Verify a TOTP generator for a user - - Verify the TOTP registration with a generated code.. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_totp_registration_request: (required) - :type user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_totp_registration_serialize( - user_id=user_id, - user_service_verify_totp_registration_request=user_service_verify_totp_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyTOTPRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_totp_registration_without_preload_content( - self, - user_id: StrictStr, - user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify a TOTP generator for a user - - Verify the TOTP registration with a generated code.. - - :param user_id: (required) - :type user_id: str - :param user_service_verify_totp_registration_request: (required) - :type user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_totp_registration_serialize( - user_id=user_id, - user_service_verify_totp_registration_request=user_service_verify_totp_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyTOTPRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_totp_registration_serialize( + def __user_service_verify_totp_registration_serialize( self, user_id, user_service_verify_totp_registration_request, @@ -12744,22 +5109,10 @@ def _user_service_verify_totp_registration_serialize( @validate_call def user_service_verify_u2_f_registration( - self, - user_id: StrictStr, - u2f_id: StrictStr, - user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + user_id: StrictStr, + u2f_id: StrictStr, + user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest, ) -> UserServiceVerifyU2FRegistrationResponse: """Verify a u2f token for a user @@ -12771,36 +5124,17 @@ def user_service_verify_u2_f_registration( :type u2f_id: str :param user_service_verify_u2_f_registration_request: (required) :type user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._user_service_verify_u2_f_registration_serialize( + _param = self.__user_service_verify_u2_f_registration_serialize( user_id=user_id, u2f_id=u2f_id, user_service_verify_u2_f_registration_request=user_service_verify_u2_f_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -12808,168 +5142,18 @@ def user_service_verify_u2_f_registration( '403': "UserServiceRpcStatus", '404': "UserServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def user_service_verify_u2_f_registration_with_http_info( - self, - user_id: StrictStr, - u2f_id: StrictStr, - user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserServiceVerifyU2FRegistrationResponse]: - """Verify a u2f token for a user - - Verify the u2f token registration with the public key credential.. - - :param user_id: (required) - :type user_id: str - :param u2f_id: (required) - :type u2f_id: str - :param user_service_verify_u2_f_registration_request: (required) - :type user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_u2_f_registration_serialize( - user_id=user_id, - u2f_id=u2f_id, - user_service_verify_u2_f_registration_request=user_service_verify_u2_f_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyU2FRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def user_service_verify_u2_f_registration_without_preload_content( - self, - user_id: StrictStr, - u2f_id: StrictStr, - user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Verify a u2f token for a user - - Verify the u2f token registration with the public key credential.. - - :param user_id: (required) - :type user_id: str - :param u2f_id: (required) - :type u2f_id: str - :param user_service_verify_u2_f_registration_request: (required) - :type user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._user_service_verify_u2_f_registration_serialize( - user_id=user_id, - u2f_id=u2f_id, - user_service_verify_u2_f_registration_request=user_service_verify_u2_f_registration_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UserServiceVerifyU2FRegistrationResponse", - '403': "UserServiceRpcStatus", - '404': "UserServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _user_service_verify_u2_f_registration_serialize( + def __user_service_verify_u2_f_registration_serialize( self, user_id, u2f_id, diff --git a/zitadel_client/api/web_key_service_api.py b/zitadel_client/api/web_key_service_api.py index bf3b1c15..ec2372aa 100644 --- a/zitadel_client/api/web_key_service_api.py +++ b/zitadel_client/api/web_key_service_api.py @@ -43,20 +43,8 @@ def __init__(self, api_client=None) -> None: @validate_call def web_key_service_activate_web_key( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, ) -> WebKeyServiceBetaActivateWebKeyResponse: """Activate Web Key @@ -64,34 +52,15 @@ def web_key_service_activate_web_key( :param id: (required) :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._web_key_service_activate_web_key_serialize( + _param = self.__web_key_service_activate_web_key_serialize( id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -100,154 +69,18 @@ def web_key_service_activate_web_key( '403': "WebKeyServiceRpcStatus", '404': "object", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def web_key_service_activate_web_key_with_http_info( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebKeyServiceBetaActivateWebKeyResponse]: - """Activate Web Key - - Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_activate_web_key_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaActivateWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "object", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def web_key_service_activate_web_key_without_preload_content( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Activate Web Key - - Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_activate_web_key_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaActivateWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "object", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _web_key_service_activate_web_key_serialize( + def __web_key_service_activate_web_key_serialize( self, id, _request_auth, @@ -313,20 +146,8 @@ def _web_key_service_activate_web_key_serialize( @validate_call def web_key_service_create_web_key( - self, - web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest, ) -> WebKeyServiceBetaCreateWebKeyResponse: """Create Web Key @@ -334,34 +155,15 @@ def web_key_service_create_web_key( :param web_key_service_create_web_key_request: (required) :type web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._web_key_service_create_web_key_serialize( + _param = self.__web_key_service_create_web_key_serialize( web_key_service_create_web_key_request=web_key_service_create_web_key_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -370,154 +172,18 @@ def web_key_service_create_web_key( '403': "WebKeyServiceRpcStatus", '404': "WebKeyServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def web_key_service_create_web_key_with_http_info( - self, - web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebKeyServiceBetaCreateWebKeyResponse]: - """Create Web Key - - Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` - - :param web_key_service_create_web_key_request: (required) - :type web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_create_web_key_serialize( - web_key_service_create_web_key_request=web_key_service_create_web_key_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaCreateWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def web_key_service_create_web_key_without_preload_content( - self, - web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create Web Key - - Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` - - :param web_key_service_create_web_key_request: (required) - :type web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_create_web_key_serialize( - web_key_service_create_web_key_request=web_key_service_create_web_key_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaCreateWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _web_key_service_create_web_key_serialize( + def __web_key_service_create_web_key_serialize( self, web_key_service_create_web_key_request, _request_auth, @@ -596,20 +262,8 @@ def _web_key_service_create_web_key_serialize( @validate_call def web_key_service_delete_web_key( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, + id: StrictStr, ) -> WebKeyServiceBetaDeleteWebKeyResponse: """Delete Web Key @@ -617,34 +271,15 @@ def web_key_service_delete_web_key( :param id: (required) :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._web_key_service_delete_web_key_serialize( + _param = self.__web_key_service_delete_web_key_serialize( id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -653,154 +288,18 @@ def web_key_service_delete_web_key( '403': "WebKeyServiceRpcStatus", '404': "WebKeyServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def web_key_service_delete_web_key_with_http_info( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebKeyServiceBetaDeleteWebKeyResponse]: - """Delete Web Key - - Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_delete_web_key_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaDeleteWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def web_key_service_delete_web_key_without_preload_content( - self, - id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Web Key - - Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` - - :param id: (required) - :type id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_delete_web_key_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaDeleteWebKeyResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _web_key_service_delete_web_key_serialize( + def __web_key_service_delete_web_key_serialize( self, id, _request_auth, @@ -866,51 +365,20 @@ def _web_key_service_delete_web_key_serialize( @validate_call def web_key_service_list_web_keys( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + self, ) -> WebKeyServiceBetaListWebKeysResponse: """List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - _param = self._web_key_service_list_web_keys_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index + _param = self.__web_key_service_list_web_keys_serialize( + _request_auth=None, + _content_type=None, + _headers=None, + _host_index=0 ) _response_types_map: Dict[str, Optional[str]] = { @@ -919,146 +387,18 @@ def web_key_service_list_web_keys( '403': "WebKeyServiceRpcStatus", '404': "WebKeyServiceRpcStatus", } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def web_key_service_list_web_keys_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WebKeyServiceBetaListWebKeysResponse]: - """List Web Keys - - List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_list_web_keys_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaListWebKeysResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } response_data = self.api_client.call_api( *_param, - _request_timeout=_request_timeout + _request_timeout=None ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ) - - - @validate_call - def web_key_service_list_web_keys_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Web Keys - - List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._web_key_service_list_web_keys_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "WebKeyServiceBetaListWebKeysResponse", - '400': "object", - '403': "WebKeyServiceRpcStatus", - '404': "WebKeyServiceRpcStatus", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - + ).data - def _web_key_service_list_web_keys_serialize( + def __web_key_service_list_web_keys_serialize( self, _request_auth, _content_type,