apimatTCTD 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,281 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# Task Model.
|
8
|
+
class Task < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
13
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
14
|
+
# day number to the string
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :allowed_days
|
17
|
+
|
18
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
19
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
20
|
+
# day number to the string
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :allowed_run_time_end
|
23
|
+
|
24
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
25
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
26
|
+
# day number to the string
|
27
|
+
# @return [String]
|
28
|
+
attr_accessor :allowed_run_time_start
|
29
|
+
|
30
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
31
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
32
|
+
# day number to the string
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :type
|
35
|
+
|
36
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
37
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
38
|
+
# day number to the string
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :end_time
|
41
|
+
|
42
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
43
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
44
|
+
# day number to the string
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :interval
|
47
|
+
|
48
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
49
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
50
|
+
# day number to the string
|
51
|
+
# @return [TrueClass|FalseClass]
|
52
|
+
attr_accessor :is_recurring
|
53
|
+
|
54
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
55
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
56
|
+
# day number to the string
|
57
|
+
# @return [String]
|
58
|
+
attr_accessor :name
|
59
|
+
|
60
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
61
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
62
|
+
# day number to the string
|
63
|
+
# @return [String]
|
64
|
+
attr_accessor :resource_id
|
65
|
+
|
66
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
67
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
68
|
+
# day number to the string
|
69
|
+
# @return [Float]
|
70
|
+
attr_accessor :site_id
|
71
|
+
|
72
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
73
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
74
|
+
# day number to the string
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :status
|
77
|
+
|
78
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
79
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
80
|
+
# day number to the string
|
81
|
+
# @return [TrueClass|FalseClass]
|
82
|
+
attr_accessor :valid
|
83
|
+
|
84
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
85
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
86
|
+
# day number to the string
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :start_time
|
89
|
+
|
90
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
91
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
92
|
+
# day number to the string
|
93
|
+
# @return [Integer]
|
94
|
+
attr_accessor :assets_count
|
95
|
+
|
96
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
97
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
98
|
+
# day number to the string
|
99
|
+
# @return [Taskextraparams]
|
100
|
+
attr_accessor :extra_params
|
101
|
+
|
102
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
103
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
104
|
+
# day number to the string
|
105
|
+
# @return [TrueClass|FalseClass]
|
106
|
+
attr_accessor :enabled
|
107
|
+
|
108
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
109
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
110
|
+
# day number to the string
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :id
|
113
|
+
|
114
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
115
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
116
|
+
# day number to the string
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :last_start_run_time
|
119
|
+
|
120
|
+
# A string that represents specific days in a week, Sunday being 0 and
|
121
|
+
# Friday being 6. To select more than a specific day just concatenate the
|
122
|
+
# day number to the string
|
123
|
+
# @return [Integer]
|
124
|
+
attr_accessor :network_id
|
125
|
+
|
126
|
+
# Indicating 1 for query and 2 for task
|
127
|
+
# @return [Integer]
|
128
|
+
attr_accessor :active_type
|
129
|
+
|
130
|
+
# A mapping from model property names to API property names.
|
131
|
+
def self.names
|
132
|
+
@_hash = {} if @_hash.nil?
|
133
|
+
@_hash['allowed_days'] = 'allowed_days'
|
134
|
+
@_hash['allowed_run_time_end'] = 'allowed_run_time_end'
|
135
|
+
@_hash['allowed_run_time_start'] = 'allowed_run_time_start'
|
136
|
+
@_hash['type'] = 'type'
|
137
|
+
@_hash['end_time'] = 'end_time'
|
138
|
+
@_hash['interval'] = 'interval'
|
139
|
+
@_hash['is_recurring'] = 'is_recurring'
|
140
|
+
@_hash['name'] = 'name'
|
141
|
+
@_hash['resource_id'] = 'resource_id'
|
142
|
+
@_hash['site_id'] = 'site_id'
|
143
|
+
@_hash['status'] = 'status'
|
144
|
+
@_hash['valid'] = 'valid'
|
145
|
+
@_hash['start_time'] = 'start_time'
|
146
|
+
@_hash['assets_count'] = 'assets_count'
|
147
|
+
@_hash['extra_params'] = 'extra_params'
|
148
|
+
@_hash['enabled'] = 'enabled'
|
149
|
+
@_hash['id'] = 'id'
|
150
|
+
@_hash['last_start_run_time'] = 'last_start_run_time'
|
151
|
+
@_hash['network_id'] = 'network_id'
|
152
|
+
@_hash['active_type'] = 'active_type'
|
153
|
+
@_hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# An array for optional fields
|
157
|
+
def self.optionals
|
158
|
+
%w[
|
159
|
+
allowed_days
|
160
|
+
allowed_run_time_end
|
161
|
+
allowed_run_time_start
|
162
|
+
type
|
163
|
+
end_time
|
164
|
+
interval
|
165
|
+
is_recurring
|
166
|
+
name
|
167
|
+
resource_id
|
168
|
+
site_id
|
169
|
+
status
|
170
|
+
valid
|
171
|
+
start_time
|
172
|
+
assets_count
|
173
|
+
extra_params
|
174
|
+
enabled
|
175
|
+
id
|
176
|
+
last_start_run_time
|
177
|
+
network_id
|
178
|
+
active_type
|
179
|
+
]
|
180
|
+
end
|
181
|
+
|
182
|
+
# An array for nullable fields
|
183
|
+
def self.nullables
|
184
|
+
[]
|
185
|
+
end
|
186
|
+
|
187
|
+
def initialize(allowed_days = SKIP,
|
188
|
+
allowed_run_time_end = SKIP,
|
189
|
+
allowed_run_time_start = SKIP,
|
190
|
+
type = SKIP,
|
191
|
+
end_time = SKIP,
|
192
|
+
interval = SKIP,
|
193
|
+
is_recurring = SKIP,
|
194
|
+
name = SKIP,
|
195
|
+
resource_id = SKIP,
|
196
|
+
site_id = SKIP,
|
197
|
+
status = SKIP,
|
198
|
+
valid = SKIP,
|
199
|
+
start_time = SKIP,
|
200
|
+
assets_count = SKIP,
|
201
|
+
extra_params = SKIP,
|
202
|
+
enabled = SKIP,
|
203
|
+
id = SKIP,
|
204
|
+
last_start_run_time = SKIP,
|
205
|
+
network_id = SKIP,
|
206
|
+
active_type = SKIP)
|
207
|
+
@allowed_days = allowed_days unless allowed_days == SKIP
|
208
|
+
@allowed_run_time_end = allowed_run_time_end unless allowed_run_time_end == SKIP
|
209
|
+
@allowed_run_time_start = allowed_run_time_start unless allowed_run_time_start == SKIP
|
210
|
+
@type = type unless type == SKIP
|
211
|
+
@end_time = end_time unless end_time == SKIP
|
212
|
+
@interval = interval unless interval == SKIP
|
213
|
+
@is_recurring = is_recurring unless is_recurring == SKIP
|
214
|
+
@name = name unless name == SKIP
|
215
|
+
@resource_id = resource_id unless resource_id == SKIP
|
216
|
+
@site_id = site_id unless site_id == SKIP
|
217
|
+
@status = status unless status == SKIP
|
218
|
+
@valid = valid unless valid == SKIP
|
219
|
+
@start_time = start_time unless start_time == SKIP
|
220
|
+
@assets_count = assets_count unless assets_count == SKIP
|
221
|
+
@extra_params = extra_params unless extra_params == SKIP
|
222
|
+
@enabled = enabled unless enabled == SKIP
|
223
|
+
@id = id unless id == SKIP
|
224
|
+
@last_start_run_time = last_start_run_time unless last_start_run_time == SKIP
|
225
|
+
@network_id = network_id unless network_id == SKIP
|
226
|
+
@active_type = active_type unless active_type == SKIP
|
227
|
+
end
|
228
|
+
|
229
|
+
# Creates an instance of the object from a hash.
|
230
|
+
def self.from_hash(hash)
|
231
|
+
return nil unless hash
|
232
|
+
|
233
|
+
# Extract variables from the hash.
|
234
|
+
allowed_days = hash.key?('allowed_days') ? hash['allowed_days'] : SKIP
|
235
|
+
allowed_run_time_end =
|
236
|
+
hash.key?('allowed_run_time_end') ? hash['allowed_run_time_end'] : SKIP
|
237
|
+
allowed_run_time_start =
|
238
|
+
hash.key?('allowed_run_time_start') ? hash['allowed_run_time_start'] : SKIP
|
239
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
240
|
+
end_time = hash.key?('end_time') ? hash['end_time'] : SKIP
|
241
|
+
interval = hash.key?('interval') ? hash['interval'] : SKIP
|
242
|
+
is_recurring = hash.key?('is_recurring') ? hash['is_recurring'] : SKIP
|
243
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
244
|
+
resource_id = hash.key?('resource_id') ? hash['resource_id'] : SKIP
|
245
|
+
site_id = hash.key?('site_id') ? hash['site_id'] : SKIP
|
246
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
247
|
+
valid = hash.key?('valid') ? hash['valid'] : SKIP
|
248
|
+
start_time = hash.key?('start_time') ? hash['start_time'] : SKIP
|
249
|
+
assets_count = hash.key?('assets_count') ? hash['assets_count'] : SKIP
|
250
|
+
extra_params = Taskextraparams.from_hash(hash['extra_params']) if hash['extra_params']
|
251
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
252
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
253
|
+
last_start_run_time =
|
254
|
+
hash.key?('last_start_run_time') ? hash['last_start_run_time'] : SKIP
|
255
|
+
network_id = hash.key?('network_id') ? hash['network_id'] : SKIP
|
256
|
+
active_type = hash.key?('active_type') ? hash['active_type'] : SKIP
|
257
|
+
|
258
|
+
# Create object from extracted values.
|
259
|
+
Task.new(allowed_days,
|
260
|
+
allowed_run_time_end,
|
261
|
+
allowed_run_time_start,
|
262
|
+
type,
|
263
|
+
end_time,
|
264
|
+
interval,
|
265
|
+
is_recurring,
|
266
|
+
name,
|
267
|
+
resource_id,
|
268
|
+
site_id,
|
269
|
+
status,
|
270
|
+
valid,
|
271
|
+
start_time,
|
272
|
+
assets_count,
|
273
|
+
extra_params,
|
274
|
+
enabled,
|
275
|
+
id,
|
276
|
+
last_start_run_time,
|
277
|
+
network_id,
|
278
|
+
active_type)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# Taskextraparams Model.
|
8
|
+
class Taskextraparams < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [TrueClass|FalseClass]
|
14
|
+
attr_accessor :query_discovered_devices
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [Integer]
|
18
|
+
attr_accessor :port
|
19
|
+
|
20
|
+
# TODO: Write general description for this method
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :sub_query
|
23
|
+
|
24
|
+
# A mapping from model property names to API property names.
|
25
|
+
def self.names
|
26
|
+
@_hash = {} if @_hash.nil?
|
27
|
+
@_hash['query_discovered_devices'] = 'Query_Discovered_Devices'
|
28
|
+
@_hash['port'] = 'port'
|
29
|
+
@_hash['sub_query'] = 'sub_query'
|
30
|
+
@_hash
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for optional fields
|
34
|
+
def self.optionals
|
35
|
+
%w[
|
36
|
+
query_discovered_devices
|
37
|
+
port
|
38
|
+
sub_query
|
39
|
+
]
|
40
|
+
end
|
41
|
+
|
42
|
+
# An array for nullable fields
|
43
|
+
def self.nullables
|
44
|
+
[]
|
45
|
+
end
|
46
|
+
|
47
|
+
def initialize(query_discovered_devices = SKIP,
|
48
|
+
port = SKIP,
|
49
|
+
sub_query = SKIP)
|
50
|
+
@query_discovered_devices = query_discovered_devices unless query_discovered_devices == SKIP
|
51
|
+
@port = port unless port == SKIP
|
52
|
+
@sub_query = sub_query unless sub_query == SKIP
|
53
|
+
end
|
54
|
+
|
55
|
+
# Creates an instance of the object from a hash.
|
56
|
+
def self.from_hash(hash)
|
57
|
+
return nil unless hash
|
58
|
+
|
59
|
+
# Extract variables from the hash.
|
60
|
+
query_discovered_devices =
|
61
|
+
hash.key?('Query_Discovered_Devices') ? hash['Query_Discovered_Devices'] : SKIP
|
62
|
+
port = hash.key?('port') ? hash['port'] : SKIP
|
63
|
+
sub_query = hash.key?('sub_query') ? hash['sub_query'] : SKIP
|
64
|
+
|
65
|
+
# Create object from extracted values.
|
66
|
+
Taskextraparams.new(query_discovered_devices,
|
67
|
+
port,
|
68
|
+
sub_query)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# UpdateASingleQueryResponse Model.
|
8
|
+
class UpdateASingleQueryResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [TrueClass|FalseClass]
|
14
|
+
attr_accessor :success
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :data
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['success'] = 'success'
|
24
|
+
@_hash['data'] = 'data'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for nullable fields
|
34
|
+
def self.nullables
|
35
|
+
[]
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(success = nil,
|
39
|
+
data = nil)
|
40
|
+
@success = success
|
41
|
+
@data = data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Creates an instance of the object from a hash.
|
45
|
+
def self.from_hash(hash)
|
46
|
+
return nil unless hash
|
47
|
+
|
48
|
+
# Extract variables from the hash.
|
49
|
+
success = hash.key?('success') ? hash['success'] : nil
|
50
|
+
data = hash.key?('data') ? hash['data'] : nil
|
51
|
+
|
52
|
+
# Create object from extracted values.
|
53
|
+
UpdateASingleQueryResponse.new(success,
|
54
|
+
data)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# UpdateASingleTaskResponse Model.
|
8
|
+
class UpdateASingleTaskResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [TrueClass|FalseClass]
|
14
|
+
attr_accessor :success
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :data
|
19
|
+
|
20
|
+
# A mapping from model property names to API property names.
|
21
|
+
def self.names
|
22
|
+
@_hash = {} if @_hash.nil?
|
23
|
+
@_hash['success'] = 'success'
|
24
|
+
@_hash['data'] = 'data'
|
25
|
+
@_hash
|
26
|
+
end
|
27
|
+
|
28
|
+
# An array for optional fields
|
29
|
+
def self.optionals
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
# An array for nullable fields
|
34
|
+
def self.nullables
|
35
|
+
[]
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(success = nil,
|
39
|
+
data = nil)
|
40
|
+
@success = success
|
41
|
+
@data = data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Creates an instance of the object from a hash.
|
45
|
+
def self.from_hash(hash)
|
46
|
+
return nil unless hash
|
47
|
+
|
48
|
+
# Extract variables from the hash.
|
49
|
+
success = hash.key?('success') ? hash['success'] : nil
|
50
|
+
data = hash.key?('data') ? hash['data'] : nil
|
51
|
+
|
52
|
+
# Create object from extracted values.
|
53
|
+
UpdateASingleTaskResponse.new(success,
|
54
|
+
data)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# UpdateLicenseResponse Model.
|
8
|
+
class UpdateLicenseResponse < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [TrueClass|FalseClass]
|
14
|
+
attr_accessor :success
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :message
|
19
|
+
|
20
|
+
# TODO: Write general description for this method
|
21
|
+
# @return [StatusEnum]
|
22
|
+
attr_accessor :status
|
23
|
+
|
24
|
+
# TODO: Write general description for this method
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :expiration_date
|
27
|
+
|
28
|
+
# A mapping from model property names to API property names.
|
29
|
+
def self.names
|
30
|
+
@_hash = {} if @_hash.nil?
|
31
|
+
@_hash['success'] = 'success'
|
32
|
+
@_hash['message'] = 'message'
|
33
|
+
@_hash['status'] = 'status'
|
34
|
+
@_hash['expiration_date'] = 'expiration_date'
|
35
|
+
@_hash
|
36
|
+
end
|
37
|
+
|
38
|
+
# An array for optional fields
|
39
|
+
def self.optionals
|
40
|
+
%w[
|
41
|
+
status
|
42
|
+
expiration_date
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
46
|
+
# An array for nullable fields
|
47
|
+
def self.nullables
|
48
|
+
[]
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(success = nil,
|
52
|
+
message = nil,
|
53
|
+
status = SKIP,
|
54
|
+
expiration_date = SKIP)
|
55
|
+
@success = success
|
56
|
+
@message = message
|
57
|
+
@status = status unless status == SKIP
|
58
|
+
@expiration_date = expiration_date unless expiration_date == SKIP
|
59
|
+
end
|
60
|
+
|
61
|
+
# Creates an instance of the object from a hash.
|
62
|
+
def self.from_hash(hash)
|
63
|
+
return nil unless hash
|
64
|
+
|
65
|
+
# Extract variables from the hash.
|
66
|
+
success = hash.key?('success') ? hash['success'] : nil
|
67
|
+
message = hash.key?('message') ? hash['message'] : nil
|
68
|
+
status = hash.key?('status') ? hash['status'] : SKIP
|
69
|
+
expiration_date =
|
70
|
+
hash.key?('expiration_date') ? hash['expiration_date'] : SKIP
|
71
|
+
|
72
|
+
# Create object from extracted values.
|
73
|
+
UpdateLicenseResponse.new(success,
|
74
|
+
message,
|
75
|
+
status,
|
76
|
+
expiration_date)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# ctd_documentation
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module CtdDocumentation
|
7
|
+
# User Model.
|
8
|
+
class User < BaseModel
|
9
|
+
SKIP = Object.new
|
10
|
+
private_constant :SKIP
|
11
|
+
|
12
|
+
# TODO: Write general description for this method
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :username
|
15
|
+
|
16
|
+
# TODO: Write general description for this method
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :password
|
19
|
+
|
20
|
+
# TODO: Write general description for this method
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :first_name
|
23
|
+
|
24
|
+
# TODO: Write general description for this method
|
25
|
+
# @return [String]
|
26
|
+
attr_accessor :last_name
|
27
|
+
|
28
|
+
# TODO: Write general description for this method
|
29
|
+
# @return [String]
|
30
|
+
attr_accessor :mail
|
31
|
+
|
32
|
+
# A mapping from model property names to API property names.
|
33
|
+
def self.names
|
34
|
+
@_hash = {} if @_hash.nil?
|
35
|
+
@_hash['username'] = 'username'
|
36
|
+
@_hash['password'] = 'password'
|
37
|
+
@_hash['first_name'] = 'first_name'
|
38
|
+
@_hash['last_name'] = 'last_name'
|
39
|
+
@_hash['mail'] = 'mail'
|
40
|
+
@_hash
|
41
|
+
end
|
42
|
+
|
43
|
+
# An array for optional fields
|
44
|
+
def self.optionals
|
45
|
+
%w[
|
46
|
+
first_name
|
47
|
+
last_name
|
48
|
+
mail
|
49
|
+
]
|
50
|
+
end
|
51
|
+
|
52
|
+
# An array for nullable fields
|
53
|
+
def self.nullables
|
54
|
+
[]
|
55
|
+
end
|
56
|
+
|
57
|
+
def initialize(username = nil,
|
58
|
+
password = nil,
|
59
|
+
first_name = SKIP,
|
60
|
+
last_name = SKIP,
|
61
|
+
mail = SKIP)
|
62
|
+
@username = username
|
63
|
+
@password = password
|
64
|
+
@first_name = first_name unless first_name == SKIP
|
65
|
+
@last_name = last_name unless last_name == SKIP
|
66
|
+
@mail = mail unless mail == SKIP
|
67
|
+
end
|
68
|
+
|
69
|
+
# Creates an instance of the object from a hash.
|
70
|
+
def self.from_hash(hash)
|
71
|
+
return nil unless hash
|
72
|
+
|
73
|
+
# Extract variables from the hash.
|
74
|
+
username = hash.key?('username') ? hash['username'] : nil
|
75
|
+
password = hash.key?('password') ? hash['password'] : nil
|
76
|
+
first_name = hash.key?('first_name') ? hash['first_name'] : SKIP
|
77
|
+
last_name = hash.key?('last_name') ? hash['last_name'] : SKIP
|
78
|
+
mail = hash.key?('mail') ? hash['mail'] : SKIP
|
79
|
+
|
80
|
+
# Create object from extracted values.
|
81
|
+
User.new(username,
|
82
|
+
password,
|
83
|
+
first_name,
|
84
|
+
last_name,
|
85
|
+
mail)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|