diff --git a/CHANGELOG.md b/CHANGELOG.md index f86a9753..57fde5ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.3.0 [unreleased] + +### API +1. [#47](https://github.com/influxdata/influxdb-client-python/pull/47): Updated swagger to latest version + ## 1.2.0 [2019-12-06] ### Features diff --git a/influxdb_client/__init__.py b/influxdb_client/__init__.py index 72e19371..b0112960 100644 --- a/influxdb_client/__init__.py +++ b/influxdb_client/__init__.py @@ -258,42 +258,9 @@ from influxdb_client.domain.task_update_request import TaskUpdateRequest from influxdb_client.domain.tasks import Tasks from influxdb_client.domain.telegraf import Telegraf -from influxdb_client.domain.telegraf_plugin_input_cpu import TelegrafPluginInputCpu -from influxdb_client.domain.telegraf_plugin_input_disk import TelegrafPluginInputDisk -from influxdb_client.domain.telegraf_plugin_input_diskio import TelegrafPluginInputDiskio -from influxdb_client.domain.telegraf_plugin_input_docker import TelegrafPluginInputDocker -from influxdb_client.domain.telegraf_plugin_input_docker_config import TelegrafPluginInputDockerConfig -from influxdb_client.domain.telegraf_plugin_input_file import TelegrafPluginInputFile -from influxdb_client.domain.telegraf_plugin_input_file_config import TelegrafPluginInputFileConfig -from influxdb_client.domain.telegraf_plugin_input_kernel import TelegrafPluginInputKernel -from influxdb_client.domain.telegraf_plugin_input_kubernetes import TelegrafPluginInputKubernetes -from influxdb_client.domain.telegraf_plugin_input_kubernetes_config import TelegrafPluginInputKubernetesConfig -from influxdb_client.domain.telegraf_plugin_input_log_parser import TelegrafPluginInputLogParser -from influxdb_client.domain.telegraf_plugin_input_log_parser_config import TelegrafPluginInputLogParserConfig -from influxdb_client.domain.telegraf_plugin_input_mem import TelegrafPluginInputMem -from influxdb_client.domain.telegraf_plugin_input_net import TelegrafPluginInputNet -from influxdb_client.domain.telegraf_plugin_input_net_response import TelegrafPluginInputNetResponse -from influxdb_client.domain.telegraf_plugin_input_nginx import TelegrafPluginInputNginx -from influxdb_client.domain.telegraf_plugin_input_processes import TelegrafPluginInputProcesses -from influxdb_client.domain.telegraf_plugin_input_procstat import TelegrafPluginInputProcstat -from influxdb_client.domain.telegraf_plugin_input_procstat_config import TelegrafPluginInputProcstatConfig -from influxdb_client.domain.telegraf_plugin_input_prometheus import TelegrafPluginInputPrometheus -from influxdb_client.domain.telegraf_plugin_input_prometheus_config import TelegrafPluginInputPrometheusConfig -from influxdb_client.domain.telegraf_plugin_input_redis import TelegrafPluginInputRedis -from influxdb_client.domain.telegraf_plugin_input_redis_config import TelegrafPluginInputRedisConfig -from influxdb_client.domain.telegraf_plugin_input_swap import TelegrafPluginInputSwap -from influxdb_client.domain.telegraf_plugin_input_syslog import TelegrafPluginInputSyslog -from influxdb_client.domain.telegraf_plugin_input_syslog_config import TelegrafPluginInputSyslogConfig -from influxdb_client.domain.telegraf_plugin_input_system import TelegrafPluginInputSystem -from influxdb_client.domain.telegraf_plugin_input_tail import TelegrafPluginInputTail -from influxdb_client.domain.telegraf_plugin_output_file import TelegrafPluginOutputFile -from influxdb_client.domain.telegraf_plugin_output_file_config import TelegrafPluginOutputFileConfig -from influxdb_client.domain.telegraf_plugin_output_file_config_files import TelegrafPluginOutputFileConfigFiles -from influxdb_client.domain.telegraf_plugin_output_influx_dbv2 import TelegrafPluginOutputInfluxDBV2 -from influxdb_client.domain.telegraf_plugin_output_influx_dbv2_config import TelegrafPluginOutputInfluxDBV2Config +from influxdb_client.domain.telegraf_plugin import TelegrafPlugin from influxdb_client.domain.telegraf_request import TelegrafRequest -from influxdb_client.domain.telegraf_request_agent import TelegrafRequestAgent -from influxdb_client.domain.telegraf_request_plugin import TelegrafRequestPlugin +from influxdb_client.domain.telegraf_request_metadata import TelegrafRequestMetadata from influxdb_client.domain.telegrafs import Telegrafs from influxdb_client.domain.test_statement import TestStatement from influxdb_client.domain.threshold import Threshold diff --git a/influxdb_client/domain/__init__.py b/influxdb_client/domain/__init__.py index 5515fe69..4627b811 100644 --- a/influxdb_client/domain/__init__.py +++ b/influxdb_client/domain/__init__.py @@ -225,42 +225,9 @@ from influxdb_client.domain.task_update_request import TaskUpdateRequest from influxdb_client.domain.tasks import Tasks from influxdb_client.domain.telegraf import Telegraf -from influxdb_client.domain.telegraf_plugin_input_cpu import TelegrafPluginInputCpu -from influxdb_client.domain.telegraf_plugin_input_disk import TelegrafPluginInputDisk -from influxdb_client.domain.telegraf_plugin_input_diskio import TelegrafPluginInputDiskio -from influxdb_client.domain.telegraf_plugin_input_docker import TelegrafPluginInputDocker -from influxdb_client.domain.telegraf_plugin_input_docker_config import TelegrafPluginInputDockerConfig -from influxdb_client.domain.telegraf_plugin_input_file import TelegrafPluginInputFile -from influxdb_client.domain.telegraf_plugin_input_file_config import TelegrafPluginInputFileConfig -from influxdb_client.domain.telegraf_plugin_input_kernel import TelegrafPluginInputKernel -from influxdb_client.domain.telegraf_plugin_input_kubernetes import TelegrafPluginInputKubernetes -from influxdb_client.domain.telegraf_plugin_input_kubernetes_config import TelegrafPluginInputKubernetesConfig -from influxdb_client.domain.telegraf_plugin_input_log_parser import TelegrafPluginInputLogParser -from influxdb_client.domain.telegraf_plugin_input_log_parser_config import TelegrafPluginInputLogParserConfig -from influxdb_client.domain.telegraf_plugin_input_mem import TelegrafPluginInputMem -from influxdb_client.domain.telegraf_plugin_input_net import TelegrafPluginInputNet -from influxdb_client.domain.telegraf_plugin_input_net_response import TelegrafPluginInputNetResponse -from influxdb_client.domain.telegraf_plugin_input_nginx import TelegrafPluginInputNginx -from influxdb_client.domain.telegraf_plugin_input_processes import TelegrafPluginInputProcesses -from influxdb_client.domain.telegraf_plugin_input_procstat import TelegrafPluginInputProcstat -from influxdb_client.domain.telegraf_plugin_input_procstat_config import TelegrafPluginInputProcstatConfig -from influxdb_client.domain.telegraf_plugin_input_prometheus import TelegrafPluginInputPrometheus -from influxdb_client.domain.telegraf_plugin_input_prometheus_config import TelegrafPluginInputPrometheusConfig -from influxdb_client.domain.telegraf_plugin_input_redis import TelegrafPluginInputRedis -from influxdb_client.domain.telegraf_plugin_input_redis_config import TelegrafPluginInputRedisConfig -from influxdb_client.domain.telegraf_plugin_input_swap import TelegrafPluginInputSwap -from influxdb_client.domain.telegraf_plugin_input_syslog import TelegrafPluginInputSyslog -from influxdb_client.domain.telegraf_plugin_input_syslog_config import TelegrafPluginInputSyslogConfig -from influxdb_client.domain.telegraf_plugin_input_system import TelegrafPluginInputSystem -from influxdb_client.domain.telegraf_plugin_input_tail import TelegrafPluginInputTail -from influxdb_client.domain.telegraf_plugin_output_file import TelegrafPluginOutputFile -from influxdb_client.domain.telegraf_plugin_output_file_config import TelegrafPluginOutputFileConfig -from influxdb_client.domain.telegraf_plugin_output_file_config_files import TelegrafPluginOutputFileConfigFiles -from influxdb_client.domain.telegraf_plugin_output_influx_dbv2 import TelegrafPluginOutputInfluxDBV2 -from influxdb_client.domain.telegraf_plugin_output_influx_dbv2_config import TelegrafPluginOutputInfluxDBV2Config +from influxdb_client.domain.telegraf_plugin import TelegrafPlugin from influxdb_client.domain.telegraf_request import TelegrafRequest -from influxdb_client.domain.telegraf_request_agent import TelegrafRequestAgent -from influxdb_client.domain.telegraf_request_plugin import TelegrafRequestPlugin +from influxdb_client.domain.telegraf_request_metadata import TelegrafRequestMetadata from influxdb_client.domain.telegrafs import Telegrafs from influxdb_client.domain.test_statement import TestStatement from influxdb_client.domain.threshold import Threshold diff --git a/influxdb_client/domain/delete_predicate_request.py b/influxdb_client/domain/delete_predicate_request.py index 7b83faa3..3f9d731f 100644 --- a/influxdb_client/domain/delete_predicate_request.py +++ b/influxdb_client/domain/delete_predicate_request.py @@ -59,7 +59,7 @@ def __init__(self, start=None, stop=None, predicate=None): # noqa: E501 def start(self): """Gets the start of this DeletePredicateRequest. # noqa: E501 - RFC3339Nano. # noqa: E501 + RFC3339Nano # noqa: E501 :return: The start of this DeletePredicateRequest. # noqa: E501 :rtype: datetime @@ -70,7 +70,7 @@ def start(self): def start(self, start): """Sets the start of this DeletePredicateRequest. - RFC3339Nano. # noqa: E501 + RFC3339Nano # noqa: E501 :param start: The start of this DeletePredicateRequest. # noqa: E501 :type: datetime @@ -84,7 +84,7 @@ def start(self, start): def stop(self): """Gets the stop of this DeletePredicateRequest. # noqa: E501 - RFC3339Nano. # noqa: E501 + RFC3339Nano # noqa: E501 :return: The stop of this DeletePredicateRequest. # noqa: E501 :rtype: datetime @@ -95,7 +95,7 @@ def stop(self): def stop(self, stop): """Sets the stop of this DeletePredicateRequest. - RFC3339Nano. # noqa: E501 + RFC3339Nano # noqa: E501 :param stop: The stop of this DeletePredicateRequest. # noqa: E501 :type: datetime @@ -109,7 +109,7 @@ def stop(self, stop): def predicate(self): """Gets the predicate of this DeletePredicateRequest. # noqa: E501 - sql where like delete statement # noqa: E501 + InfluxQL-like delete statement # noqa: E501 :return: The predicate of this DeletePredicateRequest. # noqa: E501 :rtype: str @@ -120,7 +120,7 @@ def predicate(self): def predicate(self, predicate): """Sets the predicate of this DeletePredicateRequest. - sql where like delete statement # noqa: E501 + InfluxQL-like delete statement # noqa: E501 :param predicate: The predicate of this DeletePredicateRequest. # noqa: E501 :type: str diff --git a/influxdb_client/domain/slack_notification_endpoint.py b/influxdb_client/domain/slack_notification_endpoint.py index d9761bd8..2fde6efd 100644 --- a/influxdb_client/domain/slack_notification_endpoint.py +++ b/influxdb_client/domain/slack_notification_endpoint.py @@ -49,8 +49,7 @@ def __init__(self, url=None, token=None): # noqa: E501 self._token = None self.discriminator = None - if url is not None: - self.url = url + self.url = url if token is not None: self.token = token @@ -74,6 +73,8 @@ def url(self, url): :param url: The url of this SlackNotificationEndpoint. # noqa: E501 :type: str """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 self._url = url diff --git a/influxdb_client/domain/telegraf.py b/influxdb_client/domain/telegraf.py index 3d8ba7ce..e8bf61fc 100644 --- a/influxdb_client/domain/telegraf.py +++ b/influxdb_client/domain/telegraf.py @@ -37,8 +37,8 @@ class Telegraf(TelegrafRequest): 'labels': 'list[Label]', 'name': 'str', 'description': 'str', - 'agent': 'TelegrafRequestAgent', - 'plugins': 'list[TelegrafRequestPlugin]', + 'metadata': 'TelegrafRequestMetadata', + 'config': 'str', 'org_id': 'str' } @@ -48,14 +48,14 @@ class Telegraf(TelegrafRequest): 'labels': 'labels', 'name': 'name', 'description': 'description', - 'agent': 'agent', - 'plugins': 'plugins', + 'metadata': 'metadata', + 'config': 'config', 'org_id': 'orgID' } - def __init__(self, id=None, links=None, labels=None, name=None, description=None, agent=None, plugins=None, org_id=None): # noqa: E501 + def __init__(self, id=None, links=None, labels=None, name=None, description=None, metadata=None, config=None, org_id=None): # noqa: E501 """Telegraf - a model defined in OpenAPI""" # noqa: E501 - TelegrafRequest.__init__(self, name=name, description=description, agent=agent, plugins=plugins, org_id=org_id) + TelegrafRequest.__init__(self, name=name, description=description, metadata=metadata, config=config, org_id=org_id) self._id = None self._links = None diff --git a/influxdb_client/domain/telegraf_plugin_input_file.py b/influxdb_client/domain/telegraf_plugin.py similarity index 57% rename from influxdb_client/domain/telegraf_plugin_input_file.py rename to influxdb_client/domain/telegraf_plugin.py index 80874f2d..1f1c600f 100644 --- a/influxdb_client/domain/telegraf_plugin_input_file.py +++ b/influxdb_client/domain/telegraf_plugin.py @@ -16,7 +16,7 @@ import six -class TelegrafPluginInputFile(object): +class TelegrafPlugin(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -31,121 +31,118 @@ class TelegrafPluginInputFile(object): and the value is json key in definition. """ openapi_types = { - 'name': 'str', 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputFileConfig' + 'name': 'str', + 'description': 'str', + 'config': 'dict(str, object)' } attribute_map = { - 'name': 'name', 'type': 'type', - 'comment': 'comment', + 'name': 'name', + 'description': 'description', 'config': 'config' } - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputFile - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, type=None, name=None, description=None, config=None): # noqa: E501 + """TelegrafPlugin - a model defined in OpenAPI""" # noqa: E501 - self._name = None self._type = None - self._comment = None + self._name = None + self._description = None self._config = None self.discriminator = None - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config + if type is not None: + self.type = type + if name is not None: + self.name = name + if description is not None: + self.description = description + if config is not None: + self.config = config @property - def name(self): - """Gets the name of this TelegrafPluginInputFile. # noqa: E501 + def type(self): + """Gets the type of this TelegrafPlugin. # noqa: E501 - :return: The name of this TelegrafPluginInputFile. # noqa: E501 + :return: The type of this TelegrafPlugin. # noqa: E501 :rtype: str """ - return self._name + return self._type - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputFile. + @type.setter + def type(self, type): + """Sets the type of this TelegrafPlugin. - :param name: The name of this TelegrafPluginInputFile. # noqa: E501 + :param type: The type of this TelegrafPlugin. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - self._name = name + self._type = type @property - def type(self): - """Gets the type of this TelegrafPluginInputFile. # noqa: E501 + def name(self): + """Gets the name of this TelegrafPlugin. # noqa: E501 - :return: The type of this TelegrafPluginInputFile. # noqa: E501 + :return: The name of this TelegrafPlugin. # noqa: E501 :rtype: str """ - return self._type + return self._name - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputFile. + @name.setter + def name(self, name): + """Sets the name of this TelegrafPlugin. - :param type: The type of this TelegrafPluginInputFile. # noqa: E501 + :param name: The name of this TelegrafPlugin. # noqa: E501 :type: str """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - self._type = type + self._name = name @property - def comment(self): - """Gets the comment of this TelegrafPluginInputFile. # noqa: E501 + def description(self): + """Gets the description of this TelegrafPlugin. # noqa: E501 - :return: The comment of this TelegrafPluginInputFile. # noqa: E501 + :return: The description of this TelegrafPlugin. # noqa: E501 :rtype: str """ - return self._comment + return self._description - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputFile. + @description.setter + def description(self, description): + """Sets the description of this TelegrafPlugin. - :param comment: The comment of this TelegrafPluginInputFile. # noqa: E501 + :param description: The description of this TelegrafPlugin. # noqa: E501 :type: str """ - self._comment = comment + self._description = description @property def config(self): - """Gets the config of this TelegrafPluginInputFile. # noqa: E501 + """Gets the config of this TelegrafPlugin. # noqa: E501 - :return: The config of this TelegrafPluginInputFile. # noqa: E501 - :rtype: TelegrafPluginInputFileConfig + :return: The config of this TelegrafPlugin. # noqa: E501 + :rtype: dict(str, object) """ return self._config @config.setter def config(self, config): - """Sets the config of this TelegrafPluginInputFile. + """Sets the config of this TelegrafPlugin. - :param config: The config of this TelegrafPluginInputFile. # noqa: E501 - :type: TelegrafPluginInputFileConfig + :param config: The config of this TelegrafPlugin. # noqa: E501 + :type: dict(str, object) """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 self._config = config @@ -183,7 +180,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TelegrafPluginInputFile): + if not isinstance(other, TelegrafPlugin): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/telegraf_plugin_input_cpu.py b/influxdb_client/domain/telegraf_plugin_input_cpu.py deleted file mode 100644 index 344736ac..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_cpu.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputCpu(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputCpu - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputCpu. # noqa: E501 - - - :return: The name of this TelegrafPluginInputCpu. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputCpu. - - - :param name: The name of this TelegrafPluginInputCpu. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputCpu. # noqa: E501 - - - :return: The type of this TelegrafPluginInputCpu. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputCpu. - - - :param type: The type of this TelegrafPluginInputCpu. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputCpu. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputCpu. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputCpu. - - - :param comment: The comment of this TelegrafPluginInputCpu. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputCpu): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_disk.py b/influxdb_client/domain/telegraf_plugin_input_disk.py deleted file mode 100644 index 81d6e253..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_disk.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputDisk(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputDisk - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputDisk. # noqa: E501 - - - :return: The name of this TelegrafPluginInputDisk. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputDisk. - - - :param name: The name of this TelegrafPluginInputDisk. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputDisk. # noqa: E501 - - - :return: The type of this TelegrafPluginInputDisk. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputDisk. - - - :param type: The type of this TelegrafPluginInputDisk. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputDisk. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputDisk. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputDisk. - - - :param comment: The comment of this TelegrafPluginInputDisk. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputDisk): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_diskio.py b/influxdb_client/domain/telegraf_plugin_input_diskio.py deleted file mode 100644 index 617b6593..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_diskio.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputDiskio(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputDiskio - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputDiskio. # noqa: E501 - - - :return: The name of this TelegrafPluginInputDiskio. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputDiskio. - - - :param name: The name of this TelegrafPluginInputDiskio. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputDiskio. # noqa: E501 - - - :return: The type of this TelegrafPluginInputDiskio. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputDiskio. - - - :param type: The type of this TelegrafPluginInputDiskio. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputDiskio. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputDiskio. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputDiskio. - - - :param comment: The comment of this TelegrafPluginInputDiskio. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputDiskio): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_docker.py b/influxdb_client/domain/telegraf_plugin_input_docker.py deleted file mode 100644 index f451d808..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_docker.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputDocker(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputDockerConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputDocker - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputDocker. # noqa: E501 - - - :return: The name of this TelegrafPluginInputDocker. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputDocker. - - - :param name: The name of this TelegrafPluginInputDocker. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputDocker. # noqa: E501 - - - :return: The type of this TelegrafPluginInputDocker. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputDocker. - - - :param type: The type of this TelegrafPluginInputDocker. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputDocker. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputDocker. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputDocker. - - - :param comment: The comment of this TelegrafPluginInputDocker. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputDocker. # noqa: E501 - - - :return: The config of this TelegrafPluginInputDocker. # noqa: E501 - :rtype: TelegrafPluginInputDockerConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputDocker. - - - :param config: The config of this TelegrafPluginInputDocker. # noqa: E501 - :type: TelegrafPluginInputDockerConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputDocker): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_docker_config.py b/influxdb_client/domain/telegraf_plugin_input_docker_config.py deleted file mode 100644 index ef4e12c8..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_docker_config.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputDockerConfig(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 = { - 'endpoint': 'str' - } - - attribute_map = { - 'endpoint': 'endpoint' - } - - def __init__(self, endpoint=None): # noqa: E501 - """TelegrafPluginInputDockerConfig - a model defined in OpenAPI""" # noqa: E501 - - self._endpoint = None - self.discriminator = None - - self.endpoint = endpoint - - @property - def endpoint(self): - """Gets the endpoint of this TelegrafPluginInputDockerConfig. # noqa: E501 - - - :return: The endpoint of this TelegrafPluginInputDockerConfig. # noqa: E501 - :rtype: str - """ - return self._endpoint - - @endpoint.setter - def endpoint(self, endpoint): - """Sets the endpoint of this TelegrafPluginInputDockerConfig. - - - :param endpoint: The endpoint of this TelegrafPluginInputDockerConfig. # noqa: E501 - :type: str - """ - if endpoint is None: - raise ValueError("Invalid value for `endpoint`, must not be `None`") # noqa: E501 - - self._endpoint = endpoint - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputDockerConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_kernel.py b/influxdb_client/domain/telegraf_plugin_input_kernel.py deleted file mode 100644 index 7f6758b9..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_kernel.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputKernel(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputKernel - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputKernel. # noqa: E501 - - - :return: The name of this TelegrafPluginInputKernel. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputKernel. - - - :param name: The name of this TelegrafPluginInputKernel. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputKernel. # noqa: E501 - - - :return: The type of this TelegrafPluginInputKernel. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputKernel. - - - :param type: The type of this TelegrafPluginInputKernel. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputKernel. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputKernel. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputKernel. - - - :param comment: The comment of this TelegrafPluginInputKernel. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputKernel): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_kubernetes.py b/influxdb_client/domain/telegraf_plugin_input_kubernetes.py deleted file mode 100644 index 3169f117..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_kubernetes.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputKubernetes(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputKubernetesConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputKubernetes - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputKubernetes. # noqa: E501 - - - :return: The name of this TelegrafPluginInputKubernetes. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputKubernetes. - - - :param name: The name of this TelegrafPluginInputKubernetes. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputKubernetes. # noqa: E501 - - - :return: The type of this TelegrafPluginInputKubernetes. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputKubernetes. - - - :param type: The type of this TelegrafPluginInputKubernetes. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputKubernetes. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputKubernetes. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputKubernetes. - - - :param comment: The comment of this TelegrafPluginInputKubernetes. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputKubernetes. # noqa: E501 - - - :return: The config of this TelegrafPluginInputKubernetes. # noqa: E501 - :rtype: TelegrafPluginInputKubernetesConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputKubernetes. - - - :param config: The config of this TelegrafPluginInputKubernetes. # noqa: E501 - :type: TelegrafPluginInputKubernetesConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputKubernetes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_kubernetes_config.py b/influxdb_client/domain/telegraf_plugin_input_kubernetes_config.py deleted file mode 100644 index 26121e1d..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_kubernetes_config.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputKubernetesConfig(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 = { - 'url': 'str' - } - - attribute_map = { - 'url': 'url' - } - - def __init__(self, url=None): # noqa: E501 - """TelegrafPluginInputKubernetesConfig - a model defined in OpenAPI""" # noqa: E501 - - self._url = None - self.discriminator = None - - if url is not None: - self.url = url - - @property - def url(self): - """Gets the url of this TelegrafPluginInputKubernetesConfig. # noqa: E501 - - - :return: The url of this TelegrafPluginInputKubernetesConfig. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this TelegrafPluginInputKubernetesConfig. - - - :param url: The url of this TelegrafPluginInputKubernetesConfig. # noqa: E501 - :type: str - """ - - self._url = url - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputKubernetesConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_log_parser.py b/influxdb_client/domain/telegraf_plugin_input_log_parser.py deleted file mode 100644 index 2c1e62ce..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_log_parser.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputLogParser(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputLogParserConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputLogParser - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputLogParser. # noqa: E501 - - - :return: The name of this TelegrafPluginInputLogParser. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputLogParser. - - - :param name: The name of this TelegrafPluginInputLogParser. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputLogParser. # noqa: E501 - - - :return: The type of this TelegrafPluginInputLogParser. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputLogParser. - - - :param type: The type of this TelegrafPluginInputLogParser. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputLogParser. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputLogParser. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputLogParser. - - - :param comment: The comment of this TelegrafPluginInputLogParser. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputLogParser. # noqa: E501 - - - :return: The config of this TelegrafPluginInputLogParser. # noqa: E501 - :rtype: TelegrafPluginInputLogParserConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputLogParser. - - - :param config: The config of this TelegrafPluginInputLogParser. # noqa: E501 - :type: TelegrafPluginInputLogParserConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputLogParser): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_log_parser_config.py b/influxdb_client/domain/telegraf_plugin_input_log_parser_config.py deleted file mode 100644 index 2238202d..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_log_parser_config.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputLogParserConfig(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 = { - 'files': 'list[str]' - } - - attribute_map = { - 'files': 'files' - } - - def __init__(self, files=None): # noqa: E501 - """TelegrafPluginInputLogParserConfig - a model defined in OpenAPI""" # noqa: E501 - - self._files = None - self.discriminator = None - - if files is not None: - self.files = files - - @property - def files(self): - """Gets the files of this TelegrafPluginInputLogParserConfig. # noqa: E501 - - - :return: The files of this TelegrafPluginInputLogParserConfig. # noqa: E501 - :rtype: list[str] - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this TelegrafPluginInputLogParserConfig. - - - :param files: The files of this TelegrafPluginInputLogParserConfig. # noqa: E501 - :type: list[str] - """ - - self._files = files - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputLogParserConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_mem.py b/influxdb_client/domain/telegraf_plugin_input_mem.py deleted file mode 100644 index 925dab61..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_mem.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputMem(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputMem - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputMem. # noqa: E501 - - - :return: The name of this TelegrafPluginInputMem. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputMem. - - - :param name: The name of this TelegrafPluginInputMem. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputMem. # noqa: E501 - - - :return: The type of this TelegrafPluginInputMem. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputMem. - - - :param type: The type of this TelegrafPluginInputMem. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputMem. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputMem. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputMem. - - - :param comment: The comment of this TelegrafPluginInputMem. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputMem): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_net.py b/influxdb_client/domain/telegraf_plugin_input_net.py deleted file mode 100644 index 130d4249..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_net.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputNet(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputNet - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputNet. # noqa: E501 - - - :return: The name of this TelegrafPluginInputNet. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputNet. - - - :param name: The name of this TelegrafPluginInputNet. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputNet. # noqa: E501 - - - :return: The type of this TelegrafPluginInputNet. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputNet. - - - :param type: The type of this TelegrafPluginInputNet. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputNet. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputNet. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputNet. - - - :param comment: The comment of this TelegrafPluginInputNet. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputNet): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_net_response.py b/influxdb_client/domain/telegraf_plugin_input_net_response.py deleted file mode 100644 index 9ae6dd91..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_net_response.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputNetResponse(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputNetResponse - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputNetResponse. # noqa: E501 - - - :return: The name of this TelegrafPluginInputNetResponse. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputNetResponse. - - - :param name: The name of this TelegrafPluginInputNetResponse. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputNetResponse. # noqa: E501 - - - :return: The type of this TelegrafPluginInputNetResponse. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputNetResponse. - - - :param type: The type of this TelegrafPluginInputNetResponse. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputNetResponse. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputNetResponse. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputNetResponse. - - - :param comment: The comment of this TelegrafPluginInputNetResponse. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputNetResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_nginx.py b/influxdb_client/domain/telegraf_plugin_input_nginx.py deleted file mode 100644 index 98e57e07..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_nginx.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputNginx(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputNginx - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputNginx. # noqa: E501 - - - :return: The name of this TelegrafPluginInputNginx. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputNginx. - - - :param name: The name of this TelegrafPluginInputNginx. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputNginx. # noqa: E501 - - - :return: The type of this TelegrafPluginInputNginx. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputNginx. - - - :param type: The type of this TelegrafPluginInputNginx. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputNginx. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputNginx. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputNginx. - - - :param comment: The comment of this TelegrafPluginInputNginx. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputNginx): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_processes.py b/influxdb_client/domain/telegraf_plugin_input_processes.py deleted file mode 100644 index 6c4bfe93..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_processes.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputProcesses(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputProcesses - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputProcesses. # noqa: E501 - - - :return: The name of this TelegrafPluginInputProcesses. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputProcesses. - - - :param name: The name of this TelegrafPluginInputProcesses. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputProcesses. # noqa: E501 - - - :return: The type of this TelegrafPluginInputProcesses. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputProcesses. - - - :param type: The type of this TelegrafPluginInputProcesses. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputProcesses. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputProcesses. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputProcesses. - - - :param comment: The comment of this TelegrafPluginInputProcesses. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputProcesses): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_procstat.py b/influxdb_client/domain/telegraf_plugin_input_procstat.py deleted file mode 100644 index 6f07c9e4..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_procstat.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputProcstat(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputProcstatConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputProcstat - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputProcstat. # noqa: E501 - - - :return: The name of this TelegrafPluginInputProcstat. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputProcstat. - - - :param name: The name of this TelegrafPluginInputProcstat. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputProcstat. # noqa: E501 - - - :return: The type of this TelegrafPluginInputProcstat. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputProcstat. - - - :param type: The type of this TelegrafPluginInputProcstat. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputProcstat. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputProcstat. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputProcstat. - - - :param comment: The comment of this TelegrafPluginInputProcstat. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputProcstat. # noqa: E501 - - - :return: The config of this TelegrafPluginInputProcstat. # noqa: E501 - :rtype: TelegrafPluginInputProcstatConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputProcstat. - - - :param config: The config of this TelegrafPluginInputProcstat. # noqa: E501 - :type: TelegrafPluginInputProcstatConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputProcstat): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_procstat_config.py b/influxdb_client/domain/telegraf_plugin_input_procstat_config.py deleted file mode 100644 index 55833604..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_procstat_config.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputProcstatConfig(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 = { - 'exe': 'str' - } - - attribute_map = { - 'exe': 'exe' - } - - def __init__(self, exe=None): # noqa: E501 - """TelegrafPluginInputProcstatConfig - a model defined in OpenAPI""" # noqa: E501 - - self._exe = None - self.discriminator = None - - if exe is not None: - self.exe = exe - - @property - def exe(self): - """Gets the exe of this TelegrafPluginInputProcstatConfig. # noqa: E501 - - - :return: The exe of this TelegrafPluginInputProcstatConfig. # noqa: E501 - :rtype: str - """ - return self._exe - - @exe.setter - def exe(self, exe): - """Sets the exe of this TelegrafPluginInputProcstatConfig. - - - :param exe: The exe of this TelegrafPluginInputProcstatConfig. # noqa: E501 - :type: str - """ - - self._exe = exe - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputProcstatConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_prometheus.py b/influxdb_client/domain/telegraf_plugin_input_prometheus.py deleted file mode 100644 index 57f0e799..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_prometheus.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputPrometheus(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputPrometheusConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputPrometheus - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputPrometheus. # noqa: E501 - - - :return: The name of this TelegrafPluginInputPrometheus. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputPrometheus. - - - :param name: The name of this TelegrafPluginInputPrometheus. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputPrometheus. # noqa: E501 - - - :return: The type of this TelegrafPluginInputPrometheus. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputPrometheus. - - - :param type: The type of this TelegrafPluginInputPrometheus. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputPrometheus. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputPrometheus. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputPrometheus. - - - :param comment: The comment of this TelegrafPluginInputPrometheus. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputPrometheus. # noqa: E501 - - - :return: The config of this TelegrafPluginInputPrometheus. # noqa: E501 - :rtype: TelegrafPluginInputPrometheusConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputPrometheus. - - - :param config: The config of this TelegrafPluginInputPrometheus. # noqa: E501 - :type: TelegrafPluginInputPrometheusConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputPrometheus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_prometheus_config.py b/influxdb_client/domain/telegraf_plugin_input_prometheus_config.py deleted file mode 100644 index 1dd08472..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_prometheus_config.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputPrometheusConfig(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 = { - 'urls': 'list[str]' - } - - attribute_map = { - 'urls': 'urls' - } - - def __init__(self, urls=None): # noqa: E501 - """TelegrafPluginInputPrometheusConfig - a model defined in OpenAPI""" # noqa: E501 - - self._urls = None - self.discriminator = None - - if urls is not None: - self.urls = urls - - @property - def urls(self): - """Gets the urls of this TelegrafPluginInputPrometheusConfig. # noqa: E501 - - - :return: The urls of this TelegrafPluginInputPrometheusConfig. # noqa: E501 - :rtype: list[str] - """ - return self._urls - - @urls.setter - def urls(self, urls): - """Sets the urls of this TelegrafPluginInputPrometheusConfig. - - - :param urls: The urls of this TelegrafPluginInputPrometheusConfig. # noqa: E501 - :type: list[str] - """ - - self._urls = urls - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputPrometheusConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_redis.py b/influxdb_client/domain/telegraf_plugin_input_redis.py deleted file mode 100644 index 985a984d..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_redis.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputRedis(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputRedisConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputRedis - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputRedis. # noqa: E501 - - - :return: The name of this TelegrafPluginInputRedis. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputRedis. - - - :param name: The name of this TelegrafPluginInputRedis. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputRedis. # noqa: E501 - - - :return: The type of this TelegrafPluginInputRedis. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputRedis. - - - :param type: The type of this TelegrafPluginInputRedis. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputRedis. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputRedis. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputRedis. - - - :param comment: The comment of this TelegrafPluginInputRedis. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputRedis. # noqa: E501 - - - :return: The config of this TelegrafPluginInputRedis. # noqa: E501 - :rtype: TelegrafPluginInputRedisConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputRedis. - - - :param config: The config of this TelegrafPluginInputRedis. # noqa: E501 - :type: TelegrafPluginInputRedisConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputRedis): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_redis_config.py b/influxdb_client/domain/telegraf_plugin_input_redis_config.py deleted file mode 100644 index 971cb144..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_redis_config.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputRedisConfig(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 = { - 'servers': 'list[str]', - 'password': 'str' - } - - attribute_map = { - 'servers': 'servers', - 'password': 'password' - } - - def __init__(self, servers=None, password=None): # noqa: E501 - """TelegrafPluginInputRedisConfig - a model defined in OpenAPI""" # noqa: E501 - - self._servers = None - self._password = None - self.discriminator = None - - if servers is not None: - self.servers = servers - if password is not None: - self.password = password - - @property - def servers(self): - """Gets the servers of this TelegrafPluginInputRedisConfig. # noqa: E501 - - - :return: The servers of this TelegrafPluginInputRedisConfig. # noqa: E501 - :rtype: list[str] - """ - return self._servers - - @servers.setter - def servers(self, servers): - """Sets the servers of this TelegrafPluginInputRedisConfig. - - - :param servers: The servers of this TelegrafPluginInputRedisConfig. # noqa: E501 - :type: list[str] - """ - - self._servers = servers - - @property - def password(self): - """Gets the password of this TelegrafPluginInputRedisConfig. # noqa: E501 - - - :return: The password of this TelegrafPluginInputRedisConfig. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this TelegrafPluginInputRedisConfig. - - - :param password: The password of this TelegrafPluginInputRedisConfig. # noqa: E501 - :type: str - """ - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputRedisConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_swap.py b/influxdb_client/domain/telegraf_plugin_input_swap.py deleted file mode 100644 index 31ec7d81..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_swap.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputSwap(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputSwap - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputSwap. # noqa: E501 - - - :return: The name of this TelegrafPluginInputSwap. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputSwap. - - - :param name: The name of this TelegrafPluginInputSwap. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputSwap. # noqa: E501 - - - :return: The type of this TelegrafPluginInputSwap. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputSwap. - - - :param type: The type of this TelegrafPluginInputSwap. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputSwap. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputSwap. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputSwap. - - - :param comment: The comment of this TelegrafPluginInputSwap. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputSwap): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_syslog.py b/influxdb_client/domain/telegraf_plugin_input_syslog.py deleted file mode 100644 index 9b7a6cb5..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_syslog.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputSyslog(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginInputSyslogConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginInputSyslog - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginInputSyslog. # noqa: E501 - - - :return: The name of this TelegrafPluginInputSyslog. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputSyslog. - - - :param name: The name of this TelegrafPluginInputSyslog. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputSyslog. # noqa: E501 - - - :return: The type of this TelegrafPluginInputSyslog. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputSyslog. - - - :param type: The type of this TelegrafPluginInputSyslog. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputSyslog. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputSyslog. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputSyslog. - - - :param comment: The comment of this TelegrafPluginInputSyslog. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginInputSyslog. # noqa: E501 - - - :return: The config of this TelegrafPluginInputSyslog. # noqa: E501 - :rtype: TelegrafPluginInputSyslogConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginInputSyslog. - - - :param config: The config of this TelegrafPluginInputSyslog. # noqa: E501 - :type: TelegrafPluginInputSyslogConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputSyslog): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_syslog_config.py b/influxdb_client/domain/telegraf_plugin_input_syslog_config.py deleted file mode 100644 index 569911a5..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_syslog_config.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputSyslogConfig(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 = { - 'server': 'str' - } - - attribute_map = { - 'server': 'server' - } - - def __init__(self, server=None): # noqa: E501 - """TelegrafPluginInputSyslogConfig - a model defined in OpenAPI""" # noqa: E501 - - self._server = None - self.discriminator = None - - if server is not None: - self.server = server - - @property - def server(self): - """Gets the server of this TelegrafPluginInputSyslogConfig. # noqa: E501 - - - :return: The server of this TelegrafPluginInputSyslogConfig. # noqa: E501 - :rtype: str - """ - return self._server - - @server.setter - def server(self, server): - """Sets the server of this TelegrafPluginInputSyslogConfig. - - - :param server: The server of this TelegrafPluginInputSyslogConfig. # noqa: E501 - :type: str - """ - - self._server = server - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputSyslogConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_system.py b/influxdb_client/domain/telegraf_plugin_input_system.py deleted file mode 100644 index 705891d2..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_system.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputSystem(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputSystem - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputSystem. # noqa: E501 - - - :return: The name of this TelegrafPluginInputSystem. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputSystem. - - - :param name: The name of this TelegrafPluginInputSystem. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputSystem. # noqa: E501 - - - :return: The type of this TelegrafPluginInputSystem. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputSystem. - - - :param type: The type of this TelegrafPluginInputSystem. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputSystem. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputSystem. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputSystem. - - - :param comment: The comment of this TelegrafPluginInputSystem. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputSystem): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_tail.py b/influxdb_client/domain/telegraf_plugin_input_tail.py deleted file mode 100644 index 0ed925bc..00000000 --- a/influxdb_client/domain/telegraf_plugin_input_tail.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginInputTail(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment' - } - - def __init__(self, name=None, type=None, comment=None): # noqa: E501 - """TelegrafPluginInputTail - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - - @property - def name(self): - """Gets the name of this TelegrafPluginInputTail. # noqa: E501 - - - :return: The name of this TelegrafPluginInputTail. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginInputTail. - - - :param name: The name of this TelegrafPluginInputTail. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginInputTail. # noqa: E501 - - - :return: The type of this TelegrafPluginInputTail. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginInputTail. - - - :param type: The type of this TelegrafPluginInputTail. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginInputTail. # noqa: E501 - - - :return: The comment of this TelegrafPluginInputTail. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginInputTail. - - - :param comment: The comment of this TelegrafPluginInputTail. # noqa: E501 - :type: str - """ - - self._comment = comment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginInputTail): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_output_file.py b/influxdb_client/domain/telegraf_plugin_output_file.py deleted file mode 100644 index 339e2b4d..00000000 --- a/influxdb_client/domain/telegraf_plugin_output_file.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginOutputFile(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginOutputFileConfig' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginOutputFile - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginOutputFile. # noqa: E501 - - - :return: The name of this TelegrafPluginOutputFile. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginOutputFile. - - - :param name: The name of this TelegrafPluginOutputFile. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginOutputFile. # noqa: E501 - - - :return: The type of this TelegrafPluginOutputFile. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginOutputFile. - - - :param type: The type of this TelegrafPluginOutputFile. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginOutputFile. # noqa: E501 - - - :return: The comment of this TelegrafPluginOutputFile. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginOutputFile. - - - :param comment: The comment of this TelegrafPluginOutputFile. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginOutputFile. # noqa: E501 - - - :return: The config of this TelegrafPluginOutputFile. # noqa: E501 - :rtype: TelegrafPluginOutputFileConfig - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginOutputFile. - - - :param config: The config of this TelegrafPluginOutputFile. # noqa: E501 - :type: TelegrafPluginOutputFileConfig - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginOutputFile): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_output_file_config.py b/influxdb_client/domain/telegraf_plugin_output_file_config.py deleted file mode 100644 index 82ec387c..00000000 --- a/influxdb_client/domain/telegraf_plugin_output_file_config.py +++ /dev/null @@ -1,113 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginOutputFileConfig(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 = { - 'files': 'list[TelegrafPluginOutputFileConfigFiles]' - } - - attribute_map = { - 'files': 'files' - } - - def __init__(self, files=None): # noqa: E501 - """TelegrafPluginOutputFileConfig - a model defined in OpenAPI""" # noqa: E501 - - self._files = None - self.discriminator = None - - self.files = files - - @property - def files(self): - """Gets the files of this TelegrafPluginOutputFileConfig. # noqa: E501 - - - :return: The files of this TelegrafPluginOutputFileConfig. # noqa: E501 - :rtype: list[TelegrafPluginOutputFileConfigFiles] - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this TelegrafPluginOutputFileConfig. - - - :param files: The files of this TelegrafPluginOutputFileConfig. # noqa: E501 - :type: list[TelegrafPluginOutputFileConfigFiles] - """ - if files is None: - raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 - - self._files = files - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginOutputFileConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_output_file_config_files.py b/influxdb_client/domain/telegraf_plugin_output_file_config_files.py deleted file mode 100644 index 38f74269..00000000 --- a/influxdb_client/domain/telegraf_plugin_output_file_config_files.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginOutputFileConfigFiles(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 = { - 'type': 'str', - 'path': 'str' - } - - attribute_map = { - 'type': 'type', - 'path': 'path' - } - - def __init__(self, type=None, path=None): # noqa: E501 - """TelegrafPluginOutputFileConfigFiles - a model defined in OpenAPI""" # noqa: E501 - - self._type = None - self._path = None - self.discriminator = None - - if type is not None: - self.type = type - if path is not None: - self.path = path - - @property - def type(self): - """Gets the type of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - - - :return: The type of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginOutputFileConfigFiles. - - - :param type: The type of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - :type: str - """ - - self._type = type - - @property - def path(self): - """Gets the path of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - - - :return: The path of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - :rtype: str - """ - return self._path - - @path.setter - def path(self, path): - """Sets the path of this TelegrafPluginOutputFileConfigFiles. - - - :param path: The path of this TelegrafPluginOutputFileConfigFiles. # noqa: E501 - :type: str - """ - - self._path = path - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginOutputFileConfigFiles): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_output_influx_dbv2.py b/influxdb_client/domain/telegraf_plugin_output_influx_dbv2.py deleted file mode 100644 index 47c7cbfe..00000000 --- a/influxdb_client/domain/telegraf_plugin_output_influx_dbv2.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginOutputInfluxDBV2(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 = { - 'name': 'str', - 'type': 'str', - 'comment': 'str', - 'config': 'TelegrafPluginOutputInfluxDBV2Config' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'comment': 'comment', - 'config': 'config' - } - - def __init__(self, name=None, type=None, comment=None, config=None): # noqa: E501 - """TelegrafPluginOutputInfluxDBV2 - a model defined in OpenAPI""" # noqa: E501 - - self._name = None - self._type = None - self._comment = None - self._config = None - self.discriminator = None - - self.name = name - self.type = type - if comment is not None: - self.comment = comment - self.config = config - - @property - def name(self): - """Gets the name of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - - - :return: The name of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TelegrafPluginOutputInfluxDBV2. - - - :param name: The name of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - - - :return: The type of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this TelegrafPluginOutputInfluxDBV2. - - - :param type: The type of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - - self._type = type - - @property - def comment(self): - """Gets the comment of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - - - :return: The comment of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :rtype: str - """ - return self._comment - - @comment.setter - def comment(self, comment): - """Sets the comment of this TelegrafPluginOutputInfluxDBV2. - - - :param comment: The comment of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :type: str - """ - - self._comment = comment - - @property - def config(self): - """Gets the config of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - - - :return: The config of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :rtype: TelegrafPluginOutputInfluxDBV2Config - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this TelegrafPluginOutputInfluxDBV2. - - - :param config: The config of this TelegrafPluginOutputInfluxDBV2. # noqa: E501 - :type: TelegrafPluginOutputInfluxDBV2Config - """ - if config is None: - raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501 - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginOutputInfluxDBV2): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_output_influx_dbv2_config.py b/influxdb_client/domain/telegraf_plugin_output_influx_dbv2_config.py deleted file mode 100644 index 506c87a2..00000000 --- a/influxdb_client/domain/telegraf_plugin_output_influx_dbv2_config.py +++ /dev/null @@ -1,194 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafPluginOutputInfluxDBV2Config(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 = { - 'urls': 'list[str]', - 'token': 'str', - 'organization': 'str', - 'bucket': 'str' - } - - attribute_map = { - 'urls': 'urls', - 'token': 'token', - 'organization': 'organization', - 'bucket': 'bucket' - } - - def __init__(self, urls=None, token=None, organization=None, bucket=None): # noqa: E501 - """TelegrafPluginOutputInfluxDBV2Config - a model defined in OpenAPI""" # noqa: E501 - - self._urls = None - self._token = None - self._organization = None - self._bucket = None - self.discriminator = None - - self.urls = urls - self.token = token - self.organization = organization - self.bucket = bucket - - @property - def urls(self): - """Gets the urls of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - - - :return: The urls of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :rtype: list[str] - """ - return self._urls - - @urls.setter - def urls(self, urls): - """Sets the urls of this TelegrafPluginOutputInfluxDBV2Config. - - - :param urls: The urls of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :type: list[str] - """ - if urls is None: - raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501 - - self._urls = urls - - @property - def token(self): - """Gets the token of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - - - :return: The token of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this TelegrafPluginOutputInfluxDBV2Config. - - - :param token: The token of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :type: str - """ - if token is None: - raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 - - self._token = token - - @property - def organization(self): - """Gets the organization of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - - - :return: The organization of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :rtype: str - """ - return self._organization - - @organization.setter - def organization(self, organization): - """Sets the organization of this TelegrafPluginOutputInfluxDBV2Config. - - - :param organization: The organization of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :type: str - """ - if organization is None: - raise ValueError("Invalid value for `organization`, must not be `None`") # noqa: E501 - - self._organization = organization - - @property - def bucket(self): - """Gets the bucket of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - - - :return: The bucket of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :rtype: str - """ - return self._bucket - - @bucket.setter - def bucket(self, bucket): - """Sets the bucket of this TelegrafPluginOutputInfluxDBV2Config. - - - :param bucket: The bucket of this TelegrafPluginOutputInfluxDBV2Config. # noqa: E501 - :type: str - """ - if bucket is None: - raise ValueError("Invalid value for `bucket`, must not be `None`") # noqa: E501 - - self._bucket = bucket - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafPluginOutputInfluxDBV2Config): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_request.py b/influxdb_client/domain/telegraf_request.py index cee7a10d..258633e9 100644 --- a/influxdb_client/domain/telegraf_request.py +++ b/influxdb_client/domain/telegraf_request.py @@ -33,26 +33,26 @@ class TelegrafRequest(object): openapi_types = { 'name': 'str', 'description': 'str', - 'agent': 'TelegrafRequestAgent', - 'plugins': 'list[TelegrafRequestPlugin]', + 'metadata': 'TelegrafRequestMetadata', + 'config': 'str', 'org_id': 'str' } attribute_map = { 'name': 'name', 'description': 'description', - 'agent': 'agent', - 'plugins': 'plugins', + 'metadata': 'metadata', + 'config': 'config', 'org_id': 'orgID' } - def __init__(self, name=None, description=None, agent=None, plugins=None, org_id=None): # noqa: E501 + def __init__(self, name=None, description=None, metadata=None, config=None, org_id=None): # noqa: E501 """TelegrafRequest - a model defined in OpenAPI""" # noqa: E501 self._name = None self._description = None - self._agent = None - self._plugins = None + self._metadata = None + self._config = None self._org_id = None self.discriminator = None @@ -60,10 +60,10 @@ def __init__(self, name=None, description=None, agent=None, plugins=None, org_id self.name = name if description is not None: self.description = description - if agent is not None: - self.agent = agent - if plugins is not None: - self.plugins = plugins + if metadata is not None: + self.metadata = metadata + if config is not None: + self.config = config if org_id is not None: self.org_id = org_id @@ -110,46 +110,46 @@ def description(self, description): self._description = description @property - def agent(self): - """Gets the agent of this TelegrafRequest. # noqa: E501 + def metadata(self): + """Gets the metadata of this TelegrafRequest. # noqa: E501 - :return: The agent of this TelegrafRequest. # noqa: E501 - :rtype: TelegrafRequestAgent + :return: The metadata of this TelegrafRequest. # noqa: E501 + :rtype: TelegrafRequestMetadata """ - return self._agent + return self._metadata - @agent.setter - def agent(self, agent): - """Sets the agent of this TelegrafRequest. + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this TelegrafRequest. - :param agent: The agent of this TelegrafRequest. # noqa: E501 - :type: TelegrafRequestAgent + :param metadata: The metadata of this TelegrafRequest. # noqa: E501 + :type: TelegrafRequestMetadata """ - self._agent = agent + self._metadata = metadata @property - def plugins(self): - """Gets the plugins of this TelegrafRequest. # noqa: E501 + def config(self): + """Gets the config of this TelegrafRequest. # noqa: E501 - :return: The plugins of this TelegrafRequest. # noqa: E501 - :rtype: list[TelegrafRequestPlugin] + :return: The config of this TelegrafRequest. # noqa: E501 + :rtype: str """ - return self._plugins + return self._config - @plugins.setter - def plugins(self, plugins): - """Sets the plugins of this TelegrafRequest. + @config.setter + def config(self, config): + """Sets the config of this TelegrafRequest. - :param plugins: The plugins of this TelegrafRequest. # noqa: E501 - :type: list[TelegrafRequestPlugin] + :param config: The config of this TelegrafRequest. # noqa: E501 + :type: str """ - self._plugins = plugins + self._config = config @property def org_id(self): diff --git a/influxdb_client/domain/telegraf_request_agent.py b/influxdb_client/domain/telegraf_request_agent.py deleted file mode 100644 index 62d13c06..00000000 --- a/influxdb_client/domain/telegraf_request_agent.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafRequestAgent(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 = { - 'collection_interval': 'int' - } - - attribute_map = { - 'collection_interval': 'collectionInterval' - } - - def __init__(self, collection_interval=None): # noqa: E501 - """TelegrafRequestAgent - a model defined in OpenAPI""" # noqa: E501 - - self._collection_interval = None - self.discriminator = None - - if collection_interval is not None: - self.collection_interval = collection_interval - - @property - def collection_interval(self): - """Gets the collection_interval of this TelegrafRequestAgent. # noqa: E501 - - - :return: The collection_interval of this TelegrafRequestAgent. # noqa: E501 - :rtype: int - """ - return self._collection_interval - - @collection_interval.setter - def collection_interval(self, collection_interval): - """Sets the collection_interval of this TelegrafRequestAgent. - - - :param collection_interval: The collection_interval of this TelegrafRequestAgent. # noqa: E501 - :type: int - """ - - self._collection_interval = collection_interval - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafRequestAgent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/domain/telegraf_plugin_input_file_config.py b/influxdb_client/domain/telegraf_request_metadata.py similarity index 73% rename from influxdb_client/domain/telegraf_plugin_input_file_config.py rename to influxdb_client/domain/telegraf_request_metadata.py index 656dedd8..0e5eaad1 100644 --- a/influxdb_client/domain/telegraf_plugin_input_file_config.py +++ b/influxdb_client/domain/telegraf_request_metadata.py @@ -16,7 +16,7 @@ import six -class TelegrafPluginInputFileConfig(object): +class TelegrafRequestMetadata(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -31,42 +31,42 @@ class TelegrafPluginInputFileConfig(object): and the value is json key in definition. """ openapi_types = { - 'files': 'list[str]' + 'buckets': 'list[str]' } attribute_map = { - 'files': 'files' + 'buckets': 'buckets' } - def __init__(self, files=None): # noqa: E501 - """TelegrafPluginInputFileConfig - a model defined in OpenAPI""" # noqa: E501 + def __init__(self, buckets=None): # noqa: E501 + """TelegrafRequestMetadata - a model defined in OpenAPI""" # noqa: E501 - self._files = None + self._buckets = None self.discriminator = None - if files is not None: - self.files = files + if buckets is not None: + self.buckets = buckets @property - def files(self): - """Gets the files of this TelegrafPluginInputFileConfig. # noqa: E501 + def buckets(self): + """Gets the buckets of this TelegrafRequestMetadata. # noqa: E501 - :return: The files of this TelegrafPluginInputFileConfig. # noqa: E501 + :return: The buckets of this TelegrafRequestMetadata. # noqa: E501 :rtype: list[str] """ - return self._files + return self._buckets - @files.setter - def files(self, files): - """Sets the files of this TelegrafPluginInputFileConfig. + @buckets.setter + def buckets(self, buckets): + """Sets the buckets of this TelegrafRequestMetadata. - :param files: The files of this TelegrafPluginInputFileConfig. # noqa: E501 + :param buckets: The buckets of this TelegrafRequestMetadata. # noqa: E501 :type: list[str] """ - self._files = files + self._buckets = buckets def to_dict(self): """Returns the model properties as a dict""" @@ -102,7 +102,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TelegrafPluginInputFileConfig): + if not isinstance(other, TelegrafRequestMetadata): return False return self.__dict__ == other.__dict__ diff --git a/influxdb_client/domain/telegraf_request_plugin.py b/influxdb_client/domain/telegraf_request_plugin.py deleted file mode 100644 index 7e4f2fe3..00000000 --- a/influxdb_client/domain/telegraf_request_plugin.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Influx API Service - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: 0.1.0 - Generated by: https://openapi-generator.tech -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TelegrafRequestPlugin(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 = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """TelegrafRequestPlugin - a model defined in OpenAPI""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_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 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, TelegrafRequestPlugin): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/influxdb_client/service/default_service.py b/influxdb_client/service/default_service.py index 8599c752..40d3ac59 100644 --- a/influxdb_client/service/default_service.py +++ b/influxdb_client/service/default_service.py @@ -33,7 +33,7 @@ def __init__(self, api_client=None): self.api_client = api_client def delete_post(self, delete_predicate_request, **kwargs): # noqa: E501 - """delete Time series data from InfluxDB # noqa: E501 + """Delete time series data from InfluxDB # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -41,12 +41,12 @@ def delete_post(self, delete_predicate_request, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param DeletePredicateRequest delete_predicate_request: predicate delete request (required) + :param DeletePredicateRequest delete_predicate_request: Predicate delete request (required) :param str zap_trace_span: OpenTracing span context - :param str org: specifies the destination organization for writes - :param str bucket: specifies the destination bucket for writes - :param str org_id: specifies the organization ID of the resource - :param str bucket_id: specifies the destination bucket ID for writes + :param str org: Specifies the organization to delete data from. + :param str bucket: Specifies the bucket to delete data from. + :param str org_id: Specifies the organization ID of the resource. + :param str bucket_id: Specifies the bucket ID to delete data from. :return: None If the method is called asynchronously, returns the request thread. @@ -59,7 +59,7 @@ def delete_post(self, delete_predicate_request, **kwargs): # noqa: E501 return data def delete_post_with_http_info(self, delete_predicate_request, **kwargs): # noqa: E501 - """delete Time series data from InfluxDB # noqa: E501 + """Delete time series data from InfluxDB # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -67,12 +67,12 @@ def delete_post_with_http_info(self, delete_predicate_request, **kwargs): # noq >>> result = thread.get() :param async_req bool - :param DeletePredicateRequest delete_predicate_request: predicate delete request (required) + :param DeletePredicateRequest delete_predicate_request: Predicate delete request (required) :param str zap_trace_span: OpenTracing span context - :param str org: specifies the destination organization for writes - :param str bucket: specifies the destination bucket for writes - :param str org_id: specifies the organization ID of the resource - :param str bucket_id: specifies the destination bucket ID for writes + :param str org: Specifies the organization to delete data from. + :param str bucket: Specifies the bucket to delete data from. + :param str org_id: Specifies the organization ID of the resource. + :param str bucket_id: Specifies the bucket ID to delete data from. :return: None If the method is called asynchronously, returns the request thread. diff --git a/influxdb_client/service/influx_packages_service.py b/influxdb_client/service/influx_packages_service.py index 1097832c..b3d3f163 100644 --- a/influxdb_client/service/influx_packages_service.py +++ b/influxdb_client/service/influx_packages_service.py @@ -33,7 +33,7 @@ def __init__(self, api_client=None): self.api_client = api_client def apply_pkg(self, pkg_apply, **kwargs): # noqa: E501 - """Apply or dry run an influx package # noqa: E501 + """Apply or dry-run an Influx package # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -54,7 +54,7 @@ def apply_pkg(self, pkg_apply, **kwargs): # noqa: E501 return data def apply_pkg_with_http_info(self, pkg_apply, **kwargs): # noqa: E501 - """Apply or dry run an influx package # noqa: E501 + """Apply or dry-run an Influx package # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -139,7 +139,7 @@ def create_pkg(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param PkgCreate pkg_create: Influx package to create + :param PkgCreate pkg_create: Influx package to create. :return: Pkg If the method is called asynchronously, returns the request thread. @@ -160,7 +160,7 @@ def create_pkg_with_http_info(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool - :param PkgCreate pkg_create: Influx package to create + :param PkgCreate pkg_create: Influx package to create. :return: Pkg If the method is called asynchronously, returns the request thread. diff --git a/influxdb_client/service/notification_rules_service.py b/influxdb_client/service/notification_rules_service.py index 9d01d533..eb4d5d42 100644 --- a/influxdb_client/service/notification_rules_service.py +++ b/influxdb_client/service/notification_rules_service.py @@ -348,7 +348,7 @@ def get_notification_rules(self, org_id, **kwargs): # noqa: E501 :param int offset: :param int limit: :param str check_id: Only show notifications that belong to the specific check ID. - :param str tag: Only show notification rules that match a tag pair. Uses `AND` to specify multiple tags. + :param str tag: Only return notification rules that \"would match\" statuses which contain the tag key value pairs provided. :return: NotificationRules If the method is called asynchronously, returns the request thread. @@ -374,7 +374,7 @@ def get_notification_rules_with_http_info(self, org_id, **kwargs): # noqa: E501 :param int offset: :param int limit: :param str check_id: Only show notifications that belong to the specific check ID. - :param str tag: Only show notification rules that match a tag pair. Uses `AND` to specify multiple tags. + :param str tag: Only return notification rules that \"would match\" statuses which contain the tag key value pairs provided. :return: NotificationRules If the method is called asynchronously, returns the request thread. diff --git a/scripts/swagger.yml b/scripts/swagger.yml index 00ae9236..8805e4d1 100644 --- a/scripts/swagger.yml +++ b/scripts/swagger.yml @@ -1642,9 +1642,9 @@ paths: $ref: "#/components/schemas/Error" /delete: post: - summary: delete Time series data from InfluxDB + summary: Delete time series data from InfluxDB requestBody: - description: predicate delete request + description: Predicate delete request required: true content: application/json: @@ -1654,27 +1654,27 @@ paths: - $ref: '#/components/parameters/TraceSpan' - in: query name: org - description: specifies the destination organization for writes + description: Specifies the organization to delete data from. schema: type: string - description: all points within batch are written to this organization. + description: Only points from this organization are deleted. - in: query name: bucket - description: specifies the destination bucket for writes + description: Specifies the bucket to delete data from. schema: type: string - description: all points within batch are written to this bucket. + description: Only points from this bucket are deleted. - in: query name: orgID - description: specifies the organization ID of the resource + description: Specifies the organization ID of the resource. schema: type: string - in: query name: bucketID - description: specifies the destination bucket ID for writes + description: Specifies the bucket ID to delete data from. schema: type: string - description: all points within batch are written to this bucket. + description: Only points from this bucket ID are deleted. responses: '204': description: delete has been accepted @@ -4248,7 +4248,7 @@ paths: - InfluxPackages summary: Create a new Influx package requestBody: - description: Influx package to create + description: Influx package to create. required: false content: application/json: @@ -4272,7 +4272,7 @@ paths: operationId: ApplyPkg tags: - InfluxPackages - summary: Apply or dry run an influx package + summary: Apply or dry-run an Influx package requestBody: required: true content: @@ -4285,7 +4285,7 @@ paths: responses: '200': description: > - Influx package dry run successful, no new resources created. + Influx package dry-run successful, no new resources created. The provided diff and summary will not have IDs for resources that do not exist at the time of the dry run. content: @@ -5532,7 +5532,7 @@ paths: type: string - in: query name: tag - description: Only show notification rules that match a tag pair. Uses `AND` to specify multiple tags. + description: Only return notification rules that "would match" statuses which contain the tag key value pairs provided. schema: type: string pattern: ^[a-zA-Z0-9_]+:[a-zA-Z0-9_]+$ @@ -6302,20 +6302,20 @@ components: path: $ref: "#/components/schemas/StringLiteral" DeletePredicateRequest: - description: the delete predicate request + description: The delete predicate request. type: object required: [start, stop] properties: start: - description: RFC3339Nano. + description: RFC3339Nano type: string format: date-time stop: - description: RFC3339Nano. + description: RFC3339Nano type: string format: date-time predicate: - description: sql where like delete statement + description: InfluxQL-like delete statement example: tag1="value1" and (tag2="value2" and tag3!="value3") type: string Node: @@ -9035,390 +9035,17 @@ components: type: string description: type: string - agent: + metadata: type: object properties: - collectionInterval: - type: integer - plugins: - type: array - items: - $ref: "#/components/schemas/TelegrafRequestPlugin" - orgID: - type: string - TelegrafRequestPlugin: - oneOf: - - $ref: '#/components/schemas/TelegrafPluginInputCpu' - - $ref: '#/components/schemas/TelegrafPluginInputDisk' - - $ref: '#/components/schemas/TelegrafPluginInputDiskio' - - $ref: '#/components/schemas/TelegrafPluginInputDocker' - - $ref: '#/components/schemas/TelegrafPluginInputFile' - - $ref: '#/components/schemas/TelegrafPluginInputKubernetes' - - $ref: '#/components/schemas/TelegrafPluginInputLogParser' - - $ref: '#/components/schemas/TelegrafPluginInputProcstat' - - $ref: '#/components/schemas/TelegrafPluginInputPrometheus' - - $ref: '#/components/schemas/TelegrafPluginInputRedis' - - $ref: '#/components/schemas/TelegrafPluginInputSyslog' - - $ref: '#/components/schemas/TelegrafPluginOutputFile' - - $ref: '#/components/schemas/TelegrafPluginOutputInfluxDBV2' - TelegrafPluginInputCpu: - type: object - required: - - name - - type - properties: - name: - type: string - enum: ["cpu"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputDisk: - type: object - required: - - name - - type - properties: - name: - type: string - enum: ["disk"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputDiskio: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["diskio"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputDocker: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["docker"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputDockerConfig' - TelegrafPluginInputFile: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["file"] - type: - type: string - enum: [input] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputFileConfig' - TelegrafPluginInputKernel: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["kernel"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputKubernetes: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["kubernetes"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputKubernetesConfig' - TelegrafPluginInputLogParser: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["logparser"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputLogParserConfig' - TelegrafPluginInputMem: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["mem"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputNetResponse: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["net_response"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputNet: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["net"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputNginx: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["nginx"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputProcesses: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["processes"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputProcstat: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["procstat"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputProcstatConfig' - TelegrafPluginInputPrometheus: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["prometheus"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputPrometheusConfig' - TelegrafPluginInputRedis: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["redis"] - type: - type: string - enum: ["input"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginInputRedisConfig' - TelegrafPluginInputSyslog: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["syslog"] - type: - type: string - enum: ["input"] - comment: - type: string + buckets: + type: array + items: + type: string config: - $ref: '#/components/schemas/TelegrafPluginInputSyslogConfig' - TelegrafPluginInputSwap: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["swap"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputSystem: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["system"] - type: type: string - enum: ["input"] - comment: - type: string - TelegrafPluginInputTail: - type: - object - required: - - name - - type - properties: - name: - type: string - enum: ["tail"] - type: - type: string - enum: ["input"] - comment: - type: string - TelegrafPluginOutputFile: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["file"] - type: - type: string - enum: ["output"] - comment: - type: string - config: - $ref: '#/components/schemas/TelegrafPluginOutputFileConfig' - TelegrafPluginOutputInfluxDBV2: - type: - object - required: - - name - - type - - config - properties: - name: - type: string - enum: ["influxdb_v2"] - type: - type: string - enum: ["output"] - comment: + orgID: type: string - config: - $ref: '#/components/schemas/TelegrafPluginOutputInfluxDBV2Config' Telegraf: type: object allOf: @@ -9455,94 +9082,20 @@ components: type: array items: $ref: "#/components/schemas/Telegraf" - TelegrafPluginInputDockerConfig: - type: object - required: - - endpoint - properties: - endpoint: - type: string - TelegrafPluginInputFileConfig: + TelegrafPlugin: type: object properties: - files: - type: array - items: - type: string - TelegrafPluginInputKubernetesConfig: - type: object - properties: - url: - type: string - format: uri - TelegrafPluginInputLogParserConfig: - type: object - properties: - files: - type: array - items: - type: string - TelegrafPluginInputProcstatConfig: - type: object - properties: - exe: + type: type: string - TelegrafPluginInputPrometheusConfig: - type: object - properties: - urls: - type: array - items: - type: string - format: uri - TelegrafPluginInputRedisConfig: - type: object - properties: - servers: - type: array - items: - type: string - password: + enum: [inputs, outputs, aggregators, processors] + name: type: string - TelegrafPluginInputSyslogConfig: - type: object - properties: - server: + description: type: string - TelegrafPluginOutputFileConfig: - type: object - required: - - files - properties: - files: - type: array - items: + config: + type: object + additionalProperties: type: object - properties: - type: - type: string - enum: [stdout, path] - path: - type: string - TelegrafPluginOutputInfluxDBV2Config: - type: object - required: - - urls - - token - - organization - - bucket - properties: - urls: - type: array - items: - type: string - format: uri - token: - type: string - organization: - type: string - bucket: - type: string IsOnboarding: type: object properties: @@ -10258,6 +9811,7 @@ components: allOf: - $ref: "#/components/schemas/NotificationEndpointBase" - type: object + required: [url] properties: url: description: Specifies the URL of the Slack endpoint. Specify either `URL` or `Token`. diff --git a/tests/test_TasksApi.py b/tests/test_TasksApi.py index cbcc80a1..da0bb31a 100644 --- a/tests/test_TasksApi.py +++ b/tests/test_TasksApi.py @@ -358,7 +358,7 @@ def test_run_logs(self): self.assertGreater(len(logs), 0) message = logs[len(logs) - 1].message - self.assertTrue(message.endswith("Completed successfully"), "The message: '{0}'".format(message)) + self.assertTrue(message.endswith("Completed(success)"), "The message: '{0}'".format(message)) def test_runs_not_exists(self): task = self.tasks_api.create_task_every(self.generate_name("it task"), TASK_FLUX, "1s", self.organization) @@ -381,4 +381,4 @@ def test_cancel_task_not_exist(self): with pytest.raises(ApiException) as e: assert self.tasks_api.cancel_run("020f755c3c082000", "020f755c3c082000") assert "failed to cancel run" in e.value.body - assert "task not found" in e.value.body + assert "run not found" in e.value.body