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/UserApi.md
ADDED
@@ -0,0 +1,715 @@
|
|
1
|
+
# DependencyTracker::UserApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_team_to_user**](UserApi.md#add_team_to_user) | **POST** /v1/user/{username}/membership | Adds the username to the specified team.
|
8
|
+
[**create_ldap_user**](UserApi.md#create_ldap_user) | **PUT** /v1/user/ldap | Creates a new user that references an existing LDAP object.
|
9
|
+
[**create_managed_user**](UserApi.md#create_managed_user) | **PUT** /v1/user/managed | Creates a new user.
|
10
|
+
[**delete_ldap_user**](UserApi.md#delete_ldap_user) | **DELETE** /v1/user/ldap | Deletes a user.
|
11
|
+
[**delete_managed_user**](UserApi.md#delete_managed_user) | **DELETE** /v1/user/managed | Deletes a user.
|
12
|
+
[**force_change_password**](UserApi.md#force_change_password) | **POST** /v1/user/forceChangePassword | Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
|
13
|
+
[**get_ldap_users**](UserApi.md#get_ldap_users) | **GET** /v1/user/ldap | Returns a list of all LDAP users
|
14
|
+
[**get_managed_users**](UserApi.md#get_managed_users) | **GET** /v1/user/managed | Returns a list of all managed users
|
15
|
+
[**get_self**](UserApi.md#get_self) | **GET** /v1/user/self | Returns information about the current logged in user.
|
16
|
+
[**remove_team_from_user**](UserApi.md#remove_team_from_user) | **DELETE** /v1/user/{username}/membership | Removes the username from the specified team.
|
17
|
+
[**update_managed_user**](UserApi.md#update_managed_user) | **POST** /v1/user/managed | Updates a managed user.
|
18
|
+
[**update_self**](UserApi.md#update_self) | **POST** /v1/user/self | Updates information about the current logged in user.
|
19
|
+
[**validate_credentials**](UserApi.md#validate_credentials) | **POST** /v1/user/login | Assert login credentials
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## add_team_to_user
|
24
|
+
|
25
|
+
> UserPrincipal add_team_to_user(username, body)
|
26
|
+
|
27
|
+
Adds the username to the specified team.
|
28
|
+
|
29
|
+
### Example
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
# load the gem
|
33
|
+
require 'dependency-tracker-client'
|
34
|
+
# setup authorization
|
35
|
+
DependencyTracker.configure do |config|
|
36
|
+
# Configure API key authorization: X-Api-Key
|
37
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
38
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
39
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = DependencyTracker::UserApi.new
|
43
|
+
username = 'username_example' # String | A valid username
|
44
|
+
body = DependencyTracker::IdentifiableObject.new # IdentifiableObject | The UUID of the team to associate username with
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Adds the username to the specified team.
|
48
|
+
result = api_instance.add_team_to_user(username, body)
|
49
|
+
p result
|
50
|
+
rescue DependencyTracker::ApiError => e
|
51
|
+
puts "Exception when calling UserApi->add_team_to_user: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**username** | **String**| A valid username |
|
61
|
+
**body** | [**IdentifiableObject**](IdentifiableObject.md)| The UUID of the team to associate username with |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**UserPrincipal**](UserPrincipal.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
77
|
+
## create_ldap_user
|
78
|
+
|
79
|
+
> LdapUser create_ldap_user(opts)
|
80
|
+
|
81
|
+
Creates a new user that references an existing LDAP object.
|
82
|
+
|
83
|
+
### Example
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'dependency-tracker-client'
|
88
|
+
# setup authorization
|
89
|
+
DependencyTracker.configure do |config|
|
90
|
+
# Configure API key authorization: X-Api-Key
|
91
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
92
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
93
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
94
|
+
end
|
95
|
+
|
96
|
+
api_instance = DependencyTracker::UserApi.new
|
97
|
+
opts = {
|
98
|
+
body: DependencyTracker::LdapUser.new # LdapUser |
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#Creates a new user that references an existing LDAP object.
|
103
|
+
result = api_instance.create_ldap_user(opts)
|
104
|
+
p result
|
105
|
+
rescue DependencyTracker::ApiError => e
|
106
|
+
puts "Exception when calling UserApi->create_ldap_user: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
### Parameters
|
111
|
+
|
112
|
+
|
113
|
+
Name | Type | Description | Notes
|
114
|
+
------------- | ------------- | ------------- | -------------
|
115
|
+
**body** | [**LdapUser**](LdapUser.md)| | [optional]
|
116
|
+
|
117
|
+
### Return type
|
118
|
+
|
119
|
+
[**LdapUser**](LdapUser.md)
|
120
|
+
|
121
|
+
### Authorization
|
122
|
+
|
123
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
124
|
+
|
125
|
+
### HTTP request headers
|
126
|
+
|
127
|
+
- **Content-Type**: application/json
|
128
|
+
- **Accept**: application/json
|
129
|
+
|
130
|
+
|
131
|
+
## create_managed_user
|
132
|
+
|
133
|
+
> ManagedUser create_managed_user(opts)
|
134
|
+
|
135
|
+
Creates a new user.
|
136
|
+
|
137
|
+
### Example
|
138
|
+
|
139
|
+
```ruby
|
140
|
+
# load the gem
|
141
|
+
require 'dependency-tracker-client'
|
142
|
+
# setup authorization
|
143
|
+
DependencyTracker.configure do |config|
|
144
|
+
# Configure API key authorization: X-Api-Key
|
145
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
146
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
147
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
148
|
+
end
|
149
|
+
|
150
|
+
api_instance = DependencyTracker::UserApi.new
|
151
|
+
opts = {
|
152
|
+
body: DependencyTracker::ManagedUser.new # ManagedUser |
|
153
|
+
}
|
154
|
+
|
155
|
+
begin
|
156
|
+
#Creates a new user.
|
157
|
+
result = api_instance.create_managed_user(opts)
|
158
|
+
p result
|
159
|
+
rescue DependencyTracker::ApiError => e
|
160
|
+
puts "Exception when calling UserApi->create_managed_user: #{e}"
|
161
|
+
end
|
162
|
+
```
|
163
|
+
|
164
|
+
### Parameters
|
165
|
+
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**body** | [**ManagedUser**](ManagedUser.md)| | [optional]
|
170
|
+
|
171
|
+
### Return type
|
172
|
+
|
173
|
+
[**ManagedUser**](ManagedUser.md)
|
174
|
+
|
175
|
+
### Authorization
|
176
|
+
|
177
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
178
|
+
|
179
|
+
### HTTP request headers
|
180
|
+
|
181
|
+
- **Content-Type**: application/json
|
182
|
+
- **Accept**: application/json
|
183
|
+
|
184
|
+
|
185
|
+
## delete_ldap_user
|
186
|
+
|
187
|
+
> delete_ldap_user(opts)
|
188
|
+
|
189
|
+
Deletes a user.
|
190
|
+
|
191
|
+
### Example
|
192
|
+
|
193
|
+
```ruby
|
194
|
+
# load the gem
|
195
|
+
require 'dependency-tracker-client'
|
196
|
+
# setup authorization
|
197
|
+
DependencyTracker.configure do |config|
|
198
|
+
# Configure API key authorization: X-Api-Key
|
199
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
200
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
201
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
202
|
+
end
|
203
|
+
|
204
|
+
api_instance = DependencyTracker::UserApi.new
|
205
|
+
opts = {
|
206
|
+
body: DependencyTracker::LdapUser.new # LdapUser |
|
207
|
+
}
|
208
|
+
|
209
|
+
begin
|
210
|
+
#Deletes a user.
|
211
|
+
api_instance.delete_ldap_user(opts)
|
212
|
+
rescue DependencyTracker::ApiError => e
|
213
|
+
puts "Exception when calling UserApi->delete_ldap_user: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
|
220
|
+
Name | Type | Description | Notes
|
221
|
+
------------- | ------------- | ------------- | -------------
|
222
|
+
**body** | [**LdapUser**](LdapUser.md)| | [optional]
|
223
|
+
|
224
|
+
### Return type
|
225
|
+
|
226
|
+
nil (empty response body)
|
227
|
+
|
228
|
+
### Authorization
|
229
|
+
|
230
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
231
|
+
|
232
|
+
### HTTP request headers
|
233
|
+
|
234
|
+
- **Content-Type**: application/json
|
235
|
+
- **Accept**: Not defined
|
236
|
+
|
237
|
+
|
238
|
+
## delete_managed_user
|
239
|
+
|
240
|
+
> delete_managed_user(opts)
|
241
|
+
|
242
|
+
Deletes a user.
|
243
|
+
|
244
|
+
### Example
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
# load the gem
|
248
|
+
require 'dependency-tracker-client'
|
249
|
+
# setup authorization
|
250
|
+
DependencyTracker.configure do |config|
|
251
|
+
# Configure API key authorization: X-Api-Key
|
252
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
253
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
254
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
255
|
+
end
|
256
|
+
|
257
|
+
api_instance = DependencyTracker::UserApi.new
|
258
|
+
opts = {
|
259
|
+
body: DependencyTracker::ManagedUser.new # ManagedUser |
|
260
|
+
}
|
261
|
+
|
262
|
+
begin
|
263
|
+
#Deletes a user.
|
264
|
+
api_instance.delete_managed_user(opts)
|
265
|
+
rescue DependencyTracker::ApiError => e
|
266
|
+
puts "Exception when calling UserApi->delete_managed_user: #{e}"
|
267
|
+
end
|
268
|
+
```
|
269
|
+
|
270
|
+
### Parameters
|
271
|
+
|
272
|
+
|
273
|
+
Name | Type | Description | Notes
|
274
|
+
------------- | ------------- | ------------- | -------------
|
275
|
+
**body** | [**ManagedUser**](ManagedUser.md)| | [optional]
|
276
|
+
|
277
|
+
### Return type
|
278
|
+
|
279
|
+
nil (empty response body)
|
280
|
+
|
281
|
+
### Authorization
|
282
|
+
|
283
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
284
|
+
|
285
|
+
### HTTP request headers
|
286
|
+
|
287
|
+
- **Content-Type**: application/json
|
288
|
+
- **Accept**: Not defined
|
289
|
+
|
290
|
+
|
291
|
+
## force_change_password
|
292
|
+
|
293
|
+
> String force_change_password(opts)
|
294
|
+
|
295
|
+
Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
|
296
|
+
|
297
|
+
Upon a successful login, a JSON Web Token will be returned in the response body. This functionality requires authentication to be enabled.
|
298
|
+
|
299
|
+
### Example
|
300
|
+
|
301
|
+
```ruby
|
302
|
+
# load the gem
|
303
|
+
require 'dependency-tracker-client'
|
304
|
+
# setup authorization
|
305
|
+
DependencyTracker.configure do |config|
|
306
|
+
# Configure API key authorization: X-Api-Key
|
307
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
308
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
309
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
310
|
+
end
|
311
|
+
|
312
|
+
api_instance = DependencyTracker::UserApi.new
|
313
|
+
opts = {
|
314
|
+
username: 'username_example', # String |
|
315
|
+
password: 'password_example', # String |
|
316
|
+
new_password: 'new_password_example', # String |
|
317
|
+
confirm_password: 'confirm_password_example' # String |
|
318
|
+
}
|
319
|
+
|
320
|
+
begin
|
321
|
+
#Asserts login credentials and upon successful authentication, verifies passwords match and changes users password
|
322
|
+
result = api_instance.force_change_password(opts)
|
323
|
+
p result
|
324
|
+
rescue DependencyTracker::ApiError => e
|
325
|
+
puts "Exception when calling UserApi->force_change_password: #{e}"
|
326
|
+
end
|
327
|
+
```
|
328
|
+
|
329
|
+
### Parameters
|
330
|
+
|
331
|
+
|
332
|
+
Name | Type | Description | Notes
|
333
|
+
------------- | ------------- | ------------- | -------------
|
334
|
+
**username** | **String**| | [optional]
|
335
|
+
**password** | **String**| | [optional]
|
336
|
+
**new_password** | **String**| | [optional]
|
337
|
+
**confirm_password** | **String**| | [optional]
|
338
|
+
|
339
|
+
### Return type
|
340
|
+
|
341
|
+
**String**
|
342
|
+
|
343
|
+
### Authorization
|
344
|
+
|
345
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
346
|
+
|
347
|
+
### HTTP request headers
|
348
|
+
|
349
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
350
|
+
- **Accept**: text/plain
|
351
|
+
|
352
|
+
|
353
|
+
## get_ldap_users
|
354
|
+
|
355
|
+
> Array<LdapUser> get_ldap_users
|
356
|
+
|
357
|
+
Returns a list of all LDAP users
|
358
|
+
|
359
|
+
### Example
|
360
|
+
|
361
|
+
```ruby
|
362
|
+
# load the gem
|
363
|
+
require 'dependency-tracker-client'
|
364
|
+
# setup authorization
|
365
|
+
DependencyTracker.configure do |config|
|
366
|
+
# Configure API key authorization: X-Api-Key
|
367
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
368
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
369
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
370
|
+
end
|
371
|
+
|
372
|
+
api_instance = DependencyTracker::UserApi.new
|
373
|
+
|
374
|
+
begin
|
375
|
+
#Returns a list of all LDAP users
|
376
|
+
result = api_instance.get_ldap_users
|
377
|
+
p result
|
378
|
+
rescue DependencyTracker::ApiError => e
|
379
|
+
puts "Exception when calling UserApi->get_ldap_users: #{e}"
|
380
|
+
end
|
381
|
+
```
|
382
|
+
|
383
|
+
### Parameters
|
384
|
+
|
385
|
+
This endpoint does not need any parameter.
|
386
|
+
|
387
|
+
### Return type
|
388
|
+
|
389
|
+
[**Array<LdapUser>**](LdapUser.md)
|
390
|
+
|
391
|
+
### Authorization
|
392
|
+
|
393
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
394
|
+
|
395
|
+
### HTTP request headers
|
396
|
+
|
397
|
+
- **Content-Type**: Not defined
|
398
|
+
- **Accept**: application/json
|
399
|
+
|
400
|
+
|
401
|
+
## get_managed_users
|
402
|
+
|
403
|
+
> Array<ManagedUser> get_managed_users
|
404
|
+
|
405
|
+
Returns a list of all managed users
|
406
|
+
|
407
|
+
### Example
|
408
|
+
|
409
|
+
```ruby
|
410
|
+
# load the gem
|
411
|
+
require 'dependency-tracker-client'
|
412
|
+
# setup authorization
|
413
|
+
DependencyTracker.configure do |config|
|
414
|
+
# Configure API key authorization: X-Api-Key
|
415
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
416
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
417
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
418
|
+
end
|
419
|
+
|
420
|
+
api_instance = DependencyTracker::UserApi.new
|
421
|
+
|
422
|
+
begin
|
423
|
+
#Returns a list of all managed users
|
424
|
+
result = api_instance.get_managed_users
|
425
|
+
p result
|
426
|
+
rescue DependencyTracker::ApiError => e
|
427
|
+
puts "Exception when calling UserApi->get_managed_users: #{e}"
|
428
|
+
end
|
429
|
+
```
|
430
|
+
|
431
|
+
### Parameters
|
432
|
+
|
433
|
+
This endpoint does not need any parameter.
|
434
|
+
|
435
|
+
### Return type
|
436
|
+
|
437
|
+
[**Array<ManagedUser>**](ManagedUser.md)
|
438
|
+
|
439
|
+
### Authorization
|
440
|
+
|
441
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
442
|
+
|
443
|
+
### HTTP request headers
|
444
|
+
|
445
|
+
- **Content-Type**: Not defined
|
446
|
+
- **Accept**: application/json
|
447
|
+
|
448
|
+
|
449
|
+
## get_self
|
450
|
+
|
451
|
+
> UserPrincipal get_self
|
452
|
+
|
453
|
+
Returns information about the current logged in user.
|
454
|
+
|
455
|
+
### Example
|
456
|
+
|
457
|
+
```ruby
|
458
|
+
# load the gem
|
459
|
+
require 'dependency-tracker-client'
|
460
|
+
# setup authorization
|
461
|
+
DependencyTracker.configure do |config|
|
462
|
+
# Configure API key authorization: X-Api-Key
|
463
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
464
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
465
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
466
|
+
end
|
467
|
+
|
468
|
+
api_instance = DependencyTracker::UserApi.new
|
469
|
+
|
470
|
+
begin
|
471
|
+
#Returns information about the current logged in user.
|
472
|
+
result = api_instance.get_self
|
473
|
+
p result
|
474
|
+
rescue DependencyTracker::ApiError => e
|
475
|
+
puts "Exception when calling UserApi->get_self: #{e}"
|
476
|
+
end
|
477
|
+
```
|
478
|
+
|
479
|
+
### Parameters
|
480
|
+
|
481
|
+
This endpoint does not need any parameter.
|
482
|
+
|
483
|
+
### Return type
|
484
|
+
|
485
|
+
[**UserPrincipal**](UserPrincipal.md)
|
486
|
+
|
487
|
+
### Authorization
|
488
|
+
|
489
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
490
|
+
|
491
|
+
### HTTP request headers
|
492
|
+
|
493
|
+
- **Content-Type**: Not defined
|
494
|
+
- **Accept**: application/json
|
495
|
+
|
496
|
+
|
497
|
+
## remove_team_from_user
|
498
|
+
|
499
|
+
> UserPrincipal remove_team_from_user(username, body)
|
500
|
+
|
501
|
+
Removes the username from the specified team.
|
502
|
+
|
503
|
+
### Example
|
504
|
+
|
505
|
+
```ruby
|
506
|
+
# load the gem
|
507
|
+
require 'dependency-tracker-client'
|
508
|
+
# setup authorization
|
509
|
+
DependencyTracker.configure do |config|
|
510
|
+
# Configure API key authorization: X-Api-Key
|
511
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
512
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
513
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
514
|
+
end
|
515
|
+
|
516
|
+
api_instance = DependencyTracker::UserApi.new
|
517
|
+
username = 'username_example' # String | A valid username
|
518
|
+
body = DependencyTracker::IdentifiableObject.new # IdentifiableObject | The UUID of the team to un-associate username from
|
519
|
+
|
520
|
+
begin
|
521
|
+
#Removes the username from the specified team.
|
522
|
+
result = api_instance.remove_team_from_user(username, body)
|
523
|
+
p result
|
524
|
+
rescue DependencyTracker::ApiError => e
|
525
|
+
puts "Exception when calling UserApi->remove_team_from_user: #{e}"
|
526
|
+
end
|
527
|
+
```
|
528
|
+
|
529
|
+
### Parameters
|
530
|
+
|
531
|
+
|
532
|
+
Name | Type | Description | Notes
|
533
|
+
------------- | ------------- | ------------- | -------------
|
534
|
+
**username** | **String**| A valid username |
|
535
|
+
**body** | [**IdentifiableObject**](IdentifiableObject.md)| The UUID of the team to un-associate username from |
|
536
|
+
|
537
|
+
### Return type
|
538
|
+
|
539
|
+
[**UserPrincipal**](UserPrincipal.md)
|
540
|
+
|
541
|
+
### Authorization
|
542
|
+
|
543
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
544
|
+
|
545
|
+
### HTTP request headers
|
546
|
+
|
547
|
+
- **Content-Type**: application/json
|
548
|
+
- **Accept**: application/json
|
549
|
+
|
550
|
+
|
551
|
+
## update_managed_user
|
552
|
+
|
553
|
+
> ManagedUser update_managed_user(opts)
|
554
|
+
|
555
|
+
Updates a managed user.
|
556
|
+
|
557
|
+
### Example
|
558
|
+
|
559
|
+
```ruby
|
560
|
+
# load the gem
|
561
|
+
require 'dependency-tracker-client'
|
562
|
+
# setup authorization
|
563
|
+
DependencyTracker.configure do |config|
|
564
|
+
# Configure API key authorization: X-Api-Key
|
565
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
566
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
567
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
568
|
+
end
|
569
|
+
|
570
|
+
api_instance = DependencyTracker::UserApi.new
|
571
|
+
opts = {
|
572
|
+
body: DependencyTracker::ManagedUser.new # ManagedUser |
|
573
|
+
}
|
574
|
+
|
575
|
+
begin
|
576
|
+
#Updates a managed user.
|
577
|
+
result = api_instance.update_managed_user(opts)
|
578
|
+
p result
|
579
|
+
rescue DependencyTracker::ApiError => e
|
580
|
+
puts "Exception when calling UserApi->update_managed_user: #{e}"
|
581
|
+
end
|
582
|
+
```
|
583
|
+
|
584
|
+
### Parameters
|
585
|
+
|
586
|
+
|
587
|
+
Name | Type | Description | Notes
|
588
|
+
------------- | ------------- | ------------- | -------------
|
589
|
+
**body** | [**ManagedUser**](ManagedUser.md)| | [optional]
|
590
|
+
|
591
|
+
### Return type
|
592
|
+
|
593
|
+
[**ManagedUser**](ManagedUser.md)
|
594
|
+
|
595
|
+
### Authorization
|
596
|
+
|
597
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
598
|
+
|
599
|
+
### HTTP request headers
|
600
|
+
|
601
|
+
- **Content-Type**: application/json
|
602
|
+
- **Accept**: application/json
|
603
|
+
|
604
|
+
|
605
|
+
## update_self
|
606
|
+
|
607
|
+
> UserPrincipal update_self(opts)
|
608
|
+
|
609
|
+
Updates information about the current logged in user.
|
610
|
+
|
611
|
+
### Example
|
612
|
+
|
613
|
+
```ruby
|
614
|
+
# load the gem
|
615
|
+
require 'dependency-tracker-client'
|
616
|
+
# setup authorization
|
617
|
+
DependencyTracker.configure do |config|
|
618
|
+
# Configure API key authorization: X-Api-Key
|
619
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
620
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
621
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
622
|
+
end
|
623
|
+
|
624
|
+
api_instance = DependencyTracker::UserApi.new
|
625
|
+
opts = {
|
626
|
+
body: DependencyTracker::ManagedUser.new # ManagedUser |
|
627
|
+
}
|
628
|
+
|
629
|
+
begin
|
630
|
+
#Updates information about the current logged in user.
|
631
|
+
result = api_instance.update_self(opts)
|
632
|
+
p result
|
633
|
+
rescue DependencyTracker::ApiError => e
|
634
|
+
puts "Exception when calling UserApi->update_self: #{e}"
|
635
|
+
end
|
636
|
+
```
|
637
|
+
|
638
|
+
### Parameters
|
639
|
+
|
640
|
+
|
641
|
+
Name | Type | Description | Notes
|
642
|
+
------------- | ------------- | ------------- | -------------
|
643
|
+
**body** | [**ManagedUser**](ManagedUser.md)| | [optional]
|
644
|
+
|
645
|
+
### Return type
|
646
|
+
|
647
|
+
[**UserPrincipal**](UserPrincipal.md)
|
648
|
+
|
649
|
+
### Authorization
|
650
|
+
|
651
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
652
|
+
|
653
|
+
### HTTP request headers
|
654
|
+
|
655
|
+
- **Content-Type**: Not defined
|
656
|
+
- **Accept**: application/json
|
657
|
+
|
658
|
+
|
659
|
+
## validate_credentials
|
660
|
+
|
661
|
+
> String validate_credentials(opts)
|
662
|
+
|
663
|
+
Assert login credentials
|
664
|
+
|
665
|
+
Upon a successful login, a JSON Web Token will be returned in the response body. This functionality requires authentication to be enabled.
|
666
|
+
|
667
|
+
### Example
|
668
|
+
|
669
|
+
```ruby
|
670
|
+
# load the gem
|
671
|
+
require 'dependency-tracker-client'
|
672
|
+
# setup authorization
|
673
|
+
DependencyTracker.configure do |config|
|
674
|
+
# Configure API key authorization: X-Api-Key
|
675
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
676
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
677
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
678
|
+
end
|
679
|
+
|
680
|
+
api_instance = DependencyTracker::UserApi.new
|
681
|
+
opts = {
|
682
|
+
username: 'username_example', # String |
|
683
|
+
password: 'password_example' # String |
|
684
|
+
}
|
685
|
+
|
686
|
+
begin
|
687
|
+
#Assert login credentials
|
688
|
+
result = api_instance.validate_credentials(opts)
|
689
|
+
p result
|
690
|
+
rescue DependencyTracker::ApiError => e
|
691
|
+
puts "Exception when calling UserApi->validate_credentials: #{e}"
|
692
|
+
end
|
693
|
+
```
|
694
|
+
|
695
|
+
### Parameters
|
696
|
+
|
697
|
+
|
698
|
+
Name | Type | Description | Notes
|
699
|
+
------------- | ------------- | ------------- | -------------
|
700
|
+
**username** | **String**| | [optional]
|
701
|
+
**password** | **String**| | [optional]
|
702
|
+
|
703
|
+
### Return type
|
704
|
+
|
705
|
+
**String**
|
706
|
+
|
707
|
+
### Authorization
|
708
|
+
|
709
|
+
[X-Api-Key](../README.md#X-Api-Key)
|
710
|
+
|
711
|
+
### HTTP request headers
|
712
|
+
|
713
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
714
|
+
- **Accept**: text/plain
|
715
|
+
|