@goauthentik/api 2023.10.5-1703290840 → 2023.10.5-1703968412
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 +15 -0
- package/dist/apis/PropertymappingsApi.d.ts +85 -1
- package/dist/apis/PropertymappingsApi.js +240 -0
- package/dist/apis/ProvidersApi.d.ts +85 -1
- package/dist/apis/ProvidersApi.js +240 -0
- package/dist/apis/RacApi.d.ts +103 -0
- package/dist/apis/RacApi.js +276 -0
- package/dist/apis/RbacApi.d.ts +6 -0
- package/dist/apis/RbacApi.js +6 -0
- package/dist/apis/SchemaApi.d.ts +0 -1
- package/dist/apis/SchemaApi.js +0 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/PropertymappingsApi.d.ts +85 -1
- package/dist/esm/apis/PropertymappingsApi.js +241 -1
- package/dist/esm/apis/ProvidersApi.d.ts +85 -1
- package/dist/esm/apis/ProvidersApi.js +241 -1
- package/dist/esm/apis/RacApi.d.ts +103 -0
- package/dist/esm/apis/RacApi.js +272 -0
- package/dist/esm/apis/RbacApi.d.ts +6 -0
- package/dist/esm/apis/RbacApi.js +6 -0
- package/dist/esm/apis/SchemaApi.d.ts +0 -1
- package/dist/esm/apis/SchemaApi.js +0 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/AuthModeEnum.d.ts +25 -0
- package/dist/esm/models/AuthModeEnum.js +32 -0
- package/dist/esm/models/Endpoint.d.ts +89 -0
- package/dist/esm/models/Endpoint.js +69 -0
- package/dist/esm/models/EndpointRequest.d.ts +69 -0
- package/dist/esm/models/EndpointRequest.js +62 -0
- package/dist/esm/models/ModelEnum.d.ts +6 -0
- package/dist/esm/models/ModelEnum.js +6 -0
- package/dist/esm/models/ModelRequest.d.ts +3 -0
- package/dist/esm/models/ModelRequest.js +5 -0
- package/dist/esm/models/OutpostTypeEnum.d.ts +2 -0
- package/dist/esm/models/OutpostTypeEnum.js +2 -0
- package/dist/esm/models/PaginatedEndpointList.d.ts +39 -0
- package/dist/esm/models/PaginatedEndpointList.js +48 -0
- package/dist/esm/models/PaginatedRACPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRACPropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedRACProviderList.d.ts +39 -0
- package/dist/esm/models/PaginatedRACProviderList.js +48 -0
- package/dist/esm/models/PatchedEndpointRequest.d.ts +69 -0
- package/dist/esm/models/PatchedEndpointRequest.js +57 -0
- package/dist/esm/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
- package/dist/esm/models/PatchedRACPropertyMappingRequest.js +49 -0
- package/dist/esm/models/PatchedRACProviderRequest.d.ts +61 -0
- package/dist/esm/models/PatchedRACProviderRequest.js +53 -0
- package/dist/esm/models/ProtocolEnum.d.ts +27 -0
- package/dist/esm/models/ProtocolEnum.js +34 -0
- package/dist/esm/models/ProviderModelEnum.d.ts +2 -0
- package/dist/esm/models/ProviderModelEnum.js +2 -0
- package/dist/esm/models/RACPropertyMapping.d.ts +81 -0
- package/dist/esm/models/RACPropertyMapping.js +61 -0
- package/dist/esm/models/RACPropertyMappingRequest.d.ts +51 -0
- package/dist/esm/models/RACPropertyMappingRequest.js +51 -0
- package/dist/esm/models/RACProvider.d.ts +121 -0
- package/dist/esm/models/RACProvider.js +75 -0
- package/dist/esm/models/RACProviderRequest.d.ts +61 -0
- package/dist/esm/models/RACProviderRequest.js +55 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/AuthModeEnum.d.ts +25 -0
- package/dist/models/AuthModeEnum.js +38 -0
- package/dist/models/Endpoint.d.ts +89 -0
- package/dist/models/Endpoint.js +76 -0
- package/dist/models/EndpointRequest.d.ts +69 -0
- package/dist/models/EndpointRequest.js +69 -0
- package/dist/models/ModelEnum.d.ts +6 -0
- package/dist/models/ModelEnum.js +6 -0
- package/dist/models/ModelRequest.d.ts +3 -0
- package/dist/models/ModelRequest.js +5 -0
- package/dist/models/OutpostTypeEnum.d.ts +2 -0
- package/dist/models/OutpostTypeEnum.js +2 -0
- package/dist/models/PaginatedEndpointList.d.ts +39 -0
- package/dist/models/PaginatedEndpointList.js +55 -0
- package/dist/models/PaginatedRACPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRACPropertyMappingList.js +55 -0
- package/dist/models/PaginatedRACProviderList.d.ts +39 -0
- package/dist/models/PaginatedRACProviderList.js +55 -0
- package/dist/models/PatchedEndpointRequest.d.ts +69 -0
- package/dist/models/PatchedEndpointRequest.js +64 -0
- package/dist/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
- package/dist/models/PatchedRACPropertyMappingRequest.js +56 -0
- package/dist/models/PatchedRACProviderRequest.d.ts +61 -0
- package/dist/models/PatchedRACProviderRequest.js +60 -0
- package/dist/models/ProtocolEnum.d.ts +27 -0
- package/dist/models/ProtocolEnum.js +40 -0
- package/dist/models/ProviderModelEnum.d.ts +2 -0
- package/dist/models/ProviderModelEnum.js +2 -0
- package/dist/models/RACPropertyMapping.d.ts +81 -0
- package/dist/models/RACPropertyMapping.js +68 -0
- package/dist/models/RACPropertyMappingRequest.d.ts +51 -0
- package/dist/models/RACPropertyMappingRequest.js +58 -0
- package/dist/models/RACProvider.d.ts +121 -0
- package/dist/models/RACProvider.js +82 -0
- package/dist/models/RACProviderRequest.d.ts +61 -0
- package/dist/models/RACProviderRequest.js +62 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +317 -0
- package/src/apis/ProvidersApi.ts +317 -0
- package/src/apis/RacApi.ts +358 -0
- package/src/apis/RbacApi.ts +6 -0
- package/src/apis/SchemaApi.ts +0 -1
- package/src/apis/index.ts +1 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/AuthModeEnum.ts +40 -0
- package/src/models/Endpoint.ts +162 -0
- package/src/models/EndpointRequest.ts +131 -0
- package/src/models/ModelEnum.ts +6 -0
- package/src/models/ModelRequest.ts +12 -1
- package/src/models/OutpostTypeEnum.ts +2 -0
- package/src/models/PaginatedEndpointList.ts +88 -0
- package/src/models/PaginatedRACPropertyMappingList.ts +88 -0
- package/src/models/PaginatedRACProviderList.ts +88 -0
- package/src/models/PatchedEndpointRequest.ts +126 -0
- package/src/models/PatchedRACPropertyMappingRequest.ts +89 -0
- package/src/models/PatchedRACProviderRequest.ts +105 -0
- package/src/models/ProtocolEnum.ts +42 -0
- package/src/models/ProviderModelEnum.ts +2 -0
- package/src/models/RACPropertyMapping.ts +131 -0
- package/src/models/RACPropertyMappingRequest.ts +91 -0
- package/src/models/RACProvider.ts +187 -0
- package/src/models/RACProviderRequest.ts +107 -0
- package/src/models/index.ts +14 -0
|
@@ -23,17 +23,21 @@ import type {
|
|
|
23
23
|
PaginatedLDAPPropertyMappingList,
|
|
24
24
|
PaginatedNotificationWebhookMappingList,
|
|
25
25
|
PaginatedPropertyMappingList,
|
|
26
|
+
PaginatedRACPropertyMappingList,
|
|
26
27
|
PaginatedSAMLPropertyMappingList,
|
|
27
28
|
PaginatedSCIMMappingList,
|
|
28
29
|
PaginatedScopeMappingList,
|
|
29
30
|
PatchedLDAPPropertyMappingRequest,
|
|
30
31
|
PatchedNotificationWebhookMappingRequest,
|
|
32
|
+
PatchedRACPropertyMappingRequest,
|
|
31
33
|
PatchedSAMLPropertyMappingRequest,
|
|
32
34
|
PatchedSCIMMappingRequest,
|
|
33
35
|
PatchedScopeMappingRequest,
|
|
34
36
|
PolicyTestRequest,
|
|
35
37
|
PropertyMapping,
|
|
36
38
|
PropertyMappingTestResult,
|
|
39
|
+
RACPropertyMapping,
|
|
40
|
+
RACPropertyMappingRequest,
|
|
37
41
|
SAMLPropertyMapping,
|
|
38
42
|
SAMLPropertyMappingRequest,
|
|
39
43
|
SCIMMapping,
|
|
@@ -61,6 +65,8 @@ import {
|
|
|
61
65
|
PaginatedNotificationWebhookMappingListToJSON,
|
|
62
66
|
PaginatedPropertyMappingListFromJSON,
|
|
63
67
|
PaginatedPropertyMappingListToJSON,
|
|
68
|
+
PaginatedRACPropertyMappingListFromJSON,
|
|
69
|
+
PaginatedRACPropertyMappingListToJSON,
|
|
64
70
|
PaginatedSAMLPropertyMappingListFromJSON,
|
|
65
71
|
PaginatedSAMLPropertyMappingListToJSON,
|
|
66
72
|
PaginatedSCIMMappingListFromJSON,
|
|
@@ -71,6 +77,8 @@ import {
|
|
|
71
77
|
PatchedLDAPPropertyMappingRequestToJSON,
|
|
72
78
|
PatchedNotificationWebhookMappingRequestFromJSON,
|
|
73
79
|
PatchedNotificationWebhookMappingRequestToJSON,
|
|
80
|
+
PatchedRACPropertyMappingRequestFromJSON,
|
|
81
|
+
PatchedRACPropertyMappingRequestToJSON,
|
|
74
82
|
PatchedSAMLPropertyMappingRequestFromJSON,
|
|
75
83
|
PatchedSAMLPropertyMappingRequestToJSON,
|
|
76
84
|
PatchedSCIMMappingRequestFromJSON,
|
|
@@ -83,6 +91,10 @@ import {
|
|
|
83
91
|
PropertyMappingToJSON,
|
|
84
92
|
PropertyMappingTestResultFromJSON,
|
|
85
93
|
PropertyMappingTestResultToJSON,
|
|
94
|
+
RACPropertyMappingFromJSON,
|
|
95
|
+
RACPropertyMappingToJSON,
|
|
96
|
+
RACPropertyMappingRequestFromJSON,
|
|
97
|
+
RACPropertyMappingRequestToJSON,
|
|
86
98
|
SAMLPropertyMappingFromJSON,
|
|
87
99
|
SAMLPropertyMappingToJSON,
|
|
88
100
|
SAMLPropertyMappingRequestFromJSON,
|
|
@@ -201,6 +213,41 @@ export interface PropertymappingsNotificationUsedByListRequest {
|
|
|
201
213
|
pmUuid: string;
|
|
202
214
|
}
|
|
203
215
|
|
|
216
|
+
export interface PropertymappingsRacCreateRequest {
|
|
217
|
+
rACPropertyMappingRequest: RACPropertyMappingRequest;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface PropertymappingsRacDestroyRequest {
|
|
221
|
+
pmUuid: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface PropertymappingsRacListRequest {
|
|
225
|
+
managed?: string;
|
|
226
|
+
name?: string;
|
|
227
|
+
ordering?: string;
|
|
228
|
+
page?: number;
|
|
229
|
+
pageSize?: number;
|
|
230
|
+
search?: string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface PropertymappingsRacPartialUpdateRequest {
|
|
234
|
+
pmUuid: string;
|
|
235
|
+
patchedRACPropertyMappingRequest?: PatchedRACPropertyMappingRequest;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface PropertymappingsRacRetrieveRequest {
|
|
239
|
+
pmUuid: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface PropertymappingsRacUpdateRequest {
|
|
243
|
+
pmUuid: string;
|
|
244
|
+
rACPropertyMappingRequest: RACPropertyMappingRequest;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface PropertymappingsRacUsedByListRequest {
|
|
248
|
+
pmUuid: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
204
251
|
export interface PropertymappingsSamlCreateRequest {
|
|
205
252
|
sAMLPropertyMappingRequest: SAMLPropertyMappingRequest;
|
|
206
253
|
}
|
|
@@ -1092,6 +1139,276 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
1092
1139
|
return await response.value();
|
|
1093
1140
|
}
|
|
1094
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* RACPropertyMapping Viewset
|
|
1144
|
+
*/
|
|
1145
|
+
async propertymappingsRacCreateRaw(requestParameters: PropertymappingsRacCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RACPropertyMapping>> {
|
|
1146
|
+
if (requestParameters.rACPropertyMappingRequest === null || requestParameters.rACPropertyMappingRequest === undefined) {
|
|
1147
|
+
throw new runtime.RequiredError('rACPropertyMappingRequest','Required parameter requestParameters.rACPropertyMappingRequest was null or undefined when calling propertymappingsRacCreate.');
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
const queryParameters: any = {};
|
|
1151
|
+
|
|
1152
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1153
|
+
|
|
1154
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1155
|
+
|
|
1156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1157
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
const response = await this.request({
|
|
1161
|
+
path: `/propertymappings/rac/`,
|
|
1162
|
+
method: 'POST',
|
|
1163
|
+
headers: headerParameters,
|
|
1164
|
+
query: queryParameters,
|
|
1165
|
+
body: RACPropertyMappingRequestToJSON(requestParameters.rACPropertyMappingRequest),
|
|
1166
|
+
}, initOverrides);
|
|
1167
|
+
|
|
1168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RACPropertyMappingFromJSON(jsonValue));
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* RACPropertyMapping Viewset
|
|
1173
|
+
*/
|
|
1174
|
+
async propertymappingsRacCreate(requestParameters: PropertymappingsRacCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RACPropertyMapping> {
|
|
1175
|
+
const response = await this.propertymappingsRacCreateRaw(requestParameters, initOverrides);
|
|
1176
|
+
return await response.value();
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* RACPropertyMapping Viewset
|
|
1181
|
+
*/
|
|
1182
|
+
async propertymappingsRacDestroyRaw(requestParameters: PropertymappingsRacDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1183
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1184
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRacDestroy.');
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
const queryParameters: any = {};
|
|
1188
|
+
|
|
1189
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1190
|
+
|
|
1191
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1192
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
const response = await this.request({
|
|
1196
|
+
path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1197
|
+
method: 'DELETE',
|
|
1198
|
+
headers: headerParameters,
|
|
1199
|
+
query: queryParameters,
|
|
1200
|
+
}, initOverrides);
|
|
1201
|
+
|
|
1202
|
+
return new runtime.VoidApiResponse(response);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* RACPropertyMapping Viewset
|
|
1207
|
+
*/
|
|
1208
|
+
async propertymappingsRacDestroy(requestParameters: PropertymappingsRacDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1209
|
+
await this.propertymappingsRacDestroyRaw(requestParameters, initOverrides);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* RACPropertyMapping Viewset
|
|
1214
|
+
*/
|
|
1215
|
+
async propertymappingsRacListRaw(requestParameters: PropertymappingsRacListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRACPropertyMappingList>> {
|
|
1216
|
+
const queryParameters: any = {};
|
|
1217
|
+
|
|
1218
|
+
if (requestParameters.managed !== undefined) {
|
|
1219
|
+
queryParameters['managed'] = requestParameters.managed;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
if (requestParameters.name !== undefined) {
|
|
1223
|
+
queryParameters['name'] = requestParameters.name;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
if (requestParameters.ordering !== undefined) {
|
|
1227
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
if (requestParameters.page !== undefined) {
|
|
1231
|
+
queryParameters['page'] = requestParameters.page;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
if (requestParameters.pageSize !== undefined) {
|
|
1235
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
if (requestParameters.search !== undefined) {
|
|
1239
|
+
queryParameters['search'] = requestParameters.search;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1243
|
+
|
|
1244
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1245
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
const response = await this.request({
|
|
1249
|
+
path: `/propertymappings/rac/`,
|
|
1250
|
+
method: 'GET',
|
|
1251
|
+
headers: headerParameters,
|
|
1252
|
+
query: queryParameters,
|
|
1253
|
+
}, initOverrides);
|
|
1254
|
+
|
|
1255
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRACPropertyMappingListFromJSON(jsonValue));
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* RACPropertyMapping Viewset
|
|
1260
|
+
*/
|
|
1261
|
+
async propertymappingsRacList(requestParameters: PropertymappingsRacListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRACPropertyMappingList> {
|
|
1262
|
+
const response = await this.propertymappingsRacListRaw(requestParameters, initOverrides);
|
|
1263
|
+
return await response.value();
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* RACPropertyMapping Viewset
|
|
1268
|
+
*/
|
|
1269
|
+
async propertymappingsRacPartialUpdateRaw(requestParameters: PropertymappingsRacPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RACPropertyMapping>> {
|
|
1270
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1271
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRacPartialUpdate.');
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
const queryParameters: any = {};
|
|
1275
|
+
|
|
1276
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1277
|
+
|
|
1278
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1279
|
+
|
|
1280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1281
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
const response = await this.request({
|
|
1285
|
+
path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1286
|
+
method: 'PATCH',
|
|
1287
|
+
headers: headerParameters,
|
|
1288
|
+
query: queryParameters,
|
|
1289
|
+
body: PatchedRACPropertyMappingRequestToJSON(requestParameters.patchedRACPropertyMappingRequest),
|
|
1290
|
+
}, initOverrides);
|
|
1291
|
+
|
|
1292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RACPropertyMappingFromJSON(jsonValue));
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* RACPropertyMapping Viewset
|
|
1297
|
+
*/
|
|
1298
|
+
async propertymappingsRacPartialUpdate(requestParameters: PropertymappingsRacPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RACPropertyMapping> {
|
|
1299
|
+
const response = await this.propertymappingsRacPartialUpdateRaw(requestParameters, initOverrides);
|
|
1300
|
+
return await response.value();
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* RACPropertyMapping Viewset
|
|
1305
|
+
*/
|
|
1306
|
+
async propertymappingsRacRetrieveRaw(requestParameters: PropertymappingsRacRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RACPropertyMapping>> {
|
|
1307
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1308
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRacRetrieve.');
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
const queryParameters: any = {};
|
|
1312
|
+
|
|
1313
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1314
|
+
|
|
1315
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1316
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
const response = await this.request({
|
|
1320
|
+
path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1321
|
+
method: 'GET',
|
|
1322
|
+
headers: headerParameters,
|
|
1323
|
+
query: queryParameters,
|
|
1324
|
+
}, initOverrides);
|
|
1325
|
+
|
|
1326
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RACPropertyMappingFromJSON(jsonValue));
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* RACPropertyMapping Viewset
|
|
1331
|
+
*/
|
|
1332
|
+
async propertymappingsRacRetrieve(requestParameters: PropertymappingsRacRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RACPropertyMapping> {
|
|
1333
|
+
const response = await this.propertymappingsRacRetrieveRaw(requestParameters, initOverrides);
|
|
1334
|
+
return await response.value();
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* RACPropertyMapping Viewset
|
|
1339
|
+
*/
|
|
1340
|
+
async propertymappingsRacUpdateRaw(requestParameters: PropertymappingsRacUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RACPropertyMapping>> {
|
|
1341
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1342
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRacUpdate.');
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
if (requestParameters.rACPropertyMappingRequest === null || requestParameters.rACPropertyMappingRequest === undefined) {
|
|
1346
|
+
throw new runtime.RequiredError('rACPropertyMappingRequest','Required parameter requestParameters.rACPropertyMappingRequest was null or undefined when calling propertymappingsRacUpdate.');
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
const queryParameters: any = {};
|
|
1350
|
+
|
|
1351
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1352
|
+
|
|
1353
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1354
|
+
|
|
1355
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1356
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
const response = await this.request({
|
|
1360
|
+
path: `/propertymappings/rac/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1361
|
+
method: 'PUT',
|
|
1362
|
+
headers: headerParameters,
|
|
1363
|
+
query: queryParameters,
|
|
1364
|
+
body: RACPropertyMappingRequestToJSON(requestParameters.rACPropertyMappingRequest),
|
|
1365
|
+
}, initOverrides);
|
|
1366
|
+
|
|
1367
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RACPropertyMappingFromJSON(jsonValue));
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* RACPropertyMapping Viewset
|
|
1372
|
+
*/
|
|
1373
|
+
async propertymappingsRacUpdate(requestParameters: PropertymappingsRacUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RACPropertyMapping> {
|
|
1374
|
+
const response = await this.propertymappingsRacUpdateRaw(requestParameters, initOverrides);
|
|
1375
|
+
return await response.value();
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Get a list of all objects that use this object
|
|
1380
|
+
*/
|
|
1381
|
+
async propertymappingsRacUsedByListRaw(requestParameters: PropertymappingsRacUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
1382
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1383
|
+
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRacUsedByList.');
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
const queryParameters: any = {};
|
|
1387
|
+
|
|
1388
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1389
|
+
|
|
1390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1391
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
const response = await this.request({
|
|
1395
|
+
path: `/propertymappings/rac/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1396
|
+
method: 'GET',
|
|
1397
|
+
headers: headerParameters,
|
|
1398
|
+
query: queryParameters,
|
|
1399
|
+
}, initOverrides);
|
|
1400
|
+
|
|
1401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Get a list of all objects that use this object
|
|
1406
|
+
*/
|
|
1407
|
+
async propertymappingsRacUsedByList(requestParameters: PropertymappingsRacUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
1408
|
+
const response = await this.propertymappingsRacUsedByListRaw(requestParameters, initOverrides);
|
|
1409
|
+
return await response.value();
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1095
1412
|
/**
|
|
1096
1413
|
* SAMLPropertyMapping Viewset
|
|
1097
1414
|
*/
|