kittycad.models.o_auth2_grant_type.OAuth2GrantType

class kittycad.models.o_auth2_grant_type.OAuth2GrantType(value)[source][source]

Bases: str, Enum

An OAuth 2.0 Grant Type. These are documented here: <https://oauth.net/2/grant-types/>.

__init__()[source]

Attributes

URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE

URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE = 'urn:ietf:params:oauth:grant-type:device_code'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.o_auth2_grant_type', '__doc__': 'An OAuth 2.0 Grant Type. These are documented here: <https://oauth.net/2/grant-types/>.', '__str__': <function OAuth2GrantType.__str__>, '__dict__': <attribute '__dict__' of 'OAuth2GrantType' objects>, '__weakref__': <attribute '__weakref__' of 'OAuth2GrantType' objects>, '_member_names_': ['URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE'], '_member_map_': {'URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE': <OAuth2GrantType.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE: 'urn:ietf:params:oauth:grant-type:device_code'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'urn:ietf:params:oauth:grant-type:device_code': <OAuth2GrantType.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE: 'urn:ietf:params:oauth:grant-type:device_code'>}, 'URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE': <OAuth2GrantType.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE: 'urn:ietf:params:oauth:grant-type:device_code'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.o_auth2_grant_type'[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_ = {'URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE': OAuth2GrantType.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE}[source]
_member_names_ = ['URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'urn:ietf:params:oauth:grant-type:device_code': OAuth2GrantType.URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE}[source]