dependency-tracker-client 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.
Files changed (227) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +276 -0
  5. data/Rakefile +10 -0
  6. data/dependency-tracker-client.gemspec +39 -0
  7. data/docs/About.md +25 -0
  8. data/docs/Analysis.md +21 -0
  9. data/docs/AnalysisApi.md +177 -0
  10. data/docs/AnalysisComment.md +21 -0
  11. data/docs/AnalysisRequest.md +27 -0
  12. data/docs/ApiKey.md +17 -0
  13. data/docs/BadgeApi.md +102 -0
  14. data/docs/BodyPart.md +31 -0
  15. data/docs/BomApi.md +335 -0
  16. data/docs/BomSubmitRequest.md +25 -0
  17. data/docs/CalculatorApi.md +61 -0
  18. data/docs/CloneProjectRequest.md +19 -0
  19. data/docs/Component.md +69 -0
  20. data/docs/ComponentApi.md +373 -0
  21. data/docs/ComponentMetrics.md +43 -0
  22. data/docs/ConfigProperty.md +25 -0
  23. data/docs/ConfigPropertyApi.md +167 -0
  24. data/docs/ContentDisposition.md +29 -0
  25. data/docs/Cwe.md +19 -0
  26. data/docs/CweApi.md +110 -0
  27. data/docs/DefaultApi.md +434 -0
  28. data/docs/Dependency.md +27 -0
  29. data/docs/DependencyApi.md +222 -0
  30. data/docs/DependencyMetrics.md +45 -0
  31. data/docs/DependencyRequest.md +21 -0
  32. data/docs/Finding.md +23 -0
  33. data/docs/FindingApi.md +113 -0
  34. data/docs/FormDataBodyPart.md +39 -0
  35. data/docs/FormDataContentDisposition.md +31 -0
  36. data/docs/FormDataMultiPart.md +35 -0
  37. data/docs/Framework.md +23 -0
  38. data/docs/IdentifiableObject.md +17 -0
  39. data/docs/LdapApi.md +220 -0
  40. data/docs/LdapUser.md +25 -0
  41. data/docs/License.md +37 -0
  42. data/docs/LicenseApi.md +159 -0
  43. data/docs/ManagedUser.md +37 -0
  44. data/docs/MappedLdapGroup.md +19 -0
  45. data/docs/MappedLdapGroupRequest.md +19 -0
  46. data/docs/MediaType.md +25 -0
  47. data/docs/MetricsApi.md +922 -0
  48. data/docs/MultiPart.md +33 -0
  49. data/docs/NotificationPublisher.md +29 -0
  50. data/docs/NotificationRule.md +35 -0
  51. data/docs/PackageURL.md +29 -0
  52. data/docs/ParameterizedHeader.md +19 -0
  53. data/docs/Permission.md +19 -0
  54. data/docs/PermissionApi.md +279 -0
  55. data/docs/PortfolioMetrics.md +53 -0
  56. data/docs/Project.md +43 -0
  57. data/docs/ProjectApi.md +445 -0
  58. data/docs/ProjectMetrics.md +47 -0
  59. data/docs/ProjectProperty.md +27 -0
  60. data/docs/ProjectPropertyApi.md +232 -0
  61. data/docs/Repository.md +29 -0
  62. data/docs/RepositoryApi.md +325 -0
  63. data/docs/RepositoryMetaComponent.md +27 -0
  64. data/docs/Score.md +23 -0
  65. data/docs/SearchApi.md +120 -0
  66. data/docs/SearchResult.md +17 -0
  67. data/docs/Tag.md +19 -0
  68. data/docs/Team.md +29 -0
  69. data/docs/TeamApi.md +432 -0
  70. data/docs/UserApi.md +715 -0
  71. data/docs/UserPrincipal.md +27 -0
  72. data/docs/VersionApi.md +52 -0
  73. data/docs/Vulnerability.md +69 -0
  74. data/docs/VulnerabilityApi.md +666 -0
  75. data/docs/VulnerabilityMetrics.md +23 -0
  76. data/docs/VulnerableSoftware.md +69 -0
  77. data/lib/dependency-tracker-client/api/analysis_api.rb +209 -0
  78. data/lib/dependency-tracker-client/api/badge_api.rb +148 -0
  79. data/lib/dependency-tracker-client/api/bom_api.rb +382 -0
  80. data/lib/dependency-tracker-client/api/calculator_api.rb +83 -0
  81. data/lib/dependency-tracker-client/api/component_api.rb +422 -0
  82. data/lib/dependency-tracker-client/api/config_property_api.rb +192 -0
  83. data/lib/dependency-tracker-client/api/cwe_api.rb +136 -0
  84. data/lib/dependency-tracker-client/api/default_api.rb +491 -0
  85. data/lib/dependency-tracker-client/api/dependency_api.rb +254 -0
  86. data/lib/dependency-tracker-client/api/finding_api.rb +140 -0
  87. data/lib/dependency-tracker-client/api/ldap_api.rb +254 -0
  88. data/lib/dependency-tracker-client/api/license_api.rb +190 -0
  89. data/lib/dependency-tracker-client/api/metrics_api.rb +1086 -0
  90. data/lib/dependency-tracker-client/api/permission_api.rb +342 -0
  91. data/lib/dependency-tracker-client/api/project_api.rb +504 -0
  92. data/lib/dependency-tracker-client/api/project_property_api.rb +274 -0
  93. data/lib/dependency-tracker-client/api/repository_api.rb +376 -0
  94. data/lib/dependency-tracker-client/api/search_api.rb +143 -0
  95. data/lib/dependency-tracker-client/api/team_api.rb +486 -0
  96. data/lib/dependency-tracker-client/api/user_api.rb +796 -0
  97. data/lib/dependency-tracker-client/api/version_api.rb +78 -0
  98. data/lib/dependency-tracker-client/api/vulnerability_api.rb +780 -0
  99. data/lib/dependency-tracker-client/api_client.rb +388 -0
  100. data/lib/dependency-tracker-client/api_error.rb +57 -0
  101. data/lib/dependency-tracker-client/configuration.rb +261 -0
  102. data/lib/dependency-tracker-client/models/about.rb +242 -0
  103. data/lib/dependency-tracker-client/models/analysis.rb +265 -0
  104. data/lib/dependency-tracker-client/models/analysis_comment.rb +234 -0
  105. data/lib/dependency-tracker-client/models/analysis_request.rb +371 -0
  106. data/lib/dependency-tracker-client/models/api_key.rb +250 -0
  107. data/lib/dependency-tracker-client/models/body_part.rb +273 -0
  108. data/lib/dependency-tracker-client/models/bom_submit_request.rb +328 -0
  109. data/lib/dependency-tracker-client/models/clone_project_request.rb +267 -0
  110. data/lib/dependency-tracker-client/models/component.rb +900 -0
  111. data/lib/dependency-tracker-client/models/component_metrics.rb +338 -0
  112. data/lib/dependency-tracker-client/models/config_property.rb +421 -0
  113. data/lib/dependency-tracker-client/models/content_disposition.rb +262 -0
  114. data/lib/dependency-tracker-client/models/cwe.rb +259 -0
  115. data/lib/dependency-tracker-client/models/dependency.rb +266 -0
  116. data/lib/dependency-tracker-client/models/dependency_metrics.rb +352 -0
  117. data/lib/dependency-tracker-client/models/dependency_request.rb +257 -0
  118. data/lib/dependency-tracker-client/models/finding.rb +239 -0
  119. data/lib/dependency-tracker-client/models/form_data_body_part.rb +309 -0
  120. data/lib/dependency-tracker-client/models/form_data_content_disposition.rb +271 -0
  121. data/lib/dependency-tracker-client/models/form_data_multi_part.rb +295 -0
  122. data/lib/dependency-tracker-client/models/framework.rb +233 -0
  123. data/lib/dependency-tracker-client/models/identifiable_object.rb +206 -0
  124. data/lib/dependency-tracker-client/models/ldap_user.rb +351 -0
  125. data/lib/dependency-tracker-client/models/license.rb +373 -0
  126. data/lib/dependency-tracker-client/models/managed_user.rb +480 -0
  127. data/lib/dependency-tracker-client/models/mapped_ldap_group.rb +255 -0
  128. data/lib/dependency-tracker-client/models/mapped_ldap_group_request.rb +267 -0
  129. data/lib/dependency-tracker-client/models/media_type.rb +244 -0
  130. data/lib/dependency-tracker-client/models/multi_part.rb +284 -0
  131. data/lib/dependency-tracker-client/models/notification_publisher.rb +388 -0
  132. data/lib/dependency-tracker-client/models/notification_rule.rb +426 -0
  133. data/lib/dependency-tracker-client/models/package_url.rb +262 -0
  134. data/lib/dependency-tracker-client/models/parameterized_header.rb +217 -0
  135. data/lib/dependency-tracker-client/models/permission.rb +250 -0
  136. data/lib/dependency-tracker-client/models/portfolio_metrics.rb +378 -0
  137. data/lib/dependency-tracker-client/models/project.rb +420 -0
  138. data/lib/dependency-tracker-client/models/project_metrics.rb +356 -0
  139. data/lib/dependency-tracker-client/models/project_property.rb +430 -0
  140. data/lib/dependency-tracker-client/models/repository.rb +319 -0
  141. data/lib/dependency-tracker-client/models/repository_meta_component.rb +305 -0
  142. data/lib/dependency-tracker-client/models/score.rb +233 -0
  143. data/lib/dependency-tracker-client/models/search_result.rb +208 -0
  144. data/lib/dependency-tracker-client/models/tag.rb +252 -0
  145. data/lib/dependency-tracker-client/models/team.rb +310 -0
  146. data/lib/dependency-tracker-client/models/user_principal.rb +255 -0
  147. data/lib/dependency-tracker-client/models/vulnerability.rb +729 -0
  148. data/lib/dependency-tracker-client/models/vulnerability_metrics.rb +238 -0
  149. data/lib/dependency-tracker-client/models/vulnerable_software.rb +442 -0
  150. data/lib/dependency-tracker-client/version.rb +15 -0
  151. data/lib/dependency-tracker-client.rb +109 -0
  152. data/pkg/dependency-tracker-client-1.0.0.gem +0 -0
  153. data/spec/api/analysis_api_spec.rb +70 -0
  154. data/spec/api/badge_api_spec.rb +58 -0
  155. data/spec/api/bom_api_spec.rb +106 -0
  156. data/spec/api/calculator_api_spec.rb +46 -0
  157. data/spec/api/component_api_spec.rb +110 -0
  158. data/spec/api/config_property_api_spec.rb +67 -0
  159. data/spec/api/cwe_api_spec.rb +56 -0
  160. data/spec/api/default_api_spec.rb +123 -0
  161. data/spec/api/dependency_api_spec.rb +79 -0
  162. data/spec/api/finding_api_spec.rb +57 -0
  163. data/spec/api/ldap_api_spec.rb +79 -0
  164. data/spec/api/license_api_spec.rb +66 -0
  165. data/spec/api/metrics_api_spec.rb +233 -0
  166. data/spec/api/permission_api_spec.rb +94 -0
  167. data/spec/api/project_api_spec.rb +126 -0
  168. data/spec/api/project_property_api_spec.rb +82 -0
  169. data/spec/api/repository_api_spec.rb +100 -0
  170. data/spec/api/search_api_spec.rb +59 -0
  171. data/spec/api/team_api_spec.rb +122 -0
  172. data/spec/api/user_api_spec.rb +183 -0
  173. data/spec/api/version_api_spec.rb +46 -0
  174. data/spec/api/vulnerability_api_spec.rb +177 -0
  175. data/spec/api_client_spec.rb +226 -0
  176. data/spec/configuration_spec.rb +42 -0
  177. data/spec/models/about_spec.rb +65 -0
  178. data/spec/models/analysis_comment_spec.rb +53 -0
  179. data/spec/models/analysis_request_spec.rb +75 -0
  180. data/spec/models/analysis_spec.rb +57 -0
  181. data/spec/models/api_key_spec.rb +41 -0
  182. data/spec/models/body_part_spec.rb +83 -0
  183. data/spec/models/bom_submit_request_spec.rb +65 -0
  184. data/spec/models/clone_project_request_spec.rb +47 -0
  185. data/spec/models/component_metrics_spec.rb +119 -0
  186. data/spec/models/component_spec.rb +201 -0
  187. data/spec/models/config_property_spec.rb +69 -0
  188. data/spec/models/content_disposition_spec.rb +77 -0
  189. data/spec/models/cwe_spec.rb +47 -0
  190. data/spec/models/dependency_metrics_spec.rb +125 -0
  191. data/spec/models/dependency_request_spec.rb +53 -0
  192. data/spec/models/dependency_spec.rb +71 -0
  193. data/spec/models/finding_spec.rb +59 -0
  194. data/spec/models/form_data_body_part_spec.rb +107 -0
  195. data/spec/models/form_data_content_disposition_spec.rb +83 -0
  196. data/spec/models/form_data_multi_part_spec.rb +95 -0
  197. data/spec/models/framework_spec.rb +59 -0
  198. data/spec/models/identifiable_object_spec.rb +41 -0
  199. data/spec/models/ldap_user_spec.rb +65 -0
  200. data/spec/models/license_spec.rb +101 -0
  201. data/spec/models/managed_user_spec.rb +101 -0
  202. data/spec/models/mapped_ldap_group_request_spec.rb +47 -0
  203. data/spec/models/mapped_ldap_group_spec.rb +47 -0
  204. data/spec/models/media_type_spec.rb +65 -0
  205. data/spec/models/multi_part_spec.rb +89 -0
  206. data/spec/models/notification_publisher_spec.rb +77 -0
  207. data/spec/models/notification_rule_spec.rb +107 -0
  208. data/spec/models/package_url_spec.rb +77 -0
  209. data/spec/models/parameterized_header_spec.rb +47 -0
  210. data/spec/models/permission_spec.rb +47 -0
  211. data/spec/models/portfolio_metrics_spec.rb +149 -0
  212. data/spec/models/project_metrics_spec.rb +131 -0
  213. data/spec/models/project_property_spec.rb +75 -0
  214. data/spec/models/project_spec.rb +119 -0
  215. data/spec/models/repository_meta_component_spec.rb +75 -0
  216. data/spec/models/repository_spec.rb +81 -0
  217. data/spec/models/score_spec.rb +59 -0
  218. data/spec/models/search_result_spec.rb +41 -0
  219. data/spec/models/tag_spec.rb +47 -0
  220. data/spec/models/team_spec.rb +77 -0
  221. data/spec/models/user_principal_spec.rb +71 -0
  222. data/spec/models/vulnerability_metrics_spec.rb +59 -0
  223. data/spec/models/vulnerability_spec.rb +201 -0
  224. data/spec/models/vulnerable_software_spec.rb +197 -0
  225. data/spec/spec_helper.rb +111 -0
  226. data/tmp/tmp.rb +11 -0
  227. metadata +402 -0
@@ -0,0 +1,434 @@
1
+ # DependencyTracker::DefaultApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_project_to_rule**](DefaultApi.md#add_project_to_rule) | **POST** /v1/notification/rule/{ruleUuid}/project/{projectUuid} | Adds a project to a notification rule
8
+ [**create_notification_rule**](DefaultApi.md#create_notification_rule) | **PUT** /v1/notification/rule | Creates a new notification rule
9
+ [**delete_notification_rule**](DefaultApi.md#delete_notification_rule) | **DELETE** /v1/notification/rule | Deletes a notification rule
10
+ [**get_all_notification_publishers**](DefaultApi.md#get_all_notification_publishers) | **GET** /v1/notification/publisher | Returns a list of all notification publishers
11
+ [**get_all_notification_rules**](DefaultApi.md#get_all_notification_rules) | **GET** /v1/notification/rule | Returns a list of all notification rules
12
+ [**remove_project_from_rule**](DefaultApi.md#remove_project_from_rule) | **DELETE** /v1/notification/rule/{ruleUuid}/project/{projectUuid} | Removes a project from a notification rule
13
+ [**test_smtp_publisher_config**](DefaultApi.md#test_smtp_publisher_config) | **POST** /v1/notification/publisher/test/smtp | Dispatches a SMTP notification test
14
+ [**update_notification_rule**](DefaultApi.md#update_notification_rule) | **POST** /v1/notification/rule | Updates a notification rule
15
+
16
+
17
+
18
+ ## add_project_to_rule
19
+
20
+ > NotificationRule add_project_to_rule(rule_uuid, project_uuid)
21
+
22
+ Adds a project to a notification rule
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'dependency-tracker-client'
29
+ # setup authorization
30
+ DependencyTracker.configure do |config|
31
+ # Configure API key authorization: X-Api-Key
32
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
33
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
35
+ end
36
+
37
+ api_instance = DependencyTracker::DefaultApi.new
38
+ rule_uuid = 'rule_uuid_example' # String | The UUID of the rule to add a project to
39
+ project_uuid = 'project_uuid_example' # String | The UUID of the project to add to the rule
40
+
41
+ begin
42
+ #Adds a project to a notification rule
43
+ result = api_instance.add_project_to_rule(rule_uuid, project_uuid)
44
+ p result
45
+ rescue DependencyTracker::ApiError => e
46
+ puts "Exception when calling DefaultApi->add_project_to_rule: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **rule_uuid** | **String**| The UUID of the rule to add a project to |
56
+ **project_uuid** | **String**| The UUID of the project to add to the rule |
57
+
58
+ ### Return type
59
+
60
+ [**NotificationRule**](NotificationRule.md)
61
+
62
+ ### Authorization
63
+
64
+ [X-Api-Key](../README.md#X-Api-Key)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: application/json
70
+
71
+
72
+ ## create_notification_rule
73
+
74
+ > NotificationRule create_notification_rule(opts)
75
+
76
+ Creates a new notification rule
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'dependency-tracker-client'
83
+ # setup authorization
84
+ DependencyTracker.configure do |config|
85
+ # Configure API key authorization: X-Api-Key
86
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
87
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
88
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
89
+ end
90
+
91
+ api_instance = DependencyTracker::DefaultApi.new
92
+ opts = {
93
+ body: DependencyTracker::NotificationRule.new # NotificationRule |
94
+ }
95
+
96
+ begin
97
+ #Creates a new notification rule
98
+ result = api_instance.create_notification_rule(opts)
99
+ p result
100
+ rescue DependencyTracker::ApiError => e
101
+ puts "Exception when calling DefaultApi->create_notification_rule: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+
108
+ Name | Type | Description | Notes
109
+ ------------- | ------------- | ------------- | -------------
110
+ **body** | [**NotificationRule**](NotificationRule.md)| | [optional]
111
+
112
+ ### Return type
113
+
114
+ [**NotificationRule**](NotificationRule.md)
115
+
116
+ ### Authorization
117
+
118
+ [X-Api-Key](../README.md#X-Api-Key)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: application/json
123
+ - **Accept**: application/json
124
+
125
+
126
+ ## delete_notification_rule
127
+
128
+ > delete_notification_rule(opts)
129
+
130
+ Deletes a notification rule
131
+
132
+ ### Example
133
+
134
+ ```ruby
135
+ # load the gem
136
+ require 'dependency-tracker-client'
137
+ # setup authorization
138
+ DependencyTracker.configure do |config|
139
+ # Configure API key authorization: X-Api-Key
140
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
141
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
142
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
143
+ end
144
+
145
+ api_instance = DependencyTracker::DefaultApi.new
146
+ opts = {
147
+ body: DependencyTracker::NotificationRule.new # NotificationRule |
148
+ }
149
+
150
+ begin
151
+ #Deletes a notification rule
152
+ api_instance.delete_notification_rule(opts)
153
+ rescue DependencyTracker::ApiError => e
154
+ puts "Exception when calling DefaultApi->delete_notification_rule: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+
161
+ Name | Type | Description | Notes
162
+ ------------- | ------------- | ------------- | -------------
163
+ **body** | [**NotificationRule**](NotificationRule.md)| | [optional]
164
+
165
+ ### Return type
166
+
167
+ nil (empty response body)
168
+
169
+ ### Authorization
170
+
171
+ [X-Api-Key](../README.md#X-Api-Key)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: application/json
176
+ - **Accept**: Not defined
177
+
178
+
179
+ ## get_all_notification_publishers
180
+
181
+ > Array<NotificationPublisher> get_all_notification_publishers
182
+
183
+ Returns a list of all notification publishers
184
+
185
+ ### Example
186
+
187
+ ```ruby
188
+ # load the gem
189
+ require 'dependency-tracker-client'
190
+ # setup authorization
191
+ DependencyTracker.configure do |config|
192
+ # Configure API key authorization: X-Api-Key
193
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
194
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
195
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
196
+ end
197
+
198
+ api_instance = DependencyTracker::DefaultApi.new
199
+
200
+ begin
201
+ #Returns a list of all notification publishers
202
+ result = api_instance.get_all_notification_publishers
203
+ p result
204
+ rescue DependencyTracker::ApiError => e
205
+ puts "Exception when calling DefaultApi->get_all_notification_publishers: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ This endpoint does not need any parameter.
212
+
213
+ ### Return type
214
+
215
+ [**Array<NotificationPublisher>**](NotificationPublisher.md)
216
+
217
+ ### Authorization
218
+
219
+ [X-Api-Key](../README.md#X-Api-Key)
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: Not defined
224
+ - **Accept**: application/json
225
+
226
+
227
+ ## get_all_notification_rules
228
+
229
+ > Array<NotificationRule> get_all_notification_rules
230
+
231
+ Returns a list of all notification rules
232
+
233
+ ### Example
234
+
235
+ ```ruby
236
+ # load the gem
237
+ require 'dependency-tracker-client'
238
+ # setup authorization
239
+ DependencyTracker.configure do |config|
240
+ # Configure API key authorization: X-Api-Key
241
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
242
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
243
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
244
+ end
245
+
246
+ api_instance = DependencyTracker::DefaultApi.new
247
+
248
+ begin
249
+ #Returns a list of all notification rules
250
+ result = api_instance.get_all_notification_rules
251
+ p result
252
+ rescue DependencyTracker::ApiError => e
253
+ puts "Exception when calling DefaultApi->get_all_notification_rules: #{e}"
254
+ end
255
+ ```
256
+
257
+ ### Parameters
258
+
259
+ This endpoint does not need any parameter.
260
+
261
+ ### Return type
262
+
263
+ [**Array<NotificationRule>**](NotificationRule.md)
264
+
265
+ ### Authorization
266
+
267
+ [X-Api-Key](../README.md#X-Api-Key)
268
+
269
+ ### HTTP request headers
270
+
271
+ - **Content-Type**: Not defined
272
+ - **Accept**: application/json
273
+
274
+
275
+ ## remove_project_from_rule
276
+
277
+ > NotificationRule remove_project_from_rule(rule_uuid, project_uuid)
278
+
279
+ Removes a project from a notification rule
280
+
281
+ ### Example
282
+
283
+ ```ruby
284
+ # load the gem
285
+ require 'dependency-tracker-client'
286
+ # setup authorization
287
+ DependencyTracker.configure do |config|
288
+ # Configure API key authorization: X-Api-Key
289
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
290
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
291
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
292
+ end
293
+
294
+ api_instance = DependencyTracker::DefaultApi.new
295
+ rule_uuid = 'rule_uuid_example' # String | The UUID of the rule to remove the project from
296
+ project_uuid = 'project_uuid_example' # String | The UUID of the project to remove from the rule
297
+
298
+ begin
299
+ #Removes a project from a notification rule
300
+ result = api_instance.remove_project_from_rule(rule_uuid, project_uuid)
301
+ p result
302
+ rescue DependencyTracker::ApiError => e
303
+ puts "Exception when calling DefaultApi->remove_project_from_rule: #{e}"
304
+ end
305
+ ```
306
+
307
+ ### Parameters
308
+
309
+
310
+ Name | Type | Description | Notes
311
+ ------------- | ------------- | ------------- | -------------
312
+ **rule_uuid** | **String**| The UUID of the rule to remove the project from |
313
+ **project_uuid** | **String**| The UUID of the project to remove from the rule |
314
+
315
+ ### Return type
316
+
317
+ [**NotificationRule**](NotificationRule.md)
318
+
319
+ ### Authorization
320
+
321
+ [X-Api-Key](../README.md#X-Api-Key)
322
+
323
+ ### HTTP request headers
324
+
325
+ - **Content-Type**: Not defined
326
+ - **Accept**: application/json
327
+
328
+
329
+ ## test_smtp_publisher_config
330
+
331
+ > test_smtp_publisher_config(opts)
332
+
333
+ Dispatches a SMTP notification test
334
+
335
+ ### Example
336
+
337
+ ```ruby
338
+ # load the gem
339
+ require 'dependency-tracker-client'
340
+ # setup authorization
341
+ DependencyTracker.configure do |config|
342
+ # Configure API key authorization: X-Api-Key
343
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
344
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
345
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
346
+ end
347
+
348
+ api_instance = DependencyTracker::DefaultApi.new
349
+ opts = {
350
+ destination: 'destination_example' # String |
351
+ }
352
+
353
+ begin
354
+ #Dispatches a SMTP notification test
355
+ api_instance.test_smtp_publisher_config(opts)
356
+ rescue DependencyTracker::ApiError => e
357
+ puts "Exception when calling DefaultApi->test_smtp_publisher_config: #{e}"
358
+ end
359
+ ```
360
+
361
+ ### Parameters
362
+
363
+
364
+ Name | Type | Description | Notes
365
+ ------------- | ------------- | ------------- | -------------
366
+ **destination** | **String**| | [optional]
367
+
368
+ ### Return type
369
+
370
+ nil (empty response body)
371
+
372
+ ### Authorization
373
+
374
+ [X-Api-Key](../README.md#X-Api-Key)
375
+
376
+ ### HTTP request headers
377
+
378
+ - **Content-Type**: application/x-www-form-urlencoded
379
+ - **Accept**: Not defined
380
+
381
+
382
+ ## update_notification_rule
383
+
384
+ > NotificationRule update_notification_rule(opts)
385
+
386
+ Updates a notification rule
387
+
388
+ ### Example
389
+
390
+ ```ruby
391
+ # load the gem
392
+ require 'dependency-tracker-client'
393
+ # setup authorization
394
+ DependencyTracker.configure do |config|
395
+ # Configure API key authorization: X-Api-Key
396
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
397
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
398
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
399
+ end
400
+
401
+ api_instance = DependencyTracker::DefaultApi.new
402
+ opts = {
403
+ body: DependencyTracker::NotificationRule.new # NotificationRule |
404
+ }
405
+
406
+ begin
407
+ #Updates a notification rule
408
+ result = api_instance.update_notification_rule(opts)
409
+ p result
410
+ rescue DependencyTracker::ApiError => e
411
+ puts "Exception when calling DefaultApi->update_notification_rule: #{e}"
412
+ end
413
+ ```
414
+
415
+ ### Parameters
416
+
417
+
418
+ Name | Type | Description | Notes
419
+ ------------- | ------------- | ------------- | -------------
420
+ **body** | [**NotificationRule**](NotificationRule.md)| | [optional]
421
+
422
+ ### Return type
423
+
424
+ [**NotificationRule**](NotificationRule.md)
425
+
426
+ ### Authorization
427
+
428
+ [X-Api-Key](../README.md#X-Api-Key)
429
+
430
+ ### HTTP request headers
431
+
432
+ - **Content-Type**: application/json
433
+ - **Accept**: application/json
434
+
@@ -0,0 +1,27 @@
1
+ # DependencyTracker::Dependency
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **project** | [**Project**](Project.md) | |
8
+ **component** | [**Component**](Component.md) | |
9
+ **added_by** | **String** | | [optional]
10
+ **added_on** | **Integer** | |
11
+ **notes** | **String** | | [optional]
12
+ **metrics** | [**DependencyMetrics**](DependencyMetrics.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'DependencyTracker'
18
+
19
+ instance = DependencyTracker::Dependency.new(project: null,
20
+ component: null,
21
+ added_by: null,
22
+ added_on: null,
23
+ notes: null,
24
+ metrics: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,222 @@
1
+ # DependencyTracker::DependencyApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_dependency**](DependencyApi.md#add_dependency) | **PUT** /v1/dependency | Adds one or more components as a dependency to a project
8
+ [**get_dependencies_by_component**](DependencyApi.md#get_dependencies_by_component) | **GET** /v1/dependency/component/{uuid} | Returns a list of all dependencies for a specific component
9
+ [**get_dependencies_by_project**](DependencyApi.md#get_dependencies_by_project) | **GET** /v1/dependency/project/{uuid} | Returns a list of all dependencies for a specific project
10
+ [**remove_dependency**](DependencyApi.md#remove_dependency) | **DELETE** /v1/dependency | Removes a component as a dependency from a project
11
+
12
+
13
+
14
+ ## add_dependency
15
+
16
+ > add_dependency(opts)
17
+
18
+ Adds one or more components as a dependency to a project
19
+
20
+ ### Example
21
+
22
+ ```ruby
23
+ # load the gem
24
+ require 'dependency-tracker-client'
25
+ # setup authorization
26
+ DependencyTracker.configure do |config|
27
+ # Configure API key authorization: X-Api-Key
28
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = DependencyTracker::DependencyApi.new
34
+ opts = {
35
+ body: DependencyTracker::DependencyRequest.new # DependencyRequest |
36
+ }
37
+
38
+ begin
39
+ #Adds one or more components as a dependency to a project
40
+ api_instance.add_dependency(opts)
41
+ rescue DependencyTracker::ApiError => e
42
+ puts "Exception when calling DependencyApi->add_dependency: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **body** | [**DependencyRequest**](DependencyRequest.md)| | [optional]
52
+
53
+ ### Return type
54
+
55
+ nil (empty response body)
56
+
57
+ ### Authorization
58
+
59
+ [X-Api-Key](../README.md#X-Api-Key)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: Not defined
65
+
66
+
67
+ ## get_dependencies_by_component
68
+
69
+ > Array<Dependency> get_dependencies_by_component(uuid)
70
+
71
+ Returns a list of all dependencies for a specific component
72
+
73
+ ### Example
74
+
75
+ ```ruby
76
+ # load the gem
77
+ require 'dependency-tracker-client'
78
+ # setup authorization
79
+ DependencyTracker.configure do |config|
80
+ # Configure API key authorization: X-Api-Key
81
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
82
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
83
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
84
+ end
85
+
86
+ api_instance = DependencyTracker::DependencyApi.new
87
+ uuid = 'uuid_example' # String |
88
+
89
+ begin
90
+ #Returns a list of all dependencies for a specific component
91
+ result = api_instance.get_dependencies_by_component(uuid)
92
+ p result
93
+ rescue DependencyTracker::ApiError => e
94
+ puts "Exception when calling DependencyApi->get_dependencies_by_component: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **uuid** | **String**| |
104
+
105
+ ### Return type
106
+
107
+ [**Array<Dependency>**](Dependency.md)
108
+
109
+ ### Authorization
110
+
111
+ [X-Api-Key](../README.md#X-Api-Key)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: application/json
117
+
118
+
119
+ ## get_dependencies_by_project
120
+
121
+ > Array<Dependency> get_dependencies_by_project(uuid)
122
+
123
+ Returns a list of all dependencies for a specific project
124
+
125
+ ### Example
126
+
127
+ ```ruby
128
+ # load the gem
129
+ require 'dependency-tracker-client'
130
+ # setup authorization
131
+ DependencyTracker.configure do |config|
132
+ # Configure API key authorization: X-Api-Key
133
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
134
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
135
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
136
+ end
137
+
138
+ api_instance = DependencyTracker::DependencyApi.new
139
+ uuid = 'uuid_example' # String |
140
+
141
+ begin
142
+ #Returns a list of all dependencies for a specific project
143
+ result = api_instance.get_dependencies_by_project(uuid)
144
+ p result
145
+ rescue DependencyTracker::ApiError => e
146
+ puts "Exception when calling DependencyApi->get_dependencies_by_project: #{e}"
147
+ end
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **uuid** | **String**| |
156
+
157
+ ### Return type
158
+
159
+ [**Array<Dependency>**](Dependency.md)
160
+
161
+ ### Authorization
162
+
163
+ [X-Api-Key](../README.md#X-Api-Key)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
169
+
170
+
171
+ ## remove_dependency
172
+
173
+ > remove_dependency(opts)
174
+
175
+ Removes a component as a dependency from a project
176
+
177
+ ### Example
178
+
179
+ ```ruby
180
+ # load the gem
181
+ require 'dependency-tracker-client'
182
+ # setup authorization
183
+ DependencyTracker.configure do |config|
184
+ # Configure API key authorization: X-Api-Key
185
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
186
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
187
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
188
+ end
189
+
190
+ api_instance = DependencyTracker::DependencyApi.new
191
+ opts = {
192
+ body: DependencyTracker::DependencyRequest.new # DependencyRequest |
193
+ }
194
+
195
+ begin
196
+ #Removes a component as a dependency from a project
197
+ api_instance.remove_dependency(opts)
198
+ rescue DependencyTracker::ApiError => e
199
+ puts "Exception when calling DependencyApi->remove_dependency: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+
206
+ Name | Type | Description | Notes
207
+ ------------- | ------------- | ------------- | -------------
208
+ **body** | [**DependencyRequest**](DependencyRequest.md)| | [optional]
209
+
210
+ ### Return type
211
+
212
+ nil (empty response body)
213
+
214
+ ### Authorization
215
+
216
+ [X-Api-Key](../README.md#X-Api-Key)
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: application/json
221
+ - **Accept**: Not defined
222
+