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,21 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# The status of the Insight associated with this Asset – this is a dropdown
|
|
8
|
+
# for choosing the integer type: 0 = Open 1 = Hidden 2 = Completed
|
|
9
|
+
class InsightStatusExact1Enum
|
|
10
|
+
INSIGHT_STATUS_EXACT1_ENUM = [
|
|
11
|
+
# TODO: Write general description for ENUM_0
|
|
12
|
+
ENUM_0 = 0,
|
|
13
|
+
|
|
14
|
+
# TODO: Write general description for ENUM_1
|
|
15
|
+
ENUM_1 = 1,
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for ENUM_2
|
|
18
|
+
ENUM_2 = 2
|
|
19
|
+
].freeze
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# insight_status__exact.
|
|
8
|
+
class InsightStatusExactEnum
|
|
9
|
+
INSIGHT_STATUS_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
|
+
].freeze
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# LicenseRequest Model.
|
|
8
|
+
class LicenseRequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :key
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['key'] = 'key'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
[]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for nullable fields
|
|
29
|
+
def self.nullables
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def initialize(key = nil)
|
|
34
|
+
@key = key
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Creates an instance of the object from a hash.
|
|
38
|
+
def self.from_hash(hash)
|
|
39
|
+
return nil unless hash
|
|
40
|
+
|
|
41
|
+
# Extract variables from the hash.
|
|
42
|
+
key = hash.key?('key') ? hash['key'] : nil
|
|
43
|
+
|
|
44
|
+
# Create object from extracted values.
|
|
45
|
+
LicenseRequest.new(key)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -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
|
+
# Network Model.
|
|
8
|
+
class Network < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :resource_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [Integer]
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
attr_accessor :site_id
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['resource_id'] = 'resource_id'
|
|
32
|
+
@_hash['id'] = 'id'
|
|
33
|
+
@_hash['site_id'] = 'site_id'
|
|
34
|
+
@_hash['name'] = 'name'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
%w[
|
|
41
|
+
resource_id
|
|
42
|
+
id
|
|
43
|
+
site_id
|
|
44
|
+
name
|
|
45
|
+
]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# An array for nullable fields
|
|
49
|
+
def self.nullables
|
|
50
|
+
[]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def initialize(resource_id = SKIP,
|
|
54
|
+
id = SKIP,
|
|
55
|
+
site_id = SKIP,
|
|
56
|
+
name = SKIP)
|
|
57
|
+
@resource_id = resource_id unless resource_id == SKIP
|
|
58
|
+
@id = id unless id == SKIP
|
|
59
|
+
@site_id = site_id unless site_id == SKIP
|
|
60
|
+
@name = name unless name == 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
|
+
resource_id = hash.key?('resource_id') ? hash['resource_id'] : SKIP
|
|
69
|
+
id = hash.key?('id') ? hash['id'] : SKIP
|
|
70
|
+
site_id = hash.key?('site_id') ? hash['site_id'] : SKIP
|
|
71
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
72
|
+
|
|
73
|
+
# Create object from extracted values.
|
|
74
|
+
Network.new(resource_id,
|
|
75
|
+
id,
|
|
76
|
+
site_id,
|
|
77
|
+
name)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# NewQueryobject Model.
|
|
8
|
+
class NewQueryobject < 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 [String]
|
|
34
|
+
attr_accessor :end_time
|
|
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 :start_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 [List of Integer]
|
|
46
|
+
attr_accessor :attached_queries
|
|
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 :enabled
|
|
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 :interval
|
|
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 [TrueClass|FalseClass]
|
|
64
|
+
attr_accessor :is_recurring
|
|
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 [String]
|
|
70
|
+
attr_accessor :name
|
|
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 [Integer]
|
|
76
|
+
attr_accessor :network_id
|
|
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 [Integer]
|
|
82
|
+
attr_accessor :type
|
|
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 [Queryextraparams]
|
|
88
|
+
attr_accessor :extra_params
|
|
89
|
+
|
|
90
|
+
# A mapping from model property names to API property names.
|
|
91
|
+
def self.names
|
|
92
|
+
@_hash = {} if @_hash.nil?
|
|
93
|
+
@_hash['allowed_days'] = 'allowed_days'
|
|
94
|
+
@_hash['allowed_run_time_end'] = 'allowed_run_time_end'
|
|
95
|
+
@_hash['allowed_run_time_start'] = 'allowed_run_time_start'
|
|
96
|
+
@_hash['end_time'] = 'end_time'
|
|
97
|
+
@_hash['start_time'] = 'start_time'
|
|
98
|
+
@_hash['attached_queries'] = 'attached_queries'
|
|
99
|
+
@_hash['enabled'] = 'enabled'
|
|
100
|
+
@_hash['interval'] = 'interval'
|
|
101
|
+
@_hash['is_recurring'] = 'is_recurring'
|
|
102
|
+
@_hash['name'] = 'name'
|
|
103
|
+
@_hash['network_id'] = 'network_id'
|
|
104
|
+
@_hash['type'] = 'type'
|
|
105
|
+
@_hash['extra_params'] = 'extra_params'
|
|
106
|
+
@_hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# An array for optional fields
|
|
110
|
+
def self.optionals
|
|
111
|
+
%w[
|
|
112
|
+
allowed_days
|
|
113
|
+
allowed_run_time_end
|
|
114
|
+
allowed_run_time_start
|
|
115
|
+
end_time
|
|
116
|
+
start_time
|
|
117
|
+
attached_queries
|
|
118
|
+
enabled
|
|
119
|
+
interval
|
|
120
|
+
is_recurring
|
|
121
|
+
name
|
|
122
|
+
network_id
|
|
123
|
+
type
|
|
124
|
+
extra_params
|
|
125
|
+
]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# An array for nullable fields
|
|
129
|
+
def self.nullables
|
|
130
|
+
[]
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
def initialize(allowed_days = SKIP,
|
|
134
|
+
allowed_run_time_end = SKIP,
|
|
135
|
+
allowed_run_time_start = SKIP,
|
|
136
|
+
end_time = SKIP,
|
|
137
|
+
start_time = SKIP,
|
|
138
|
+
attached_queries = SKIP,
|
|
139
|
+
enabled = SKIP,
|
|
140
|
+
interval = SKIP,
|
|
141
|
+
is_recurring = SKIP,
|
|
142
|
+
name = SKIP,
|
|
143
|
+
network_id = SKIP,
|
|
144
|
+
type = SKIP,
|
|
145
|
+
extra_params = SKIP)
|
|
146
|
+
@allowed_days = allowed_days unless allowed_days == SKIP
|
|
147
|
+
@allowed_run_time_end = allowed_run_time_end unless allowed_run_time_end == SKIP
|
|
148
|
+
@allowed_run_time_start = allowed_run_time_start unless allowed_run_time_start == SKIP
|
|
149
|
+
@end_time = end_time unless end_time == SKIP
|
|
150
|
+
@start_time = start_time unless start_time == SKIP
|
|
151
|
+
@attached_queries = attached_queries unless attached_queries == SKIP
|
|
152
|
+
@enabled = enabled unless enabled == SKIP
|
|
153
|
+
@interval = interval unless interval == SKIP
|
|
154
|
+
@is_recurring = is_recurring unless is_recurring == SKIP
|
|
155
|
+
@name = name unless name == SKIP
|
|
156
|
+
@network_id = network_id unless network_id == SKIP
|
|
157
|
+
@type = type unless type == SKIP
|
|
158
|
+
@extra_params = extra_params unless extra_params == SKIP
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Creates an instance of the object from a hash.
|
|
162
|
+
def self.from_hash(hash)
|
|
163
|
+
return nil unless hash
|
|
164
|
+
|
|
165
|
+
# Extract variables from the hash.
|
|
166
|
+
allowed_days = hash.key?('allowed_days') ? hash['allowed_days'] : SKIP
|
|
167
|
+
allowed_run_time_end =
|
|
168
|
+
hash.key?('allowed_run_time_end') ? hash['allowed_run_time_end'] : SKIP
|
|
169
|
+
allowed_run_time_start =
|
|
170
|
+
hash.key?('allowed_run_time_start') ? hash['allowed_run_time_start'] : SKIP
|
|
171
|
+
end_time = hash.key?('end_time') ? hash['end_time'] : SKIP
|
|
172
|
+
start_time = hash.key?('start_time') ? hash['start_time'] : SKIP
|
|
173
|
+
attached_queries =
|
|
174
|
+
hash.key?('attached_queries') ? hash['attached_queries'] : SKIP
|
|
175
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
176
|
+
interval = hash.key?('interval') ? hash['interval'] : SKIP
|
|
177
|
+
is_recurring = hash.key?('is_recurring') ? hash['is_recurring'] : SKIP
|
|
178
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
179
|
+
network_id = hash.key?('network_id') ? hash['network_id'] : SKIP
|
|
180
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
181
|
+
extra_params = Queryextraparams.from_hash(hash['extra_params']) if hash['extra_params']
|
|
182
|
+
|
|
183
|
+
# Create object from extracted values.
|
|
184
|
+
NewQueryobject.new(allowed_days,
|
|
185
|
+
allowed_run_time_end,
|
|
186
|
+
allowed_run_time_start,
|
|
187
|
+
end_time,
|
|
188
|
+
start_time,
|
|
189
|
+
attached_queries,
|
|
190
|
+
enabled,
|
|
191
|
+
interval,
|
|
192
|
+
is_recurring,
|
|
193
|
+
name,
|
|
194
|
+
network_id,
|
|
195
|
+
type,
|
|
196
|
+
extra_params)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# NewTaskobject Model.
|
|
8
|
+
class NewTaskobject < 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 [List of Integer]
|
|
34
|
+
attr_accessor :attached_queries
|
|
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 [TrueClass|FalseClass]
|
|
40
|
+
attr_accessor :enabled
|
|
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 [Integer]
|
|
64
|
+
attr_accessor :network_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 [Integer]
|
|
70
|
+
attr_accessor :type
|
|
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 :end_time
|
|
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 [String]
|
|
82
|
+
attr_accessor :start_time
|
|
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 [Taskextraparams]
|
|
88
|
+
attr_accessor :extra_params
|
|
89
|
+
|
|
90
|
+
# A mapping from model property names to API property names.
|
|
91
|
+
def self.names
|
|
92
|
+
@_hash = {} if @_hash.nil?
|
|
93
|
+
@_hash['allowed_days'] = 'allowed_days'
|
|
94
|
+
@_hash['allowed_run_time_end'] = 'allowed_run_time_end'
|
|
95
|
+
@_hash['allowed_run_time_start'] = 'allowed_run_time_start'
|
|
96
|
+
@_hash['attached_queries'] = 'attached_queries'
|
|
97
|
+
@_hash['enabled'] = 'enabled'
|
|
98
|
+
@_hash['interval'] = 'interval'
|
|
99
|
+
@_hash['is_recurring'] = 'is_recurring'
|
|
100
|
+
@_hash['name'] = 'name'
|
|
101
|
+
@_hash['network_id'] = 'network_id'
|
|
102
|
+
@_hash['type'] = 'type'
|
|
103
|
+
@_hash['end_time'] = 'end_time'
|
|
104
|
+
@_hash['start_time'] = 'start_time'
|
|
105
|
+
@_hash['extra_params'] = 'extra_params'
|
|
106
|
+
@_hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# An array for optional fields
|
|
110
|
+
def self.optionals
|
|
111
|
+
%w[
|
|
112
|
+
allowed_days
|
|
113
|
+
allowed_run_time_end
|
|
114
|
+
allowed_run_time_start
|
|
115
|
+
attached_queries
|
|
116
|
+
enabled
|
|
117
|
+
interval
|
|
118
|
+
is_recurring
|
|
119
|
+
name
|
|
120
|
+
network_id
|
|
121
|
+
type
|
|
122
|
+
end_time
|
|
123
|
+
start_time
|
|
124
|
+
extra_params
|
|
125
|
+
]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# An array for nullable fields
|
|
129
|
+
def self.nullables
|
|
130
|
+
[]
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
def initialize(allowed_days = SKIP,
|
|
134
|
+
allowed_run_time_end = SKIP,
|
|
135
|
+
allowed_run_time_start = SKIP,
|
|
136
|
+
attached_queries = SKIP,
|
|
137
|
+
enabled = SKIP,
|
|
138
|
+
interval = SKIP,
|
|
139
|
+
is_recurring = SKIP,
|
|
140
|
+
name = SKIP,
|
|
141
|
+
network_id = SKIP,
|
|
142
|
+
type = SKIP,
|
|
143
|
+
end_time = SKIP,
|
|
144
|
+
start_time = SKIP,
|
|
145
|
+
extra_params = SKIP)
|
|
146
|
+
@allowed_days = allowed_days unless allowed_days == SKIP
|
|
147
|
+
@allowed_run_time_end = allowed_run_time_end unless allowed_run_time_end == SKIP
|
|
148
|
+
@allowed_run_time_start = allowed_run_time_start unless allowed_run_time_start == SKIP
|
|
149
|
+
@attached_queries = attached_queries unless attached_queries == SKIP
|
|
150
|
+
@enabled = enabled unless enabled == SKIP
|
|
151
|
+
@interval = interval unless interval == SKIP
|
|
152
|
+
@is_recurring = is_recurring unless is_recurring == SKIP
|
|
153
|
+
@name = name unless name == SKIP
|
|
154
|
+
@network_id = network_id unless network_id == SKIP
|
|
155
|
+
@type = type unless type == SKIP
|
|
156
|
+
@end_time = end_time unless end_time == SKIP
|
|
157
|
+
@start_time = start_time unless start_time == SKIP
|
|
158
|
+
@extra_params = extra_params unless extra_params == SKIP
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Creates an instance of the object from a hash.
|
|
162
|
+
def self.from_hash(hash)
|
|
163
|
+
return nil unless hash
|
|
164
|
+
|
|
165
|
+
# Extract variables from the hash.
|
|
166
|
+
allowed_days = hash.key?('allowed_days') ? hash['allowed_days'] : SKIP
|
|
167
|
+
allowed_run_time_end =
|
|
168
|
+
hash.key?('allowed_run_time_end') ? hash['allowed_run_time_end'] : SKIP
|
|
169
|
+
allowed_run_time_start =
|
|
170
|
+
hash.key?('allowed_run_time_start') ? hash['allowed_run_time_start'] : SKIP
|
|
171
|
+
attached_queries =
|
|
172
|
+
hash.key?('attached_queries') ? hash['attached_queries'] : SKIP
|
|
173
|
+
enabled = hash.key?('enabled') ? hash['enabled'] : SKIP
|
|
174
|
+
interval = hash.key?('interval') ? hash['interval'] : SKIP
|
|
175
|
+
is_recurring = hash.key?('is_recurring') ? hash['is_recurring'] : SKIP
|
|
176
|
+
name = hash.key?('name') ? hash['name'] : SKIP
|
|
177
|
+
network_id = hash.key?('network_id') ? hash['network_id'] : SKIP
|
|
178
|
+
type = hash.key?('type') ? hash['type'] : SKIP
|
|
179
|
+
end_time = hash.key?('end_time') ? hash['end_time'] : SKIP
|
|
180
|
+
start_time = hash.key?('start_time') ? hash['start_time'] : SKIP
|
|
181
|
+
extra_params = Taskextraparams.from_hash(hash['extra_params']) if hash['extra_params']
|
|
182
|
+
|
|
183
|
+
# Create object from extracted values.
|
|
184
|
+
NewTaskobject.new(allowed_days,
|
|
185
|
+
allowed_run_time_end,
|
|
186
|
+
allowed_run_time_start,
|
|
187
|
+
attached_queries,
|
|
188
|
+
enabled,
|
|
189
|
+
interval,
|
|
190
|
+
is_recurring,
|
|
191
|
+
name,
|
|
192
|
+
network_id,
|
|
193
|
+
type,
|
|
194
|
+
end_time,
|
|
195
|
+
start_time,
|
|
196
|
+
extra_params)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# ctd_documentation
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
+
# ( https://apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module CtdDocumentation
|
|
7
|
+
# Object Model.
|
|
8
|
+
class Object < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :description
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :user_id
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [TrueClass|FalseClass]
|
|
22
|
+
attr_accessor :resolved
|
|
23
|
+
|
|
24
|
+
# A mapping from model property names to API property names.
|
|
25
|
+
def self.names
|
|
26
|
+
@_hash = {} if @_hash.nil?
|
|
27
|
+
@_hash['description'] = 'description'
|
|
28
|
+
@_hash['user_id'] = 'user_id'
|
|
29
|
+
@_hash['resolved'] = 'resolved'
|
|
30
|
+
@_hash
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# An array for optional fields
|
|
34
|
+
def self.optionals
|
|
35
|
+
%w[
|
|
36
|
+
description
|
|
37
|
+
user_id
|
|
38
|
+
resolved
|
|
39
|
+
]
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# An array for nullable fields
|
|
43
|
+
def self.nullables
|
|
44
|
+
[]
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def initialize(description = SKIP,
|
|
48
|
+
user_id = SKIP,
|
|
49
|
+
resolved = SKIP)
|
|
50
|
+
@description = description unless description == SKIP
|
|
51
|
+
@user_id = user_id unless user_id == SKIP
|
|
52
|
+
@resolved = resolved unless resolved == 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
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
61
|
+
user_id = hash.key?('user_id') ? hash['user_id'] : SKIP
|
|
62
|
+
resolved = hash.key?('resolved') ? hash['resolved'] : SKIP
|
|
63
|
+
|
|
64
|
+
# Create object from extracted values.
|
|
65
|
+
Object.new(description,
|
|
66
|
+
user_id,
|
|
67
|
+
resolved)
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|