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,41 @@
|
|
|
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 Sort41Enum
|
|
9
|
+
SORT41_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_ID
|
|
11
|
+
ENUM_ID = '-id'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ID
|
|
14
|
+
ID = 'id'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_SITE_ID
|
|
17
|
+
ENUM_SITE_ID = '-site_id'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for SITE_ID
|
|
20
|
+
SITE_ID = 'site_id'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_TYPE
|
|
23
|
+
ENUM_TYPE = '-type'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for TYPE
|
|
26
|
+
TYPE = 'type'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_TIMESTAMP
|
|
29
|
+
ENUM_TIMESTAMP = '-timestamp'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for TIMESTAMP
|
|
32
|
+
TIMESTAMP = 'timestamp'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_USER_ID
|
|
35
|
+
ENUM_USER_ID = '-user_id'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for USER_ID
|
|
38
|
+
USER_ID = 'user_id'.freeze
|
|
39
|
+
].freeze
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort4.
|
|
8
|
+
class Sort4Enum
|
|
9
|
+
SORT4_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_ID
|
|
11
|
+
ENUM_ID = '-id'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ID
|
|
14
|
+
ID = 'id'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_SITE_ID
|
|
17
|
+
ENUM_SITE_ID = '-site_id'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for SITE_ID
|
|
20
|
+
SITE_ID = 'site_id'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_TYPE
|
|
23
|
+
ENUM_TYPE = '-type'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for TYPE
|
|
26
|
+
TYPE = 'type'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_TIMESTAMP
|
|
29
|
+
ENUM_TIMESTAMP = '-timestamp'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for TIMESTAMP
|
|
32
|
+
TIMESTAMP = 'timestamp'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_USER_ID
|
|
35
|
+
ENUM_USER_ID = '-user_id'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for USER_ID
|
|
38
|
+
USER_ID = 'user_id'.freeze
|
|
39
|
+
].freeze
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort5.
|
|
8
|
+
class Sort5Enum
|
|
9
|
+
SORT5_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_DESCRIPTION
|
|
11
|
+
ENUM_DESCRIPTION = '-description'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for DESCRIPTION
|
|
14
|
+
DESCRIPTION = 'description'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_NAME
|
|
17
|
+
ENUM_NAME = '-name'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for NAME
|
|
20
|
+
NAME = 'name'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_SITE_ID
|
|
23
|
+
ENUM_SITE_ID = '-site_id'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for SITE_ID
|
|
26
|
+
SITE_ID = 'site_id'.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
|
+
].freeze
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort6.
|
|
8
|
+
class Sort6Enum
|
|
9
|
+
SORT6_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_SITE
|
|
11
|
+
ENUM_SITE = '-site'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for SITE
|
|
14
|
+
SITE = 'site'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_ID
|
|
17
|
+
ENUM_ID = '-id'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ID
|
|
20
|
+
ID = 'id'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_SITE_ID
|
|
23
|
+
ENUM_SITE_ID = '-site_id'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for SITE_ID
|
|
26
|
+
SITE_ID = 'site_id'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for TYPE
|
|
29
|
+
TYPE = 'type'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for ENUM_TYPE
|
|
32
|
+
ENUM_TYPE = '-type'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_TIMESTAMP
|
|
35
|
+
ENUM_TIMESTAMP = '-timestamp'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for TIMESTAMP
|
|
38
|
+
TIMESTAMP = 'timestamp'.freeze
|
|
39
|
+
].freeze
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# sort.
|
|
8
|
+
class SortEnum
|
|
9
|
+
SORT_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_SITE
|
|
11
|
+
ENUM_SITE = '-site'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for SITE
|
|
14
|
+
SITE = 'site'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_ID
|
|
17
|
+
ENUM_ID = '-id'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ID
|
|
20
|
+
ID = 'id'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_SITE_ID
|
|
23
|
+
ENUM_SITE_ID = '-site_id'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for SITE_ID
|
|
26
|
+
SITE_ID = 'site_id'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for ENUM_DATA
|
|
29
|
+
ENUM_DATA = '-data'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for DATA
|
|
32
|
+
DATA = 'data'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for ENUM_DESCRIPTION
|
|
35
|
+
ENUM_DESCRIPTION = '-description'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for DESCRIPTION
|
|
38
|
+
DESCRIPTION = 'description'.freeze,
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for ENUM_TYPE
|
|
41
|
+
ENUM_TYPE = '-type'.freeze,
|
|
42
|
+
|
|
43
|
+
# TODO: Write general description for TYPE
|
|
44
|
+
TYPE = 'type'.freeze,
|
|
45
|
+
|
|
46
|
+
# TODO: Write general description for ENUM_CATEGORY
|
|
47
|
+
ENUM_CATEGORY = '-category'.freeze,
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for CATEGORY
|
|
50
|
+
CATEGORY = 'category'.freeze,
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for ENUM_SEVERITY
|
|
53
|
+
ENUM_SEVERITY = '-severity'.freeze,
|
|
54
|
+
|
|
55
|
+
# TODO: Write general description for SEVERITY
|
|
56
|
+
SEVERITY = 'severity'.freeze,
|
|
57
|
+
|
|
58
|
+
# TODO: Write general description for ENUM_TIMESTAMP
|
|
59
|
+
ENUM_TIMESTAMP = '-timestamp'.freeze,
|
|
60
|
+
|
|
61
|
+
# TODO: Write general description for TIMESTAMP
|
|
62
|
+
TIMESTAMP = 'timestamp'.freeze,
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for ENUM_RELEVANT
|
|
65
|
+
ENUM_RELEVANT = '-relevant'.freeze,
|
|
66
|
+
|
|
67
|
+
# TODO: Write general description for RELEVANT
|
|
68
|
+
RELEVANT = 'relevant'.freeze,
|
|
69
|
+
|
|
70
|
+
# TODO: Write general description for ENUM_RESOLVED
|
|
71
|
+
ENUM_RESOLVED = '-resolved'.freeze,
|
|
72
|
+
|
|
73
|
+
# TODO: Write general description for RESOLVED
|
|
74
|
+
RESOLVED = 'resolved'.freeze,
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for ENUM_RESOLUTION
|
|
77
|
+
ENUM_RESOLUTION = '-resolution'.freeze,
|
|
78
|
+
|
|
79
|
+
# TODO: Write general description for RESOLUTION
|
|
80
|
+
RESOLUTION = 'resolution'.freeze,
|
|
81
|
+
|
|
82
|
+
# TODO: Write general description for ENUM_PROTOCOL
|
|
83
|
+
ENUM_PROTOCOL = '-protocol'.freeze,
|
|
84
|
+
|
|
85
|
+
# TODO: Write general description for PROTOCOL
|
|
86
|
+
PROTOCOL = 'protocol'.freeze,
|
|
87
|
+
|
|
88
|
+
# TODO: Write general description for ENUM_SCORE
|
|
89
|
+
ENUM_SCORE = '-score'.freeze,
|
|
90
|
+
|
|
91
|
+
# TODO: Write general description for SCORE
|
|
92
|
+
SCORE = 'score'.freeze,
|
|
93
|
+
|
|
94
|
+
# TODO: Write general description for ENUM_IS_QUALIFIED
|
|
95
|
+
ENUM_IS_QUALIFIED = '-is_qualified'.freeze,
|
|
96
|
+
|
|
97
|
+
# TODO: Write general description for IS_QUALIFIED
|
|
98
|
+
IS_QUALIFIED = 'is_qualified'.freeze,
|
|
99
|
+
|
|
100
|
+
# TODO: Write general description for ENUM_NETWORK_ID
|
|
101
|
+
ENUM_NETWORK_ID = '-network_id'.freeze,
|
|
102
|
+
|
|
103
|
+
# TODO: Write general description for NETWORK_ID
|
|
104
|
+
NETWORK_ID = 'network_id'.freeze,
|
|
105
|
+
|
|
106
|
+
# TODO: Write general description for ENUM_RESOLVED_ID
|
|
107
|
+
ENUM_RESOLVED_ID = '-resolved_id'.freeze,
|
|
108
|
+
|
|
109
|
+
# TODO: Write general description for RESOLVED_ID
|
|
110
|
+
RESOLVED_ID = 'resolved_id'.freeze,
|
|
111
|
+
|
|
112
|
+
# TODO: Write general description for ENUM_ASSIGNED_ID
|
|
113
|
+
ENUM_ASSIGNED_ID = '-assigned_id'.freeze,
|
|
114
|
+
|
|
115
|
+
# TODO: Write general description for ASSIGNED_ID
|
|
116
|
+
ASSIGNED_ID = 'assigned_id'.freeze,
|
|
117
|
+
|
|
118
|
+
# TODO: Write general description for ENUM_STORY_ID
|
|
119
|
+
ENUM_STORY_ID = '-story_id'.freeze,
|
|
120
|
+
|
|
121
|
+
# TODO: Write general description for STORY_ID
|
|
122
|
+
STORY_ID = 'story_id'.freeze
|
|
123
|
+
].freeze
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# SourceVirtualZone Model.
|
|
8
|
+
class SourceVirtualZone < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :name
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :num_assets
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['name'] = 'name'
|
|
24
|
+
@_hash['num_assets'] = 'num_assets'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
name
|
|
32
|
+
num_assets
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(name = SKIP,
|
|
42
|
+
num_assets = SKIP)
|
|
43
|
+
@name = name unless name == SKIP
|
|
44
|
+
@num_assets = num_assets unless num_assets == SKIP
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Creates an instance of the object from a hash.
|
|
48
|
+
def self.from_hash(hash)
|
|
49
|
+
return nil unless hash
|
|
50
|
+
|
|
51
|
+
# Extract variables from the hash.
|
|
52
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
53
|
+
num_assets = hash.key?('num_assets') ? hash['num_assets'] : SKIP
|
|
54
|
+
|
|
55
|
+
# Create object from extracted values.
|
|
56
|
+
SourceVirtualZone.new(name,
|
|
57
|
+
num_assets)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# SpecialHint.
|
|
8
|
+
class SpecialHintEnum
|
|
9
|
+
SPECIAL_HINT_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_NAMEUNICASTVALUE0
|
|
11
|
+
ENUM_NAMEUNICASTVALUE0 = '{"name":"Unicast","value":0}'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ENUM_NAMEBROADCASTVALUE1
|
|
14
|
+
ENUM_NAMEBROADCASTVALUE1 = '{"name":"Broadcast","value":1}'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_NAMEMULTICASTVALUE2
|
|
17
|
+
ENUM_NAMEMULTICASTVALUE2 = '{"name":"Multicast","value":2}'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENUM_NAMEMITM_VIRTUALVALUE3
|
|
20
|
+
ENUM_NAMEMITM_VIRTUALVALUE3 = '{"name":"Mitm Virtual","value":3}'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_NAMEEXTERNALVALUE4
|
|
23
|
+
ENUM_NAMEEXTERNALVALUE4 = '{"name":"External","value":4}'.freeze
|
|
24
|
+
].freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# special_hint__exact.
|
|
8
|
+
class SpecialHintExactEnum
|
|
9
|
+
SPECIAL_HINT_EXACT_ENUM = [
|
|
10
|
+
# TODO: Write general description for ENUM_0
|
|
11
|
+
ENUM_0 = 0,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for ENUM_1
|
|
14
|
+
ENUM_1 = 1,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for ENUM_2
|
|
17
|
+
ENUM_2 = 2,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENUM_3
|
|
20
|
+
ENUM_3 = 3,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for ENUM_4
|
|
23
|
+
ENUM_4 = 4
|
|
24
|
+
].freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# Status.
|
|
8
|
+
class StatusEnum
|
|
9
|
+
STATUS_ENUM = [
|
|
10
|
+
# TODO: Write general description for GREEN
|
|
11
|
+
GREEN = 'green'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for RED
|
|
14
|
+
RED = 'red'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# status__exact.
|
|
8
|
+
class StatusExactEnum
|
|
9
|
+
STATUS_EXACT_ENUM = [
|
|
10
|
+
# TODO: Write general description for EOTALERT
|
|
11
|
+
EOTALERT = 'eOtAlert'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for EOTOPERATION
|
|
14
|
+
EOTOPERATION = 'eOtOperation'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for EALERT
|
|
17
|
+
EALERT = 'eAlert'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for ENOTRISKY
|
|
20
|
+
ENOTRISKY = 'eNotRisky'.freeze
|
|
21
|
+
].freeze
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# Subnet Model.
|
|
8
|
+
class Subnet < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :name
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['name'] = 'name'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
name
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(name = SKIP)
|
|
36
|
+
@name = name unless name == SKIP
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Creates an instance of the object from a hash.
|
|
40
|
+
def self.from_hash(hash)
|
|
41
|
+
return nil unless hash
|
|
42
|
+
|
|
43
|
+
# Extract variables from the hash.
|
|
44
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
45
|
+
|
|
46
|
+
# Create object from extracted values.
|
|
47
|
+
Subnet.new(name)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|