# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_common_context import TapiCommonContext  # noqa: F401,E501
from tapi_server import util


class TapiCommonContextWrapper(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    def __init__(self, tapi_commoncontext: TapiCommonContext=None):  # noqa: E501
        """TapiCommonContextWrapper - a model defined in Swagger

        :param tapi_commoncontext: The tapi_commoncontext of this TapiCommonContextWrapper.  # noqa: E501
        :type tapi_commoncontext: TapiCommonContext
        """
        self.swagger_types = {
            'tapi_commoncontext': TapiCommonContext
        }

        self.attribute_map = {
            'tapi_commoncontext': 'tapi-common:context'
        }
        self._tapi_commoncontext = tapi_commoncontext

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

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

    @property
    def tapi_commoncontext(self) -> TapiCommonContext:
        """Gets the tapi_commoncontext of this TapiCommonContextWrapper.


        :return: The tapi_commoncontext of this TapiCommonContextWrapper.
        :rtype: TapiCommonContext
        """
        return self._tapi_commoncontext

    @tapi_commoncontext.setter
    def tapi_commoncontext(self, tapi_commoncontext: TapiCommonContext):
        """Sets the tapi_commoncontext of this TapiCommonContextWrapper.


        :param tapi_commoncontext: The tapi_commoncontext of this TapiCommonContextWrapper.
        :type tapi_commoncontext: TapiCommonContext
        """

        self._tapi_commoncontext = tapi_commoncontext
