Source code for sdkms.v1.models.splunk_logging_config

# coding: utf-8

"""
    Fortanix DSM REST API

    This is a set of REST APIs for accessing the Fortanix Data Security Manager. This includes APIs for managing accounts, and for performing cryptographic and key management operations. 

    OpenAPI spec version: 1.0.0-20200608
    Contact: support@fortanix.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""


from pprint import pformat
from six import iteritems
import re




# NOTE: This class is auto generated by the swagger code generator program.
# Do not edit the class manually.
[docs]class SplunkLoggingConfig(object): """ 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 = { 'host': 'str', 'port': 'int', 'index': 'str', 'tls': 'TlsConfig', 'enabled': 'bool' } attribute_map = { 'host': 'host', 'port': 'port', 'index': 'index', 'tls': 'tls', 'enabled': 'enabled' }
[docs] def __init__(self, host=None, port=None, index=None, tls=None, enabled=None): """ SplunkLoggingConfig - a model defined in Swagger """ self._host = None self._port = None self._index = None self._tls = None self._enabled = None self.host = host self.port = port self.index = index self.tls = tls self.enabled = enabled
@property def host(self): """ Gets the host of this SplunkLoggingConfig. Type: `str` :setter: Sets the host of this SplunkLoggingConfig. """ return self._host @host.setter def host(self, host): """ Sets the host of this SplunkLoggingConfig. """ self._host = host @property def port(self): """ Gets the port of this SplunkLoggingConfig. Type: `int` :setter: Sets the port of this SplunkLoggingConfig. """ return self._port @port.setter def port(self, port): """ Sets the port of this SplunkLoggingConfig. """ self._port = port @property def index(self): """ Gets the index of this SplunkLoggingConfig. The Splunk index that will receive log items Type: `str` :setter: Sets the index of this SplunkLoggingConfig. """ return self._index @index.setter def index(self, index): """ Sets the index of this SplunkLoggingConfig. The Splunk index that will receive log items """ self._index = index @property def tls(self): """ Gets the tls of this SplunkLoggingConfig. Type: `TlsConfig` :setter: Sets the tls of this SplunkLoggingConfig. """ return self._tls @tls.setter def tls(self, tls): """ Sets the tls of this SplunkLoggingConfig. """ self._tls = tls @property def enabled(self): """ Gets the enabled of this SplunkLoggingConfig. Type: `bool` :setter: Sets the enabled of this SplunkLoggingConfig. """ return self._enabled @enabled.setter def enabled(self, enabled): """ Sets the enabled of this SplunkLoggingConfig. """ self._enabled = enabled def to_dict(self): """ Returns the model properties as a dict """ result = {} for attr, _ in 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 return result def to_str(self): """ Returns the string representation of the model """ return 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, SplunkLoggingConfig): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """ Returns true if both objects are not equal """ return not self == other