rebrickable.api.models.part module

The version of the OpenAPI document: Generated by: https://openapi-generator.tech

class rebrickable.api.models.part.Part(alternates=None, external_ids=None, molds=None, name=None, part_cat_id=None, part_img_url=None, part_num=None, part_url=None, print_of=None, prints=None, year_from=None, year_to=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

property alternates

Gets the alternates of this Part. # noqa: E501

Returns

The alternates of this Part. # noqa: E501

Return type

list[str]

attribute_map = {'alternates': 'alternates', 'external_ids': 'external_ids', 'molds': 'molds', 'name': 'name', 'part_cat_id': 'part_cat_id', 'part_img_url': 'part_img_url', 'part_num': 'part_num', 'part_url': 'part_url', 'print_of': 'print_of', 'prints': 'prints', 'year_from': 'year_from', 'year_to': 'year_to'}
property external_ids

Gets the external_ids of this Part. # noqa: E501

Returns

The external_ids of this Part. # noqa: E501

Return type

ExternalIds

property molds

Gets the molds of this Part. # noqa: E501

Returns

The molds of this Part. # noqa: E501

Return type

list[str]

property name

Gets the name of this Part. # noqa: E501

Returns

The name of this Part. # noqa: E501

Return type

str

openapi_types = {'alternates': 'list[str]', 'external_ids': 'ExternalIds', 'molds': 'list[str]', 'name': 'str', 'part_cat_id': 'int', 'part_img_url': 'str', 'part_num': 'str', 'part_url': 'str', 'print_of': 'str', 'prints': 'list[str]', 'year_from': 'int', 'year_to': 'int'}
property part_cat_id

Gets the part_cat_id of this Part. # noqa: E501

Returns

The part_cat_id of this Part. # noqa: E501

Return type

int

property part_img_url

Gets the part_img_url of this Part. # noqa: E501

Returns

The part_img_url of this Part. # noqa: E501

Return type

str

property part_num

Gets the part_num of this Part. # noqa: E501

Returns

The part_num of this Part. # noqa: E501

Return type

str

property part_url

Gets the part_url of this Part. # noqa: E501

Returns

The part_url of this Part. # noqa: E501

Return type

str

property print_of

Gets the print_of of this Part. # noqa: E501

Returns

The print_of of this Part. # noqa: E501

Return type

str

property prints

Gets the prints of this Part. # noqa: E501

Returns

The prints of this Part. # noqa: E501

Return type

list[str]

to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

property year_from

Gets the year_from of this Part. # noqa: E501

Returns

The year_from of this Part. # noqa: E501

Return type

int

property year_to

Gets the year_to of this Part. # noqa: E501

Returns

The year_to of this Part. # noqa: E501

Return type

int