kittycad.models.new_address.NewAddress
- class kittycad.models.new_address.NewAddress(city=<kittycad.types.Unset object>, country=<kittycad.types.Unset object>, state=<kittycad.types.Unset object>, street1=<kittycad.types.Unset object>, street2=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>, zip=<kittycad.types.Unset object>)[source][source]
Bases:
object
The struct that is used to create a new record. This is automatically generated and has all the same fields as the main struct only it is missing the id.
Method generated by attrs for class NewAddress.
- __init__(city=<kittycad.types.Unset object>, country=<kittycad.types.Unset object>, state=<kittycad.types.Unset object>, street1=<kittycad.types.Unset object>, street2=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>, zip=<kittycad.types.Unset object>)[source]
Method generated by attrs for class NewAddress.
Methods
__init__
([city, country, state, street1, ...])Method generated by attrs for class NewAddress.
from_dict
(src_dict)- rtype:
TypeVar
(VJ
, bound= NewAddress)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'city': typing.Union[kittycad.types.Unset, str], 'country': typing.Union[kittycad.types.Unset, kittycad.models.country_code.CountryCode], 'state': typing.Union[kittycad.types.Unset, str], 'street1': typing.Union[kittycad.types.Unset, str], 'street2': typing.Union[kittycad.types.Unset, str], 'user_id': typing.Union[kittycad.types.Unset, str], 'zip': typing.Union[kittycad.types.Unset, str]}[source]
- __attrs_attrs__ = (Attribute(name='city', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='city'), Attribute(name='country', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.country_code.CountryCode], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='country'), Attribute(name='state', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='state'), Attribute(name='street1', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='street1'), Attribute(name='street2', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='street2'), Attribute(name='user_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='user_id'), Attribute(name='zip', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='zip'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.new_address', '__annotations__': {'city': typing.Union[kittycad.types.Unset, str], 'country': typing.Union[kittycad.types.Unset, kittycad.models.country_code.CountryCode], 'state': typing.Union[kittycad.types.Unset, str], 'street1': typing.Union[kittycad.types.Unset, str], 'street2': typing.Union[kittycad.types.Unset, str], 'user_id': typing.Union[kittycad.types.Unset, str], 'zip': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'The struct that is used to create a new record. This is automatically generated and has all the same fields as the main struct only it is missing the `id`.', 'to_dict': <function NewAddress.to_dict>, 'from_dict': <classmethod(<function NewAddress.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function NewAddress.__getitem__>, '__setitem__': <function NewAddress.__setitem__>, '__delitem__': <function NewAddress.__delitem__>, '__contains__': <function NewAddress.__contains__>, '__dict__': <attribute '__dict__' of 'NewAddress' objects>, '__weakref__': <attribute '__weakref__' of 'NewAddress' objects>, '__attrs_attrs__': (Attribute(name='city', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='city'), Attribute(name='country', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.country_code.CountryCode], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='country'), Attribute(name='state', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='state'), Attribute(name='street1', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='street1'), Attribute(name='street2', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='street2'), Attribute(name='user_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='user_id'), Attribute(name='zip', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='zip'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function NewAddress.__repr__>, '__eq__': <function NewAddress.__eq__>, '__ne__': <function NewAddress.__ne__>, '__lt__': <function NewAddress.__lt__>, '__le__': <function NewAddress.__le__>, '__gt__': <function NewAddress.__gt__>, '__ge__': <function NewAddress.__ge__>, '__hash__': None, '__init__': <function NewAddress.__init__>, '__match_args__': ('city', 'country', 'state', 'street1', 'street2', 'user_id', 'zip')})[source]
- __init__(city=<kittycad.types.Unset object>, country=<kittycad.types.Unset object>, state=<kittycad.types.Unset object>, street1=<kittycad.types.Unset object>, street2=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>, zip=<kittycad.types.Unset object>)[source]
Method generated by attrs for class NewAddress.
-
country:
Union
[Unset
,CountryCode
][source]