from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi import util


class ComponentUsersRequest(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, owner=None):  # noqa: E501
        """ComponentUsersRequest - a model defined in OpenAPI

        :param owner: The owner of this ComponentUsersRequest.  # noqa: E501
        :type owner: bool
        """
        self.openapi_types = {
            'owner': bool
        }

        self.attribute_map = {
            'owner': 'owner'
        }

        self._owner = owner

    @classmethod
    def from_dict(cls, dikt) -> 'ComponentUsersRequest':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The ComponentUsersRequest of this ComponentUsersRequest.  # noqa: E501
        :rtype: ComponentUsersRequest
        """
        return util.deserialize_model(dikt, cls)

    @property
    def owner(self) -> bool:
        """Gets the owner of this ComponentUsersRequest.

        Impacts this user's ownership. For PUT, add ownership. For DELETE, remove ownership.  # noqa: E501

        :return: The owner of this ComponentUsersRequest.
        :rtype: bool
        """
        return self._owner

    @owner.setter
    def owner(self, owner: bool):
        """Sets the owner of this ComponentUsersRequest.

        Impacts this user's ownership. For PUT, add ownership. For DELETE, remove ownership.  # noqa: E501

        :param owner: The owner of this ComponentUsersRequest.
        :type owner: bool
        """

        self._owner = owner
