kittycad.models.api_call_query_group_by

Classes

ApiCallQueryGroupBy(value)

The field of an API call to group by.

class kittycad.models.api_call_query_group_by.ApiCallQueryGroupBy(value)[source][source]

The field of an API call to group by.

EMAIL = 'email'[source]

# The HTTP method of the API call.

ENDPOINT = 'endpoint'[source]

# The user ID of the user that requested the API call.

IP_ADDRESS = 'ip_address'[source]
METHOD = 'method'[source]

# The endpoint of the API call.

ORIGIN = 'origin'[source]

# The IP address of the user making the API call.

USER_ID = 'user_id'[source]

# The origin of the API call. This is parsed from the Origin header.

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.api_call_query_group_by', '__doc__': 'The field of an API call to group by.', '__str__': <function ApiCallQueryGroupBy.__str__>, '__dict__': <attribute '__dict__' of 'ApiCallQueryGroupBy' objects>, '__weakref__': <attribute '__weakref__' of 'ApiCallQueryGroupBy' objects>, '_member_names_': ['EMAIL', 'METHOD', 'ENDPOINT', 'USER_ID', 'ORIGIN', 'IP_ADDRESS'], '_member_map_': {'EMAIL': <ApiCallQueryGroupBy.EMAIL: 'email'>, 'METHOD': <ApiCallQueryGroupBy.METHOD: 'method'>, 'ENDPOINT': <ApiCallQueryGroupBy.ENDPOINT: 'endpoint'>, 'USER_ID': <ApiCallQueryGroupBy.USER_ID: 'user_id'>, 'ORIGIN': <ApiCallQueryGroupBy.ORIGIN: 'origin'>, 'IP_ADDRESS': <ApiCallQueryGroupBy.IP_ADDRESS: 'ip_address'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'email': <ApiCallQueryGroupBy.EMAIL: 'email'>, 'method': <ApiCallQueryGroupBy.METHOD: 'method'>, 'endpoint': <ApiCallQueryGroupBy.ENDPOINT: 'endpoint'>, 'user_id': <ApiCallQueryGroupBy.USER_ID: 'user_id'>, 'origin': <ApiCallQueryGroupBy.ORIGIN: 'origin'>, 'ip_address': <ApiCallQueryGroupBy.IP_ADDRESS: 'ip_address'>}, 'EMAIL': <ApiCallQueryGroupBy.EMAIL: 'email'>, 'METHOD': <ApiCallQueryGroupBy.METHOD: 'method'>, 'ENDPOINT': <ApiCallQueryGroupBy.ENDPOINT: 'endpoint'>, 'USER_ID': <ApiCallQueryGroupBy.USER_ID: 'user_id'>, 'ORIGIN': <ApiCallQueryGroupBy.ORIGIN: 'origin'>, 'IP_ADDRESS': <ApiCallQueryGroupBy.IP_ADDRESS: 'ip_address'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.api_call_query_group_by'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'EMAIL': ApiCallQueryGroupBy.EMAIL, 'ENDPOINT': ApiCallQueryGroupBy.ENDPOINT, 'IP_ADDRESS': ApiCallQueryGroupBy.IP_ADDRESS, 'METHOD': ApiCallQueryGroupBy.METHOD, 'ORIGIN': ApiCallQueryGroupBy.ORIGIN, 'USER_ID': ApiCallQueryGroupBy.USER_ID}[source]
_member_names_ = ['EMAIL', 'METHOD', 'ENDPOINT', 'USER_ID', 'ORIGIN', 'IP_ADDRESS'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'email': ApiCallQueryGroupBy.EMAIL, 'endpoint': ApiCallQueryGroupBy.ENDPOINT, 'ip_address': ApiCallQueryGroupBy.IP_ADDRESS, 'method': ApiCallQueryGroupBy.METHOD, 'origin': ApiCallQueryGroupBy.ORIGIN, 'user_id': ApiCallQueryGroupBy.USER_ID}[source]