@sonatype/nexus-iq-api-client 0.196.1 → 0.196.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/dist/apis/ConfigSAMLApi.d.ts +5 -5
- package/dist/apis/ConfigSAMLApi.js +10 -2
- package/dist/esm/apis/ConfigSAMLApi.d.ts +5 -5
- package/dist/esm/apis/ConfigSAMLApi.js +10 -2
- package/dist/esm/models/ApiComponentDetailsDTOV2.d.ts +2 -2
- package/dist/esm/models/ApiComponentDetailsDTOV2.js +2 -2
- package/dist/esm/models/ContainerImageInQuarantineData.d.ts +2 -2
- package/dist/esm/models/ContainerImageInQuarantineData.js +2 -2
- package/dist/esm/models/InsertOrUpdateSamlConfigurationRequest.d.ts +3 -3
- package/dist/esm/models/InsertOrUpdateSamlConfigurationRequest.js +6 -2
- package/dist/models/ApiComponentDetailsDTOV2.d.ts +2 -2
- package/dist/models/ApiComponentDetailsDTOV2.js +2 -2
- package/dist/models/ContainerImageInQuarantineData.d.ts +2 -2
- package/dist/models/ContainerImageInQuarantineData.js +2 -2
- package/dist/models/InsertOrUpdateSamlConfigurationRequest.d.ts +3 -3
- package/dist/models/InsertOrUpdateSamlConfigurationRequest.js +6 -2
- package/package.json +1 -1
- package/src/apis/ConfigSAMLApi.ts +21 -5
- package/src/models/ApiComponentDetailsDTOV2.ts +4 -4
- package/src/models/ContainerImageInQuarantineData.ts +4 -4
- package/src/models/InsertOrUpdateSamlConfigurationRequest.ts +7 -5
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiSamlConfigurationDTO, ApiSamlConfigurationResponseDTO } from '../models/index';
|
|
14
14
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
15
|
-
identityProviderXml
|
|
16
|
-
samlConfiguration
|
|
15
|
+
identityProviderXml: Blob;
|
|
16
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* ConfigSAMLApi - interface
|
|
@@ -57,8 +57,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
57
57
|
getSamlConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSamlConfigurationResponseDTO>;
|
|
58
58
|
/**
|
|
59
59
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {ApiSamlConfigurationDTO}
|
|
60
|
+
* @param {Blob} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
+
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -104,5 +104,5 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
104
104
|
/**
|
|
105
105
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
106
106
|
*/
|
|
107
|
-
insertOrUpdateSamlConfiguration(requestParameters
|
|
107
|
+
insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
108
|
}
|
|
@@ -125,6 +125,12 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
125
125
|
*/
|
|
126
126
|
insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides) {
|
|
127
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
if (requestParameters['identityProviderXml'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('identityProviderXml', 'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['samlConfiguration'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('samlConfiguration', 'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
133
|
+
}
|
|
128
134
|
const queryParameters = {};
|
|
129
135
|
const headerParameters = {};
|
|
130
136
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
@@ -137,6 +143,8 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
137
143
|
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
138
144
|
let formParams;
|
|
139
145
|
let useForm = false;
|
|
146
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
147
|
+
useForm = canConsumeForm;
|
|
140
148
|
if (useForm) {
|
|
141
149
|
formParams = new FormData();
|
|
142
150
|
}
|
|
@@ -163,8 +171,8 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
163
171
|
/**
|
|
164
172
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
165
173
|
*/
|
|
166
|
-
insertOrUpdateSamlConfiguration() {
|
|
167
|
-
return __awaiter(this,
|
|
174
|
+
insertOrUpdateSamlConfiguration(requestParameters, initOverrides) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
176
|
yield this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
169
177
|
});
|
|
170
178
|
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiSamlConfigurationDTO, ApiSamlConfigurationResponseDTO } from '../models/index';
|
|
14
14
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
15
|
-
identityProviderXml
|
|
16
|
-
samlConfiguration
|
|
15
|
+
identityProviderXml: Blob;
|
|
16
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* ConfigSAMLApi - interface
|
|
@@ -57,8 +57,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
57
57
|
getSamlConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSamlConfigurationResponseDTO>;
|
|
58
58
|
/**
|
|
59
59
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
60
|
-
* @param {
|
|
61
|
-
* @param {ApiSamlConfigurationDTO}
|
|
60
|
+
* @param {Blob} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
+
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -104,5 +104,5 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
104
104
|
/**
|
|
105
105
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
106
106
|
*/
|
|
107
|
-
insertOrUpdateSamlConfiguration(requestParameters
|
|
107
|
+
insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
108
|
}
|
|
@@ -122,6 +122,12 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
122
122
|
*/
|
|
123
123
|
insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
if (requestParameters['identityProviderXml'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('identityProviderXml', 'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['samlConfiguration'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('samlConfiguration', 'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
130
|
+
}
|
|
125
131
|
const queryParameters = {};
|
|
126
132
|
const headerParameters = {};
|
|
127
133
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
@@ -134,6 +140,8 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
134
140
|
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
135
141
|
let formParams;
|
|
136
142
|
let useForm = false;
|
|
143
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
144
|
+
useForm = canConsumeForm;
|
|
137
145
|
if (useForm) {
|
|
138
146
|
formParams = new FormData();
|
|
139
147
|
}
|
|
@@ -160,8 +168,8 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
160
168
|
/**
|
|
161
169
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
162
170
|
*/
|
|
163
|
-
insertOrUpdateSamlConfiguration() {
|
|
164
|
-
return __awaiter(this,
|
|
171
|
+
insertOrUpdateSamlConfiguration(requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
173
|
yield this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
166
174
|
});
|
|
167
175
|
}
|
|
@@ -22,10 +22,10 @@ import type { ApiSecurityDataDTO } from './ApiSecurityDataDTO';
|
|
|
22
22
|
export interface ApiComponentDetailsDTOV2 {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
|
-
* @type {
|
|
25
|
+
* @type {string}
|
|
26
26
|
* @memberof ApiComponentDetailsDTOV2
|
|
27
27
|
*/
|
|
28
|
-
catalogDate?:
|
|
28
|
+
catalogDate?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {ApiComponentDTOV2}
|
|
@@ -30,7 +30,7 @@ export function ApiComponentDetailsDTOV2FromJSONTyped(json, ignoreDiscriminator)
|
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
|
-
'catalogDate': json['catalogDate'] == null ? undefined :
|
|
33
|
+
'catalogDate': json['catalogDate'] == null ? undefined : json['catalogDate'],
|
|
34
34
|
'component': json['component'] == null ? undefined : ApiComponentDTOV2FromJSON(json['component']),
|
|
35
35
|
'hygieneRating': json['hygieneRating'] == null ? undefined : json['hygieneRating'],
|
|
36
36
|
'integrityRating': json['integrityRating'] == null ? undefined : json['integrityRating'],
|
|
@@ -50,7 +50,7 @@ export function ApiComponentDetailsDTOV2ToJSONTyped(value, ignoreDiscriminator =
|
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'catalogDate': value['catalogDate']
|
|
53
|
+
'catalogDate': value['catalogDate'],
|
|
54
54
|
'component': ApiComponentDTOV2ToJSON(value['component']),
|
|
55
55
|
'hygieneRating': value['hygieneRating'],
|
|
56
56
|
'integrityRating': value['integrityRating'],
|
|
@@ -35,10 +35,10 @@ export interface ContainerImageInQuarantineData {
|
|
|
35
35
|
applicationPublicId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof ContainerImageInQuarantineData
|
|
40
40
|
*/
|
|
41
|
-
openTime?:
|
|
41
|
+
openTime?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -28,7 +28,7 @@ export function ContainerImageInQuarantineDataFromJSONTyped(json, ignoreDiscrimi
|
|
|
28
28
|
'applicationId': json['applicationId'] == null ? undefined : json['applicationId'],
|
|
29
29
|
'applicationName': json['applicationName'] == null ? undefined : json['applicationName'],
|
|
30
30
|
'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'],
|
|
31
|
-
'openTime': json['openTime'] == null ? undefined :
|
|
31
|
+
'openTime': json['openTime'] == null ? undefined : json['openTime'],
|
|
32
32
|
'policyViolationCount': json['policyViolationCount'] == null ? undefined : json['policyViolationCount'],
|
|
33
33
|
'repositoryId': json['repositoryId'] == null ? undefined : json['repositoryId'],
|
|
34
34
|
'repositoryPublicId': json['repositoryPublicId'] == null ? undefined : json['repositoryPublicId'],
|
|
@@ -47,7 +47,7 @@ export function ContainerImageInQuarantineDataToJSONTyped(value, ignoreDiscrimin
|
|
|
47
47
|
'applicationId': value['applicationId'],
|
|
48
48
|
'applicationName': value['applicationName'],
|
|
49
49
|
'applicationPublicId': value['applicationPublicId'],
|
|
50
|
-
'openTime': value['openTime']
|
|
50
|
+
'openTime': value['openTime'],
|
|
51
51
|
'policyViolationCount': value['policyViolationCount'],
|
|
52
52
|
'repositoryId': value['repositoryId'],
|
|
53
53
|
'repositoryPublicId': value['repositoryPublicId'],
|
|
@@ -18,16 +18,16 @@ import type { ApiSamlConfigurationDTO } from './ApiSamlConfigurationDTO';
|
|
|
18
18
|
export interface InsertOrUpdateSamlConfigurationRequest {
|
|
19
19
|
/**
|
|
20
20
|
* Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {Blob}
|
|
22
22
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
23
23
|
*/
|
|
24
|
-
identityProviderXml
|
|
24
|
+
identityProviderXml: Blob;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ApiSamlConfigurationDTO}
|
|
28
28
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
29
29
|
*/
|
|
30
|
-
samlConfiguration
|
|
30
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
@@ -16,6 +16,10 @@ import { ApiSamlConfigurationDTOFromJSON, ApiSamlConfigurationDTOToJSON, } from
|
|
|
16
16
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfInsertOrUpdateSamlConfigurationRequest(value) {
|
|
19
|
+
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined)
|
|
22
|
+
return false;
|
|
19
23
|
return true;
|
|
20
24
|
}
|
|
21
25
|
export function InsertOrUpdateSamlConfigurationRequestFromJSON(json) {
|
|
@@ -26,8 +30,8 @@ export function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json, ignore
|
|
|
26
30
|
return json;
|
|
27
31
|
}
|
|
28
32
|
return {
|
|
29
|
-
'identityProviderXml': json['identityProviderXml']
|
|
30
|
-
'samlConfiguration':
|
|
33
|
+
'identityProviderXml': json['identityProviderXml'],
|
|
34
|
+
'samlConfiguration': ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
export function InsertOrUpdateSamlConfigurationRequestToJSON(json) {
|
|
@@ -22,10 +22,10 @@ import type { ApiSecurityDataDTO } from './ApiSecurityDataDTO';
|
|
|
22
22
|
export interface ApiComponentDetailsDTOV2 {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
|
-
* @type {
|
|
25
|
+
* @type {string}
|
|
26
26
|
* @memberof ApiComponentDetailsDTOV2
|
|
27
27
|
*/
|
|
28
|
-
catalogDate?:
|
|
28
|
+
catalogDate?: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {ApiComponentDTOV2}
|
|
@@ -37,7 +37,7 @@ function ApiComponentDetailsDTOV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'catalogDate': json['catalogDate'] == null ? undefined :
|
|
40
|
+
'catalogDate': json['catalogDate'] == null ? undefined : json['catalogDate'],
|
|
41
41
|
'component': json['component'] == null ? undefined : (0, ApiComponentDTOV2_1.ApiComponentDTOV2FromJSON)(json['component']),
|
|
42
42
|
'hygieneRating': json['hygieneRating'] == null ? undefined : json['hygieneRating'],
|
|
43
43
|
'integrityRating': json['integrityRating'] == null ? undefined : json['integrityRating'],
|
|
@@ -57,7 +57,7 @@ function ApiComponentDetailsDTOV2ToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
-
'catalogDate': value['catalogDate']
|
|
60
|
+
'catalogDate': value['catalogDate'],
|
|
61
61
|
'component': (0, ApiComponentDTOV2_1.ApiComponentDTOV2ToJSON)(value['component']),
|
|
62
62
|
'hygieneRating': value['hygieneRating'],
|
|
63
63
|
'integrityRating': value['integrityRating'],
|
|
@@ -35,10 +35,10 @@ export interface ContainerImageInQuarantineData {
|
|
|
35
35
|
applicationPublicId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof ContainerImageInQuarantineData
|
|
40
40
|
*/
|
|
41
|
-
openTime?:
|
|
41
|
+
openTime?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -35,7 +35,7 @@ function ContainerImageInQuarantineDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
'applicationId': json['applicationId'] == null ? undefined : json['applicationId'],
|
|
36
36
|
'applicationName': json['applicationName'] == null ? undefined : json['applicationName'],
|
|
37
37
|
'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'],
|
|
38
|
-
'openTime': json['openTime'] == null ? undefined :
|
|
38
|
+
'openTime': json['openTime'] == null ? undefined : json['openTime'],
|
|
39
39
|
'policyViolationCount': json['policyViolationCount'] == null ? undefined : json['policyViolationCount'],
|
|
40
40
|
'repositoryId': json['repositoryId'] == null ? undefined : json['repositoryId'],
|
|
41
41
|
'repositoryPublicId': json['repositoryPublicId'] == null ? undefined : json['repositoryPublicId'],
|
|
@@ -54,7 +54,7 @@ function ContainerImageInQuarantineDataToJSONTyped(value, ignoreDiscriminator =
|
|
|
54
54
|
'applicationId': value['applicationId'],
|
|
55
55
|
'applicationName': value['applicationName'],
|
|
56
56
|
'applicationPublicId': value['applicationPublicId'],
|
|
57
|
-
'openTime': value['openTime']
|
|
57
|
+
'openTime': value['openTime'],
|
|
58
58
|
'policyViolationCount': value['policyViolationCount'],
|
|
59
59
|
'repositoryId': value['repositoryId'],
|
|
60
60
|
'repositoryPublicId': value['repositoryPublicId'],
|
|
@@ -18,16 +18,16 @@ import type { ApiSamlConfigurationDTO } from './ApiSamlConfigurationDTO';
|
|
|
18
18
|
export interface InsertOrUpdateSamlConfigurationRequest {
|
|
19
19
|
/**
|
|
20
20
|
* Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {Blob}
|
|
22
22
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
23
23
|
*/
|
|
24
|
-
identityProviderXml
|
|
24
|
+
identityProviderXml: Blob;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ApiSamlConfigurationDTO}
|
|
28
28
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
29
29
|
*/
|
|
30
|
-
samlConfiguration
|
|
30
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
@@ -23,6 +23,10 @@ const ApiSamlConfigurationDTO_1 = require("./ApiSamlConfigurationDTO");
|
|
|
23
23
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfInsertOrUpdateSamlConfigurationRequest(value) {
|
|
26
|
+
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
return true;
|
|
27
31
|
}
|
|
28
32
|
function InsertOrUpdateSamlConfigurationRequestFromJSON(json) {
|
|
@@ -33,8 +37,8 @@ function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json, ignoreDiscrim
|
|
|
33
37
|
return json;
|
|
34
38
|
}
|
|
35
39
|
return {
|
|
36
|
-
'identityProviderXml': json['identityProviderXml']
|
|
37
|
-
'samlConfiguration':
|
|
40
|
+
'identityProviderXml': json['identityProviderXml'],
|
|
41
|
+
'samlConfiguration': (0, ApiSamlConfigurationDTO_1.ApiSamlConfigurationDTOFromJSON)(json['samlConfiguration']),
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
function InsertOrUpdateSamlConfigurationRequestToJSON(json) {
|
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
29
|
-
identityProviderXml
|
|
30
|
-
samlConfiguration
|
|
29
|
+
identityProviderXml: Blob;
|
|
30
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -78,8 +78,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
81
|
-
* @param {
|
|
82
|
-
* @param {ApiSamlConfigurationDTO}
|
|
81
|
+
* @param {Blob} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
82
|
+
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -201,6 +201,20 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
201
201
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
202
202
|
*/
|
|
203
203
|
async insertOrUpdateSamlConfigurationRaw(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
204
|
+
if (requestParameters['identityProviderXml'] == null) {
|
|
205
|
+
throw new runtime.RequiredError(
|
|
206
|
+
'identityProviderXml',
|
|
207
|
+
'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().'
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (requestParameters['samlConfiguration'] == null) {
|
|
212
|
+
throw new runtime.RequiredError(
|
|
213
|
+
'samlConfiguration',
|
|
214
|
+
'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().'
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
204
218
|
const queryParameters: any = {};
|
|
205
219
|
|
|
206
220
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -216,6 +230,8 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
216
230
|
|
|
217
231
|
let formParams: { append(param: string, value: any): any };
|
|
218
232
|
let useForm = false;
|
|
233
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
234
|
+
useForm = canConsumeForm;
|
|
219
235
|
if (useForm) {
|
|
220
236
|
formParams = new FormData();
|
|
221
237
|
} else {
|
|
@@ -247,7 +263,7 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
247
263
|
/**
|
|
248
264
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
249
265
|
*/
|
|
250
|
-
async insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest
|
|
266
|
+
async insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
251
267
|
await this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
252
268
|
}
|
|
253
269
|
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
export interface ApiComponentDetailsDTOV2 {
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {string}
|
|
61
61
|
* @memberof ApiComponentDetailsDTOV2
|
|
62
62
|
*/
|
|
63
|
-
catalogDate?:
|
|
63
|
+
catalogDate?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {ApiComponentDTOV2}
|
|
@@ -134,7 +134,7 @@ export function ApiComponentDetailsDTOV2FromJSONTyped(json: any, ignoreDiscrimin
|
|
|
134
134
|
}
|
|
135
135
|
return {
|
|
136
136
|
|
|
137
|
-
'catalogDate': json['catalogDate'] == null ? undefined :
|
|
137
|
+
'catalogDate': json['catalogDate'] == null ? undefined : json['catalogDate'],
|
|
138
138
|
'component': json['component'] == null ? undefined : ApiComponentDTOV2FromJSON(json['component']),
|
|
139
139
|
'hygieneRating': json['hygieneRating'] == null ? undefined : json['hygieneRating'],
|
|
140
140
|
'integrityRating': json['integrityRating'] == null ? undefined : json['integrityRating'],
|
|
@@ -158,7 +158,7 @@ export function ApiComponentDetailsDTOV2ToJSONTyped(value?: ApiComponentDetailsD
|
|
|
158
158
|
|
|
159
159
|
return {
|
|
160
160
|
|
|
161
|
-
'catalogDate': value['catalogDate']
|
|
161
|
+
'catalogDate': value['catalogDate'],
|
|
162
162
|
'component': ApiComponentDTOV2ToJSON(value['component']),
|
|
163
163
|
'hygieneRating': value['hygieneRating'],
|
|
164
164
|
'integrityRating': value['integrityRating'],
|
|
@@ -39,10 +39,10 @@ export interface ContainerImageInQuarantineData {
|
|
|
39
39
|
applicationPublicId?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof ContainerImageInQuarantineData
|
|
44
44
|
*/
|
|
45
|
-
openTime?:
|
|
45
|
+
openTime?: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
@@ -95,7 +95,7 @@ export function ContainerImageInQuarantineDataFromJSONTyped(json: any, ignoreDis
|
|
|
95
95
|
'applicationId': json['applicationId'] == null ? undefined : json['applicationId'],
|
|
96
96
|
'applicationName': json['applicationName'] == null ? undefined : json['applicationName'],
|
|
97
97
|
'applicationPublicId': json['applicationPublicId'] == null ? undefined : json['applicationPublicId'],
|
|
98
|
-
'openTime': json['openTime'] == null ? undefined :
|
|
98
|
+
'openTime': json['openTime'] == null ? undefined : json['openTime'],
|
|
99
99
|
'policyViolationCount': json['policyViolationCount'] == null ? undefined : json['policyViolationCount'],
|
|
100
100
|
'repositoryId': json['repositoryId'] == null ? undefined : json['repositoryId'],
|
|
101
101
|
'repositoryPublicId': json['repositoryPublicId'] == null ? undefined : json['repositoryPublicId'],
|
|
@@ -118,7 +118,7 @@ export function ContainerImageInQuarantineDataToJSONTyped(value?: ContainerImage
|
|
|
118
118
|
'applicationId': value['applicationId'],
|
|
119
119
|
'applicationName': value['applicationName'],
|
|
120
120
|
'applicationPublicId': value['applicationPublicId'],
|
|
121
|
-
'openTime': value['openTime']
|
|
121
|
+
'openTime': value['openTime'],
|
|
122
122
|
'policyViolationCount': value['policyViolationCount'],
|
|
123
123
|
'repositoryId': value['repositoryId'],
|
|
124
124
|
'repositoryPublicId': value['repositoryPublicId'],
|
|
@@ -29,22 +29,24 @@ import {
|
|
|
29
29
|
export interface InsertOrUpdateSamlConfigurationRequest {
|
|
30
30
|
/**
|
|
31
31
|
* Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {Blob}
|
|
33
33
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
34
34
|
*/
|
|
35
|
-
identityProviderXml
|
|
35
|
+
identityProviderXml: Blob;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {ApiSamlConfigurationDTO}
|
|
39
39
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
40
40
|
*/
|
|
41
|
-
samlConfiguration
|
|
41
|
+
samlConfiguration: ApiSamlConfigurationDTO;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
46
46
|
*/
|
|
47
47
|
export function instanceOfInsertOrUpdateSamlConfigurationRequest(value: object): value is InsertOrUpdateSamlConfigurationRequest {
|
|
48
|
+
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined) return false;
|
|
49
|
+
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined) return false;
|
|
48
50
|
return true;
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -58,8 +60,8 @@ export function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json: any, i
|
|
|
58
60
|
}
|
|
59
61
|
return {
|
|
60
62
|
|
|
61
|
-
'identityProviderXml': json['identityProviderXml']
|
|
62
|
-
'samlConfiguration':
|
|
63
|
+
'identityProviderXml': json['identityProviderXml'],
|
|
64
|
+
'samlConfiguration': ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
|