# coding: utf-8

"""
    Automox Console API

    API for use with the Automox Console  # noqa: E501

    OpenAPI spec version: 2021-09-01
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

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

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'auto_patch': 'bool',
        'notify_user': 'bool',
        'device_filters_enabled': 'bool',
        'device_filters': 'DeviceFilters',
        'missed_patch_window': 'bool',
        'os_family': 'str',
        'test_code': 'str',
        'evaluation_code': 'str'
    }

    attribute_map = {
        'auto_patch': 'auto_patch',
        'notify_user': 'notify_user',
        'device_filters_enabled': 'device_filters_enabled',
        'device_filters': 'device_filters',
        'missed_patch_window': 'missed_patch_window',
        'os_family': 'os_family',
        'test_code': 'test_code',
        'evaluation_code': 'evaluation_code'
    }

    def __init__(self, auto_patch=None, notify_user=None, device_filters_enabled=None, device_filters=None, missed_patch_window=None, os_family=None, test_code=None, evaluation_code=None):  # noqa: E501
        """CustomPolicyConfiguration - a model defined in Swagger"""  # noqa: E501
        self._auto_patch = None
        self._notify_user = None
        self._device_filters_enabled = None
        self._device_filters = None
        self._missed_patch_window = None
        self._os_family = None
        self._test_code = None
        self._evaluation_code = None
        self.discriminator = None
        self.auto_patch = auto_patch
        self.notify_user = notify_user
        if device_filters_enabled is not None:
            self.device_filters_enabled = device_filters_enabled
        if device_filters is not None:
            self.device_filters = device_filters
        if missed_patch_window is not None:
            self.missed_patch_window = missed_patch_window
        if os_family is not None:
            self.os_family = os_family
        if test_code is not None:
            self.test_code = test_code
        if evaluation_code is not None:
            self.evaluation_code = evaluation_code

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

        Enable or Disable automatic execution of the policy.  # noqa: E501

        :return: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._auto_patch

    @auto_patch.setter
    def auto_patch(self, auto_patch):
        """Sets the auto_patch of this CustomPolicyConfiguration.

        Enable or Disable automatic execution of the policy.  # noqa: E501

        :param auto_patch: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """
        if auto_patch is None:
            raise ValueError("Invalid value for `auto_patch`, must not be `None`")  # noqa: E501

        self._auto_patch = auto_patch

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

        Display notification 15 minutes before patching.  # noqa: E501

        :return: The notify_user of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._notify_user

    @notify_user.setter
    def notify_user(self, notify_user):
        """Sets the notify_user of this CustomPolicyConfiguration.

        Display notification 15 minutes before patching.  # noqa: E501

        :param notify_user: The notify_user of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """
        if notify_user is None:
            raise ValueError("Invalid value for `notify_user`, must not be `None`")  # noqa: E501

        self._notify_user = notify_user

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

        Enable or disable Device Filters.  # noqa: E501

        :return: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._device_filters_enabled

    @device_filters_enabled.setter
    def device_filters_enabled(self, device_filters_enabled):
        """Sets the device_filters_enabled of this CustomPolicyConfiguration.

        Enable or disable Device Filters.  # noqa: E501

        :param device_filters_enabled: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """

        self._device_filters_enabled = device_filters_enabled

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


        :return: The device_filters of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: DeviceFilters
        """
        return self._device_filters

    @device_filters.setter
    def device_filters(self, device_filters):
        """Sets the device_filters of this CustomPolicyConfiguration.


        :param device_filters: The device_filters of this CustomPolicyConfiguration.  # noqa: E501
        :type: DeviceFilters
        """

        self._device_filters = device_filters

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

        Enable or Disable Missed Patch Window setting  # noqa: E501

        :return: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._missed_patch_window

    @missed_patch_window.setter
    def missed_patch_window(self, missed_patch_window):
        """Sets the missed_patch_window of this CustomPolicyConfiguration.

        Enable or Disable Missed Patch Window setting  # noqa: E501

        :param missed_patch_window: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """

        self._missed_patch_window = missed_patch_window

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


        :return: The os_family of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._os_family

    @os_family.setter
    def os_family(self, os_family):
        """Sets the os_family of this CustomPolicyConfiguration.


        :param os_family: The os_family of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._os_family = os_family

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


        :return: The test_code of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._test_code

    @test_code.setter
    def test_code(self, test_code):
        """Sets the test_code of this CustomPolicyConfiguration.


        :param test_code: The test_code of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._test_code = test_code

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


        :return: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._evaluation_code

    @evaluation_code.setter
    def evaluation_code(self, evaluation_code):
        """Sets the evaluation_code of this CustomPolicyConfiguration.


        :param evaluation_code: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._evaluation_code = evaluation_code

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

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(CustomPolicyConfiguration, dict):
            for key, value in self.items():
                result[key] = 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, CustomPolicyConfiguration):
            return False

        return self.__dict__ == other.__dict__

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

# coding: utf-8

"""
    Automox Console API

    API for use with the Automox Console  # noqa: E501

    OpenAPI spec version: 2021-09-01
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

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

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'auto_patch': 'bool',
        'notify_user': 'bool',
        'device_filters_enabled': 'bool',
        'device_filters': 'DeviceFilters',
        'missed_patch_window': 'bool',
        'os_family': 'str',
        'test_code': 'str',
        'evaluation_code': 'str'
    }

    attribute_map = {
        'auto_patch': 'auto_patch',
        'notify_user': 'notify_user',
        'device_filters_enabled': 'device_filters_enabled',
        'device_filters': 'device_filters',
        'missed_patch_window': 'missed_patch_window',
        'os_family': 'os_family',
        'test_code': 'test_code',
        'evaluation_code': 'evaluation_code'
    }

    def __init__(self, auto_patch=None, notify_user=None, device_filters_enabled=None, device_filters=None, missed_patch_window=None, os_family=None, test_code=None, evaluation_code=None):  # noqa: E501
        """CustomPolicyConfiguration - a model defined in Swagger"""  # noqa: E501
        self._auto_patch = None
        self._notify_user = None
        self._device_filters_enabled = None
        self._device_filters = None
        self._missed_patch_window = None
        self._os_family = None
        self._test_code = None
        self._evaluation_code = None
        self.discriminator = None
        self.auto_patch = auto_patch
        self.notify_user = notify_user
        if device_filters_enabled is not None:
            self.device_filters_enabled = device_filters_enabled
        if device_filters is not None:
            self.device_filters = device_filters
        if missed_patch_window is not None:
            self.missed_patch_window = missed_patch_window
        if os_family is not None:
            self.os_family = os_family
        if test_code is not None:
            self.test_code = test_code
        if evaluation_code is not None:
            self.evaluation_code = evaluation_code

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

        Enable or Disable automatic execution of the policy.  # noqa: E501

        :return: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._auto_patch

    @auto_patch.setter
    def auto_patch(self, auto_patch):
        """Sets the auto_patch of this CustomPolicyConfiguration.

        Enable or Disable automatic execution of the policy.  # noqa: E501

        :param auto_patch: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """
        if auto_patch is None:
            raise ValueError("Invalid value for `auto_patch`, must not be `None`")  # noqa: E501

        self._auto_patch = auto_patch

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

        Display notification 15 minutes before patching.  # noqa: E501

        :return: The notify_user of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._notify_user

    @notify_user.setter
    def notify_user(self, notify_user):
        """Sets the notify_user of this CustomPolicyConfiguration.

        Display notification 15 minutes before patching.  # noqa: E501

        :param notify_user: The notify_user of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """
        if notify_user is None:
            raise ValueError("Invalid value for `notify_user`, must not be `None`")  # noqa: E501

        self._notify_user = notify_user

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

        Enable or disable Device Filters.  # noqa: E501

        :return: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._device_filters_enabled

    @device_filters_enabled.setter
    def device_filters_enabled(self, device_filters_enabled):
        """Sets the device_filters_enabled of this CustomPolicyConfiguration.

        Enable or disable Device Filters.  # noqa: E501

        :param device_filters_enabled: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """

        self._device_filters_enabled = device_filters_enabled

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


        :return: The device_filters of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: DeviceFilters
        """
        return self._device_filters

    @device_filters.setter
    def device_filters(self, device_filters):
        """Sets the device_filters of this CustomPolicyConfiguration.


        :param device_filters: The device_filters of this CustomPolicyConfiguration.  # noqa: E501
        :type: DeviceFilters
        """

        self._device_filters = device_filters

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

        Enable or Disable Missed Patch Window setting  # noqa: E501

        :return: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: bool
        """
        return self._missed_patch_window

    @missed_patch_window.setter
    def missed_patch_window(self, missed_patch_window):
        """Sets the missed_patch_window of this CustomPolicyConfiguration.

        Enable or Disable Missed Patch Window setting  # noqa: E501

        :param missed_patch_window: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501
        :type: bool
        """

        self._missed_patch_window = missed_patch_window

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


        :return: The os_family of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._os_family

    @os_family.setter
    def os_family(self, os_family):
        """Sets the os_family of this CustomPolicyConfiguration.


        :param os_family: The os_family of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._os_family = os_family

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


        :return: The test_code of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._test_code

    @test_code.setter
    def test_code(self, test_code):
        """Sets the test_code of this CustomPolicyConfiguration.


        :param test_code: The test_code of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._test_code = test_code

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


        :return: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501
        :rtype: str
        """
        return self._evaluation_code

    @evaluation_code.setter
    def evaluation_code(self, evaluation_code):
        """Sets the evaluation_code of this CustomPolicyConfiguration.


        :param evaluation_code: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501
        :type: str
        """

        self._evaluation_code = evaluation_code

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

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(CustomPolicyConfiguration, dict):
            for key, value in self.items():
                result[key] = 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, CustomPolicyConfiguration):
            return False

        return self.__dict__ == other.__dict__

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

# coding: utf-8 Automox Console API      API for use with the Automox Console  # noqa: E501      OpenAPI spec version: 2021-09-01     Contact: <EMAIL>     Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually. Attributes:       swagger_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 CustomPolicyConfiguration - a model defined in Swagger # noqa: E501 Gets the auto_patch of this CustomPolicyConfiguration.  # noqa: E501          Enable or Disable automatic execution of the policy.  # noqa: E501          :return: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501         :rtype: bool Sets the auto_patch of this CustomPolicyConfiguration.          Enable or Disable automatic execution of the policy.  # noqa: E501          :param auto_patch: The auto_patch of this CustomPolicyConfiguration.  # noqa: E501         :type: bool # noqa: E501 Gets the notify_user of this CustomPolicyConfiguration.  # noqa: E501          Display notification 15 minutes before patching.  # noqa: E501          :return: The notify_user of this CustomPolicyConfiguration.  # noqa: E501         :rtype: bool Sets the notify_user of this CustomPolicyConfiguration.          Display notification 15 minutes before patching.  # noqa: E501          :param notify_user: The notify_user of this CustomPolicyConfiguration.  # noqa: E501         :type: bool # noqa: E501 Gets the device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501          Enable or disable Device Filters.  # noqa: E501          :return: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501         :rtype: bool Sets the device_filters_enabled of this CustomPolicyConfiguration.          Enable or disable Device Filters.  # noqa: E501          :param device_filters_enabled: The device_filters_enabled of this CustomPolicyConfiguration.  # noqa: E501         :type: bool Gets the device_filters of this CustomPolicyConfiguration.  # noqa: E501           :return: The device_filters of this CustomPolicyConfiguration.  # noqa: E501         :rtype: DeviceFilters Sets the device_filters of this CustomPolicyConfiguration.           :param device_filters: The device_filters of this CustomPolicyConfiguration.  # noqa: E501         :type: DeviceFilters Gets the missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501          Enable or Disable Missed Patch Window setting  # noqa: E501          :return: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501         :rtype: bool Sets the missed_patch_window of this CustomPolicyConfiguration.          Enable or Disable Missed Patch Window setting  # noqa: E501          :param missed_patch_window: The missed_patch_window of this CustomPolicyConfiguration.  # noqa: E501         :type: bool Gets the os_family of this CustomPolicyConfiguration.  # noqa: E501           :return: The os_family of this CustomPolicyConfiguration.  # noqa: E501         :rtype: str Sets the os_family of this CustomPolicyConfiguration.           :param os_family: The os_family of this CustomPolicyConfiguration.  # noqa: E501         :type: str Gets the test_code of this CustomPolicyConfiguration.  # noqa: E501           :return: The test_code of this CustomPolicyConfiguration.  # noqa: E501         :rtype: str Sets the test_code of this CustomPolicyConfiguration.           :param test_code: The test_code of this CustomPolicyConfiguration.  # noqa: E501         :type: str Gets the evaluation_code of this CustomPolicyConfiguration.  # noqa: E501           :return: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501         :rtype: str Sets the evaluation_code of this CustomPolicyConfiguration.           :param evaluation_code: The evaluation_code of this CustomPolicyConfiguration.  # noqa: E501         :type: str 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