-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig_source.py
750 lines (564 loc) · 23.3 KB
/
config_source.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
# coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account programmatically. <br> <br> Note: <ul> <li> For Python SDKs, the REQUEST parameters can contain camelCase or an underscore. </li> <li> Both underscore and camelCase are supported if parameters are encapsulated within the body. </li> <li> Only camelCase is supported if parameters are encapsulated within the body and also if the user is passing raw JSON as REQUEST parameter. However, the RESPONSE parameters always contain an underscore. For example, you can use testLocation or test_location in the REQUEST parameter. But the RESPONSE parameter will always be test_location. </li> <li> The fields parameter only supports camelCase. </li> </ul> # noqa: E501
OpenAPI spec version: 3.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ConfigSource(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'collector_attribute': 'CollectorAttribute',
'auto_discovery_config': 'AutoDiscoveryConfiguration',
'access_groups': 'list[AccessGroup]',
'display_name': 'str',
'config_checks': 'list[ConfigCheck]',
'description': 'str',
'applies_to': 'str',
'enable_auto_discovery': 'bool',
'technology': 'str',
'version': 'int',
'lineage_id': 'str',
'tags': 'str',
'audit_version': 'int',
'collect_method': 'str',
'has_multi_instances': 'bool',
'installation_metadata': 'IntegrationMetadata',
'collect_interval': 'int',
'checksum': 'str',
'name': 'str',
'timestamp_format': 'str',
'id': 'int',
'access_group_ids': 'list[int]',
'file_format': 'str',
'group': 'str'
}
attribute_map = {
'collector_attribute': 'collectorAttribute',
'auto_discovery_config': 'autoDiscoveryConfig',
'access_groups': 'accessGroups',
'display_name': 'displayName',
'config_checks': 'configChecks',
'description': 'description',
'applies_to': 'appliesTo',
'enable_auto_discovery': 'enableAutoDiscovery',
'technology': 'technology',
'version': 'version',
'lineage_id': 'lineageId',
'tags': 'tags',
'audit_version': 'auditVersion',
'collect_method': 'collectMethod',
'has_multi_instances': 'hasMultiInstances',
'installation_metadata': 'installationMetadata',
'collect_interval': 'collectInterval',
'checksum': 'checksum',
'name': 'name',
'timestamp_format': 'timestampFormat',
'id': 'id',
'access_group_ids': 'accessGroupIds',
'file_format': 'fileFormat',
'group': 'group'
}
def __init__(self, collector_attribute=None, auto_discovery_config=None, access_groups=None, display_name=None, config_checks=None, description=None, applies_to=None, enable_auto_discovery=None, technology=None, version=None, lineage_id=None, tags=None, audit_version=None, collect_method=None, has_multi_instances=None, installation_metadata=None, collect_interval=None, checksum=None, name=None, timestamp_format=None, id=None, access_group_ids=None, file_format=None, group=None): # noqa: E501
"""ConfigSource - a model defined in Swagger""" # noqa: E501
self._collector_attribute = None
self._auto_discovery_config = None
self._access_groups = None
self._display_name = None
self._config_checks = None
self._description = None
self._applies_to = None
self._enable_auto_discovery = None
self._technology = None
self._version = None
self._lineage_id = None
self._tags = None
self._audit_version = None
self._collect_method = None
self._has_multi_instances = None
self._installation_metadata = None
self._collect_interval = None
self._checksum = None
self._name = None
self._timestamp_format = None
self._id = None
self._access_group_ids = None
self._file_format = None
self._group = None
self.discriminator = None
if collector_attribute is not None:
self.collector_attribute = collector_attribute
if auto_discovery_config is not None:
self.auto_discovery_config = auto_discovery_config
if access_groups is not None:
self.access_groups = access_groups
if display_name is not None:
self.display_name = display_name
if config_checks is not None:
self.config_checks = config_checks
if description is not None:
self.description = description
if applies_to is not None:
self.applies_to = applies_to
if enable_auto_discovery is not None:
self.enable_auto_discovery = enable_auto_discovery
if technology is not None:
self.technology = technology
if version is not None:
self.version = version
if lineage_id is not None:
self.lineage_id = lineage_id
if tags is not None:
self.tags = tags
if audit_version is not None:
self.audit_version = audit_version
if collect_method is not None:
self.collect_method = collect_method
if has_multi_instances is not None:
self.has_multi_instances = has_multi_instances
if installation_metadata is not None:
self.installation_metadata = installation_metadata
if collect_interval is not None:
self.collect_interval = collect_interval
if checksum is not None:
self.checksum = checksum
if name is not None:
self.name = name
if timestamp_format is not None:
self.timestamp_format = timestamp_format
if id is not None:
self.id = id
if access_group_ids is not None:
self.access_group_ids = access_group_ids
if file_format is not None:
self.file_format = file_format
if group is not None:
self.group = group
@property
def collector_attribute(self):
"""Gets the collector_attribute of this ConfigSource. # noqa: E501
:return: The collector_attribute of this ConfigSource. # noqa: E501
:rtype: CollectorAttribute
"""
return self._collector_attribute
@collector_attribute.setter
def collector_attribute(self, collector_attribute):
"""Sets the collector_attribute of this ConfigSource.
:param collector_attribute: The collector_attribute of this ConfigSource. # noqa: E501
:type: CollectorAttribute
"""
self._collector_attribute = collector_attribute
@property
def auto_discovery_config(self):
"""Gets the auto_discovery_config of this ConfigSource. # noqa: E501
:return: The auto_discovery_config of this ConfigSource. # noqa: E501
:rtype: AutoDiscoveryConfiguration
"""
return self._auto_discovery_config
@auto_discovery_config.setter
def auto_discovery_config(self, auto_discovery_config):
"""Sets the auto_discovery_config of this ConfigSource.
:param auto_discovery_config: The auto_discovery_config of this ConfigSource. # noqa: E501
:type: AutoDiscoveryConfiguration
"""
self._auto_discovery_config = auto_discovery_config
@property
def access_groups(self):
"""Gets the access_groups of this ConfigSource. # noqa: E501
Module's access groups # noqa: E501
:return: The access_groups of this ConfigSource. # noqa: E501
:rtype: list[AccessGroup]
"""
return self._access_groups
@access_groups.setter
def access_groups(self, access_groups):
"""Sets the access_groups of this ConfigSource.
Module's access groups # noqa: E501
:param access_groups: The access_groups of this ConfigSource. # noqa: E501
:type: list[AccessGroup]
"""
self._access_groups = access_groups
@property
def display_name(self):
"""Gets the display_name of this ConfigSource. # noqa: E501
The ConfigSource display name # noqa: E501
:return: The display_name of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._display_name
@display_name.setter
def display_name(self, display_name):
"""Sets the display_name of this ConfigSource.
The ConfigSource display name # noqa: E501
:param display_name: The display_name of this ConfigSource. # noqa: E501
:type: str
"""
self._display_name = display_name
@property
def config_checks(self):
"""Gets the config_checks of this ConfigSource. # noqa: E501
The List of ConfigChecks # noqa: E501
:return: The config_checks of this ConfigSource. # noqa: E501
:rtype: list[ConfigCheck]
"""
return self._config_checks
@config_checks.setter
def config_checks(self, config_checks):
"""Sets the config_checks of this ConfigSource.
The List of ConfigChecks # noqa: E501
:param config_checks: The config_checks of this ConfigSource. # noqa: E501
:type: list[ConfigCheck]
"""
self._config_checks = config_checks
@property
def description(self):
"""Gets the description of this ConfigSource. # noqa: E501
The description for the LMModule # noqa: E501
:return: The description of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this ConfigSource.
The description for the LMModule # noqa: E501
:param description: The description of this ConfigSource. # noqa: E501
:type: str
"""
self._description = description
@property
def applies_to(self):
"""Gets the applies_to of this ConfigSource. # noqa: E501
The Applies To for the LMModule # noqa: E501
:return: The applies_to of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._applies_to
@applies_to.setter
def applies_to(self, applies_to):
"""Sets the applies_to of this ConfigSource.
The Applies To for the LMModule # noqa: E501
:param applies_to: The applies_to of this ConfigSource. # noqa: E501
:type: str
"""
self._applies_to = applies_to
@property
def enable_auto_discovery(self):
"""Gets the enable_auto_discovery of this ConfigSource. # noqa: E501
Enable active discovery if ConfigSource has multiple instances. true|false # noqa: E501
:return: The enable_auto_discovery of this ConfigSource. # noqa: E501
:rtype: bool
"""
return self._enable_auto_discovery
@enable_auto_discovery.setter
def enable_auto_discovery(self, enable_auto_discovery):
"""Sets the enable_auto_discovery of this ConfigSource.
Enable active discovery if ConfigSource has multiple instances. true|false # noqa: E501
:param enable_auto_discovery: The enable_auto_discovery of this ConfigSource. # noqa: E501
:type: bool
"""
self._enable_auto_discovery = enable_auto_discovery
@property
def technology(self):
"""Gets the technology of this ConfigSource. # noqa: E501
The Technical Notes for the LMModule # noqa: E501
:return: The technology of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._technology
@technology.setter
def technology(self, technology):
"""Sets the technology of this ConfigSource.
The Technical Notes for the LMModule # noqa: E501
:param technology: The technology of this ConfigSource. # noqa: E501
:type: str
"""
self._technology = technology
@property
def version(self):
"""Gets the version of this ConfigSource. # noqa: E501
The ConfigSource version # noqa: E501
:return: The version of this ConfigSource. # noqa: E501
:rtype: int
"""
return self._version
@version.setter
def version(self, version):
"""Sets the version of this ConfigSource.
The ConfigSource version # noqa: E501
:param version: The version of this ConfigSource. # noqa: E501
:type: int
"""
self._version = version
@property
def lineage_id(self):
"""Gets the lineage_id of this ConfigSource. # noqa: E501
The lineageId the LMModule belongs to # noqa: E501
:return: The lineage_id of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._lineage_id
@lineage_id.setter
def lineage_id(self, lineage_id):
"""Sets the lineage_id of this ConfigSource.
The lineageId the LMModule belongs to # noqa: E501
:param lineage_id: The lineage_id of this ConfigSource. # noqa: E501
:type: str
"""
self._lineage_id = lineage_id
@property
def tags(self):
"""Gets the tags of this ConfigSource. # noqa: E501
The Tags for the LMModule # noqa: E501
:return: The tags of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._tags
@tags.setter
def tags(self, tags):
"""Sets the tags of this ConfigSource.
The Tags for the LMModule # noqa: E501
:param tags: The tags of this ConfigSource. # noqa: E501
:type: str
"""
self._tags = tags
@property
def audit_version(self):
"""Gets the audit_version of this ConfigSource. # noqa: E501
The ConfigSource audit version # noqa: E501
:return: The audit_version of this ConfigSource. # noqa: E501
:rtype: int
"""
return self._audit_version
@audit_version.setter
def audit_version(self, audit_version):
"""Sets the audit_version of this ConfigSource.
The ConfigSource audit version # noqa: E501
:param audit_version: The audit_version of this ConfigSource. # noqa: E501
:type: int
"""
self._audit_version = audit_version
@property
def collect_method(self):
"""Gets the collect_method of this ConfigSource. # noqa: E501
The method to collect data # noqa: E501
:return: The collect_method of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._collect_method
@collect_method.setter
def collect_method(self, collect_method):
"""Sets the collect_method of this ConfigSource.
The method to collect data # noqa: E501
:param collect_method: The collect_method of this ConfigSource. # noqa: E501
:type: str
"""
self._collect_method = collect_method
@property
def has_multi_instances(self):
"""Gets the has_multi_instances of this ConfigSource. # noqa: E501
Whether the ConfigSource has multiple instances. true|false # noqa: E501
:return: The has_multi_instances of this ConfigSource. # noqa: E501
:rtype: bool
"""
return self._has_multi_instances
@has_multi_instances.setter
def has_multi_instances(self, has_multi_instances):
"""Sets the has_multi_instances of this ConfigSource.
Whether the ConfigSource has multiple instances. true|false # noqa: E501
:param has_multi_instances: The has_multi_instances of this ConfigSource. # noqa: E501
:type: bool
"""
self._has_multi_instances = has_multi_instances
@property
def installation_metadata(self):
"""Gets the installation_metadata of this ConfigSource. # noqa: E501
:return: The installation_metadata of this ConfigSource. # noqa: E501
:rtype: IntegrationMetadata
"""
return self._installation_metadata
@installation_metadata.setter
def installation_metadata(self, installation_metadata):
"""Sets the installation_metadata of this ConfigSource.
:param installation_metadata: The installation_metadata of this ConfigSource. # noqa: E501
:type: IntegrationMetadata
"""
self._installation_metadata = installation_metadata
@property
def collect_interval(self):
"""Gets the collect_interval of this ConfigSource. # noqa: E501
The ConfigSource data collect interval # noqa: E501
:return: The collect_interval of this ConfigSource. # noqa: E501
:rtype: int
"""
return self._collect_interval
@collect_interval.setter
def collect_interval(self, collect_interval):
"""Sets the collect_interval of this ConfigSource.
The ConfigSource data collect interval # noqa: E501
:param collect_interval: The collect_interval of this ConfigSource. # noqa: E501
:type: int
"""
self._collect_interval = collect_interval
@property
def checksum(self):
"""Gets the checksum of this ConfigSource. # noqa: E501
The metadata checksum for the LMModule content # noqa: E501
:return: The checksum of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._checksum
@checksum.setter
def checksum(self, checksum):
"""Sets the checksum of this ConfigSource.
The metadata checksum for the LMModule content # noqa: E501
:param checksum: The checksum of this ConfigSource. # noqa: E501
:type: str
"""
self._checksum = checksum
@property
def name(self):
"""Gets the name of this ConfigSource. # noqa: E501
The config source name # noqa: E501
:return: The name of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this ConfigSource.
The config source name # noqa: E501
:param name: The name of this ConfigSource. # noqa: E501
:type: str
"""
self._name = name
@property
def timestamp_format(self):
"""Gets the timestamp_format of this ConfigSource. # noqa: E501
Timestamp format. ex. yyyy-MM-dd hh:mm:ss # noqa: E501
:return: The timestamp_format of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._timestamp_format
@timestamp_format.setter
def timestamp_format(self, timestamp_format):
"""Sets the timestamp_format of this ConfigSource.
Timestamp format. ex. yyyy-MM-dd hh:mm:ss # noqa: E501
:param timestamp_format: The timestamp_format of this ConfigSource. # noqa: E501
:type: str
"""
self._timestamp_format = timestamp_format
@property
def id(self):
"""Gets the id of this ConfigSource. # noqa: E501
The ID of the LMModule # noqa: E501
:return: The id of this ConfigSource. # noqa: E501
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this ConfigSource.
The ID of the LMModule # noqa: E501
:param id: The id of this ConfigSource. # noqa: E501
:type: int
"""
self._id = id
@property
def access_group_ids(self):
"""Gets the access_group_ids of this ConfigSource. # noqa: E501
The Access Groups Id's # noqa: E501
:return: The access_group_ids of this ConfigSource. # noqa: E501
:rtype: list[int]
"""
return self._access_group_ids
@access_group_ids.setter
def access_group_ids(self, access_group_ids):
"""Sets the access_group_ids of this ConfigSource.
The Access Groups Id's # noqa: E501
:param access_group_ids: The access_group_ids of this ConfigSource. # noqa: E501
:type: list[int]
"""
self._access_group_ids = access_group_ids
@property
def file_format(self):
"""Gets the file_format of this ConfigSource. # noqa: E501
Configuration file format. The values can be arbitrary|unix|java-properties|JSON|XML # noqa: E501
:return: The file_format of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._file_format
@file_format.setter
def file_format(self, file_format):
"""Sets the file_format of this ConfigSource.
Configuration file format. The values can be arbitrary|unix|java-properties|JSON|XML # noqa: E501
:param file_format: The file_format of this ConfigSource. # noqa: E501
:type: str
"""
self._file_format = file_format
@property
def group(self):
"""Gets the group of this ConfigSource. # noqa: E501
The group the LMModule is in # noqa: E501
:return: The group of this ConfigSource. # noqa: E501
:rtype: str
"""
return self._group
@group.setter
def group(self, group):
"""Sets the group of this ConfigSource.
The group the LMModule is in # noqa: E501
:param group: The group of this ConfigSource. # noqa: E501
:type: str
"""
self._group = group
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(ConfigSource, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ConfigSource):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other