def get_event_types(self):
self.clean_error()<EOL>try:<EOL><INDENT>url = self.get_url(Constants.GET_EVENT_TYPES_URL)<EOL>event_types = []<EOL>response = self.execute_call('<STR_LIT>', url)<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>json_data = response.json()<EOL>if json_data and json_data.get('<STR_LIT:data>', None):<EOL><INDENT>for event_type_data in json_data['<STR_LIT:data>']:<EOL><INDENT>if event_type_data:<EOL><INDENT>event_types.append(EventType(event_type_data))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>self.error = str(response.status_code)<EOL>self.error_description = self.extract_error_message_from_response(response)<EOL><DEDENT>return event_types<EOL><DEDENT>except Exception as e:<EOL><INDENT>self.error = <NUM_LIT><EOL>self.error_description = e.args[<NUM_LIT:0>]<EOL><DEDENT>
List of all OneLogin event types available to the Events API.

Returns the list of event type
:return: event type list
:rtype: list[EventType]

See https://developers.onelogin.com/api-docs/1/events/event-types Get Event Types documentation