16
16
import six
17
17
18
18
19
- class TelegrafPluginInputFile (object ):
19
+ class TelegrafPlugin (object ):
20
20
"""NOTE: This class is auto generated by OpenAPI Generator.
21
21
Ref: https://openapi-generator.tech
22
22
@@ -31,121 +31,118 @@ class TelegrafPluginInputFile(object):
31
31
and the value is json key in definition.
32
32
"""
33
33
openapi_types = {
34
- 'name' : 'str' ,
35
34
'type' : 'str' ,
36
- 'comment' : 'str' ,
37
- 'config' : 'TelegrafPluginInputFileConfig'
35
+ 'name' : 'str' ,
36
+ 'description' : 'str' ,
37
+ 'config' : 'dict(str, object)'
38
38
}
39
39
40
40
attribute_map = {
41
- 'name' : 'name' ,
42
41
'type' : 'type' ,
43
- 'comment' : 'comment' ,
42
+ 'name' : 'name' ,
43
+ 'description' : 'description' ,
44
44
'config' : 'config'
45
45
}
46
46
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
49
49
50
- self ._name = None
51
50
self ._type = None
52
- self ._comment = None
51
+ self ._name = None
52
+ self ._description = None
53
53
self ._config = None
54
54
self .discriminator = None
55
55
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
61
64
62
65
@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
65
68
66
69
67
- :return: The name of this TelegrafPluginInputFile . # noqa: E501
70
+ :return: The type of this TelegrafPlugin . # noqa: E501
68
71
:rtype: str
69
72
"""
70
- return self ._name
73
+ return self ._type
71
74
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 .
75
78
76
79
77
- :param name : The name of this TelegrafPluginInputFile . # noqa: E501
80
+ :param type : The type of this TelegrafPlugin . # noqa: E501
78
81
:type: str
79
82
"""
80
- if name is None :
81
- raise ValueError ("Invalid value for `name`, must not be `None`" ) # noqa: E501
82
83
83
- self ._name = name
84
+ self ._type = type
84
85
85
86
@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
88
89
89
90
90
- :return: The type of this TelegrafPluginInputFile . # noqa: E501
91
+ :return: The name of this TelegrafPlugin . # noqa: E501
91
92
:rtype: str
92
93
"""
93
- return self ._type
94
+ return self ._name
94
95
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 .
98
99
99
100
100
- :param type : The type of this TelegrafPluginInputFile . # noqa: E501
101
+ :param name : The name of this TelegrafPlugin . # noqa: E501
101
102
:type: str
102
103
"""
103
- if type is None :
104
- raise ValueError ("Invalid value for `type`, must not be `None`" ) # noqa: E501
105
104
106
- self ._type = type
105
+ self ._name = name
107
106
108
107
@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
111
110
112
111
113
- :return: The comment of this TelegrafPluginInputFile . # noqa: E501
112
+ :return: The description of this TelegrafPlugin . # noqa: E501
114
113
:rtype: str
115
114
"""
116
- return self ._comment
115
+ return self ._description
117
116
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 .
121
120
122
121
123
- :param comment : The comment of this TelegrafPluginInputFile . # noqa: E501
122
+ :param description : The description of this TelegrafPlugin . # noqa: E501
124
123
:type: str
125
124
"""
126
125
127
- self ._comment = comment
126
+ self ._description = description
128
127
129
128
@property
130
129
def config (self ):
131
- """Gets the config of this TelegrafPluginInputFile . # noqa: E501
130
+ """Gets the config of this TelegrafPlugin . # noqa: E501
132
131
133
132
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)
136
135
"""
137
136
return self ._config
138
137
139
138
@config .setter
140
139
def config (self , config ):
141
- """Sets the config of this TelegrafPluginInputFile .
140
+ """Sets the config of this TelegrafPlugin .
142
141
143
142
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)
146
145
"""
147
- if config is None :
148
- raise ValueError ("Invalid value for `config`, must not be `None`" ) # noqa: E501
149
146
150
147
self ._config = config
151
148
@@ -183,7 +180,7 @@ def __repr__(self):
183
180
184
181
def __eq__ (self , other ):
185
182
"""Returns true if both objects are equal"""
186
- if not isinstance (other , TelegrafPluginInputFile ):
183
+ if not isinstance (other , TelegrafPlugin ):
187
184
return False
188
185
189
186
return self .__dict__ == other .__dict__
0 commit comments