1616import six
1717
1818
19- class TelegrafPluginInputFile (object ):
19+ class TelegrafPlugin (object ):
2020 """NOTE: This class is auto generated by OpenAPI Generator.
2121 Ref: https://openapi-generator.tech
2222
@@ -31,121 +31,118 @@ class TelegrafPluginInputFile(object):
3131 and the value is json key in definition.
3232 """
3333 openapi_types = {
34- 'name' : 'str' ,
3534 'type' : 'str' ,
36- 'comment' : 'str' ,
37- 'config' : 'TelegrafPluginInputFileConfig'
35+ 'name' : 'str' ,
36+ 'description' : 'str' ,
37+ 'config' : 'dict(str, object)'
3838 }
3939
4040 attribute_map = {
41- 'name' : 'name' ,
4241 'type' : 'type' ,
43- 'comment' : 'comment' ,
42+ 'name' : 'name' ,
43+ 'description' : 'description' ,
4444 'config' : 'config'
4545 }
4646
47- def __init__ (self , name = None , type = None , comment = None , config = None ): # noqa: E501
48- """TelegrafPluginInputFile - a model defined in OpenAPI""" # noqa: E501
47+ def __init__ (self , type = None , name = None , description = None , config = None ): # noqa: E501
48+ """TelegrafPlugin - a model defined in OpenAPI""" # noqa: E501
4949
50- self ._name = None
5150 self ._type = None
52- self ._comment = None
51+ self ._name = None
52+ self ._description = None
5353 self ._config = None
5454 self .discriminator = None
5555
56- self .name = name
57- self .type = type
58- if comment is not None :
59- self .comment = comment
60- self .config = config
56+ if type is not None :
57+ self .type = type
58+ if name is not None :
59+ self .name = name
60+ if description is not None :
61+ self .description = description
62+ if config is not None :
63+ self .config = config
6164
6265 @property
63- def name (self ):
64- """Gets the name of this TelegrafPluginInputFile . # noqa: E501
66+ def type (self ):
67+ """Gets the type of this TelegrafPlugin . # noqa: E501
6568
6669
67- :return: The name of this TelegrafPluginInputFile . # noqa: E501
70+ :return: The type of this TelegrafPlugin . # noqa: E501
6871 :rtype: str
6972 """
70- return self ._name
73+ return self ._type
7174
72- @name .setter
73- def name (self , name ):
74- """Sets the name of this TelegrafPluginInputFile .
75+ @type .setter
76+ def type (self , type ):
77+ """Sets the type of this TelegrafPlugin .
7578
7679
77- :param name : The name of this TelegrafPluginInputFile . # noqa: E501
80+ :param type : The type of this TelegrafPlugin . # noqa: E501
7881 :type: str
7982 """
80- if name is None :
81- raise ValueError ("Invalid value for `name`, must not be `None`" ) # noqa: E501
8283
83- self ._name = name
84+ self ._type = type
8485
8586 @property
86- def type (self ):
87- """Gets the type of this TelegrafPluginInputFile . # noqa: E501
87+ def name (self ):
88+ """Gets the name of this TelegrafPlugin . # noqa: E501
8889
8990
90- :return: The type of this TelegrafPluginInputFile . # noqa: E501
91+ :return: The name of this TelegrafPlugin . # noqa: E501
9192 :rtype: str
9293 """
93- return self ._type
94+ return self ._name
9495
95- @type .setter
96- def type (self , type ):
97- """Sets the type of this TelegrafPluginInputFile .
96+ @name .setter
97+ def name (self , name ):
98+ """Sets the name of this TelegrafPlugin .
9899
99100
100- :param type : The type of this TelegrafPluginInputFile . # noqa: E501
101+ :param name : The name of this TelegrafPlugin . # noqa: E501
101102 :type: str
102103 """
103- if type is None :
104- raise ValueError ("Invalid value for `type`, must not be `None`" ) # noqa: E501
105104
106- self ._type = type
105+ self ._name = name
107106
108107 @property
109- def comment (self ):
110- """Gets the comment of this TelegrafPluginInputFile . # noqa: E501
108+ def description (self ):
109+ """Gets the description of this TelegrafPlugin . # noqa: E501
111110
112111
113- :return: The comment of this TelegrafPluginInputFile . # noqa: E501
112+ :return: The description of this TelegrafPlugin . # noqa: E501
114113 :rtype: str
115114 """
116- return self ._comment
115+ return self ._description
117116
118- @comment .setter
119- def comment (self , comment ):
120- """Sets the comment of this TelegrafPluginInputFile .
117+ @description .setter
118+ def description (self , description ):
119+ """Sets the description of this TelegrafPlugin .
121120
122121
123- :param comment : The comment of this TelegrafPluginInputFile . # noqa: E501
122+ :param description : The description of this TelegrafPlugin . # noqa: E501
124123 :type: str
125124 """
126125
127- self ._comment = comment
126+ self ._description = description
128127
129128 @property
130129 def config (self ):
131- """Gets the config of this TelegrafPluginInputFile . # noqa: E501
130+ """Gets the config of this TelegrafPlugin . # noqa: E501
132131
133132
134- :return: The config of this TelegrafPluginInputFile . # noqa: E501
135- :rtype: TelegrafPluginInputFileConfig
133+ :return: The config of this TelegrafPlugin . # noqa: E501
134+ :rtype: dict(str, object)
136135 """
137136 return self ._config
138137
139138 @config .setter
140139 def config (self , config ):
141- """Sets the config of this TelegrafPluginInputFile .
140+ """Sets the config of this TelegrafPlugin .
142141
143142
144- :param config: The config of this TelegrafPluginInputFile . # noqa: E501
145- :type: TelegrafPluginInputFileConfig
143+ :param config: The config of this TelegrafPlugin . # noqa: E501
144+ :type: dict(str, object)
146145 """
147- if config is None :
148- raise ValueError ("Invalid value for `config`, must not be `None`" ) # noqa: E501
149146
150147 self ._config = config
151148
@@ -183,7 +180,7 @@ def __repr__(self):
183180
184181 def __eq__ (self , other ):
185182 """Returns true if both objects are equal"""
186- if not isinstance (other , TelegrafPluginInputFile ):
183+ if not isinstance (other , TelegrafPlugin ):
187184 return False
188185
189186 return self .__dict__ == other .__dict__
0 commit comments