@sonatype/nexus-iq-api-client 0.156.1 → 0.156.2
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/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
- package/dist/apis/ApplicationCategoriesApi.js +42 -12
- package/dist/apis/ApplicationsApi.d.ts +1 -1
- 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 +1 -1
- package/dist/esm/apis/ApplicationsApi.js +40 -1
- 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/runtime.js +13 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/runtime.js +13 -5
- package/package.json +1 -1
- package/src/apis/ApplicationCategoriesApi.ts +32 -2
- package/src/apis/ApplicationsApi.ts +41 -2
- 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/runtime.ts +12 -6
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
ApiComponentDetailsResultDTOV2,
|
|
21
21
|
ApiComponentOrPurlIdentifierDTOV2,
|
|
22
22
|
ApiComponentRemediationDTO,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
import {
|
|
25
25
|
ApiComponentDTOV2FromJSON,
|
|
26
26
|
ApiComponentDTOV2ToJSON,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
ApiComponentOrPurlIdentifierDTOV2ToJSON,
|
|
33
33
|
ApiComponentRemediationDTOFromJSON,
|
|
34
34
|
ApiComponentRemediationDTOToJSON,
|
|
35
|
-
} from '../models';
|
|
35
|
+
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface DeleteComponentLabelRequest {
|
|
38
38
|
ownerType: DeleteComponentLabelOwnerTypeEnum;
|
|
@@ -178,6 +178,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
178
178
|
|
|
179
179
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
180
|
|
|
181
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
182
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
183
|
+
}
|
|
181
184
|
const response = await this.request({
|
|
182
185
|
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))),
|
|
183
186
|
method: 'DELETE',
|
|
@@ -203,6 +206,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
203
206
|
|
|
204
207
|
headerParameters['Content-Type'] = 'application/json';
|
|
205
208
|
|
|
209
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
210
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
211
|
+
}
|
|
206
212
|
const response = await this.request({
|
|
207
213
|
path: `/api/v2/components/details`,
|
|
208
214
|
method: 'POST',
|
|
@@ -230,6 +236,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
230
236
|
|
|
231
237
|
headerParameters['Content-Type'] = 'application/json';
|
|
232
238
|
|
|
239
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
240
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
241
|
+
}
|
|
233
242
|
const response = await this.request({
|
|
234
243
|
path: `/api/v2/components/versions`,
|
|
235
244
|
method: 'POST',
|
|
@@ -277,6 +286,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
277
286
|
|
|
278
287
|
headerParameters['Content-Type'] = 'application/json';
|
|
279
288
|
|
|
289
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
290
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
291
|
+
}
|
|
280
292
|
const response = await this.request({
|
|
281
293
|
path: `/api/v2/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
|
|
282
294
|
method: 'POST',
|
|
@@ -318,6 +330,9 @@ export class ComponentsApi extends runtime.BaseAPI implements ComponentsApiInter
|
|
|
318
330
|
|
|
319
331
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
320
332
|
|
|
333
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
334
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
335
|
+
}
|
|
321
336
|
const response = await this.request({
|
|
322
337
|
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))),
|
|
323
338
|
method: 'POST',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiCompositeSourceControlDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiCompositeSourceControlDTOFromJSON,
|
|
22
22
|
ApiCompositeSourceControlDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface GetCompositeSourceControlByOwnerRequest {
|
|
26
26
|
ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
|
|
@@ -70,6 +70,9 @@ export class CompositeSourceControlApi extends runtime.BaseAPI implements Compos
|
|
|
70
70
|
|
|
71
71
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
72
|
|
|
73
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
74
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
75
|
+
}
|
|
73
76
|
const response = await this.request({
|
|
74
77
|
path: `/api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
75
78
|
method: 'GET',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ConfigurationValidationResult,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ConfigurationValidationResultFromJSON,
|
|
22
22
|
ConfigurationValidationResultToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface ValidateSourceControlConfigRequest {
|
|
26
26
|
applicationId: string;
|
|
@@ -64,6 +64,9 @@ export class CompositeSourceControlConfigValidatorApi extends runtime.BaseAPI im
|
|
|
64
64
|
|
|
65
65
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
66
|
|
|
67
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
68
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
69
|
+
}
|
|
67
70
|
const response = await this.request({
|
|
68
71
|
path: `/api/v2/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
69
72
|
method: 'GET',
|
package/src/apis/ConfigApi.ts
CHANGED
|
@@ -125,6 +125,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
125
125
|
|
|
126
126
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
127
127
|
|
|
128
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
129
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
130
|
+
}
|
|
128
131
|
const response = await this.request({
|
|
129
132
|
path: `/api/v2/config`,
|
|
130
133
|
method: 'DELETE',
|
|
@@ -152,6 +155,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
152
155
|
|
|
153
156
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
154
157
|
|
|
158
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
159
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
160
|
+
}
|
|
155
161
|
const response = await this.request({
|
|
156
162
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
157
163
|
method: 'DELETE',
|
|
@@ -179,6 +185,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
179
185
|
|
|
180
186
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
181
187
|
|
|
188
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
189
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
190
|
+
}
|
|
182
191
|
const response = await this.request({
|
|
183
192
|
path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
|
|
184
193
|
method: 'POST',
|
|
@@ -206,6 +215,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
206
215
|
|
|
207
216
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
208
217
|
|
|
218
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
219
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
220
|
+
}
|
|
209
221
|
const response = await this.request({
|
|
210
222
|
path: `/api/v2/config`,
|
|
211
223
|
method: 'GET',
|
|
@@ -232,6 +244,9 @@ export class ConfigApi extends runtime.BaseAPI implements ConfigApiInterface {
|
|
|
232
244
|
|
|
233
245
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
246
|
|
|
247
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
248
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
249
|
+
}
|
|
235
250
|
const response = await this.request({
|
|
236
251
|
path: `/api/v2/config`,
|
|
237
252
|
method: 'PUT',
|
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
ApiArtifactoryConnectionStatusRequestDTO,
|
|
20
20
|
ApiOwnerArtifactoryConnectionDTO,
|
|
21
21
|
ApiStatusDTO,
|
|
22
|
-
} from '../models';
|
|
22
|
+
} from '../models/index';
|
|
23
23
|
import {
|
|
24
24
|
ApiArtifactoryConnectionDTOFromJSON,
|
|
25
25
|
ApiArtifactoryConnectionDTOToJSON,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ApiOwnerArtifactoryConnectionDTOToJSON,
|
|
30
30
|
ApiStatusDTOFromJSON,
|
|
31
31
|
ApiStatusDTOToJSON,
|
|
32
|
-
} from '../models';
|
|
32
|
+
} from '../models/index';
|
|
33
33
|
|
|
34
34
|
export interface AddArtifactoryConnectionRequest {
|
|
35
35
|
ownerType: AddArtifactoryConnectionOwnerTypeEnum;
|
|
@@ -232,6 +232,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
232
232
|
|
|
233
233
|
headerParameters['Content-Type'] = 'application/json';
|
|
234
234
|
|
|
235
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
236
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
237
|
+
}
|
|
235
238
|
const response = await this.request({
|
|
236
239
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
237
240
|
method: 'POST',
|
|
@@ -269,6 +272,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
269
272
|
|
|
270
273
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
271
274
|
|
|
275
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
276
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
277
|
+
}
|
|
272
278
|
const response = await this.request({
|
|
273
279
|
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))),
|
|
274
280
|
method: 'DELETE',
|
|
@@ -304,6 +310,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
304
310
|
|
|
305
311
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
312
|
|
|
313
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
314
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
315
|
+
}
|
|
307
316
|
const response = await this.request({
|
|
308
317
|
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))),
|
|
309
318
|
method: 'GET',
|
|
@@ -340,6 +349,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
340
349
|
|
|
341
350
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
342
351
|
|
|
352
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
353
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
354
|
+
}
|
|
343
355
|
const response = await this.request({
|
|
344
356
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
345
357
|
method: 'GET',
|
|
@@ -374,6 +386,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
374
386
|
|
|
375
387
|
headerParameters['Content-Type'] = 'application/json';
|
|
376
388
|
|
|
389
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
390
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
391
|
+
}
|
|
377
392
|
const response = await this.request({
|
|
378
393
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
379
394
|
method: 'POST',
|
|
@@ -411,6 +426,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
411
426
|
|
|
412
427
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
413
428
|
|
|
429
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
430
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
431
|
+
}
|
|
414
432
|
const response = await this.request({
|
|
415
433
|
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))),
|
|
416
434
|
method: 'POST',
|
|
@@ -449,6 +467,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
449
467
|
|
|
450
468
|
headerParameters['Content-Type'] = 'application/json';
|
|
451
469
|
|
|
470
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
471
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
472
|
+
}
|
|
452
473
|
const response = await this.request({
|
|
453
474
|
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))),
|
|
454
475
|
method: 'PUT',
|
|
@@ -484,6 +505,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI implements C
|
|
|
484
505
|
|
|
485
506
|
headerParameters['Content-Type'] = 'application/json';
|
|
486
507
|
|
|
508
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
509
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
510
|
+
}
|
|
487
511
|
const response = await this.request({
|
|
488
512
|
path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
|
|
489
513
|
method: 'PUT',
|
|
@@ -17,13 +17,13 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiCrowdConfigurationDTO,
|
|
19
19
|
ApiStatusDTO,
|
|
20
|
-
} from '../models';
|
|
20
|
+
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
ApiCrowdConfigurationDTOFromJSON,
|
|
23
23
|
ApiCrowdConfigurationDTOToJSON,
|
|
24
24
|
ApiStatusDTOFromJSON,
|
|
25
25
|
ApiStatusDTOToJSON,
|
|
26
|
-
} from '../models';
|
|
26
|
+
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface InsertOrUpdateCrowdConfigurationRequest {
|
|
29
29
|
apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
|
|
@@ -104,6 +104,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
|
|
|
104
104
|
|
|
105
105
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
106
106
|
|
|
107
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
108
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
109
|
+
}
|
|
107
110
|
const response = await this.request({
|
|
108
111
|
path: `/api/v2/config/crowd`,
|
|
109
112
|
method: 'DELETE',
|
|
@@ -127,6 +130,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
|
|
|
127
130
|
|
|
128
131
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
129
132
|
|
|
133
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
134
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
135
|
+
}
|
|
130
136
|
const response = await this.request({
|
|
131
137
|
path: `/api/v2/config/crowd`,
|
|
132
138
|
method: 'GET',
|
|
@@ -153,6 +159,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
|
|
|
153
159
|
|
|
154
160
|
headerParameters['Content-Type'] = 'application/json';
|
|
155
161
|
|
|
162
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
163
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
164
|
+
}
|
|
156
165
|
const response = await this.request({
|
|
157
166
|
path: `/api/v2/config/crowd`,
|
|
158
167
|
method: 'PUT',
|
|
@@ -179,6 +188,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI implements ConfigCrowdApiInt
|
|
|
179
188
|
|
|
180
189
|
headerParameters['Content-Type'] = 'application/json';
|
|
181
190
|
|
|
191
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
192
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
193
|
+
}
|
|
182
194
|
const response = await this.request({
|
|
183
195
|
path: `/api/v2/config/crowd/test`,
|
|
184
196
|
method: 'POST',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiJiraConfigurationDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiJiraConfigurationDTOFromJSON,
|
|
22
22
|
ApiJiraConfigurationDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface SetConfiguration1Request {
|
|
26
26
|
body?: object;
|
|
@@ -84,6 +84,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
|
|
|
84
84
|
|
|
85
85
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
86
|
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
87
90
|
const response = await this.request({
|
|
88
91
|
path: `/api/v2/config/jira`,
|
|
89
92
|
method: 'DELETE',
|
|
@@ -107,6 +110,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
|
|
|
107
110
|
|
|
108
111
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
112
|
|
|
113
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
114
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
115
|
+
}
|
|
110
116
|
const response = await this.request({
|
|
111
117
|
path: `/api/v2/config/jira`,
|
|
112
118
|
method: 'GET',
|
|
@@ -133,6 +139,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI implements ConfigJIRAApiInter
|
|
|
133
139
|
|
|
134
140
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
141
|
|
|
142
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
143
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
144
|
+
}
|
|
136
145
|
const response = await this.request({
|
|
137
146
|
path: `/api/v2/config/jira`,
|
|
138
147
|
method: 'PUT',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiMailConfigurationDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiMailConfigurationDTOFromJSON,
|
|
22
22
|
ApiMailConfigurationDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface SetConfiguration2Request {
|
|
26
26
|
apiMailConfigurationDTO?: ApiMailConfigurationDTO;
|
|
@@ -103,6 +103,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
|
|
|
103
103
|
|
|
104
104
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
105
105
|
|
|
106
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
107
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
108
|
+
}
|
|
106
109
|
const response = await this.request({
|
|
107
110
|
path: `/api/v2/config/mail`,
|
|
108
111
|
method: 'DELETE',
|
|
@@ -126,6 +129,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
|
|
|
126
129
|
|
|
127
130
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
131
|
|
|
132
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
133
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
134
|
+
}
|
|
129
135
|
const response = await this.request({
|
|
130
136
|
path: `/api/v2/config/mail`,
|
|
131
137
|
method: 'GET',
|
|
@@ -152,6 +158,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
|
|
|
152
158
|
|
|
153
159
|
headerParameters['Content-Type'] = 'application/json';
|
|
154
160
|
|
|
161
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
162
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
163
|
+
}
|
|
155
164
|
const response = await this.request({
|
|
156
165
|
path: `/api/v2/config/mail`,
|
|
157
166
|
method: 'PUT',
|
|
@@ -182,6 +191,9 @@ export class ConfigMailApi extends runtime.BaseAPI implements ConfigMailApiInter
|
|
|
182
191
|
|
|
183
192
|
headerParameters['Content-Type'] = 'application/json';
|
|
184
193
|
|
|
194
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
195
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
196
|
+
}
|
|
185
197
|
const response = await this.request({
|
|
186
198
|
path: `/api/v2/config/mail/test/{recipientEmail}`.replace(`{${"recipientEmail"}}`, encodeURIComponent(String(requestParameters.recipientEmail))),
|
|
187
199
|
method: 'POST',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiProxyServerConfigurationDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiProxyServerConfigurationDTOFromJSON,
|
|
22
22
|
ApiProxyServerConfigurationDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface SetConfiguration3Request {
|
|
26
26
|
apiProxyServerConfigurationDTO?: ApiProxyServerConfigurationDTO;
|
|
@@ -84,6 +84,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
|
|
|
84
84
|
|
|
85
85
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
86
|
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
87
90
|
const response = await this.request({
|
|
88
91
|
path: `/api/v2/config/httpProxyServer`,
|
|
89
92
|
method: 'DELETE',
|
|
@@ -107,6 +110,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
|
|
|
107
110
|
|
|
108
111
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
112
|
|
|
113
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
114
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
115
|
+
}
|
|
110
116
|
const response = await this.request({
|
|
111
117
|
path: `/api/v2/config/httpProxyServer`,
|
|
112
118
|
method: 'GET',
|
|
@@ -133,6 +139,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI implements ConfigProxy
|
|
|
133
139
|
|
|
134
140
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
141
|
|
|
142
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
143
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
144
|
+
}
|
|
136
145
|
const response = await this.request({
|
|
137
146
|
path: `/api/v2/config/httpProxyServer`,
|
|
138
147
|
method: 'PUT',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiReverseProxyAuthenticationConfigurationDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiReverseProxyAuthenticationConfigurationDTOFromJSON,
|
|
22
22
|
ApiReverseProxyAuthenticationConfigurationDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface SetConfiguration4Request {
|
|
26
26
|
apiReverseProxyAuthenticationConfigurationDTO?: ApiReverseProxyAuthenticationConfigurationDTO;
|
|
@@ -84,6 +84,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
|
|
|
84
84
|
|
|
85
85
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
86
|
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
87
90
|
const response = await this.request({
|
|
88
91
|
path: `/api/v2/config/reverseProxyAuthentication`,
|
|
89
92
|
method: 'DELETE',
|
|
@@ -107,6 +110,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
|
|
|
107
110
|
|
|
108
111
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
112
|
|
|
113
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
114
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
115
|
+
}
|
|
110
116
|
const response = await this.request({
|
|
111
117
|
path: `/api/v2/config/reverseProxyAuthentication`,
|
|
112
118
|
method: 'GET',
|
|
@@ -133,6 +139,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI impleme
|
|
|
133
139
|
|
|
134
140
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
141
|
|
|
142
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
143
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
144
|
+
}
|
|
136
145
|
const response = await this.request({
|
|
137
146
|
path: `/api/v2/config/reverseProxyAuthentication`,
|
|
138
147
|
method: 'PUT',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiSamlConfigurationResponseDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiSamlConfigurationResponseDTOFromJSON,
|
|
22
22
|
ApiSamlConfigurationResponseDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* ConfigSAMLApi - interface
|
|
@@ -79,6 +79,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
79
79
|
|
|
80
80
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
81
|
|
|
82
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
83
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
84
|
+
}
|
|
82
85
|
const response = await this.request({
|
|
83
86
|
path: `/api/v2/config/saml`,
|
|
84
87
|
method: 'DELETE',
|
|
@@ -102,6 +105,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
102
105
|
|
|
103
106
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
107
|
|
|
108
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
109
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
110
|
+
}
|
|
105
111
|
const response = await this.request({
|
|
106
112
|
path: `/api/v2/config/saml/metadata`,
|
|
107
113
|
method: 'GET',
|
|
@@ -130,6 +136,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
130
136
|
|
|
131
137
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
132
138
|
|
|
139
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
140
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
141
|
+
}
|
|
133
142
|
const response = await this.request({
|
|
134
143
|
path: `/api/v2/config/saml`,
|
|
135
144
|
method: 'GET',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiSourceControlConfigurationDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiSourceControlConfigurationDTOFromJSON,
|
|
22
22
|
ApiSourceControlConfigurationDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface SetConfiguration5Request {
|
|
26
26
|
body?: object;
|
|
@@ -84,6 +84,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
|
|
|
84
84
|
|
|
85
85
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
86
|
|
|
87
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
88
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
89
|
+
}
|
|
87
90
|
const response = await this.request({
|
|
88
91
|
path: `/api/v2/config/sourceControl`,
|
|
89
92
|
method: 'DELETE',
|
|
@@ -107,6 +110,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
|
|
|
107
110
|
|
|
108
111
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
112
|
|
|
113
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
114
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
115
|
+
}
|
|
110
116
|
const response = await this.request({
|
|
111
117
|
path: `/api/v2/config/sourceControl`,
|
|
112
118
|
method: 'GET',
|
|
@@ -133,6 +139,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI implements ConfigSou
|
|
|
133
139
|
|
|
134
140
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
141
|
|
|
142
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
143
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
144
|
+
}
|
|
136
145
|
const response = await this.request({
|
|
137
146
|
path: `/api/v2/config/sourceControl`,
|
|
138
147
|
method: 'PUT',
|
package/src/apis/CycloneDxApi.ts
CHANGED
|
@@ -124,6 +124,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
|
|
|
124
124
|
|
|
125
125
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
126
126
|
|
|
127
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
128
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
129
|
+
}
|
|
127
130
|
const response = await this.request({
|
|
128
131
|
path: `/api/v2/cycloneDx/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))),
|
|
129
132
|
method: 'GET',
|
|
@@ -159,6 +162,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
|
|
|
159
162
|
|
|
160
163
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
161
164
|
|
|
165
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
166
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
167
|
+
}
|
|
162
168
|
const response = await this.request({
|
|
163
169
|
path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/reports/{reportId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"reportId"}}`, encodeURIComponent(String(requestParameters.reportId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
|
|
164
170
|
method: 'GET',
|
|
@@ -190,6 +196,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
|
|
|
190
196
|
|
|
191
197
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
192
198
|
|
|
199
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
200
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
201
|
+
}
|
|
193
202
|
const response = await this.request({
|
|
194
203
|
path: `/api/v2/cycloneDx/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))),
|
|
195
204
|
method: 'GET',
|
|
@@ -225,6 +234,9 @@ export class CycloneDxApi extends runtime.BaseAPI implements CycloneDxApiInterfa
|
|
|
225
234
|
|
|
226
235
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
227
236
|
|
|
237
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
238
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
239
|
+
}
|
|
228
240
|
const response = await this.request({
|
|
229
241
|
path: `/api/v2/cycloneDx/{cdxVersion}/{applicationId}/stages/{stageId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"stageId"}}`, encodeURIComponent(String(requestParameters.stageId))).replace(`{${"cdxVersion"}}`, encodeURIComponent(String(requestParameters.cdxVersion))),
|
|
230
242
|
method: 'GET',
|