rebrickable.api.models.part_colors_element module

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

class rebrickable.api.models.part_colors_element.PartColorsElement(elements=None, num_set_parts=None, num_sets=None, part_img_url=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.

attribute_map = {'elements': 'elements', 'num_set_parts': 'num_set_parts', 'num_sets': 'num_sets', 'part_img_url': 'part_img_url', 'year_from': 'year_from', 'year_to': 'year_to'}
property elements

Gets the elements of this PartColorsElement. # noqa: E501

Returns

The elements of this PartColorsElement. # noqa: E501

Return type

list[str]

property num_set_parts

Gets the num_set_parts of this PartColorsElement. # noqa: E501

Returns

The num_set_parts of this PartColorsElement. # noqa: E501

Return type

int

property num_sets

Gets the num_sets of this PartColorsElement. # noqa: E501

Returns

The num_sets of this PartColorsElement. # noqa: E501

Return type

int

openapi_types = {'elements': 'list[str]', 'num_set_parts': 'int', 'num_sets': 'int', 'part_img_url': 'str', 'year_from': 'int', 'year_to': 'int'}
property part_img_url

Gets the part_img_url of this PartColorsElement. # noqa: E501

Returns

The part_img_url of this PartColorsElement. # noqa: E501

Return type

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 PartColorsElement. # noqa: E501

Returns

The year_from of this PartColorsElement. # noqa: E501

Return type

int

property year_to

Gets the year_to of this PartColorsElement. # noqa: E501

Returns

The year_to of this PartColorsElement. # noqa: E501

Return type

int