petstroepack 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +86 -0
- data/lib/ctd_documentation/api_helper.rb +10 -0
- data/lib/ctd_documentation/client.rb +140 -0
- data/lib/ctd_documentation/configuration.rb +103 -0
- data/lib/ctd_documentation/controllers/activities_controller.rb +69 -0
- data/lib/ctd_documentation/controllers/alerts_controller.rb +170 -0
- data/lib/ctd_documentation/controllers/assets_controller.rb +409 -0
- data/lib/ctd_documentation/controllers/base_controller.rb +65 -0
- data/lib/ctd_documentation/controllers/custom_attributes_categories_controller.rb +50 -0
- data/lib/ctd_documentation/controllers/events_controller.rb +67 -0
- data/lib/ctd_documentation/controllers/groups_controller.rb +28 -0
- data/lib/ctd_documentation/controllers/insights_controller.rb +111 -0
- data/lib/ctd_documentation/controllers/license_controller.rb +73 -0
- data/lib/ctd_documentation/controllers/login_controller.rb +31 -0
- data/lib/ctd_documentation/controllers/queries_controller.rb +128 -0
- data/lib/ctd_documentation/controllers/sensors_controller.rb +26 -0
- data/lib/ctd_documentation/controllers/sites_controller.rb +39 -0
- data/lib/ctd_documentation/controllers/tasks_controller.rb +148 -0
- data/lib/ctd_documentation/controllers/tasks_queries_controller.rb +29 -0
- data/lib/ctd_documentation/controllers/users_controller.rb +28 -0
- data/lib/ctd_documentation/exceptions/api_exception.rb +10 -0
- data/lib/ctd_documentation/exceptions/auth_authenticate401_error_exception.rb +48 -0
- data/lib/ctd_documentation/http/auth/custom_header_auth.rb +25 -0
- data/lib/ctd_documentation/http/http_call_back.rb +10 -0
- data/lib/ctd_documentation/http/http_method_enum.rb +10 -0
- data/lib/ctd_documentation/http/http_request.rb +10 -0
- data/lib/ctd_documentation/http/http_response.rb +10 -0
- data/lib/ctd_documentation/models/actionable.rb +70 -0
- data/lib/ctd_documentation/models/actionable_asset.rb +80 -0
- data/lib/ctd_documentation/models/actionable_cap.rb +80 -0
- data/lib/ctd_documentation/models/actionable_information.rb +80 -0
- data/lib/ctd_documentation/models/actionable_policy.rb +361 -0
- data/lib/ctd_documentation/models/actionable_related_asset.rb +142 -0
- data/lib/ctd_documentation/models/active_history.rb +311 -0
- data/lib/ctd_documentation/models/activities_object.rb +150 -0
- data/lib/ctd_documentation/models/activities_response.rb +100 -0
- data/lib/ctd_documentation/models/activity.rb +150 -0
- data/lib/ctd_documentation/models/add_license_response.rb +79 -0
- data/lib/ctd_documentation/models/alert.rb +455 -0
- data/lib/ctd_documentation/models/alert_severity_enum.rb +23 -0
- data/lib/ctd_documentation/models/asset.rb +527 -0
- data/lib/ctd_documentation/models/assets_with_insights.rb +252 -0
- data/lib/ctd_documentation/models/assets_with_insights_response.rb +90 -0
- data/lib/ctd_documentation/models/authenticate.rb +57 -0
- data/lib/ctd_documentation/models/base_model.rb +58 -0
- data/lib/ctd_documentation/models/base_task.rb +198 -0
- data/lib/ctd_documentation/models/cap.rb +90 -0
- data/lib/ctd_documentation/models/code_sections.rb +70 -0
- data/lib/ctd_documentation/models/content_type_enum.rb +14 -0
- data/lib/ctd_documentation/models/create_a_new_query.rb +57 -0
- data/lib/ctd_documentation/models/create_a_new_query_response.rb +57 -0
- data/lib/ctd_documentation/models/create_group_response.rb +48 -0
- data/lib/ctd_documentation/models/create_user_response.rb +48 -0
- data/lib/ctd_documentation/models/createanewtask.rb +57 -0
- data/lib/ctd_documentation/models/createanewtask_response.rb +57 -0
- data/lib/ctd_documentation/models/ctd_login_exception.rb +81 -0
- data/lib/ctd_documentation/models/ctd_login_response.rb +101 -0
- data/lib/ctd_documentation/models/custom_attribute_category.rb +90 -0
- data/lib/ctd_documentation/models/db_statistics.rb +50 -0
- data/lib/ctd_documentation/models/delete_a_query_response.rb +48 -0
- data/lib/ctd_documentation/models/delete_a_task_response.rb +48 -0
- data/lib/ctd_documentation/models/destination_virtual_zone.rb +60 -0
- data/lib/ctd_documentation/models/detail.rb +60 -0
- data/lib/ctd_documentation/models/discovery_params.rb +82 -0
- data/lib/ctd_documentation/models/entity.rb +70 -0
- data/lib/ctd_documentation/models/event.rb +175 -0
- data/lib/ctd_documentation/models/find_asset_by_id_response.rb +547 -0
- data/lib/ctd_documentation/models/format1_enum.rb +22 -0
- data/lib/ctd_documentation/models/format_enum.rb +20 -0
- data/lib/ctd_documentation/models/get_active_detection_history_response.rb +90 -0
- data/lib/ctd_documentation/models/get_alerts_response.rb +90 -0
- data/lib/ctd_documentation/models/get_all_sites_response.rb +90 -0
- data/lib/ctd_documentation/models/get_assets_response.rb +90 -0
- data/lib/ctd_documentation/models/get_custom_attribute_categories_response.rb +90 -0
- data/lib/ctd_documentation/models/get_events_response.rb +90 -0
- data/lib/ctd_documentation/models/get_license_details_response.rb +81 -0
- data/lib/ctd_documentation/models/get_queries_ids_and_assigned_task_response.rb +70 -0
- data/lib/ctd_documentation/models/get_queries_response.rb +90 -0
- data/lib/ctd_documentation/models/get_tasks_response.rb +90 -0
- data/lib/ctd_documentation/models/get_types_response.rb +57 -0
- data/lib/ctd_documentation/models/group.rb +73 -0
- data/lib/ctd_documentation/models/identifiable.rb +70 -0
- data/lib/ctd_documentation/models/indicator_info.rb +90 -0
- data/lib/ctd_documentation/models/indicators.rb +122 -0
- data/lib/ctd_documentation/models/information.rb +183 -0
- data/lib/ctd_documentation/models/insight_status_enum.rb +20 -0
- data/lib/ctd_documentation/models/insight_status_exact1_enum.rb +21 -0
- data/lib/ctd_documentation/models/insight_status_exact_enum.rb +20 -0
- data/lib/ctd_documentation/models/license_request.rb +48 -0
- data/lib/ctd_documentation/models/network.rb +80 -0
- data/lib/ctd_documentation/models/new_queryobject.rb +199 -0
- data/lib/ctd_documentation/models/new_taskobject.rb +199 -0
- data/lib/ctd_documentation/models/object.rb +70 -0
- data/lib/ctd_documentation/models/paginated_response.rb +71 -0
- data/lib/ctd_documentation/models/policy.rb +331 -0
- data/lib/ctd_documentation/models/queryextraparams.rb +60 -0
- data/lib/ctd_documentation/models/ranger_system_check_response.rb +57 -0
- data/lib/ctd_documentation/models/risk_vector.rb +89 -0
- data/lib/ctd_documentation/models/selection_params.rb +58 -0
- data/lib/ctd_documentation/models/selection_params1.rb +80 -0
- data/lib/ctd_documentation/models/site.rb +256 -0
- data/lib/ctd_documentation/models/site_list_slim_enum.rb +14 -0
- data/lib/ctd_documentation/models/slim_insight.rb +139 -0
- data/lib/ctd_documentation/models/sort1_enum.rb +65 -0
- data/lib/ctd_documentation/models/sort31_enum.rb +59 -0
- data/lib/ctd_documentation/models/sort3_enum.rb +59 -0
- data/lib/ctd_documentation/models/sort41_enum.rb +41 -0
- data/lib/ctd_documentation/models/sort4_enum.rb +41 -0
- data/lib/ctd_documentation/models/sort5_enum.rb +35 -0
- data/lib/ctd_documentation/models/sort6_enum.rb +41 -0
- data/lib/ctd_documentation/models/sort_enum.rb +125 -0
- data/lib/ctd_documentation/models/source_virtual_zone.rb +60 -0
- data/lib/ctd_documentation/models/special_hint_enum.rb +26 -0
- data/lib/ctd_documentation/models/special_hint_exact_enum.rb +26 -0
- data/lib/ctd_documentation/models/status_enum.rb +17 -0
- data/lib/ctd_documentation/models/status_exact_enum.rb +23 -0
- data/lib/ctd_documentation/models/subnet.rb +50 -0
- data/lib/ctd_documentation/models/task.rb +281 -0
- data/lib/ctd_documentation/models/taskextraparams.rb +71 -0
- data/lib/ctd_documentation/models/update_a_single_query_response.rb +57 -0
- data/lib/ctd_documentation/models/update_a_single_task_response.rb +57 -0
- data/lib/ctd_documentation/models/update_license_response.rb +79 -0
- data/lib/ctd_documentation/models/user.rb +88 -0
- data/lib/ctd_documentation/models/virtual_zones.rb +118 -0
- data/lib/ctd_documentation/utilities/date_time_helper.rb +11 -0
- data/lib/ctd_documentation/utilities/file_wrapper.rb +16 -0
- data/lib/ctd_documentation.rb +155 -0
- data/test/controllers/controller_test_base.rb +29 -0
- data/test/controllers/test_activities_controller.rb +64 -0
- data/test/controllers/test_alerts_controller.rb +16 -0
- data/test/controllers/test_assets_controller.rb +79 -0
- data/test/controllers/test_custom_attributes_categories_controller.rb +52 -0
- data/test/controllers/test_events_controller.rb +55 -0
- data/test/controllers/test_login_controller.rb +45 -0
- data/test/controllers/test_queries_controller.rb +292 -0
- data/test/controllers/test_sites_controller.rb +53 -0
- data/test/controllers/test_tasks_controller.rb +250 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +259 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# SelectionParams1 Model.
|
|
8
|
+
class SelectionParams1 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [List of String]
|
|
14
|
+
attr_accessor :excluded
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Object]
|
|
18
|
+
attr_accessor :filters
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass|FalseClass]
|
|
22
|
+
attr_accessor :select_all
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [List of String]
|
|
26
|
+
attr_accessor :selected
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['excluded'] = 'excluded'
|
|
32
|
+
@_hash['filters'] = 'filters'
|
|
33
|
+
@_hash['select_all'] = 'select_all'
|
|
34
|
+
@_hash['selected'] = 'selected'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
%w[
|
|
41
|
+
excluded
|
|
42
|
+
filters
|
|
43
|
+
select_all
|
|
44
|
+
selected
|
|
45
|
+
]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# An array for nullable fields
|
|
49
|
+
def self.nullables
|
|
50
|
+
[]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def initialize(excluded = SKIP,
|
|
54
|
+
filters = SKIP,
|
|
55
|
+
select_all = false,
|
|
56
|
+
selected = SKIP)
|
|
57
|
+
@excluded = excluded unless excluded == SKIP
|
|
58
|
+
@filters = filters unless filters == SKIP
|
|
59
|
+
@select_all = select_all unless select_all == SKIP
|
|
60
|
+
@selected = selected unless selected == SKIP
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Creates an instance of the object from a hash.
|
|
64
|
+
def self.from_hash(hash)
|
|
65
|
+
return nil unless hash
|
|
66
|
+
|
|
67
|
+
# Extract variables from the hash.
|
|
68
|
+
excluded = hash.key?('excluded') ? hash['excluded'] : SKIP
|
|
69
|
+
filters = Object.from_hash(hash['filters']) if hash['filters']
|
|
70
|
+
select_all = hash['select_all'] ||= false
|
|
71
|
+
selected = hash.key?('selected') ? hash['selected'] : SKIP
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
SelectionParams1.new(excluded,
|
|
75
|
+
filters,
|
|
76
|
+
select_all,
|
|
77
|
+
selected)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# Site Model.
|
|
8
|
+
class Site < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :address
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :assets_count
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass|FalseClass]
|
|
22
|
+
attr_accessor :auto_transition_to_operational
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :description
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [Integer]
|
|
30
|
+
attr_accessor :id
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :image_url
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :installed_date
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
attr_accessor :integrity_alerts_severity_number
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :integrity_alerts_severity_name
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [TrueClass|FalseClass]
|
|
50
|
+
attr_accessor :is_connected
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :name
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [Integer]
|
|
58
|
+
attr_accessor :score
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [Integer]
|
|
62
|
+
attr_accessor :security_alerts_severity_number
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [String]
|
|
66
|
+
attr_accessor :security_alerts_severity_name
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [TrueClass|FalseClass]
|
|
70
|
+
attr_accessor :training_mode
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [Integer]
|
|
74
|
+
attr_accessor :unresolved_integrity_alerts_count
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for this method
|
|
77
|
+
# @return [Integer]
|
|
78
|
+
attr_accessor :unresolved_security_alerts_count
|
|
79
|
+
|
|
80
|
+
# TODO: Write general description for this method
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :version
|
|
83
|
+
|
|
84
|
+
# A mapping from model property names to API property names.
|
|
85
|
+
def self.names
|
|
86
|
+
@_hash = {} if @_hash.nil?
|
|
87
|
+
@_hash['address'] = 'address'
|
|
88
|
+
@_hash['assets_count'] = 'assets_count'
|
|
89
|
+
@_hash['auto_transition_to_operational'] =
|
|
90
|
+
'auto_transition_to_operational'
|
|
91
|
+
@_hash['description'] = 'description'
|
|
92
|
+
@_hash['id'] = 'id'
|
|
93
|
+
@_hash['image_url'] = 'image_url'
|
|
94
|
+
@_hash['installed_date'] = 'installed_date'
|
|
95
|
+
@_hash['integrity_alerts_severity_number'] =
|
|
96
|
+
'integrity_alerts_severity_number'
|
|
97
|
+
@_hash['integrity_alerts_severity_name'] =
|
|
98
|
+
'integrity_alerts_severity_name'
|
|
99
|
+
@_hash['is_connected'] = 'is_connected'
|
|
100
|
+
@_hash['name'] = 'name'
|
|
101
|
+
@_hash['score'] = 'score'
|
|
102
|
+
@_hash['security_alerts_severity_number'] =
|
|
103
|
+
'security_alerts_severity_number'
|
|
104
|
+
@_hash['security_alerts_severity_name'] =
|
|
105
|
+
'security_alerts_severity_name'
|
|
106
|
+
@_hash['training_mode'] = 'training_mode'
|
|
107
|
+
@_hash['unresolved_integrity_alerts_count'] =
|
|
108
|
+
'unresolved_integrity_alerts_count'
|
|
109
|
+
@_hash['unresolved_security_alerts_count'] =
|
|
110
|
+
'unresolved_security_alerts_count'
|
|
111
|
+
@_hash['version'] = 'version'
|
|
112
|
+
@_hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# An array for optional fields
|
|
116
|
+
def self.optionals
|
|
117
|
+
%w[
|
|
118
|
+
address
|
|
119
|
+
assets_count
|
|
120
|
+
auto_transition_to_operational
|
|
121
|
+
description
|
|
122
|
+
id
|
|
123
|
+
image_url
|
|
124
|
+
installed_date
|
|
125
|
+
integrity_alerts_severity_number
|
|
126
|
+
integrity_alerts_severity_name
|
|
127
|
+
is_connected
|
|
128
|
+
name
|
|
129
|
+
score
|
|
130
|
+
security_alerts_severity_number
|
|
131
|
+
security_alerts_severity_name
|
|
132
|
+
training_mode
|
|
133
|
+
unresolved_integrity_alerts_count
|
|
134
|
+
unresolved_security_alerts_count
|
|
135
|
+
version
|
|
136
|
+
]
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# An array for nullable fields
|
|
140
|
+
def self.nullables
|
|
141
|
+
[]
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def initialize(address = SKIP,
|
|
145
|
+
assets_count = SKIP,
|
|
146
|
+
auto_transition_to_operational = SKIP,
|
|
147
|
+
description = SKIP,
|
|
148
|
+
id = SKIP,
|
|
149
|
+
image_url = SKIP,
|
|
150
|
+
installed_date = SKIP,
|
|
151
|
+
integrity_alerts_severity_number = SKIP,
|
|
152
|
+
integrity_alerts_severity_name = SKIP,
|
|
153
|
+
is_connected = SKIP,
|
|
154
|
+
name = SKIP,
|
|
155
|
+
score = SKIP,
|
|
156
|
+
security_alerts_severity_number = SKIP,
|
|
157
|
+
security_alerts_severity_name = SKIP,
|
|
158
|
+
training_mode = SKIP,
|
|
159
|
+
unresolved_integrity_alerts_count = SKIP,
|
|
160
|
+
unresolved_security_alerts_count = SKIP,
|
|
161
|
+
version = SKIP)
|
|
162
|
+
@address = address unless address == SKIP
|
|
163
|
+
@assets_count = assets_count unless assets_count == SKIP
|
|
164
|
+
unless auto_transition_to_operational == SKIP
|
|
165
|
+
@auto_transition_to_operational =
|
|
166
|
+
auto_transition_to_operational
|
|
167
|
+
end
|
|
168
|
+
@description = description unless description == SKIP
|
|
169
|
+
@id = id unless id == SKIP
|
|
170
|
+
@image_url = image_url unless image_url == SKIP
|
|
171
|
+
@installed_date = installed_date unless installed_date == SKIP
|
|
172
|
+
unless integrity_alerts_severity_number == SKIP
|
|
173
|
+
@integrity_alerts_severity_number =
|
|
174
|
+
integrity_alerts_severity_number
|
|
175
|
+
end
|
|
176
|
+
unless integrity_alerts_severity_name == SKIP
|
|
177
|
+
@integrity_alerts_severity_name =
|
|
178
|
+
integrity_alerts_severity_name
|
|
179
|
+
end
|
|
180
|
+
@is_connected = is_connected unless is_connected == SKIP
|
|
181
|
+
@name = name unless name == SKIP
|
|
182
|
+
@score = score unless score == SKIP
|
|
183
|
+
unless security_alerts_severity_number == SKIP
|
|
184
|
+
@security_alerts_severity_number =
|
|
185
|
+
security_alerts_severity_number
|
|
186
|
+
end
|
|
187
|
+
unless security_alerts_severity_name == SKIP
|
|
188
|
+
@security_alerts_severity_name =
|
|
189
|
+
security_alerts_severity_name
|
|
190
|
+
end
|
|
191
|
+
@training_mode = training_mode unless training_mode == SKIP
|
|
192
|
+
unless unresolved_integrity_alerts_count == SKIP
|
|
193
|
+
@unresolved_integrity_alerts_count =
|
|
194
|
+
unresolved_integrity_alerts_count
|
|
195
|
+
end
|
|
196
|
+
unless unresolved_security_alerts_count == SKIP
|
|
197
|
+
@unresolved_security_alerts_count =
|
|
198
|
+
unresolved_security_alerts_count
|
|
199
|
+
end
|
|
200
|
+
@version = version unless version == SKIP
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Creates an instance of the object from a hash.
|
|
204
|
+
def self.from_hash(hash)
|
|
205
|
+
return nil unless hash
|
|
206
|
+
|
|
207
|
+
# Extract variables from the hash.
|
|
208
|
+
address = hash.key?('address') ? hash['address'] : SKIP
|
|
209
|
+
assets_count = hash.key?('assets_count') ? hash['assets_count'] : SKIP
|
|
210
|
+
auto_transition_to_operational =
|
|
211
|
+
hash.key?('auto_transition_to_operational') ? hash['auto_transition_to_operational'] : SKIP
|
|
212
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
213
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
214
|
+
image_url = hash.key?('image_url') ? hash['image_url'] : SKIP
|
|
215
|
+
installed_date =
|
|
216
|
+
hash.key?('installed_date') ? hash['installed_date'] : SKIP
|
|
217
|
+
integrity_alerts_severity_number =
|
|
218
|
+
hash.key?('integrity_alerts_severity_number') ? hash['integrity_alerts_severity_number'] : SKIP
|
|
219
|
+
integrity_alerts_severity_name =
|
|
220
|
+
hash.key?('integrity_alerts_severity_name') ? hash['integrity_alerts_severity_name'] : SKIP
|
|
221
|
+
is_connected = hash.key?('is_connected') ? hash['is_connected'] : SKIP
|
|
222
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
223
|
+
score = hash.key?('score') ? hash['score'] : SKIP
|
|
224
|
+
security_alerts_severity_number =
|
|
225
|
+
hash.key?('security_alerts_severity_number') ? hash['security_alerts_severity_number'] : SKIP
|
|
226
|
+
security_alerts_severity_name =
|
|
227
|
+
hash.key?('security_alerts_severity_name') ? hash['security_alerts_severity_name'] : SKIP
|
|
228
|
+
training_mode = hash.key?('training_mode') ? hash['training_mode'] : SKIP
|
|
229
|
+
unresolved_integrity_alerts_count =
|
|
230
|
+
hash.key?('unresolved_integrity_alerts_count') ? hash['unresolved_integrity_alerts_count'] : SKIP
|
|
231
|
+
unresolved_security_alerts_count =
|
|
232
|
+
hash.key?('unresolved_security_alerts_count') ? hash['unresolved_security_alerts_count'] : SKIP
|
|
233
|
+
version = hash.key?('version') ? hash['version'] : SKIP
|
|
234
|
+
|
|
235
|
+
# Create object from extracted values.
|
|
236
|
+
Site.new(address,
|
|
237
|
+
assets_count,
|
|
238
|
+
auto_transition_to_operational,
|
|
239
|
+
description,
|
|
240
|
+
id,
|
|
241
|
+
image_url,
|
|
242
|
+
installed_date,
|
|
243
|
+
integrity_alerts_severity_number,
|
|
244
|
+
integrity_alerts_severity_name,
|
|
245
|
+
is_connected,
|
|
246
|
+
name,
|
|
247
|
+
score,
|
|
248
|
+
security_alerts_severity_number,
|
|
249
|
+
security_alerts_severity_name,
|
|
250
|
+
training_mode,
|
|
251
|
+
unresolved_integrity_alerts_count,
|
|
252
|
+
unresolved_security_alerts_count,
|
|
253
|
+
version)
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# siteListSlimEnum.
|
|
8
|
+
class SiteListSlimEnum
|
|
9
|
+
SITE_LIST_SLIM_ENUM = [
|
|
10
|
+
# TODO: Write general description for SITE_LIST_SLIM
|
|
11
|
+
SITE_LIST_SLIM = 'site_list_slim'.freeze
|
|
12
|
+
].freeze
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# SlimInsight Model.
|
|
8
|
+
class SlimInsight < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Last comment provided by user
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :comment
|
|
15
|
+
|
|
16
|
+
# The CVE's ID
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :cve_id
|
|
19
|
+
|
|
20
|
+
# The CVE's score
|
|
21
|
+
# @return [Object]
|
|
22
|
+
attr_accessor :cvss
|
|
23
|
+
|
|
24
|
+
# The timestamp when the CVE was identified.
|
|
25
|
+
# Format: YYYY-MM-DDTHH:MM:SS (in UTC)
|
|
26
|
+
# @return [String]
|
|
27
|
+
attr_accessor :identified_on
|
|
28
|
+
|
|
29
|
+
# The timestamp when the latest change on the CVE was made in the EMC.
|
|
30
|
+
# Format: YYYY-MM-DDTHH:MM:SS+00:00 (in UTC)
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :last_updated
|
|
33
|
+
|
|
34
|
+
# The full date of the latest modification was made on the CVE by the global
|
|
35
|
+
# provider.
|
|
36
|
+
# Format: YYYY-MM-DD
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :modified
|
|
39
|
+
|
|
40
|
+
# The full date when the CVE's was published at.
|
|
41
|
+
# Format: YYYY-MM-DD
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :published
|
|
44
|
+
|
|
45
|
+
# A number that represents the CVE's status.
|
|
46
|
+
# Options:
|
|
47
|
+
# 0 - Open
|
|
48
|
+
# 1 - Hidden
|
|
49
|
+
# 2 - Completed
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
attr_accessor :status
|
|
52
|
+
|
|
53
|
+
# The CVE's title
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :title
|
|
56
|
+
|
|
57
|
+
# A mapping from model property names to API property names.
|
|
58
|
+
def self.names
|
|
59
|
+
@_hash = {} if @_hash.nil?
|
|
60
|
+
@_hash['comment'] = 'comment'
|
|
61
|
+
@_hash['cve_id'] = 'cve_id'
|
|
62
|
+
@_hash['cvss'] = 'cvss'
|
|
63
|
+
@_hash['identified_on'] = 'identified_on'
|
|
64
|
+
@_hash['last_updated'] = 'last_updated'
|
|
65
|
+
@_hash['modified'] = 'modified'
|
|
66
|
+
@_hash['published'] = 'published'
|
|
67
|
+
@_hash['status'] = 'status'
|
|
68
|
+
@_hash['title'] = 'title'
|
|
69
|
+
@_hash
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# An array for optional fields
|
|
73
|
+
def self.optionals
|
|
74
|
+
%w[
|
|
75
|
+
comment
|
|
76
|
+
cve_id
|
|
77
|
+
cvss
|
|
78
|
+
identified_on
|
|
79
|
+
last_updated
|
|
80
|
+
modified
|
|
81
|
+
published
|
|
82
|
+
status
|
|
83
|
+
title
|
|
84
|
+
]
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# An array for nullable fields
|
|
88
|
+
def self.nullables
|
|
89
|
+
[]
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def initialize(comment = SKIP,
|
|
93
|
+
cve_id = SKIP,
|
|
94
|
+
cvss = SKIP,
|
|
95
|
+
identified_on = SKIP,
|
|
96
|
+
last_updated = SKIP,
|
|
97
|
+
modified = SKIP,
|
|
98
|
+
published = SKIP,
|
|
99
|
+
status = SKIP,
|
|
100
|
+
title = SKIP)
|
|
101
|
+
@comment = comment unless comment == SKIP
|
|
102
|
+
@cve_id = cve_id unless cve_id == SKIP
|
|
103
|
+
@cvss = cvss unless cvss == SKIP
|
|
104
|
+
@identified_on = identified_on unless identified_on == SKIP
|
|
105
|
+
@last_updated = last_updated unless last_updated == SKIP
|
|
106
|
+
@modified = modified unless modified == SKIP
|
|
107
|
+
@published = published unless published == SKIP
|
|
108
|
+
@status = status unless status == SKIP
|
|
109
|
+
@title = title unless title == SKIP
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Creates an instance of the object from a hash.
|
|
113
|
+
def self.from_hash(hash)
|
|
114
|
+
return nil unless hash
|
|
115
|
+
|
|
116
|
+
# Extract variables from the hash.
|
|
117
|
+
comment = hash.key?('comment') ? hash['comment'] : SKIP
|
|
118
|
+
cve_id = hash.key?('cve_id') ? hash['cve_id'] : SKIP
|
|
119
|
+
cvss = Object.from_hash(hash['cvss']) if hash['cvss']
|
|
120
|
+
identified_on = hash.key?('identified_on') ? hash['identified_on'] : SKIP
|
|
121
|
+
last_updated = hash.key?('last_updated') ? hash['last_updated'] : SKIP
|
|
122
|
+
modified = hash.key?('modified') ? hash['modified'] : SKIP
|
|
123
|
+
published = hash.key?('published') ? hash['published'] : SKIP
|
|
124
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
|
125
|
+
title = hash.key?('title') ? hash['title'] : SKIP
|
|
126
|
+
|
|
127
|
+
# Create object from extracted values.
|
|
128
|
+
SlimInsight.new(comment,
|
|
129
|
+
cve_id,
|
|
130
|
+
cvss,
|
|
131
|
+
identified_on,
|
|
132
|
+
last_updated,
|
|
133
|
+
modified,
|
|
134
|
+
published,
|
|
135
|
+
status,
|
|
136
|
+
title)
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort1.
|
|
8
|
+
class Sort1Enum
|
|
9
|
+
SORT1_ENUM = [
|
|
10
|
+
# TODO: Write general description for NAME
|
|
11
|
+
NAME = 'name'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ENUM_NAME
|
|
14
|
+
ENUM_NAME = '-name'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for STATUS
|
|
17
|
+
STATUS = 'status'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENUM_STATUS
|
|
20
|
+
ENUM_STATUS = '-status'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENABLED
|
|
23
|
+
ENABLED = 'enabled'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for ENUM_ENABLED
|
|
26
|
+
ENUM_ENABLED = '-enabled'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for INTERVAL
|
|
29
|
+
INTERVAL = 'interval'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for ENUM_INTERVAL
|
|
32
|
+
ENUM_INTERVAL = '-interval'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for START_TIME
|
|
35
|
+
START_TIME = 'start_time'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for ENUM_START_TIME
|
|
38
|
+
ENUM_START_TIME = '-start_time'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for END_TIME
|
|
41
|
+
END_TIME = 'end_time'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for ENUM_END_TIME
|
|
44
|
+
ENUM_END_TIME = '-end_time'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for ALLOWED_RUN_TIME_START
|
|
47
|
+
ALLOWED_RUN_TIME_START = 'allowed_run_time_start'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for ENUM_ALLOWED_RUN_TIME_START
|
|
50
|
+
ENUM_ALLOWED_RUN_TIME_START = '-allowed_run_time_start'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for ALLOWED_RUN_TIME_END
|
|
53
|
+
ALLOWED_RUN_TIME_END = 'allowed_run_time_end'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for ENUM_ALLOWED_RUN_TIME_END
|
|
56
|
+
ENUM_ALLOWED_RUN_TIME_END = '-allowed_run_time_end'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for LAST_RUN_RESULTS
|
|
59
|
+
LAST_RUN_RESULTS = 'last_run_results'.freeze,
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for ENUM_LAST_RUN_RESULTS
|
|
62
|
+
ENUM_LAST_RUN_RESULTS = '-last_run_results'.freeze
|
|
63
|
+
].freeze
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# Sort order: add '-' for descending order
|
|
8
|
+
class Sort31Enum
|
|
9
|
+
SORT31_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_NAME
|
|
11
|
+
ENUM_NAME = '-name'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for NAME
|
|
14
|
+
NAME = 'name'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_TRAINING_MODE
|
|
17
|
+
ENUM_TRAINING_MODE = '-training_mode'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for TRAINING_MODE
|
|
20
|
+
TRAINING_MODE = 'training_mode'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_VERSION
|
|
23
|
+
ENUM_VERSION = '-version'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for VERSION
|
|
26
|
+
VERSION = 'version'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_ID
|
|
29
|
+
ENUM_ID = '-id'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for ID
|
|
32
|
+
ID = 'id'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_LOCATION_LATITUDE
|
|
35
|
+
ENUM_LOCATION_LATITUDE = '-location_latitude'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for LOCATION_LATITUDE
|
|
38
|
+
LOCATION_LATITUDE = 'location_latitude'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for ENUM_LOCATION_LONGITUDE
|
|
41
|
+
ENUM_LOCATION_LONGITUDE = '-location_longitude'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for LOCATION_LONGITUDE
|
|
44
|
+
LOCATION_LONGITUDE = 'location_longitude'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for ENUM_DESCRIPTION
|
|
47
|
+
ENUM_DESCRIPTION = '-description'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for DESCRIPTION
|
|
50
|
+
DESCRIPTION = 'description'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for ENUM_SCORE
|
|
53
|
+
ENUM_SCORE = '-score'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for SCORE
|
|
56
|
+
SCORE = 'score'.freeze
|
|
57
|
+
].freeze
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort3.
|
|
8
|
+
class Sort3Enum
|
|
9
|
+
SORT3_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_NAME
|
|
11
|
+
ENUM_NAME = '-name'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for NAME
|
|
14
|
+
NAME = 'name'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_TRAINING_MODE
|
|
17
|
+
ENUM_TRAINING_MODE = '-training_mode'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for TRAINING_MODE
|
|
20
|
+
TRAINING_MODE = 'training_mode'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_VERSION
|
|
23
|
+
ENUM_VERSION = '-version'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for VERSION
|
|
26
|
+
VERSION = 'version'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_ID
|
|
29
|
+
ENUM_ID = '-id'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for ID
|
|
32
|
+
ID = 'id'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_LOCATION_LATITUDE
|
|
35
|
+
ENUM_LOCATION_LATITUDE = '-location_latitude'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for LOCATION_LATITUDE
|
|
38
|
+
LOCATION_LATITUDE = 'location_latitude'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for ENUM_LOCATION_LONGITUDE
|
|
41
|
+
ENUM_LOCATION_LONGITUDE = '-location_longitude'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for LOCATION_LONGITUDE
|
|
44
|
+
LOCATION_LONGITUDE = 'location_longitude'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for ENUM_DESCRIPTION
|
|
47
|
+
ENUM_DESCRIPTION = '-description'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for DESCRIPTION
|
|
50
|
+
DESCRIPTION = 'description'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for ENUM_SCORE
|
|
53
|
+
ENUM_SCORE = '-score'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for SCORE
|
|
56
|
+
SCORE = 'score'.freeze
|
|
57
|
+
].freeze
|
|
58
|
+
end
|
|
59
|
+
end
|