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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +276 -0
- data/Rakefile +10 -0
- data/dependency-tracker-client.gemspec +39 -0
- data/docs/About.md +25 -0
- data/docs/Analysis.md +21 -0
- data/docs/AnalysisApi.md +177 -0
- data/docs/AnalysisComment.md +21 -0
- data/docs/AnalysisRequest.md +27 -0
- data/docs/ApiKey.md +17 -0
- data/docs/BadgeApi.md +102 -0
- data/docs/BodyPart.md +31 -0
- data/docs/BomApi.md +335 -0
- data/docs/BomSubmitRequest.md +25 -0
- data/docs/CalculatorApi.md +61 -0
- data/docs/CloneProjectRequest.md +19 -0
- data/docs/Component.md +69 -0
- data/docs/ComponentApi.md +373 -0
- data/docs/ComponentMetrics.md +43 -0
- data/docs/ConfigProperty.md +25 -0
- data/docs/ConfigPropertyApi.md +167 -0
- data/docs/ContentDisposition.md +29 -0
- data/docs/Cwe.md +19 -0
- data/docs/CweApi.md +110 -0
- data/docs/DefaultApi.md +434 -0
- data/docs/Dependency.md +27 -0
- data/docs/DependencyApi.md +222 -0
- data/docs/DependencyMetrics.md +45 -0
- data/docs/DependencyRequest.md +21 -0
- data/docs/Finding.md +23 -0
- data/docs/FindingApi.md +113 -0
- data/docs/FormDataBodyPart.md +39 -0
- data/docs/FormDataContentDisposition.md +31 -0
- data/docs/FormDataMultiPart.md +35 -0
- data/docs/Framework.md +23 -0
- data/docs/IdentifiableObject.md +17 -0
- data/docs/LdapApi.md +220 -0
- data/docs/LdapUser.md +25 -0
- data/docs/License.md +37 -0
- data/docs/LicenseApi.md +159 -0
- data/docs/ManagedUser.md +37 -0
- data/docs/MappedLdapGroup.md +19 -0
- data/docs/MappedLdapGroupRequest.md +19 -0
- data/docs/MediaType.md +25 -0
- data/docs/MetricsApi.md +922 -0
- data/docs/MultiPart.md +33 -0
- data/docs/NotificationPublisher.md +29 -0
- data/docs/NotificationRule.md +35 -0
- data/docs/PackageURL.md +29 -0
- data/docs/ParameterizedHeader.md +19 -0
- data/docs/Permission.md +19 -0
- data/docs/PermissionApi.md +279 -0
- data/docs/PortfolioMetrics.md +53 -0
- data/docs/Project.md +43 -0
- data/docs/ProjectApi.md +445 -0
- data/docs/ProjectMetrics.md +47 -0
- data/docs/ProjectProperty.md +27 -0
- data/docs/ProjectPropertyApi.md +232 -0
- data/docs/Repository.md +29 -0
- data/docs/RepositoryApi.md +325 -0
- data/docs/RepositoryMetaComponent.md +27 -0
- data/docs/Score.md +23 -0
- data/docs/SearchApi.md +120 -0
- data/docs/SearchResult.md +17 -0
- data/docs/Tag.md +19 -0
- data/docs/Team.md +29 -0
- data/docs/TeamApi.md +432 -0
- data/docs/UserApi.md +715 -0
- data/docs/UserPrincipal.md +27 -0
- data/docs/VersionApi.md +52 -0
- data/docs/Vulnerability.md +69 -0
- data/docs/VulnerabilityApi.md +666 -0
- data/docs/VulnerabilityMetrics.md +23 -0
- data/docs/VulnerableSoftware.md +69 -0
- data/lib/dependency-tracker-client/api/analysis_api.rb +209 -0
- data/lib/dependency-tracker-client/api/badge_api.rb +148 -0
- data/lib/dependency-tracker-client/api/bom_api.rb +382 -0
- data/lib/dependency-tracker-client/api/calculator_api.rb +83 -0
- data/lib/dependency-tracker-client/api/component_api.rb +422 -0
- data/lib/dependency-tracker-client/api/config_property_api.rb +192 -0
- data/lib/dependency-tracker-client/api/cwe_api.rb +136 -0
- data/lib/dependency-tracker-client/api/default_api.rb +491 -0
- data/lib/dependency-tracker-client/api/dependency_api.rb +254 -0
- data/lib/dependency-tracker-client/api/finding_api.rb +140 -0
- data/lib/dependency-tracker-client/api/ldap_api.rb +254 -0
- data/lib/dependency-tracker-client/api/license_api.rb +190 -0
- data/lib/dependency-tracker-client/api/metrics_api.rb +1086 -0
- data/lib/dependency-tracker-client/api/permission_api.rb +342 -0
- data/lib/dependency-tracker-client/api/project_api.rb +504 -0
- data/lib/dependency-tracker-client/api/project_property_api.rb +274 -0
- data/lib/dependency-tracker-client/api/repository_api.rb +376 -0
- data/lib/dependency-tracker-client/api/search_api.rb +143 -0
- data/lib/dependency-tracker-client/api/team_api.rb +486 -0
- data/lib/dependency-tracker-client/api/user_api.rb +796 -0
- data/lib/dependency-tracker-client/api/version_api.rb +78 -0
- data/lib/dependency-tracker-client/api/vulnerability_api.rb +780 -0
- data/lib/dependency-tracker-client/api_client.rb +388 -0
- data/lib/dependency-tracker-client/api_error.rb +57 -0
- data/lib/dependency-tracker-client/configuration.rb +261 -0
- data/lib/dependency-tracker-client/models/about.rb +242 -0
- data/lib/dependency-tracker-client/models/analysis.rb +265 -0
- data/lib/dependency-tracker-client/models/analysis_comment.rb +234 -0
- data/lib/dependency-tracker-client/models/analysis_request.rb +371 -0
- data/lib/dependency-tracker-client/models/api_key.rb +250 -0
- data/lib/dependency-tracker-client/models/body_part.rb +273 -0
- data/lib/dependency-tracker-client/models/bom_submit_request.rb +328 -0
- data/lib/dependency-tracker-client/models/clone_project_request.rb +267 -0
- data/lib/dependency-tracker-client/models/component.rb +900 -0
- data/lib/dependency-tracker-client/models/component_metrics.rb +338 -0
- data/lib/dependency-tracker-client/models/config_property.rb +421 -0
- data/lib/dependency-tracker-client/models/content_disposition.rb +262 -0
- data/lib/dependency-tracker-client/models/cwe.rb +259 -0
- data/lib/dependency-tracker-client/models/dependency.rb +266 -0
- data/lib/dependency-tracker-client/models/dependency_metrics.rb +352 -0
- data/lib/dependency-tracker-client/models/dependency_request.rb +257 -0
- data/lib/dependency-tracker-client/models/finding.rb +239 -0
- data/lib/dependency-tracker-client/models/form_data_body_part.rb +309 -0
- data/lib/dependency-tracker-client/models/form_data_content_disposition.rb +271 -0
- data/lib/dependency-tracker-client/models/form_data_multi_part.rb +295 -0
- data/lib/dependency-tracker-client/models/framework.rb +233 -0
- data/lib/dependency-tracker-client/models/identifiable_object.rb +206 -0
- data/lib/dependency-tracker-client/models/ldap_user.rb +351 -0
- data/lib/dependency-tracker-client/models/license.rb +373 -0
- data/lib/dependency-tracker-client/models/managed_user.rb +480 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group.rb +255 -0
- data/lib/dependency-tracker-client/models/mapped_ldap_group_request.rb +267 -0
- data/lib/dependency-tracker-client/models/media_type.rb +244 -0
- data/lib/dependency-tracker-client/models/multi_part.rb +284 -0
- data/lib/dependency-tracker-client/models/notification_publisher.rb +388 -0
- data/lib/dependency-tracker-client/models/notification_rule.rb +426 -0
- data/lib/dependency-tracker-client/models/package_url.rb +262 -0
- data/lib/dependency-tracker-client/models/parameterized_header.rb +217 -0
- data/lib/dependency-tracker-client/models/permission.rb +250 -0
- data/lib/dependency-tracker-client/models/portfolio_metrics.rb +378 -0
- data/lib/dependency-tracker-client/models/project.rb +420 -0
- data/lib/dependency-tracker-client/models/project_metrics.rb +356 -0
- data/lib/dependency-tracker-client/models/project_property.rb +430 -0
- data/lib/dependency-tracker-client/models/repository.rb +319 -0
- data/lib/dependency-tracker-client/models/repository_meta_component.rb +305 -0
- data/lib/dependency-tracker-client/models/score.rb +233 -0
- data/lib/dependency-tracker-client/models/search_result.rb +208 -0
- data/lib/dependency-tracker-client/models/tag.rb +252 -0
- data/lib/dependency-tracker-client/models/team.rb +310 -0
- data/lib/dependency-tracker-client/models/user_principal.rb +255 -0
- data/lib/dependency-tracker-client/models/vulnerability.rb +729 -0
- data/lib/dependency-tracker-client/models/vulnerability_metrics.rb +238 -0
- data/lib/dependency-tracker-client/models/vulnerable_software.rb +442 -0
- data/lib/dependency-tracker-client/version.rb +15 -0
- data/lib/dependency-tracker-client.rb +109 -0
- data/pkg/dependency-tracker-client-1.0.0.gem +0 -0
- data/spec/api/analysis_api_spec.rb +70 -0
- data/spec/api/badge_api_spec.rb +58 -0
- data/spec/api/bom_api_spec.rb +106 -0
- data/spec/api/calculator_api_spec.rb +46 -0
- data/spec/api/component_api_spec.rb +110 -0
- data/spec/api/config_property_api_spec.rb +67 -0
- data/spec/api/cwe_api_spec.rb +56 -0
- data/spec/api/default_api_spec.rb +123 -0
- data/spec/api/dependency_api_spec.rb +79 -0
- data/spec/api/finding_api_spec.rb +57 -0
- data/spec/api/ldap_api_spec.rb +79 -0
- data/spec/api/license_api_spec.rb +66 -0
- data/spec/api/metrics_api_spec.rb +233 -0
- data/spec/api/permission_api_spec.rb +94 -0
- data/spec/api/project_api_spec.rb +126 -0
- data/spec/api/project_property_api_spec.rb +82 -0
- data/spec/api/repository_api_spec.rb +100 -0
- data/spec/api/search_api_spec.rb +59 -0
- data/spec/api/team_api_spec.rb +122 -0
- data/spec/api/user_api_spec.rb +183 -0
- data/spec/api/version_api_spec.rb +46 -0
- data/spec/api/vulnerability_api_spec.rb +177 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/about_spec.rb +65 -0
- data/spec/models/analysis_comment_spec.rb +53 -0
- data/spec/models/analysis_request_spec.rb +75 -0
- data/spec/models/analysis_spec.rb +57 -0
- data/spec/models/api_key_spec.rb +41 -0
- data/spec/models/body_part_spec.rb +83 -0
- data/spec/models/bom_submit_request_spec.rb +65 -0
- data/spec/models/clone_project_request_spec.rb +47 -0
- data/spec/models/component_metrics_spec.rb +119 -0
- data/spec/models/component_spec.rb +201 -0
- data/spec/models/config_property_spec.rb +69 -0
- data/spec/models/content_disposition_spec.rb +77 -0
- data/spec/models/cwe_spec.rb +47 -0
- data/spec/models/dependency_metrics_spec.rb +125 -0
- data/spec/models/dependency_request_spec.rb +53 -0
- data/spec/models/dependency_spec.rb +71 -0
- data/spec/models/finding_spec.rb +59 -0
- data/spec/models/form_data_body_part_spec.rb +107 -0
- data/spec/models/form_data_content_disposition_spec.rb +83 -0
- data/spec/models/form_data_multi_part_spec.rb +95 -0
- data/spec/models/framework_spec.rb +59 -0
- data/spec/models/identifiable_object_spec.rb +41 -0
- data/spec/models/ldap_user_spec.rb +65 -0
- data/spec/models/license_spec.rb +101 -0
- data/spec/models/managed_user_spec.rb +101 -0
- data/spec/models/mapped_ldap_group_request_spec.rb +47 -0
- data/spec/models/mapped_ldap_group_spec.rb +47 -0
- data/spec/models/media_type_spec.rb +65 -0
- data/spec/models/multi_part_spec.rb +89 -0
- data/spec/models/notification_publisher_spec.rb +77 -0
- data/spec/models/notification_rule_spec.rb +107 -0
- data/spec/models/package_url_spec.rb +77 -0
- data/spec/models/parameterized_header_spec.rb +47 -0
- data/spec/models/permission_spec.rb +47 -0
- data/spec/models/portfolio_metrics_spec.rb +149 -0
- data/spec/models/project_metrics_spec.rb +131 -0
- data/spec/models/project_property_spec.rb +75 -0
- data/spec/models/project_spec.rb +119 -0
- data/spec/models/repository_meta_component_spec.rb +75 -0
- data/spec/models/repository_spec.rb +81 -0
- data/spec/models/score_spec.rb +59 -0
- data/spec/models/search_result_spec.rb +41 -0
- data/spec/models/tag_spec.rb +47 -0
- data/spec/models/team_spec.rb +77 -0
- data/spec/models/user_principal_spec.rb +71 -0
- data/spec/models/vulnerability_metrics_spec.rb +59 -0
- data/spec/models/vulnerability_spec.rb +201 -0
- data/spec/models/vulnerable_software_spec.rb +197 -0
- data/spec/spec_helper.rb +111 -0
- data/tmp/tmp.rb +11 -0
- metadata +402 -0
data/docs/DefaultApi.md
ADDED
@@ -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
|
+
|
data/docs/Dependency.md
ADDED
@@ -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
|
+
|