@sonatype/nexus-iq-api-client 0.156.1 → 0.156.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  2. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  3. package/dist/apis/ApplicationsApi.d.ts +1 -1
  4. package/dist/apis/ApplicationsApi.js +53 -14
  5. package/dist/apis/ClaimApi.d.ts +1 -1
  6. package/dist/apis/ClaimApi.js +17 -5
  7. package/dist/apis/ComponentsApi.d.ts +1 -1
  8. package/dist/apis/ComponentsApi.js +21 -6
  9. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  10. package/dist/apis/CompositeSourceControlApi.js +5 -2
  11. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  13. package/dist/apis/ConfigApi.js +15 -0
  14. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  15. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  16. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  17. package/dist/apis/ConfigCrowdApi.js +17 -5
  18. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  19. package/dist/apis/ConfigJIRAApi.js +11 -2
  20. package/dist/apis/ConfigMailApi.d.ts +1 -1
  21. package/dist/apis/ConfigMailApi.js +16 -4
  22. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  23. package/dist/apis/ConfigProxyServerApi.js +12 -3
  24. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  26. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  27. package/dist/apis/ConfigSAMLApi.js +11 -2
  28. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  29. package/dist/apis/ConfigSourceControlApi.js +11 -2
  30. package/dist/apis/CycloneDxApi.js +12 -0
  31. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  32. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  33. package/dist/apis/EndpointsApi.js +3 -0
  34. package/dist/apis/EvaluationApi.d.ts +1 -1
  35. package/dist/apis/EvaluationApi.js +29 -11
  36. package/dist/apis/FirewallApi.d.ts +1 -1
  37. package/dist/apis/FirewallApi.js +30 -6
  38. package/dist/apis/LabelsApi.d.ts +1 -1
  39. package/dist/apis/LabelsApi.js +26 -8
  40. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  41. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  42. package/dist/apis/OrganizationsApi.d.ts +1 -1
  43. package/dist/apis/OrganizationsApi.js +14 -5
  44. package/dist/apis/PoliciesApi.d.ts +1 -1
  45. package/dist/apis/PoliciesApi.js +5 -2
  46. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  47. package/dist/apis/PolicyViolationsApi.js +25 -7
  48. package/dist/apis/PolicyWaiverApi.js +3 -0
  49. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  50. package/dist/apis/PolicyWaiversApi.js +28 -7
  51. package/dist/apis/ReportsApi.d.ts +1 -1
  52. package/dist/apis/ReportsApi.js +29 -8
  53. package/dist/apis/RepositoriesApi.d.ts +1 -1
  54. package/dist/apis/RepositoriesApi.js +9 -3
  55. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  56. package/dist/apis/RoleMembershipsApi.js +21 -3
  57. package/dist/apis/RolesApi.d.ts +1 -1
  58. package/dist/apis/RolesApi.js +5 -2
  59. package/dist/apis/ScanApi.d.ts +1 -1
  60. package/dist/apis/ScanApi.js +8 -2
  61. package/dist/apis/SearchApi.d.ts +1 -1
  62. package/dist/apis/SearchApi.js +15 -3
  63. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  64. package/dist/apis/SecurityOverridesApi.js +5 -2
  65. package/dist/apis/SourceControlApi.d.ts +1 -1
  66. package/dist/apis/SourceControlApi.js +22 -7
  67. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  68. package/dist/apis/SourceControlMetricsApi.js +5 -2
  69. package/dist/apis/TelemetryApi.js +3 -0
  70. package/dist/apis/UserTokensApi.d.ts +1 -1
  71. package/dist/apis/UserTokensApi.js +26 -5
  72. package/dist/apis/UsersApi.d.ts +1 -1
  73. package/dist/apis/UsersApi.js +21 -6
  74. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  75. package/dist/apis/VulnerabilitiesApi.js +5 -2
  76. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  77. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  78. package/dist/esm/apis/ApplicationsApi.d.ts +1 -1
  79. package/dist/esm/apis/ApplicationsApi.js +40 -1
  80. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  81. package/dist/esm/apis/ClaimApi.js +13 -1
  82. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  83. package/dist/esm/apis/ComponentsApi.js +16 -1
  84. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  86. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  88. package/dist/esm/apis/ConfigApi.js +15 -0
  89. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  91. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  92. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  93. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  94. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  95. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  96. package/dist/esm/apis/ConfigMailApi.js +13 -1
  97. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  99. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  101. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  102. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  103. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  105. package/dist/esm/apis/CycloneDxApi.js +12 -0
  106. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  107. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  108. package/dist/esm/apis/EndpointsApi.js +3 -0
  109. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  110. package/dist/esm/apis/EvaluationApi.js +19 -1
  111. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  112. package/dist/esm/apis/FirewallApi.js +25 -1
  113. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  114. package/dist/esm/apis/LabelsApi.js +19 -1
  115. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  117. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  118. package/dist/esm/apis/OrganizationsApi.js +10 -1
  119. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  120. package/dist/esm/apis/PoliciesApi.js +4 -1
  121. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  122. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  123. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  124. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  125. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  126. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  127. package/dist/esm/apis/ReportsApi.js +22 -1
  128. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  129. package/dist/esm/apis/RepositoriesApi.js +7 -1
  130. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  131. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  132. package/dist/esm/apis/RolesApi.d.ts +1 -1
  133. package/dist/esm/apis/RolesApi.js +4 -1
  134. package/dist/esm/apis/ScanApi.d.ts +1 -1
  135. package/dist/esm/apis/ScanApi.js +7 -1
  136. package/dist/esm/apis/SearchApi.d.ts +1 -1
  137. package/dist/esm/apis/SearchApi.js +13 -1
  138. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  139. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  140. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  141. package/dist/esm/apis/SourceControlApi.js +16 -1
  142. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  144. package/dist/esm/apis/TelemetryApi.js +3 -0
  145. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  146. package/dist/esm/apis/UserTokensApi.js +22 -1
  147. package/dist/esm/apis/UsersApi.d.ts +1 -1
  148. package/dist/esm/apis/UsersApi.js +16 -1
  149. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  151. package/dist/esm/index.d.ts +2 -2
  152. package/dist/esm/index.js +2 -2
  153. package/dist/esm/runtime.js +13 -5
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.js +2 -2
  156. package/dist/runtime.js +13 -5
  157. package/package.json +1 -1
  158. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  159. package/src/apis/ApplicationsApi.ts +41 -2
  160. package/src/apis/ClaimApi.ts +14 -2
  161. package/src/apis/ComponentsApi.ts +17 -2
  162. package/src/apis/CompositeSourceControlApi.ts +5 -2
  163. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  164. package/src/apis/ConfigApi.ts +15 -0
  165. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  166. package/src/apis/ConfigCrowdApi.ts +14 -2
  167. package/src/apis/ConfigJIRAApi.ts +11 -2
  168. package/src/apis/ConfigMailApi.ts +14 -2
  169. package/src/apis/ConfigProxyServerApi.ts +11 -2
  170. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  171. package/src/apis/ConfigSAMLApi.ts +11 -2
  172. package/src/apis/ConfigSourceControlApi.ts +11 -2
  173. package/src/apis/CycloneDxApi.ts +12 -0
  174. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  175. package/src/apis/EndpointsApi.ts +3 -0
  176. package/src/apis/EvaluationApi.ts +20 -2
  177. package/src/apis/FirewallApi.ts +26 -2
  178. package/src/apis/LabelsApi.ts +20 -2
  179. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  180. package/src/apis/OrganizationsApi.ts +11 -2
  181. package/src/apis/PoliciesApi.ts +5 -2
  182. package/src/apis/PolicyViolationsApi.ts +20 -2
  183. package/src/apis/PolicyWaiverApi.ts +3 -0
  184. package/src/apis/PolicyWaiversApi.ts +23 -2
  185. package/src/apis/ReportsApi.ts +23 -2
  186. package/src/apis/RepositoriesApi.ts +8 -2
  187. package/src/apis/RoleMembershipsApi.ts +20 -2
  188. package/src/apis/RolesApi.ts +5 -2
  189. package/src/apis/ScanApi.ts +8 -2
  190. package/src/apis/SearchApi.ts +14 -2
  191. package/src/apis/SecurityOverridesApi.ts +5 -2
  192. package/src/apis/SourceControlApi.ts +17 -2
  193. package/src/apis/SourceControlMetricsApi.ts +5 -2
  194. package/src/apis/TelemetryApi.ts +3 -0
  195. package/src/apis/UserTokensApi.ts +23 -2
  196. package/src/apis/UsersApi.ts +17 -2
  197. package/src/apis/VulnerabilitiesApi.ts +5 -2
  198. package/src/index.ts +2 -2
  199. package/src/runtime.ts +12 -6
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models';
24
+ import { ApiComponentDTOV2ToJSON, ApiComponentDetailsRequestDTOV2ToJSON, ApiComponentDetailsResultDTOV2FromJSON, ApiComponentOrPurlIdentifierDTOV2ToJSON, ApiComponentRemediationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -44,6 +44,9 @@ export class ComponentsApi extends runtime.BaseAPI {
44
44
  }
45
45
  const queryParameters = {};
46
46
  const headerParameters = {};
47
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
48
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
49
+ }
47
50
  const response = yield this.request({
48
51
  path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
49
52
  method: 'DELETE',
@@ -67,6 +70,9 @@ export class ComponentsApi extends runtime.BaseAPI {
67
70
  const queryParameters = {};
68
71
  const headerParameters = {};
69
72
  headerParameters['Content-Type'] = 'application/json';
73
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
74
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
75
+ }
70
76
  const response = yield this.request({
71
77
  path: `/api/v2/components/details`,
72
78
  method: 'POST',
@@ -92,6 +98,9 @@ export class ComponentsApi extends runtime.BaseAPI {
92
98
  const queryParameters = {};
93
99
  const headerParameters = {};
94
100
  headerParameters['Content-Type'] = 'application/json';
101
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
102
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
103
+ }
95
104
  const response = yield this.request({
96
105
  path: `/api/v2/components/versions`,
97
106
  method: 'POST',
@@ -132,6 +141,9 @@ export class ComponentsApi extends runtime.BaseAPI {
132
141
  }
133
142
  const headerParameters = {};
134
143
  headerParameters['Content-Type'] = 'application/json';
144
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
145
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
146
+ }
135
147
  const response = yield this.request({
136
148
  path: `/api/v2/components/remediation/{ownerType}/{ownerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"ownerId"}}`, encodeURIComponent(String(requestParameters.ownerId))),
137
149
  method: 'POST',
@@ -168,6 +180,9 @@ export class ComponentsApi extends runtime.BaseAPI {
168
180
  }
169
181
  const queryParameters = {};
170
182
  const headerParameters = {};
183
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
184
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
185
+ }
171
186
  const response = yield this.request({
172
187
  path: `/api/v2/components/{componentHash}/labels/{labelName}/{ownerType}s/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"componentHash"}}`, encodeURIComponent(String(requestParameters.componentHash))).replace(`{${"labelName"}}`, encodeURIComponent(String(requestParameters.labelName))),
173
188
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiCompositeSourceControlDTO } from '../models';
13
+ import type { ApiCompositeSourceControlDTO } from '../models/index';
14
14
  export interface GetCompositeSourceControlByOwnerRequest {
15
15
  ownerType: GetCompositeSourceControlByOwnerOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiCompositeSourceControlDTOFromJSON, } from '../models';
24
+ import { ApiCompositeSourceControlDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class CompositeSourceControlApi extends runtime.BaseAPI {
38
38
  }
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
42
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
43
+ }
41
44
  const response = yield this.request({
42
45
  path: `/api/v2/compositeSourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
43
46
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ConfigurationValidationResult } from '../models';
13
+ import type { ConfigurationValidationResult } from '../models/index';
14
14
  export interface ValidateSourceControlConfigRequest {
15
15
  applicationId: string;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ConfigurationValidationResultFromJSON, } from '../models';
24
+ import { ConfigurationValidationResultFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -35,6 +35,9 @@ export class CompositeSourceControlConfigValidatorApi extends runtime.BaseAPI {
35
35
  }
36
36
  const queryParameters = {};
37
37
  const headerParameters = {};
38
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
39
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
40
+ }
38
41
  const response = yield this.request({
39
42
  path: `/api/v2/compositeSourceControlConfigValidator/application/{applicationId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))),
40
43
  method: 'GET',
@@ -34,6 +34,9 @@ export class ConfigApi extends runtime.BaseAPI {
34
34
  queryParameters['property'] = requestParameters.property;
35
35
  }
36
36
  const headerParameters = {};
37
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
38
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
39
+ }
37
40
  const response = yield this.request({
38
41
  path: `/api/v2/config`,
39
42
  method: 'DELETE',
@@ -59,6 +62,9 @@ export class ConfigApi extends runtime.BaseAPI {
59
62
  }
60
63
  const queryParameters = {};
61
64
  const headerParameters = {};
65
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
66
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
67
+ }
62
68
  const response = yield this.request({
63
69
  path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
64
70
  method: 'DELETE',
@@ -84,6 +90,9 @@ export class ConfigApi extends runtime.BaseAPI {
84
90
  }
85
91
  const queryParameters = {};
86
92
  const headerParameters = {};
93
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
94
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
95
+ }
87
96
  const response = yield this.request({
88
97
  path: `/api/v2/config/features/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters.feature))),
89
98
  method: 'POST',
@@ -109,6 +118,9 @@ export class ConfigApi extends runtime.BaseAPI {
109
118
  queryParameters['property'] = requestParameters.property;
110
119
  }
111
120
  const headerParameters = {};
121
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
122
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
123
+ }
112
124
  const response = yield this.request({
113
125
  path: `/api/v2/config`,
114
126
  method: 'GET',
@@ -133,6 +145,9 @@ export class ConfigApi extends runtime.BaseAPI {
133
145
  const queryParameters = {};
134
146
  const headerParameters = {};
135
147
  headerParameters['Content-Type'] = 'application/json';
148
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
149
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
150
+ }
136
151
  const response = yield this.request({
137
152
  path: `/api/v2/config`,
138
153
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models';
13
+ import type { ApiArtifactoryConnectionDTO, ApiArtifactoryConnectionStatusRequestDTO, ApiOwnerArtifactoryConnectionDTO, ApiStatusDTO } from '../models/index';
14
14
  export interface AddArtifactoryConnectionRequest {
15
15
  ownerType: AddArtifactoryConnectionOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models';
24
+ import { ApiArtifactoryConnectionDTOFromJSON, ApiArtifactoryConnectionDTOToJSON, ApiArtifactoryConnectionStatusRequestDTOToJSON, ApiOwnerArtifactoryConnectionDTOFromJSON, ApiStatusDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -39,6 +39,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
41
  headerParameters['Content-Type'] = 'application/json';
42
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
43
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
44
+ }
42
45
  const response = yield this.request({
43
46
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
44
47
  method: 'POST',
@@ -72,6 +75,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
72
75
  }
73
76
  const queryParameters = {};
74
77
  const headerParameters = {};
78
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
79
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
80
+ }
75
81
  const response = yield this.request({
76
82
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
77
83
  method: 'DELETE',
@@ -103,6 +109,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
103
109
  }
104
110
  const queryParameters = {};
105
111
  const headerParameters = {};
112
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
113
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
114
+ }
106
115
  const response = yield this.request({
107
116
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
108
117
  method: 'GET',
@@ -135,6 +144,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
135
144
  queryParameters['inherit'] = requestParameters.inherit;
136
145
  }
137
146
  const headerParameters = {};
147
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
148
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
149
+ }
138
150
  const response = yield this.request({
139
151
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
140
152
  method: 'GET',
@@ -165,6 +177,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
165
177
  const queryParameters = {};
166
178
  const headerParameters = {};
167
179
  headerParameters['Content-Type'] = 'application/json';
180
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
181
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
182
+ }
168
183
  const response = yield this.request({
169
184
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
170
185
  method: 'POST',
@@ -198,6 +213,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
198
213
  }
199
214
  const queryParameters = {};
200
215
  const headerParameters = {};
216
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
217
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
218
+ }
201
219
  const response = yield this.request({
202
220
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}/test`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
203
221
  method: 'POST',
@@ -231,6 +249,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
231
249
  const queryParameters = {};
232
250
  const headerParameters = {};
233
251
  headerParameters['Content-Type'] = 'application/json';
252
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
253
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
254
+ }
234
255
  const response = yield this.request({
235
256
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}/{artifactoryConnectionId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))).replace(`{${"artifactoryConnectionId"}}`, encodeURIComponent(String(requestParameters.artifactoryConnectionId))),
236
257
  method: 'PUT',
@@ -262,6 +283,9 @@ export class ConfigArtifactoryConnectionApi extends runtime.BaseAPI {
262
283
  const queryParameters = {};
263
284
  const headerParameters = {};
264
285
  headerParameters['Content-Type'] = 'application/json';
286
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
287
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
288
+ }
265
289
  const response = yield this.request({
266
290
  path: `/api/v2/config/artifactoryConnection/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
267
291
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models';
13
+ import type { ApiCrowdConfigurationDTO, ApiStatusDTO } from '../models/index';
14
14
  export interface InsertOrUpdateCrowdConfigurationRequest {
15
15
  apiCrowdConfigurationDTO?: ApiCrowdConfigurationDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models';
24
+ import { ApiCrowdConfigurationDTOFromJSON, ApiCrowdConfigurationDTOToJSON, ApiStatusDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/crowd`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/crowd`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/crowd`,
83
92
  method: 'PUT',
@@ -102,6 +111,9 @@ export class ConfigCrowdApi extends runtime.BaseAPI {
102
111
  const queryParameters = {};
103
112
  const headerParameters = {};
104
113
  headerParameters['Content-Type'] = 'application/json';
114
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
115
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
116
+ }
105
117
  const response = yield this.request({
106
118
  path: `/api/v2/config/crowd/test`,
107
119
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiJiraConfigurationDTO } from '../models';
13
+ import type { ApiJiraConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration1Request {
15
15
  body?: object;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiJiraConfigurationDTOFromJSON, } from '../models';
24
+ import { ApiJiraConfigurationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/jira`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/jira`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigJIRAApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/jira`,
83
92
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiMailConfigurationDTO } from '../models';
13
+ import type { ApiMailConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration2Request {
15
15
  apiMailConfigurationDTO?: ApiMailConfigurationDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiMailConfigurationDTOFromJSON, ApiMailConfigurationDTOToJSON, } from '../models';
24
+ import { ApiMailConfigurationDTOFromJSON, ApiMailConfigurationDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigMailApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/mail`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigMailApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/mail`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigMailApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/mail`,
83
92
  method: 'PUT',
@@ -105,6 +114,9 @@ export class ConfigMailApi extends runtime.BaseAPI {
105
114
  const queryParameters = {};
106
115
  const headerParameters = {};
107
116
  headerParameters['Content-Type'] = 'application/json';
117
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
118
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
119
+ }
108
120
  const response = yield this.request({
109
121
  path: `/api/v2/config/mail/test/{recipientEmail}`.replace(`{${"recipientEmail"}}`, encodeURIComponent(String(requestParameters.recipientEmail))),
110
122
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiProxyServerConfigurationDTO } from '../models';
13
+ import type { ApiProxyServerConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration3Request {
15
15
  apiProxyServerConfigurationDTO?: ApiProxyServerConfigurationDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiProxyServerConfigurationDTOFromJSON, ApiProxyServerConfigurationDTOToJSON, } from '../models';
24
+ import { ApiProxyServerConfigurationDTOFromJSON, ApiProxyServerConfigurationDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/httpProxyServer`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/httpProxyServer`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigProxyServerApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/httpProxyServer`,
83
92
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiReverseProxyAuthenticationConfigurationDTO } from '../models';
13
+ import type { ApiReverseProxyAuthenticationConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration4Request {
15
15
  apiReverseProxyAuthenticationConfigurationDTO?: ApiReverseProxyAuthenticationConfigurationDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiReverseProxyAuthenticationConfigurationDTOFromJSON, ApiReverseProxyAuthenticationConfigurationDTOToJSON, } from '../models';
24
+ import { ApiReverseProxyAuthenticationConfigurationDTOFromJSON, ApiReverseProxyAuthenticationConfigurationDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/reverseProxyAuthentication`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/reverseProxyAuthentication`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigReverseProxyAuthenticationApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/reverseProxyAuthentication`,
83
92
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSamlConfigurationResponseDTO } from '../models';
13
+ import type { ApiSamlConfigurationResponseDTO } from '../models/index';
14
14
  /**
15
15
  * ConfigSAMLApi - interface
16
16
  *
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiSamlConfigurationResponseDTOFromJSON, } from '../models';
24
+ import { ApiSamlConfigurationResponseDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/saml`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/saml/metadata`,
59
65
  method: 'GET',
@@ -82,6 +88,9 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
82
88
  return __awaiter(this, void 0, void 0, function* () {
83
89
  const queryParameters = {};
84
90
  const headerParameters = {};
91
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
92
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
93
+ }
85
94
  const response = yield this.request({
86
95
  path: `/api/v2/config/saml`,
87
96
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSourceControlConfigurationDTO } from '../models';
13
+ import type { ApiSourceControlConfigurationDTO } from '../models/index';
14
14
  export interface SetConfiguration5Request {
15
15
  body?: object;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiSourceControlConfigurationDTOFromJSON, } from '../models';
24
+ import { ApiSourceControlConfigurationDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/config/sourceControl`,
37
40
  method: 'DELETE',
@@ -54,6 +57,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI {
54
57
  return __awaiter(this, void 0, void 0, function* () {
55
58
  const queryParameters = {};
56
59
  const headerParameters = {};
60
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
61
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
62
+ }
57
63
  const response = yield this.request({
58
64
  path: `/api/v2/config/sourceControl`,
59
65
  method: 'GET',
@@ -78,6 +84,9 @@ export class ConfigSourceControlApi extends runtime.BaseAPI {
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
88
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
89
+ }
81
90
  const response = yield this.request({
82
91
  path: `/api/v2/config/sourceControl`,
83
92
  method: 'PUT',