<filename>openapi_client/models/shared_wild_fire_settings.py
# coding: utf-8

"""
    Prisma Cloud Compute API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

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


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


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

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'api_key': 'str',
        'api_key_expiration': 'datetime',
        'last_error': 'str',
        'policy': 'SharedWildFirePolicy'
    }

    attribute_map = {
        'api_key': 'apiKey',
        'api_key_expiration': 'apiKeyExpiration',
        'last_error': 'lastError',
        'policy': 'policy'
    }

    def __init__(self, api_key=None, api_key_expiration=None, last_error=None, policy=None, local_vars_configuration=None):  # noqa: E501
        """SharedWildFireSettings - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._api_key = None
        self._api_key_expiration = None
        self._last_error = None
        self._policy = None
        self.discriminator = None

        if api_key is not None:
            self.api_key = api_key
        if api_key_expiration is not None:
            self.api_key_expiration = api_key_expiration
        if last_error is not None:
            self.last_error = last_error
        if policy is not None:
            self.policy = policy

    @property
    def api_key(self):
        """Gets the api_key of this SharedWildFireSettings.  # noqa: E501

        APIKey is the key identifier used for WF APIs.   # noqa: E501

        :return: The api_key of this SharedWildFireSettings.  # noqa: E501
        :rtype: str
        """
        return self._api_key

    @api_key.setter
    def api_key(self, api_key):
        """Sets the api_key of this SharedWildFireSettings.

        APIKey is the key identifier used for WF APIs.   # noqa: E501

        :param api_key: The api_key of this SharedWildFireSettings.  # noqa: E501
        :type api_key: str
        """

        self._api_key = api_key

    @property
    def api_key_expiration(self):
        """Gets the api_key_expiration of this SharedWildFireSettings.  # noqa: E501

        APIKeyExpiration is the expiration time of the API key.   # noqa: E501

        :return: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501
        :rtype: datetime
        """
        return self._api_key_expiration

    @api_key_expiration.setter
    def api_key_expiration(self, api_key_expiration):
        """Sets the api_key_expiration of this SharedWildFireSettings.

        APIKeyExpiration is the expiration time of the API key.   # noqa: E501

        :param api_key_expiration: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501
        :type api_key_expiration: datetime
        """

        self._api_key_expiration = api_key_expiration

    @property
    def last_error(self):
        """Gets the last_error of this SharedWildFireSettings.  # noqa: E501

        LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501

        :return: The last_error of this SharedWildFireSettings.  # noqa: E501
        :rtype: str
        """
        return self._last_error

    @last_error.setter
    def last_error(self, last_error):
        """Sets the last_error of this SharedWildFireSettings.

        LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501

        :param last_error: The last_error of this SharedWildFireSettings.  # noqa: E501
        :type last_error: str
        """

        self._last_error = last_error

    @property
    def policy(self):
        """Gets the policy of this SharedWildFireSettings.  # noqa: E501


        :return: The policy of this SharedWildFireSettings.  # noqa: E501
        :rtype: SharedWildFirePolicy
        """
        return self._policy

    @policy.setter
    def policy(self, policy):
        """Sets the policy of this SharedWildFireSettings.


        :param policy: The policy of this SharedWildFireSettings.  # noqa: E501
        :type policy: SharedWildFirePolicy
        """

        self._policy = policy

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(value)

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, SharedWildFireSettings):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, SharedWildFireSettings):
            return True

        return self.to_dict() != other.to_dict()

<filename>openapi_client/models/shared_wild_fire_settings.py
# coding: utf-8

"""
    Prisma Cloud Compute API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

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


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


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

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {
        'api_key': 'str',
        'api_key_expiration': 'datetime',
        'last_error': 'str',
        'policy': 'SharedWildFirePolicy'
    }

    attribute_map = {
        'api_key': 'apiKey',
        'api_key_expiration': 'apiKeyExpiration',
        'last_error': 'lastError',
        'policy': 'policy'
    }

    def __init__(self, api_key=None, api_key_expiration=None, last_error=None, policy=None, local_vars_configuration=None):  # noqa: E501
        """SharedWildFireSettings - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._api_key = None
        self._api_key_expiration = None
        self._last_error = None
        self._policy = None
        self.discriminator = None

        if api_key is not None:
            self.api_key = api_key
        if api_key_expiration is not None:
            self.api_key_expiration = api_key_expiration
        if last_error is not None:
            self.last_error = last_error
        if policy is not None:
            self.policy = policy

    @property
    def api_key(self):
        """Gets the api_key of this SharedWildFireSettings.  # noqa: E501

        APIKey is the key identifier used for WF APIs.   # noqa: E501

        :return: The api_key of this SharedWildFireSettings.  # noqa: E501
        :rtype: str
        """
        return self._api_key

    @api_key.setter
    def api_key(self, api_key):
        """Sets the api_key of this SharedWildFireSettings.

        APIKey is the key identifier used for WF APIs.   # noqa: E501

        :param api_key: The api_key of this SharedWildFireSettings.  # noqa: E501
        :type api_key: str
        """

        self._api_key = api_key

    @property
    def api_key_expiration(self):
        """Gets the api_key_expiration of this SharedWildFireSettings.  # noqa: E501

        APIKeyExpiration is the expiration time of the API key.   # noqa: E501

        :return: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501
        :rtype: datetime
        """
        return self._api_key_expiration

    @api_key_expiration.setter
    def api_key_expiration(self, api_key_expiration):
        """Sets the api_key_expiration of this SharedWildFireSettings.

        APIKeyExpiration is the expiration time of the API key.   # noqa: E501

        :param api_key_expiration: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501
        :type api_key_expiration: datetime
        """

        self._api_key_expiration = api_key_expiration

    @property
    def last_error(self):
        """Gets the last_error of this SharedWildFireSettings.  # noqa: E501

        LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501

        :return: The last_error of this SharedWildFireSettings.  # noqa: E501
        :rtype: str
        """
        return self._last_error

    @last_error.setter
    def last_error(self, last_error):
        """Sets the last_error of this SharedWildFireSettings.

        LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501

        :param last_error: The last_error of this SharedWildFireSettings.  # noqa: E501
        :type last_error: str
        """

        self._last_error = last_error

    @property
    def policy(self):
        """Gets the policy of this SharedWildFireSettings.  # noqa: E501


        :return: The policy of this SharedWildFireSettings.  # noqa: E501
        :rtype: SharedWildFirePolicy
        """
        return self._policy

    @policy.setter
    def policy(self, policy):
        """Sets the policy of this SharedWildFireSettings.


        :param policy: The policy of this SharedWildFireSettings.  # noqa: E501
        :type policy: SharedWildFirePolicy
        """

        self._policy = policy

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(value)

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, SharedWildFireSettings):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, SharedWildFireSettings):
            return True

        return self.to_dict() != other.to_dict()

# coding: utf-8 Prisma Cloud Compute API      No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501      The version of the OpenAPI document: 21.04.439     Generated by: https://openapi-generator.tech # noqa: F401 NOTE: This class is auto generated by OpenAPI Generator.     Ref: https://openapi-generator.tech      Do not edit the class manually. Attributes:       openapi_types (dict): The key is attribute name                             and the value is attribute type.       attribute_map (dict): The key is attribute name                             and the value is json key in definition. # noqa: E501 SharedWildFireSettings - a model defined in OpenAPI # noqa: E501 Gets the api_key of this SharedWildFireSettings.  # noqa: E501          APIKey is the key identifier used for WF APIs.   # noqa: E501          :return: The api_key of this SharedWildFireSettings.  # noqa: E501         :rtype: str Sets the api_key of this SharedWildFireSettings.          APIKey is the key identifier used for WF APIs.   # noqa: E501          :param api_key: The api_key of this SharedWildFireSettings.  # noqa: E501         :type api_key: str Gets the api_key_expiration of this SharedWildFireSettings.  # noqa: E501          APIKeyExpiration is the expiration time of the API key.   # noqa: E501          :return: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501         :rtype: datetime Sets the api_key_expiration of this SharedWildFireSettings.          APIKeyExpiration is the expiration time of the API key.   # noqa: E501          :param api_key_expiration: The api_key_expiration of this SharedWildFireSettings.  # noqa: E501         :type api_key_expiration: datetime Gets the last_error of this SharedWildFireSettings.  # noqa: E501          LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501          :return: The last_error of this SharedWildFireSettings.  # noqa: E501         :rtype: str Sets the last_error of this SharedWildFireSettings.          LastError is the last error that occurred when trying to create/update the wildfire key.   # noqa: E501          :param last_error: The last_error of this SharedWildFireSettings.  # noqa: E501         :type last_error: str Gets the policy of this SharedWildFireSettings.  # noqa: E501           :return: The policy of this SharedWildFireSettings.  # noqa: E501         :rtype: SharedWildFirePolicy Sets the policy of this SharedWildFireSettings.           :param policy: The policy of this SharedWildFireSettings.  # noqa: E501         :type policy: SharedWildFirePolicy Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal