@sonatype/nexus-iq-api-client 0.193.0 → 0.193.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/.openapi-generator/FILES +2 -0
- package/dist/apis/AdvancedSearchApi.d.ts +10 -10
- package/dist/apis/ApplicationCategoriesApi.d.ts +45 -45
- package/dist/apis/ApplicationReportDataApi.d.ts +25 -25
- package/dist/apis/ApplicationsApi.d.ts +40 -40
- package/dist/apis/AuditLogsApi.d.ts +5 -5
- package/dist/apis/AutoPolicyWaiverExclusionsApi.d.ts +15 -15
- package/dist/apis/AutoPolicyWaiversApi.d.ts +40 -40
- package/dist/apis/CPEMatchingConfigurationApi.d.ts +10 -10
- package/dist/apis/ClaimComponentsApi.d.ts +15 -15
- package/dist/apis/ComponentLabelsApi.d.ts +30 -30
- package/dist/apis/ComponentSearchApi.d.ts +5 -5
- package/dist/apis/ComponentsApi.d.ts +25 -25
- package/dist/apis/CompositeSourceControlApi.d.ts +5 -5
- package/dist/apis/CompositeSourceControlValidatorApi.d.ts +5 -5
- package/dist/apis/ConfigCrowdApi.d.ts +10 -10
- package/dist/apis/ConfigJiraApi.d.ts +5 -5
- package/dist/apis/ConfigMailApi.d.ts +10 -10
- package/dist/apis/ConfigProxyServerApi.d.ts +5 -5
- package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +5 -5
- package/dist/apis/ConfigSourceControlApi.d.ts +5 -5
- package/dist/apis/ConfigZscalerApi.d.ts +20 -20
- package/dist/apis/ConfigurationApi.d.ts +15 -15
- package/dist/apis/ConfigureArtifactoryConnectionApi.d.ts +40 -40
- package/dist/apis/CycloneDXApi.d.ts +10 -10
- package/dist/apis/DataRetentionPoliciesApi.d.ts +15 -15
- package/dist/apis/DeveloperPrioritiesApi.d.ts +10 -10
- package/dist/apis/EndpointsApi.d.ts +5 -5
- package/dist/apis/FeatureConfigurationApi.d.ts +10 -10
- package/dist/apis/FirewallApi.d.ts +70 -70
- package/dist/apis/LicenseLegalMetadataApi.d.ts +40 -40
- package/dist/apis/LicenseLegalMetadataTemplatesApi.d.ts +15 -15
- package/dist/apis/LicenseOverridesApi.d.ts +20 -20
- package/dist/apis/OrganizationsApi.d.ts +25 -25
- package/dist/apis/PolicyEvaluationApi.d.ts +25 -25
- package/dist/apis/PolicyViolationDetailsApi.d.ts +45 -45
- package/dist/apis/PolicyWaiverRequestsApi.d.ts +20 -20
- package/dist/apis/PolicyWaiversApi.d.ts +45 -45
- package/dist/apis/ProductLicenseApi.d.ts +67 -0
- package/dist/apis/ProductLicenseApi.js +105 -0
- package/dist/apis/ReportsApi.d.ts +20 -20
- package/dist/apis/RepositoriesApi.d.ts +10 -10
- package/dist/apis/RoleMembershipsApi.d.ts +30 -30
- package/dist/apis/SBOMApi.d.ts +45 -45
- package/dist/apis/SPDXApi.d.ts +10 -10
- package/dist/apis/SecurityVulnerabilityOverridesApi.d.ts +5 -5
- package/dist/apis/SolutionsApi.d.ts +5 -5
- package/dist/apis/SourceControlApi.d.ts +40 -40
- package/dist/apis/SourceControlMetricsApi.d.ts +5 -5
- package/dist/apis/ThirdPartyAnalysisApi.d.ts +10 -10
- package/dist/apis/UserTokensApi.d.ts +15 -15
- package/dist/apis/UsersApi.d.ts +25 -25
- package/dist/apis/VulnerabilityDetailsApi.d.ts +5 -5
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdvancedSearchApi.d.ts +10 -10
- package/dist/esm/apis/ApplicationCategoriesApi.d.ts +45 -45
- package/dist/esm/apis/ApplicationReportDataApi.d.ts +25 -25
- package/dist/esm/apis/ApplicationsApi.d.ts +40 -40
- package/dist/esm/apis/AuditLogsApi.d.ts +5 -5
- package/dist/esm/apis/AutoPolicyWaiverExclusionsApi.d.ts +15 -15
- package/dist/esm/apis/AutoPolicyWaiversApi.d.ts +40 -40
- package/dist/esm/apis/CPEMatchingConfigurationApi.d.ts +10 -10
- package/dist/esm/apis/ClaimComponentsApi.d.ts +15 -15
- package/dist/esm/apis/ComponentLabelsApi.d.ts +30 -30
- package/dist/esm/apis/ComponentSearchApi.d.ts +5 -5
- package/dist/esm/apis/ComponentsApi.d.ts +25 -25
- package/dist/esm/apis/CompositeSourceControlApi.d.ts +5 -5
- package/dist/esm/apis/CompositeSourceControlValidatorApi.d.ts +5 -5
- package/dist/esm/apis/ConfigCrowdApi.d.ts +10 -10
- package/dist/esm/apis/ConfigJiraApi.d.ts +5 -5
- package/dist/esm/apis/ConfigMailApi.d.ts +10 -10
- package/dist/esm/apis/ConfigProxyServerApi.d.ts +5 -5
- package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +5 -5
- package/dist/esm/apis/ConfigSourceControlApi.d.ts +5 -5
- package/dist/esm/apis/ConfigZscalerApi.d.ts +20 -20
- package/dist/esm/apis/ConfigurationApi.d.ts +15 -15
- package/dist/esm/apis/ConfigureArtifactoryConnectionApi.d.ts +40 -40
- package/dist/esm/apis/CycloneDXApi.d.ts +10 -10
- package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +15 -15
- package/dist/esm/apis/DeveloperPrioritiesApi.d.ts +10 -10
- package/dist/esm/apis/EndpointsApi.d.ts +5 -5
- package/dist/esm/apis/FeatureConfigurationApi.d.ts +10 -10
- package/dist/esm/apis/FirewallApi.d.ts +70 -70
- package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +40 -40
- package/dist/esm/apis/LicenseLegalMetadataTemplatesApi.d.ts +15 -15
- package/dist/esm/apis/LicenseOverridesApi.d.ts +20 -20
- package/dist/esm/apis/OrganizationsApi.d.ts +25 -25
- package/dist/esm/apis/PolicyEvaluationApi.d.ts +25 -25
- package/dist/esm/apis/PolicyViolationDetailsApi.d.ts +45 -45
- package/dist/esm/apis/PolicyWaiverRequestsApi.d.ts +20 -20
- package/dist/esm/apis/PolicyWaiversApi.d.ts +45 -45
- package/dist/esm/apis/ProductLicenseApi.d.ts +67 -0
- package/dist/esm/apis/ProductLicenseApi.js +101 -0
- package/dist/esm/apis/ReportsApi.d.ts +20 -20
- package/dist/esm/apis/RepositoriesApi.d.ts +10 -10
- package/dist/esm/apis/RoleMembershipsApi.d.ts +30 -30
- package/dist/esm/apis/SBOMApi.d.ts +45 -45
- package/dist/esm/apis/SPDXApi.d.ts +10 -10
- package/dist/esm/apis/SecurityVulnerabilityOverridesApi.d.ts +5 -5
- package/dist/esm/apis/SolutionsApi.d.ts +5 -5
- package/dist/esm/apis/SourceControlApi.d.ts +40 -40
- package/dist/esm/apis/SourceControlMetricsApi.d.ts +5 -5
- package/dist/esm/apis/ThirdPartyAnalysisApi.d.ts +10 -10
- package/dist/esm/apis/UserTokensApi.d.ts +15 -15
- package/dist/esm/apis/UsersApi.d.ts +25 -25
- package/dist/esm/apis/VulnerabilityDetailsApi.d.ts +5 -5
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/InstallLicenseRequest.d.ts +32 -0
- package/dist/esm/models/InstallLicenseRequest.js +41 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/InstallLicenseRequest.d.ts +32 -0
- package/dist/models/InstallLicenseRequest.js +48 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdvancedSearchApi.ts +10 -10
- package/src/apis/ApplicationCategoriesApi.ts +45 -45
- package/src/apis/ApplicationReportDataApi.ts +25 -25
- package/src/apis/ApplicationsApi.ts +40 -40
- package/src/apis/AuditLogsApi.ts +5 -5
- package/src/apis/AutoPolicyWaiverExclusionsApi.ts +15 -15
- package/src/apis/AutoPolicyWaiversApi.ts +40 -40
- package/src/apis/CPEMatchingConfigurationApi.ts +10 -10
- package/src/apis/ClaimComponentsApi.ts +15 -15
- package/src/apis/ComponentLabelsApi.ts +30 -30
- package/src/apis/ComponentSearchApi.ts +5 -5
- package/src/apis/ComponentsApi.ts +25 -25
- package/src/apis/CompositeSourceControlApi.ts +5 -5
- package/src/apis/CompositeSourceControlValidatorApi.ts +5 -5
- package/src/apis/ConfigCrowdApi.ts +10 -10
- package/src/apis/ConfigJiraApi.ts +5 -5
- package/src/apis/ConfigMailApi.ts +10 -10
- package/src/apis/ConfigProxyServerApi.ts +5 -5
- package/src/apis/ConfigReverseProxyAuthenticationApi.ts +5 -5
- package/src/apis/ConfigSourceControlApi.ts +5 -5
- package/src/apis/ConfigZscalerApi.ts +20 -20
- package/src/apis/ConfigurationApi.ts +15 -15
- package/src/apis/ConfigureArtifactoryConnectionApi.ts +40 -40
- package/src/apis/CycloneDXApi.ts +10 -10
- package/src/apis/DataRetentionPoliciesApi.ts +15 -15
- package/src/apis/DeveloperPrioritiesApi.ts +10 -10
- package/src/apis/EndpointsApi.ts +5 -5
- package/src/apis/FeatureConfigurationApi.ts +10 -10
- package/src/apis/FirewallApi.ts +70 -70
- package/src/apis/LicenseLegalMetadataApi.ts +40 -40
- package/src/apis/LicenseLegalMetadataTemplatesApi.ts +15 -15
- package/src/apis/LicenseOverridesApi.ts +20 -20
- package/src/apis/OrganizationsApi.ts +25 -25
- package/src/apis/PolicyEvaluationApi.ts +25 -25
- package/src/apis/PolicyViolationDetailsApi.ts +45 -45
- package/src/apis/PolicyWaiverRequestsApi.ts +20 -20
- package/src/apis/PolicyWaiversApi.ts +45 -45
- package/src/apis/ProductLicenseApi.ts +140 -0
- package/src/apis/ReportsApi.ts +20 -20
- package/src/apis/RepositoriesApi.ts +10 -10
- package/src/apis/RoleMembershipsApi.ts +30 -30
- package/src/apis/SBOMApi.ts +45 -45
- package/src/apis/SPDXApi.ts +10 -10
- package/src/apis/SecurityVulnerabilityOverridesApi.ts +5 -5
- package/src/apis/SolutionsApi.ts +5 -5
- package/src/apis/SourceControlApi.ts +40 -40
- package/src/apis/SourceControlMetricsApi.ts +5 -5
- package/src/apis/ThirdPartyAnalysisApi.ts +10 -10
- package/src/apis/UserTokensApi.ts +15 -15
- package/src/apis/UsersApi.ts +25 -25
- package/src/apis/VulnerabilityDetailsApi.ts +5 -5
- package/src/apis/index.ts +1 -0
- package/src/models/InstallLicenseRequest.ts +65 -0
- package/src/models/index.ts +1 -0
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
ComponentIdentifierToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
|
-
export interface
|
|
37
|
+
export interface PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest {
|
|
38
38
|
ownerType: AddPolicyWaiverByPolicyViolationIdOwnerTypeEnum;
|
|
39
39
|
ownerId: string;
|
|
40
40
|
policyViolationId: string;
|
|
41
41
|
apiWaiverOptionsDTO: ApiWaiverOptionsDTO;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export interface
|
|
44
|
+
export interface PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest {
|
|
45
45
|
ownerType: AddWaiverToTransitivePolicyViolationsByAppScanComponentOwnerTypeEnum;
|
|
46
46
|
ownerId: string;
|
|
47
47
|
scanId: string;
|
|
@@ -51,7 +51,7 @@ export interface AddWaiverToTransitivePolicyViolationsByAppScanComponentRequest
|
|
|
51
51
|
apiWaiverOptionsDTO?: ApiWaiverOptionsDTO;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export interface
|
|
54
|
+
export interface PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest {
|
|
55
55
|
ownerType: AddWaiverToTransitivePolicyViolationsByOwnerStageComponentOwnerTypeEnum;
|
|
56
56
|
ownerId: string;
|
|
57
57
|
stageId: string;
|
|
@@ -61,24 +61,24 @@ export interface AddWaiverToTransitivePolicyViolationsByOwnerStageComponentReque
|
|
|
61
61
|
hash?: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export interface
|
|
64
|
+
export interface PolicyWaiversApiDeletePolicyWaiverRequest {
|
|
65
65
|
ownerType: DeletePolicyWaiverOwnerTypeEnum;
|
|
66
66
|
ownerId: string;
|
|
67
67
|
policyWaiverId: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export interface
|
|
70
|
+
export interface PolicyWaiversApiGetPolicyWaiverRequest {
|
|
71
71
|
ownerType: GetPolicyWaiverOwnerTypeEnum;
|
|
72
72
|
ownerId: string;
|
|
73
73
|
policyWaiverId: string;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export interface
|
|
76
|
+
export interface PolicyWaiversApiGetPolicyWaiversRequest {
|
|
77
77
|
ownerType: GetPolicyWaiversOwnerTypeEnum;
|
|
78
78
|
ownerId: string;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export interface
|
|
81
|
+
export interface PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest {
|
|
82
82
|
ownerType: GetTransitivePolicyWaiversByAppScanComponentOwnerTypeEnum;
|
|
83
83
|
ownerId: string;
|
|
84
84
|
scanId: string;
|
|
@@ -87,12 +87,12 @@ export interface GetTransitivePolicyWaiversByAppScanComponentRequest {
|
|
|
87
87
|
hash?: string;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export interface
|
|
90
|
+
export interface PolicyWaiversApiRequestPolicyWaiverRequest {
|
|
91
91
|
policyViolationId: string;
|
|
92
92
|
apiRequestPolicyWaiverDTO?: ApiRequestPolicyWaiverDTO;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export interface
|
|
95
|
+
export interface PolicyWaiversApiUpdatePolicyWaiverRequest {
|
|
96
96
|
ownerType: UpdatePolicyWaiverOwnerTypeEnum;
|
|
97
97
|
ownerId: string;
|
|
98
98
|
policyWaiverId: string;
|
|
@@ -116,12 +116,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
116
116
|
* @throws {RequiredError}
|
|
117
117
|
* @memberof PolicyWaiversApiInterface
|
|
118
118
|
*/
|
|
119
|
-
addPolicyWaiverByPolicyViolationIdRaw(requestParameters:
|
|
119
|
+
addPolicyWaiverByPolicyViolationIdRaw(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Use this method to create a policy waiver. Permissions required: Waive Policy Violations
|
|
123
123
|
*/
|
|
124
|
-
addPolicyWaiverByPolicyViolationId(requestParameters:
|
|
124
|
+
addPolicyWaiverByPolicyViolationId(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations
|
|
@@ -136,12 +136,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
* @memberof PolicyWaiversApiInterface
|
|
138
138
|
*/
|
|
139
|
-
addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters:
|
|
139
|
+
addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations
|
|
143
143
|
*/
|
|
144
|
-
addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters:
|
|
144
|
+
addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations
|
|
@@ -156,12 +156,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
156
156
|
* @throws {RequiredError}
|
|
157
157
|
* @memberof PolicyWaiversApiInterface
|
|
158
158
|
*/
|
|
159
|
-
addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters:
|
|
159
|
+
addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations
|
|
163
163
|
*/
|
|
164
|
-
addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters:
|
|
164
|
+
addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations
|
|
@@ -172,12 +172,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
172
172
|
* @throws {RequiredError}
|
|
173
173
|
* @memberof PolicyWaiversApiInterface
|
|
174
174
|
*/
|
|
175
|
-
deletePolicyWaiverRaw(requestParameters:
|
|
175
|
+
deletePolicyWaiverRaw(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations
|
|
179
179
|
*/
|
|
180
|
-
deletePolicyWaiver(requestParameters:
|
|
180
|
+
deletePolicyWaiver(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements
|
|
@@ -188,12 +188,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
* @memberof PolicyWaiversApiInterface
|
|
190
190
|
*/
|
|
191
|
-
getPolicyWaiverRaw(requestParameters:
|
|
191
|
+
getPolicyWaiverRaw(requestParameters: PolicyWaiversApiGetPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPolicyWaiverDTO>>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
194
|
* Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements
|
|
195
195
|
*/
|
|
196
|
-
getPolicyWaiver(requestParameters:
|
|
196
|
+
getPolicyWaiver(requestParameters: PolicyWaiversApiGetPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPolicyWaiverDTO>;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements
|
|
@@ -203,12 +203,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
* @memberof PolicyWaiversApiInterface
|
|
205
205
|
*/
|
|
206
|
-
getPolicyWaiversRaw(requestParameters:
|
|
206
|
+
getPolicyWaiversRaw(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPolicyWaiverDTO>>>;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements
|
|
210
210
|
*/
|
|
211
|
-
getPolicyWaivers(requestParameters:
|
|
211
|
+
getPolicyWaivers(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPolicyWaiverDTO>>;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements
|
|
@@ -222,12 +222,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
222
222
|
* @throws {RequiredError}
|
|
223
223
|
* @memberof PolicyWaiversApiInterface
|
|
224
224
|
*/
|
|
225
|
-
getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters:
|
|
225
|
+
getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentPolicyWaiversDTO>>;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements
|
|
229
229
|
*/
|
|
230
|
-
getTransitivePolicyWaiversByAppScanComponent(requestParameters:
|
|
230
|
+
getTransitivePolicyWaiversByAppScanComponent(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO>;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025.
|
|
@@ -238,13 +238,13 @@ export interface PolicyWaiversApiInterface {
|
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
* @memberof PolicyWaiversApiInterface
|
|
240
240
|
*/
|
|
241
|
-
requestPolicyWaiverRaw(requestParameters:
|
|
241
|
+
requestPolicyWaiverRaw(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025.
|
|
245
245
|
* @deprecated
|
|
246
246
|
*/
|
|
247
|
-
requestPolicyWaiver(requestParameters:
|
|
247
|
+
requestPolicyWaiver(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations
|
|
@@ -256,12 +256,12 @@ export interface PolicyWaiversApiInterface {
|
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
* @memberof PolicyWaiversApiInterface
|
|
258
258
|
*/
|
|
259
|
-
updatePolicyWaiverRaw(requestParameters:
|
|
259
|
+
updatePolicyWaiverRaw(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
262
|
* Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations
|
|
263
263
|
*/
|
|
264
|
-
updatePolicyWaiver(requestParameters:
|
|
264
|
+
updatePolicyWaiver(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
265
265
|
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -273,7 +273,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
273
273
|
/**
|
|
274
274
|
* Use this method to create a policy waiver. Permissions required: Waive Policy Violations
|
|
275
275
|
*/
|
|
276
|
-
async addPolicyWaiverByPolicyViolationIdRaw(requestParameters:
|
|
276
|
+
async addPolicyWaiverByPolicyViolationIdRaw(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
277
277
|
if (requestParameters['ownerType'] == null) {
|
|
278
278
|
throw new runtime.RequiredError(
|
|
279
279
|
'ownerType',
|
|
@@ -325,14 +325,14 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
325
325
|
/**
|
|
326
326
|
* Use this method to create a policy waiver. Permissions required: Waive Policy Violations
|
|
327
327
|
*/
|
|
328
|
-
async addPolicyWaiverByPolicyViolationId(requestParameters:
|
|
328
|
+
async addPolicyWaiverByPolicyViolationId(requestParameters: PolicyWaiversApiAddPolicyWaiverByPolicyViolationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
329
329
|
await this.addPolicyWaiverByPolicyViolationIdRaw(requestParameters, initOverrides);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
333
|
* Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations
|
|
334
334
|
*/
|
|
335
|
-
async addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters:
|
|
335
|
+
async addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
336
336
|
if (requestParameters['ownerType'] == null) {
|
|
337
337
|
throw new runtime.RequiredError(
|
|
338
338
|
'ownerType',
|
|
@@ -389,14 +389,14 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
389
389
|
/**
|
|
390
390
|
* Use this method to create a policy waiver on a transitive component detected during the specified scan. NOTE: Any one of the input parameters, i.e. component identifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: Waive Policy Violations
|
|
391
391
|
*/
|
|
392
|
-
async addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters:
|
|
392
|
+
async addWaiverToTransitivePolicyViolationsByAppScanComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
393
393
|
await this.addWaiverToTransitivePolicyViolationsByAppScanComponentRaw(requestParameters, initOverrides);
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
397
|
* Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations
|
|
398
398
|
*/
|
|
399
|
-
async addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters:
|
|
399
|
+
async addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
400
400
|
if (requestParameters['ownerType'] == null) {
|
|
401
401
|
throw new runtime.RequiredError(
|
|
402
402
|
'ownerType',
|
|
@@ -460,14 +460,14 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
460
460
|
/**
|
|
461
461
|
* Use this method to add a waiver for all transitive violations for a given component, detected in the latest scan at the stage specified. Permissions required: Waive Policy Violations
|
|
462
462
|
*/
|
|
463
|
-
async addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters:
|
|
463
|
+
async addWaiverToTransitivePolicyViolationsByOwnerStageComponent(requestParameters: PolicyWaiversApiAddWaiverToTransitivePolicyViolationsByOwnerStageComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
464
464
|
await this.addWaiverToTransitivePolicyViolationsByOwnerStageComponentRaw(requestParameters, initOverrides);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
/**
|
|
468
468
|
* Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations
|
|
469
469
|
*/
|
|
470
|
-
async deletePolicyWaiverRaw(requestParameters:
|
|
470
|
+
async deletePolicyWaiverRaw(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
471
471
|
if (requestParameters['ownerType'] == null) {
|
|
472
472
|
throw new runtime.RequiredError(
|
|
473
473
|
'ownerType',
|
|
@@ -509,14 +509,14 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
509
509
|
/**
|
|
510
510
|
* Use this method to delete a waiver, specified by the policyWaiverId. Permissions required: Waive Policy Violations
|
|
511
511
|
*/
|
|
512
|
-
async deletePolicyWaiver(requestParameters:
|
|
512
|
+
async deletePolicyWaiver(requestParameters: PolicyWaiversApiDeletePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
513
513
|
await this.deletePolicyWaiverRaw(requestParameters, initOverrides);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
517
|
* Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements
|
|
518
518
|
*/
|
|
519
|
-
async getPolicyWaiverRaw(requestParameters:
|
|
519
|
+
async getPolicyWaiverRaw(requestParameters: PolicyWaiversApiGetPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPolicyWaiverDTO>> {
|
|
520
520
|
if (requestParameters['ownerType'] == null) {
|
|
521
521
|
throw new runtime.RequiredError(
|
|
522
522
|
'ownerType',
|
|
@@ -558,7 +558,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
558
558
|
/**
|
|
559
559
|
* Use this method to retrieve waiver details for the waiverId specified. Permissions required: View IQ Elements
|
|
560
560
|
*/
|
|
561
|
-
async getPolicyWaiver(requestParameters:
|
|
561
|
+
async getPolicyWaiver(requestParameters: PolicyWaiversApiGetPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPolicyWaiverDTO> {
|
|
562
562
|
const response = await this.getPolicyWaiverRaw(requestParameters, initOverrides);
|
|
563
563
|
return await response.value();
|
|
564
564
|
}
|
|
@@ -566,7 +566,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
566
566
|
/**
|
|
567
567
|
* Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements
|
|
568
568
|
*/
|
|
569
|
-
async getPolicyWaiversRaw(requestParameters:
|
|
569
|
+
async getPolicyWaiversRaw(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPolicyWaiverDTO>>> {
|
|
570
570
|
if (requestParameters['ownerType'] == null) {
|
|
571
571
|
throw new runtime.RequiredError(
|
|
572
572
|
'ownerType',
|
|
@@ -601,7 +601,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
601
601
|
/**
|
|
602
602
|
* Use this method to retrieve waiver details for all policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements
|
|
603
603
|
*/
|
|
604
|
-
async getPolicyWaivers(requestParameters:
|
|
604
|
+
async getPolicyWaivers(requestParameters: PolicyWaiversApiGetPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPolicyWaiverDTO>> {
|
|
605
605
|
const response = await this.getPolicyWaiversRaw(requestParameters, initOverrides);
|
|
606
606
|
return await response.value();
|
|
607
607
|
}
|
|
@@ -609,7 +609,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
609
609
|
/**
|
|
610
610
|
* Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements
|
|
611
611
|
*/
|
|
612
|
-
async getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters:
|
|
612
|
+
async getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiComponentPolicyWaiversDTO>> {
|
|
613
613
|
if (requestParameters['ownerType'] == null) {
|
|
614
614
|
throw new runtime.RequiredError(
|
|
615
615
|
'ownerType',
|
|
@@ -663,7 +663,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
663
663
|
/**
|
|
664
664
|
* Use this method to retrieve all waivers on policy violations due to transitive dependencies for a specific component detected in a specific scan. Any one of the input parameters, i.e. componentIdentifier, packageUrl or hash is required. If more than one is provided, the system will pick them in the order specified here. Permissions required: View IQ Elements
|
|
665
665
|
*/
|
|
666
|
-
async getTransitivePolicyWaiversByAppScanComponent(requestParameters:
|
|
666
|
+
async getTransitivePolicyWaiversByAppScanComponent(requestParameters: PolicyWaiversApiGetTransitivePolicyWaiversByAppScanComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiComponentPolicyWaiversDTO> {
|
|
667
667
|
const response = await this.getTransitivePolicyWaiversByAppScanComponentRaw(requestParameters, initOverrides);
|
|
668
668
|
return await response.value();
|
|
669
669
|
}
|
|
@@ -672,7 +672,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
672
672
|
* Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025.
|
|
673
673
|
* @deprecated
|
|
674
674
|
*/
|
|
675
|
-
async requestPolicyWaiverRaw(requestParameters:
|
|
675
|
+
async requestPolicyWaiverRaw(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
676
676
|
if (requestParameters['policyViolationId'] == null) {
|
|
677
677
|
throw new runtime.RequiredError(
|
|
678
678
|
'policyViolationId',
|
|
@@ -704,14 +704,14 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
704
704
|
* Deprecated since IQ Server 1.192. Triggers a \'Waiver Request\' webhook event. Deprecated because the webhook event is now integrated into the policy waiver request process. Please use `api/v2/policyWaiverRequests{ownerType}/policyViolation/{policyViolationId}` instead. Scheduled for removal in December 2025.
|
|
705
705
|
* @deprecated
|
|
706
706
|
*/
|
|
707
|
-
async requestPolicyWaiver(requestParameters:
|
|
707
|
+
async requestPolicyWaiver(requestParameters: PolicyWaiversApiRequestPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
708
708
|
await this.requestPolicyWaiverRaw(requestParameters, initOverrides);
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
/**
|
|
712
712
|
* Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations
|
|
713
713
|
*/
|
|
714
|
-
async updatePolicyWaiverRaw(requestParameters:
|
|
714
|
+
async updatePolicyWaiverRaw(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
715
715
|
if (requestParameters['ownerType'] == null) {
|
|
716
716
|
throw new runtime.RequiredError(
|
|
717
717
|
'ownerType',
|
|
@@ -763,7 +763,7 @@ export class PolicyWaiversApi extends runtime.BaseAPI implements PolicyWaiversAp
|
|
|
763
763
|
/**
|
|
764
764
|
* Use this method to update an existing policy waiver. Permissions required: Waive Policy Violations
|
|
765
765
|
*/
|
|
766
|
-
async updatePolicyWaiver(requestParameters:
|
|
766
|
+
async updatePolicyWaiver(requestParameters: PolicyWaiversApiUpdatePolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
767
767
|
await this.updatePolicyWaiverRaw(requestParameters, initOverrides);
|
|
768
768
|
}
|
|
769
769
|
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Lifecycle Public REST API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.193.0-01
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
|
|
18
|
+
export interface ProductLicenseApiInstallLicenseRequest {
|
|
19
|
+
file?: Blob;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* ProductLicenseApi - interface
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ProductLicenseApiInterface
|
|
27
|
+
*/
|
|
28
|
+
export interface ProductLicenseApiInterface {
|
|
29
|
+
/**
|
|
30
|
+
* Use this method to install a product license Permissions required: Edit System Configuration and Users
|
|
31
|
+
* @param {Blob} [file] Your product license file
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
* @memberof ProductLicenseApiInterface
|
|
35
|
+
*/
|
|
36
|
+
installLicenseRaw(requestParameters: ProductLicenseApiInstallLicenseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Use this method to install a product license Permissions required: Edit System Configuration and Users
|
|
40
|
+
*/
|
|
41
|
+
installLicense(requestParameters: ProductLicenseApiInstallLicenseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Use this method to uninstall a product license. Permissions required: Edit System Configuration and Users
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
* @memberof ProductLicenseApiInterface
|
|
48
|
+
*/
|
|
49
|
+
uninstallLicenseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Use this method to uninstall a product license. Permissions required: Edit System Configuration and Users
|
|
53
|
+
*/
|
|
54
|
+
uninstallLicense(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export class ProductLicenseApi extends runtime.BaseAPI implements ProductLicenseApiInterface {
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Use this method to install a product license Permissions required: Edit System Configuration and Users
|
|
65
|
+
*/
|
|
66
|
+
async installLicenseRaw(requestParameters: ProductLicenseApiInstallLicenseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
67
|
+
const queryParameters: any = {};
|
|
68
|
+
|
|
69
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
70
|
+
|
|
71
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
72
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
73
|
+
}
|
|
74
|
+
const consumes: runtime.Consume[] = [
|
|
75
|
+
{ contentType: 'multipart/form-data' },
|
|
76
|
+
];
|
|
77
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
78
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
79
|
+
|
|
80
|
+
let formParams: { append(param: string, value: any): any };
|
|
81
|
+
let useForm = false;
|
|
82
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
83
|
+
useForm = canConsumeForm;
|
|
84
|
+
if (useForm) {
|
|
85
|
+
formParams = new FormData();
|
|
86
|
+
} else {
|
|
87
|
+
formParams = new URLSearchParams();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (requestParameters['file'] != null) {
|
|
91
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const response = await this.request({
|
|
95
|
+
path: `/api/v2/product/license`,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
body: formParams,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
|
|
102
|
+
return new runtime.VoidApiResponse(response);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Use this method to install a product license Permissions required: Edit System Configuration and Users
|
|
107
|
+
*/
|
|
108
|
+
async installLicense(requestParameters: ProductLicenseApiInstallLicenseRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
109
|
+
await this.installLicenseRaw(requestParameters, initOverrides);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Use this method to uninstall a product license. Permissions required: Edit System Configuration and Users
|
|
114
|
+
*/
|
|
115
|
+
async uninstallLicenseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
116
|
+
const queryParameters: any = {};
|
|
117
|
+
|
|
118
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
119
|
+
|
|
120
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
121
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
122
|
+
}
|
|
123
|
+
const response = await this.request({
|
|
124
|
+
path: `/api/v2/product/license`,
|
|
125
|
+
method: 'DELETE',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
}, initOverrides);
|
|
129
|
+
|
|
130
|
+
return new runtime.VoidApiResponse(response);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Use this method to uninstall a product license. Permissions required: Edit System Configuration and Users
|
|
135
|
+
*/
|
|
136
|
+
async uninstallLicense(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
137
|
+
await this.uninstallLicenseRaw(initOverrides);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
}
|