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.models.gate import Gate
from chromestatus_openapi import util

from chromestatus_openapi.models.gate import Gate  # noqa: E501

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

    Do not edit the class manually.
    """

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

        :param gates: The gates of this GetGateResponse.  # noqa: E501
        :type gates: List[Gate]
        """
        self.openapi_types = {
            'gates': List[Gate]
        }

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

        self._gates = gates

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

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

    @property
    def gates(self) -> List[Gate]:
        """Gets the gates of this GetGateResponse.


        :return: The gates of this GetGateResponse.
        :rtype: List[Gate]
        """
        return self._gates

    @gates.setter
    def gates(self, gates: List[Gate]):
        """Sets the gates of this GetGateResponse.


        :param gates: The gates of this GetGateResponse.
        :type gates: List[Gate]
        """

        self._gates = gates
