@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
|
@@ -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',
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiDataRetentionPoliciesDTO,
|
|
19
|
-
} from '../models';
|
|
19
|
+
} from '../models/index';
|
|
20
20
|
import {
|
|
21
21
|
ApiDataRetentionPoliciesDTOFromJSON,
|
|
22
22
|
ApiDataRetentionPoliciesDTOToJSON,
|
|
23
|
-
} from '../models';
|
|
23
|
+
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface GetDataRetentionPoliciesRequest {
|
|
26
26
|
organizationId: string;
|
|
@@ -83,6 +83,9 @@ export class DataRetentionPoliciesApi extends runtime.BaseAPI implements DataRet
|
|
|
83
83
|
|
|
84
84
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
85
|
|
|
86
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
87
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
88
|
+
}
|
|
86
89
|
const response = await this.request({
|
|
87
90
|
path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
88
91
|
method: 'GET',
|
|
@@ -113,6 +116,9 @@ export class DataRetentionPoliciesApi extends runtime.BaseAPI implements DataRet
|
|
|
113
116
|
|
|
114
117
|
headerParameters['Content-Type'] = 'application/json';
|
|
115
118
|
|
|
119
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
120
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
121
|
+
}
|
|
116
122
|
const response = await this.request({
|
|
117
123
|
path: `/api/v2/dataRetentionPolicies/organizations/{organizationId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
118
124
|
method: 'PUT',
|
package/src/apis/EndpointsApi.ts
CHANGED
|
@@ -57,6 +57,9 @@ export class EndpointsApi extends runtime.BaseAPI implements EndpointsApiInterfa
|
|
|
57
57
|
|
|
58
58
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
59
59
|
|
|
60
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
61
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
62
|
+
}
|
|
60
63
|
const response = await this.request({
|
|
61
64
|
path: `/api/v2/endpoints/{apiType}`.replace(`{${"apiType"}}`, encodeURIComponent(String(requestParameters.apiType))),
|
|
62
65
|
method: 'GET',
|
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
ApiComponentEvaluationTicketDTOV2,
|
|
23
23
|
ApiPromoteScanRequestDTOV2,
|
|
24
24
|
ApiSourceControlEvaluationRequestDTO,
|
|
25
|
-
} from '../models';
|
|
25
|
+
} from '../models/index';
|
|
26
26
|
import {
|
|
27
27
|
ApiApplicationEvaluationResultDTOV2FromJSON,
|
|
28
28
|
ApiApplicationEvaluationResultDTOV2ToJSON,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
ApiPromoteScanRequestDTOV2ToJSON,
|
|
39
39
|
ApiSourceControlEvaluationRequestDTOFromJSON,
|
|
40
40
|
ApiSourceControlEvaluationRequestDTOToJSON,
|
|
41
|
-
} from '../models';
|
|
41
|
+
} from '../models/index';
|
|
42
42
|
|
|
43
43
|
export interface DeprecatedManifestEvaluationRequest {
|
|
44
44
|
applicationId: string;
|
|
@@ -182,6 +182,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
182
182
|
|
|
183
183
|
headerParameters['Content-Type'] = 'application/json';
|
|
184
184
|
|
|
185
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
186
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
187
|
+
}
|
|
185
188
|
const response = await this.request({
|
|
186
189
|
path: `/api/v2/evaluation/applications/{applicationId}/manifestEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
187
190
|
method: 'POST',
|
|
@@ -213,6 +216,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
213
216
|
|
|
214
217
|
headerParameters['Content-Type'] = 'application/json';
|
|
215
218
|
|
|
219
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
220
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
221
|
+
}
|
|
216
222
|
const response = await this.request({
|
|
217
223
|
path: `/api/v2/evaluation/applications/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
218
224
|
method: 'POST',
|
|
@@ -244,6 +250,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
244
250
|
|
|
245
251
|
headerParameters['Content-Type'] = 'application/json';
|
|
246
252
|
|
|
253
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
254
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
255
|
+
}
|
|
247
256
|
const response = await this.request({
|
|
248
257
|
path: `/api/v2/evaluation/applications/{applicationId}/sourceControlEvaluation`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
249
258
|
method: 'POST',
|
|
@@ -277,6 +286,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
277
286
|
|
|
278
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
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/evaluation/applications/{applicationId}/status/{statusId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"statusId"}}`, encodeURIComponent(String(requestParameters.statusId))),
|
|
282
294
|
method: 'GET',
|
|
@@ -309,6 +321,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
309
321
|
|
|
310
322
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
311
323
|
|
|
324
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
325
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
326
|
+
}
|
|
312
327
|
const response = await this.request({
|
|
313
328
|
path: `/api/v2/evaluation/applications/{applicationId}/results/{resultId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"resultId"}}`, encodeURIComponent(String(requestParameters.resultId))),
|
|
314
329
|
method: 'GET',
|
|
@@ -339,6 +354,9 @@ export class EvaluationApi extends runtime.BaseAPI implements EvaluationApiInter
|
|
|
339
354
|
|
|
340
355
|
headerParameters['Content-Type'] = 'application/json';
|
|
341
356
|
|
|
357
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
358
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
359
|
+
}
|
|
342
360
|
const response = await this.request({
|
|
343
361
|
path: `/api/v2/evaluation/applications/{applicationId}/promoteScan`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
|
|
344
362
|
method: 'POST',
|