# -*- coding: utf8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals

from pylero.base_polarion import BasePolarion
from pylero.text import Text


class Category(BasePolarion):
    """Object to handle the Polarion WSDL tns5:Category class

    Attributes:
        description (Text)
        category_id (string)
        name (string)"""

    _cls_suds_map = {
        "description": {"field_name": "description", "cls": Text},
        "category_id": "id",
        "name": "name",
        "uri": "_uri",
        "_unresolved": "_unresolved",
    }
    _obj_client = "builder_client"
    _obj_struct = "tns5:Category"
    _id_field = "category_id"


class ArrayOfCategory(BasePolarion):
    _obj_client = "builder_client"
    _obj_struct = "tns5:ArrayOfCategory"
