@sonatype/nexus-iq-api-client 0.156.1 → 0.156.3
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.
- package/.openapi-generator/FILES +1 -0
- package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +5 -5
- package/dist/apis/ApplicationsApi.js +53 -14
- package/dist/apis/ClaimApi.d.ts +1 -1
- package/dist/apis/ClaimApi.js +17 -5
- package/dist/apis/ComponentsApi.d.ts +1 -1
- package/dist/apis/ComponentsApi.js +21 -6
- package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlApi.js +5 -2
- package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
- package/dist/apis/ConfigApi.js +15 -0
- package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
- package/dist/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/apis/ConfigCrowdApi.js +17 -5
- package/dist/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/apis/ConfigJIRAApi.js +11 -2
- package/dist/apis/ConfigMailApi.d.ts +1 -1
- package/dist/apis/ConfigMailApi.js +16 -4
- package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/apis/ConfigProxyServerApi.js +12 -3
- package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
- package/dist/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/apis/ConfigSAMLApi.js +11 -2
- package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/apis/ConfigSourceControlApi.js +11 -2
- package/dist/apis/CycloneDxApi.js +12 -0
- package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/apis/DataRetentionPoliciesApi.js +9 -3
- package/dist/apis/EndpointsApi.js +3 -0
- package/dist/apis/EvaluationApi.d.ts +1 -1
- package/dist/apis/EvaluationApi.js +29 -11
- package/dist/apis/FirewallApi.d.ts +1 -1
- package/dist/apis/FirewallApi.js +30 -6
- package/dist/apis/LabelsApi.d.ts +1 -1
- package/dist/apis/LabelsApi.js +26 -8
- package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/apis/LicenseLegalMetadataApi.js +48 -9
- package/dist/apis/OrganizationsApi.d.ts +1 -1
- package/dist/apis/OrganizationsApi.js +14 -5
- package/dist/apis/PoliciesApi.d.ts +1 -1
- package/dist/apis/PoliciesApi.js +5 -2
- package/dist/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/apis/PolicyViolationsApi.js +25 -7
- package/dist/apis/PolicyWaiverApi.js +3 -0
- package/dist/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/apis/PolicyWaiversApi.js +28 -7
- package/dist/apis/ReportsApi.d.ts +1 -1
- package/dist/apis/ReportsApi.js +29 -8
- package/dist/apis/RepositoriesApi.d.ts +1 -1
- package/dist/apis/RepositoriesApi.js +9 -3
- package/dist/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/apis/RoleMembershipsApi.js +21 -3
- package/dist/apis/RolesApi.d.ts +1 -1
- package/dist/apis/RolesApi.js +5 -2
- package/dist/apis/ScanApi.d.ts +1 -1
- package/dist/apis/ScanApi.js +8 -2
- package/dist/apis/SearchApi.d.ts +1 -1
- package/dist/apis/SearchApi.js +15 -3
- package/dist/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/apis/SecurityOverridesApi.js +5 -2
- package/dist/apis/SourceControlApi.d.ts +1 -1
- package/dist/apis/SourceControlApi.js +22 -7
- package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/apis/SourceControlMetricsApi.js +5 -2
- package/dist/apis/TelemetryApi.js +3 -0
- package/dist/apis/UserTokensApi.d.ts +1 -1
- package/dist/apis/UserTokensApi.js +26 -5
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +21 -6
- package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/apis/VulnerabilitiesApi.js +5 -2
- package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
- package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
- package/dist/esm/apis/ApplicationsApi.js +41 -2
- package/dist/esm/apis/ClaimApi.d.ts +1 -1
- package/dist/esm/apis/ClaimApi.js +13 -1
- package/dist/esm/apis/ComponentsApi.d.ts +1 -1
- package/dist/esm/apis/ComponentsApi.js +16 -1
- package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
- package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
- package/dist/esm/apis/ConfigApi.js +15 -0
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
- package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
- package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
- package/dist/esm/apis/ConfigCrowdApi.js +13 -1
- package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
- package/dist/esm/apis/ConfigJIRAApi.js +10 -1
- package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
- package/dist/esm/apis/ConfigMailApi.js +13 -1
- package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
- package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
- package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSAMLApi.js +10 -1
- package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
- package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
- package/dist/esm/apis/CycloneDxApi.js +12 -0
- package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
- package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
- package/dist/esm/apis/EndpointsApi.js +3 -0
- package/dist/esm/apis/EvaluationApi.d.ts +1 -1
- package/dist/esm/apis/EvaluationApi.js +19 -1
- package/dist/esm/apis/FirewallApi.d.ts +1 -1
- package/dist/esm/apis/FirewallApi.js +25 -1
- package/dist/esm/apis/LabelsApi.d.ts +1 -1
- package/dist/esm/apis/LabelsApi.js +19 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
- package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
- package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
- package/dist/esm/apis/OrganizationsApi.js +10 -1
- package/dist/esm/apis/PoliciesApi.d.ts +1 -1
- package/dist/esm/apis/PoliciesApi.js +4 -1
- package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
- package/dist/esm/apis/PolicyViolationsApi.js +19 -1
- package/dist/esm/apis/PolicyWaiverApi.js +3 -0
- package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
- package/dist/esm/apis/PolicyWaiversApi.js +22 -1
- package/dist/esm/apis/ReportsApi.d.ts +1 -1
- package/dist/esm/apis/ReportsApi.js +22 -1
- package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
- package/dist/esm/apis/RepositoriesApi.js +7 -1
- package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
- package/dist/esm/apis/RoleMembershipsApi.js +19 -1
- package/dist/esm/apis/RolesApi.d.ts +1 -1
- package/dist/esm/apis/RolesApi.js +4 -1
- package/dist/esm/apis/ScanApi.d.ts +1 -1
- package/dist/esm/apis/ScanApi.js +7 -1
- package/dist/esm/apis/SearchApi.d.ts +1 -1
- package/dist/esm/apis/SearchApi.js +13 -1
- package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
- package/dist/esm/apis/SecurityOverridesApi.js +4 -1
- package/dist/esm/apis/SourceControlApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlApi.js +16 -1
- package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
- package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
- package/dist/esm/apis/TelemetryApi.js +3 -0
- package/dist/esm/apis/UserTokensApi.d.ts +1 -1
- package/dist/esm/apis/UserTokensApi.js +22 -1
- package/dist/esm/apis/UsersApi.d.ts +1 -1
- package/dist/esm/apis/UsersApi.js +16 -1
- package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
- package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/models/GetApplicationsDefaultResponse.d.ts +32 -0
- package/dist/esm/models/GetApplicationsDefaultResponse.js +44 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.js +13 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/GetApplicationsDefaultResponse.d.ts +32 -0
- package/dist/models/GetApplicationsDefaultResponse.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.js +13 -5
- package/package.json +1 -1
- package/src/apis/ApplicationCategoriesApi.ts +32 -2
- package/src/apis/ApplicationsApi.ts +49 -7
- package/src/apis/ClaimApi.ts +14 -2
- package/src/apis/ComponentsApi.ts +17 -2
- package/src/apis/CompositeSourceControlApi.ts +5 -2
- package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
- package/src/apis/ConfigApi.ts +15 -0
- package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
- package/src/apis/ConfigCrowdApi.ts +14 -2
- package/src/apis/ConfigJIRAApi.ts +11 -2
- package/src/apis/ConfigMailApi.ts +14 -2
- package/src/apis/ConfigProxyServerApi.ts +11 -2
- package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
- package/src/apis/ConfigSAMLApi.ts +11 -2
- package/src/apis/ConfigSourceControlApi.ts +11 -2
- package/src/apis/CycloneDxApi.ts +12 -0
- package/src/apis/DataRetentionPoliciesApi.ts +8 -2
- package/src/apis/EndpointsApi.ts +3 -0
- package/src/apis/EvaluationApi.ts +20 -2
- package/src/apis/FirewallApi.ts +26 -2
- package/src/apis/LabelsApi.ts +20 -2
- package/src/apis/LicenseLegalMetadataApi.ts +41 -2
- package/src/apis/OrganizationsApi.ts +11 -2
- package/src/apis/PoliciesApi.ts +5 -2
- package/src/apis/PolicyViolationsApi.ts +20 -2
- package/src/apis/PolicyWaiverApi.ts +3 -0
- package/src/apis/PolicyWaiversApi.ts +23 -2
- package/src/apis/ReportsApi.ts +23 -2
- package/src/apis/RepositoriesApi.ts +8 -2
- package/src/apis/RoleMembershipsApi.ts +20 -2
- package/src/apis/RolesApi.ts +5 -2
- package/src/apis/ScanApi.ts +8 -2
- package/src/apis/SearchApi.ts +14 -2
- package/src/apis/SecurityOverridesApi.ts +5 -2
- package/src/apis/SourceControlApi.ts +17 -2
- package/src/apis/SourceControlMetricsApi.ts +5 -2
- package/src/apis/TelemetryApi.ts +3 -0
- package/src/apis/UserTokensApi.ts +23 -2
- package/src/apis/UsersApi.ts +17 -2
- package/src/apis/VulnerabilitiesApi.ts +5 -2
- package/src/index.ts +2 -2
- package/src/models/GetApplicationsDefaultResponse.ts +72 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +12 -6
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, } from '../models';
|
|
24
|
+
import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, ApiApplicationListDTOFromJSON, ApiDependencyTreeResponseDTOFromJSON, ApiMoveApplicationResponseDTOV2FromJSON, ApiPolicyViolationDiffDTOFromJSON, ApiReportPolicyDataDTOV2FromJSON, ApiReportRawDataDTOV2FromJSON, GetApplicationsDefaultResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -33,6 +33,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
35
|
headerParameters['Content-Type'] = 'application/json';
|
|
36
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
37
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
38
|
+
}
|
|
36
39
|
const response = yield this.request({
|
|
37
40
|
path: `/api/v2/applications`,
|
|
38
41
|
method: 'POST',
|
|
@@ -66,6 +69,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
66
69
|
queryParameters['clonedApplicationPublicId'] = requestParameters.clonedApplicationPublicId;
|
|
67
70
|
}
|
|
68
71
|
const headerParameters = {};
|
|
72
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
73
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
74
|
+
}
|
|
69
75
|
const response = yield this.request({
|
|
70
76
|
path: `/api/v2/applications/{sourceApplicationId}/clone`.replace(`{${"sourceApplicationId"}}`, encodeURIComponent(String(requestParameters.sourceApplicationId))),
|
|
71
77
|
method: 'POST',
|
|
@@ -92,6 +98,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
92
98
|
}
|
|
93
99
|
const queryParameters = {};
|
|
94
100
|
const headerParameters = {};
|
|
101
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
102
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
103
|
+
}
|
|
95
104
|
const response = yield this.request({
|
|
96
105
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
97
106
|
method: 'DELETE',
|
|
@@ -117,6 +126,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
117
126
|
}
|
|
118
127
|
const queryParameters = {};
|
|
119
128
|
const headerParameters = {};
|
|
129
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
130
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
131
|
+
}
|
|
120
132
|
const response = yield this.request({
|
|
121
133
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
122
134
|
method: 'GET',
|
|
@@ -146,13 +158,16 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
146
158
|
queryParameters['includeCategories'] = requestParameters.includeCategories;
|
|
147
159
|
}
|
|
148
160
|
const headerParameters = {};
|
|
161
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
162
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
163
|
+
}
|
|
149
164
|
const response = yield this.request({
|
|
150
165
|
path: `/api/v2/applications`,
|
|
151
166
|
method: 'GET',
|
|
152
167
|
headers: headerParameters,
|
|
153
168
|
query: queryParameters,
|
|
154
169
|
}, initOverrides);
|
|
155
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetApplicationsDefaultResponseFromJSON(jsonValue));
|
|
156
171
|
});
|
|
157
172
|
}
|
|
158
173
|
/**
|
|
@@ -172,6 +187,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
172
187
|
}
|
|
173
188
|
const queryParameters = {};
|
|
174
189
|
const headerParameters = {};
|
|
190
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
191
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
192
|
+
}
|
|
175
193
|
const response = yield this.request({
|
|
176
194
|
path: `/api/v2/applications/organization/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
177
195
|
method: 'GET',
|
|
@@ -201,6 +219,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
201
219
|
}
|
|
202
220
|
const queryParameters = {};
|
|
203
221
|
const headerParameters = {};
|
|
222
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
223
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
224
|
+
}
|
|
204
225
|
const response = yield this.request({
|
|
205
226
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
206
227
|
method: 'GET',
|
|
@@ -229,6 +250,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
229
250
|
}
|
|
230
251
|
const queryParameters = {};
|
|
231
252
|
const headerParameters = {};
|
|
253
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
254
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
255
|
+
}
|
|
232
256
|
const response = yield this.request({
|
|
233
257
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/dependencyTree`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
234
258
|
method: 'GET',
|
|
@@ -267,6 +291,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
267
291
|
queryParameters['toPolicyEvaluationId'] = requestParameters.toPolicyEvaluationId;
|
|
268
292
|
}
|
|
269
293
|
const headerParameters = {};
|
|
294
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
295
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
296
|
+
}
|
|
270
297
|
const response = yield this.request({
|
|
271
298
|
path: `/api/v2/applications/{applicationPublicId}/reports/policyViolations/diff`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))),
|
|
272
299
|
method: 'GET',
|
|
@@ -296,6 +323,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
296
323
|
}
|
|
297
324
|
const queryParameters = {};
|
|
298
325
|
const headerParameters = {};
|
|
326
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
327
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
328
|
+
}
|
|
299
329
|
const response = yield this.request({
|
|
300
330
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/policy`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
301
331
|
method: 'GET',
|
|
@@ -325,6 +355,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
325
355
|
}
|
|
326
356
|
const queryParameters = {};
|
|
327
357
|
const headerParameters = {};
|
|
358
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
359
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
360
|
+
}
|
|
328
361
|
const response = yield this.request({
|
|
329
362
|
path: `/api/v2/applications/{applicationPublicId}/reports/{scanId}/raw`.replace(`{${"applicationPublicId"}}`, encodeURIComponent(String(requestParameters.applicationPublicId))).replace(`{${"scanId"}}`, encodeURIComponent(String(requestParameters.scanId))),
|
|
330
363
|
method: 'GET',
|
|
@@ -354,6 +387,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
354
387
|
}
|
|
355
388
|
const queryParameters = {};
|
|
356
389
|
const headerParameters = {};
|
|
390
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
391
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
392
|
+
}
|
|
357
393
|
const response = yield this.request({
|
|
358
394
|
path: `/api/v2/applications/{applicationId}/move/organization/{organizationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
359
395
|
method: 'POST',
|
|
@@ -381,6 +417,9 @@ export class ApplicationsApi extends runtime.BaseAPI {
|
|
|
381
417
|
const queryParameters = {};
|
|
382
418
|
const headerParameters = {};
|
|
383
419
|
headerParameters['Content-Type'] = 'application/json';
|
|
420
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
421
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
422
|
+
}
|
|
384
423
|
const response = yield this.request({
|
|
385
424
|
path: `/api/v2/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
386
425
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models';
|
|
13
|
+
import type { ApiHashComponentIdentifierDTO, ApiHashComponentIdentifiersDTO } from '../models/index';
|
|
14
14
|
export interface DeleteRequest {
|
|
15
15
|
hash: string;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiHashComponentIdentifierDTOFromJSON, ApiHashComponentIdentifierDTOToJSON, ApiHashComponentIdentifiersDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiHashComponentIdentifierDTOFromJSON, ApiHashComponentIdentifierDTOToJSON, ApiHashComponentIdentifiersDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -35,6 +35,9 @@ export class ClaimApi extends runtime.BaseAPI {
|
|
|
35
35
|
}
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
}
|
|
38
41
|
const response = yield this.request({
|
|
39
42
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
40
43
|
method: 'DELETE',
|
|
@@ -60,6 +63,9 @@ export class ClaimApi extends runtime.BaseAPI {
|
|
|
60
63
|
}
|
|
61
64
|
const queryParameters = {};
|
|
62
65
|
const headerParameters = {};
|
|
66
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
67
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
68
|
+
}
|
|
63
69
|
const response = yield this.request({
|
|
64
70
|
path: `/api/v2/claim/components/{hash}`.replace(`{${"hash"}}`, encodeURIComponent(String(requestParameters.hash))),
|
|
65
71
|
method: 'GET',
|
|
@@ -83,6 +89,9 @@ export class ClaimApi extends runtime.BaseAPI {
|
|
|
83
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
90
|
const queryParameters = {};
|
|
85
91
|
const headerParameters = {};
|
|
92
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
93
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
94
|
+
}
|
|
86
95
|
const response = yield this.request({
|
|
87
96
|
path: `/api/v2/claim/components`,
|
|
88
97
|
method: 'GET',
|
|
@@ -107,6 +116,9 @@ export class ClaimApi extends runtime.BaseAPI {
|
|
|
107
116
|
const queryParameters = {};
|
|
108
117
|
const headerParameters = {};
|
|
109
118
|
headerParameters['Content-Type'] = 'application/json';
|
|
119
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
120
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
121
|
+
}
|
|
110
122
|
const response = yield this.request({
|
|
111
123
|
path: `/api/v2/claim/components`,
|
|
112
124
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationDTO } from '../models';
|
|
13
|
+
import type { ApiComponentDTOV2, ApiComponentDetailsRequestDTOV2, ApiComponentDetailsResultDTOV2, ApiComponentOrPurlIdentifierDTOV2, ApiComponentRemediationDTO } from '../models/index';
|
|
14
14
|
export interface DeleteComponentLabelRequest {
|
|
15
15
|
ownerType: DeleteComponentLabelOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -44,6 +44,9 @@ export class ComponentsApi extends runtime.BaseAPI {
|
|
|
44
44
|
}
|
|
45
45
|
const queryParameters = {};
|
|
46
46
|
const headerParameters = {};
|
|
47
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
48
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
49
|
+
}
|
|
47
50
|
const response = yield this.request({
|
|
48
51
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
49
52
|
method: 'DELETE',
|
|
@@ -67,6 +70,9 @@ export class ComponentsApi extends runtime.BaseAPI {
|
|
|
67
70
|
const queryParameters = {};
|
|
68
71
|
const headerParameters = {};
|
|
69
72
|
headerParameters['Content-Type'] = 'application/json';
|
|
73
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
74
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
}
|
|
70
76
|
const response = yield this.request({
|
|
71
77
|
path: `/api/v2/components/details`,
|
|
72
78
|
method: 'POST',
|
|
@@ -92,6 +98,9 @@ export class ComponentsApi extends runtime.BaseAPI {
|
|
|
92
98
|
const queryParameters = {};
|
|
93
99
|
const headerParameters = {};
|
|
94
100
|
headerParameters['Content-Type'] = 'application/json';
|
|
101
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
102
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
103
|
+
}
|
|
95
104
|
const response = yield this.request({
|
|
96
105
|
path: `/api/v2/components/versions`,
|
|
97
106
|
method: 'POST',
|
|
@@ -132,6 +141,9 @@ export class ComponentsApi extends runtime.BaseAPI {
|
|
|
132
141
|
}
|
|
133
142
|
const headerParameters = {};
|
|
134
143
|
headerParameters['Content-Type'] = 'application/json';
|
|
144
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
145
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
146
|
+
}
|
|
135
147
|
const response = yield this.request({
|
|
136
148
|
path: `/api/v2/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
137
149
|
method: 'POST',
|
|
@@ -168,6 +180,9 @@ export class ComponentsApi extends runtime.BaseAPI {
|
|
|
168
180
|
}
|
|
169
181
|
const queryParameters = {};
|
|
170
182
|
const headerParameters = {};
|
|
183
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
184
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
185
|
+
}
|
|
171
186
|
const response = yield this.request({
|
|
172
187
|
path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
|
|
173
188
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiCompositeSourceControlDTO } from '../models';
|
|
13
|
+
import type { ApiCompositeSourceControlDTO } from '../models/index';
|
|
14
14
|
export interface GetCompositeSourceControlByOwnerRequest {
|
|
15
15
|
ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiCompositeSourceControlDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiCompositeSourceControlDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -38,6 +38,9 @@ export class CompositeSourceControlApi extends runtime.BaseAPI {
|
|
|
38
38
|
}
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
42
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
43
|
+
}
|
|
41
44
|
const response = yield this.request({
|
|
42
45
|
path: `/api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
43
46
|
method: 'GET',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ConfigurationValidationResult } from '../models';
|
|
13
|
+
import type { ConfigurationValidationResult } from '../models/index';
|
|
14
14
|
export interface ValidateSourceControlConfigRequest {
|
|
15
15
|
applicationId: string;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ConfigurationValidationResultFromJSON, } from '../models';
|
|
24
|
+
import { ConfigurationValidationResultFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -35,6 +35,9 @@ export class CompositeSourceControlConfigValidatorApi extends runtime.BaseAPI {
|
|
|
35
35
|
}
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
39
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
40
|
+
}
|
|
38
41
|
const response = yield this.request({
|
|
39
42
|
path: `/api/v2/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
40
43
|
method: 'GET',
|
|
@@ -34,6 +34,9 @@ export class ConfigApi extends runtime.BaseAPI {
|
|
|
34
34
|
queryParameters['property'] = requestParameters.property;
|
|
35
35
|
}
|
|
36
36
|
const headerParameters = {};
|
|
37
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
38
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
39
|
+
}
|
|
37
40
|
const response = yield this.request({
|
|
38
41
|
path: `/api/v2/config`,
|
|
39
42
|
method: 'DELETE',
|
|
@@ -59,6 +62,9 @@ export class ConfigApi extends runtime.BaseAPI {
|
|
|
59
62
|
}
|
|
60
63
|
const queryParameters = {};
|
|
61
64
|
const headerParameters = {};
|
|
65
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
66
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
67
|
+
}
|
|
62
68
|
const response = yield this.request({
|
|
63
69
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
64
70
|
method: 'DELETE',
|
|
@@ -84,6 +90,9 @@ export class ConfigApi extends runtime.BaseAPI {
|
|
|
84
90
|
}
|
|
85
91
|
const queryParameters = {};
|
|
86
92
|
const headerParameters = {};
|
|
93
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
94
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
95
|
+
}
|
|
87
96
|
const response = yield this.request({
|
|
88
97
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
89
98
|
method: 'POST',
|
|
@@ -109,6 +118,9 @@ export class ConfigApi extends runtime.BaseAPI {
|
|
|
109
118
|
queryParameters['property'] = requestParameters.property;
|
|
110
119
|
}
|
|
111
120
|
const headerParameters = {};
|
|
121
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
122
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
123
|
+
}
|
|
112
124
|
const response = yield this.request({
|
|
113
125
|
path: `/api/v2/config`,
|
|
114
126
|
method: 'GET',
|
|
@@ -133,6 +145,9 @@ export class ConfigApi extends runtime.BaseAPI {
|
|
|
133
145
|
const queryParameters = {};
|
|
134
146
|
const headerParameters = {};
|
|
135
147
|
headerParameters['Content-Type'] = 'application/json';
|
|
148
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
149
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
150
|
+
}
|
|
136
151
|
const response = yield this.request({
|
|
137
152
|
path: `/api/v2/config`,
|
|
138
153
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models';
|
|
13
|
+
import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models/index';
|
|
14
14
|
export interface AddArtifactoryConnectionRequest {
|
|
15
15
|
ownerType: AddArtifactoryConnectionOwnerTypeEnum;
|
|
16
16
|
internalOwnerId: string;
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -39,6 +39,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
43
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
44
|
+
}
|
|
42
45
|
const response = yield this.request({
|
|
43
46
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
44
47
|
method: 'POST',
|
|
@@ -72,6 +75,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
72
75
|
}
|
|
73
76
|
const queryParameters = {};
|
|
74
77
|
const headerParameters = {};
|
|
78
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
79
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
80
|
+
}
|
|
75
81
|
const response = yield this.request({
|
|
76
82
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
77
83
|
method: 'DELETE',
|
|
@@ -103,6 +109,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
103
109
|
}
|
|
104
110
|
const queryParameters = {};
|
|
105
111
|
const headerParameters = {};
|
|
112
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
113
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
114
|
+
}
|
|
106
115
|
const response = yield this.request({
|
|
107
116
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
108
117
|
method: 'GET',
|
|
@@ -135,6 +144,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
135
144
|
queryParameters['inherit'] = requestParameters.inherit;
|
|
136
145
|
}
|
|
137
146
|
const headerParameters = {};
|
|
147
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
148
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
149
|
+
}
|
|
138
150
|
const response = yield this.request({
|
|
139
151
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
140
152
|
method: 'GET',
|
|
@@ -165,6 +177,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
165
177
|
const queryParameters = {};
|
|
166
178
|
const headerParameters = {};
|
|
167
179
|
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
181
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
182
|
+
}
|
|
168
183
|
const response = yield this.request({
|
|
169
184
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
170
185
|
method: 'POST',
|
|
@@ -198,6 +213,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
198
213
|
}
|
|
199
214
|
const queryParameters = {};
|
|
200
215
|
const headerParameters = {};
|
|
216
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
217
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
218
|
+
}
|
|
201
219
|
const response = yield this.request({
|
|
202
220
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
203
221
|
method: 'POST',
|
|
@@ -231,6 +249,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
231
249
|
const queryParameters = {};
|
|
232
250
|
const headerParameters = {};
|
|
233
251
|
headerParameters['Content-Type'] = 'application/json';
|
|
252
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
253
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
254
|
+
}
|
|
234
255
|
const response = yield this.request({
|
|
235
256
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
|
|
236
257
|
method: 'PUT',
|
|
@@ -262,6 +283,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
|
|
|
262
283
|
const queryParameters = {};
|
|
263
284
|
const headerParameters = {};
|
|
264
285
|
headerParameters['Content-Type'] = 'application/json';
|
|
286
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
287
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
288
|
+
}
|
|
265
289
|
const response = yield this.request({
|
|
266
290
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
267
291
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models';
|
|
13
|
+
import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models/index';
|
|
14
14
|
export interface InsertOrUpdateCrowdConfigurationRequest {
|
|
15
15
|
apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/config/crowd`,
|
|
37
40
|
method: 'DELETE',
|
|
@@ -54,6 +57,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
54
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
58
|
const queryParameters = {};
|
|
56
59
|
const headerParameters = {};
|
|
60
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
61
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
62
|
+
}
|
|
57
63
|
const response = yield this.request({
|
|
58
64
|
path: `/api/v2/config/crowd`,
|
|
59
65
|
method: 'GET',
|
|
@@ -78,6 +84,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
78
84
|
const queryParameters = {};
|
|
79
85
|
const headerParameters = {};
|
|
80
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
81
90
|
const response = yield this.request({
|
|
82
91
|
path: `/api/v2/config/crowd`,
|
|
83
92
|
method: 'PUT',
|
|
@@ -102,6 +111,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
|
|
|
102
111
|
const queryParameters = {};
|
|
103
112
|
const headerParameters = {};
|
|
104
113
|
headerParameters['Content-Type'] = 'application/json';
|
|
114
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
115
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
116
|
+
}
|
|
105
117
|
const response = yield this.request({
|
|
106
118
|
path: `/api/v2/config/crowd/test`,
|
|
107
119
|
method: 'POST',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiJiraConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiJiraConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration1Request {
|
|
15
15
|
body?: object;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ApiJiraConfigurationDTOFromJSON, } from '../models';
|
|
24
|
+
import { ApiJiraConfigurationDTOFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,6 +32,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
|
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
const queryParameters = {};
|
|
34
34
|
const headerParameters = {};
|
|
35
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
36
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
37
|
+
}
|
|
35
38
|
const response = yield this.request({
|
|
36
39
|
path: `/api/v2/config/jira`,
|
|
37
40
|
method: 'DELETE',
|
|
@@ -54,6 +57,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
|
|
|
54
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
58
|
const queryParameters = {};
|
|
56
59
|
const headerParameters = {};
|
|
60
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
61
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
62
|
+
}
|
|
57
63
|
const response = yield this.request({
|
|
58
64
|
path: `/api/v2/config/jira`,
|
|
59
65
|
method: 'GET',
|
|
@@ -78,6 +84,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
|
|
|
78
84
|
const queryParameters = {};
|
|
79
85
|
const headerParameters = {};
|
|
80
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
81
90
|
const response = yield this.request({
|
|
82
91
|
path: `/api/v2/config/jira`,
|
|
83
92
|
method: 'PUT',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiMailConfigurationDTO } from '../models';
|
|
13
|
+
import type { ApiMailConfigurationDTO } from '../models/index';
|
|
14
14
|
export interface SetConfiguration2Request {
|
|
15
15
|
apiMailConfigurationDTO?: ApiMailConfigurationDTO;
|
|
16
16
|
}
|