@goauthentik/api 2024.6.1-1721916595 → 2024.6.1-1721927330
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 +5 -0
- package/dist/apis/OutpostsApi.d.ts +7 -28
- package/dist/apis/OutpostsApi.js +11 -78
- package/dist/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/apis/PropertymappingsApi.js +274 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/OutpostsApi.d.ts +7 -28
- package/dist/esm/apis/OutpostsApi.js +12 -79
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/esm/apis/PropertymappingsApi.js +275 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
- package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/esm/models/RadiusCheckAccess.js +47 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
- package/dist/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/models/RadiusCheckAccess.js +54 -0
- package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/models/RadiusProviderPropertyMapping.js +66 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/OutpostsApi.ts +17 -102
- package/src/apis/PropertymappingsApi.ts +355 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
- package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
- package/src/models/RadiusCheckAccess.ts +81 -0
- package/src/models/RadiusProviderPropertyMapping.ts +123 -0
- package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
- package/src/models/index.ts +5 -0
package/dist/apis/RbacApi.js
CHANGED
|
@@ -787,6 +787,7 @@ exports.RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
787
787
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
788
788
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
789
789
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
790
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
|
790
791
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
|
791
792
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
|
792
793
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
|
@@ -873,6 +874,7 @@ exports.RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
873
874
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
874
875
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
875
876
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
877
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
|
876
878
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
|
877
879
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
|
878
880
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DockerServiceConnection, DockerServiceConnectionRequest, KubernetesServiceConnection, KubernetesServiceConnectionRequest,
|
|
13
|
+
import type { DockerServiceConnection, DockerServiceConnectionRequest, KubernetesServiceConnection, KubernetesServiceConnectionRequest, Outpost, OutpostDefaultConfig, OutpostHealth, OutpostRequest, PaginatedDockerServiceConnectionList, PaginatedKubernetesServiceConnectionList, PaginatedLDAPOutpostConfigList, PaginatedOutpostList, PaginatedProxyOutpostConfigList, PaginatedRadiusOutpostConfigList, PaginatedServiceConnectionList, PatchedDockerServiceConnectionRequest, PatchedKubernetesServiceConnectionRequest, PatchedOutpostRequest, RadiusCheckAccess, ServiceConnection, ServiceConnectionState, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface OutpostsInstancesCreateRequest {
|
|
15
15
|
outpostRequest: OutpostRequest;
|
|
16
16
|
}
|
|
@@ -65,9 +65,6 @@ export interface OutpostsLdapListRequest {
|
|
|
65
65
|
pageSize?: number;
|
|
66
66
|
search?: string;
|
|
67
67
|
}
|
|
68
|
-
export interface OutpostsLdapRetrieveRequest {
|
|
69
|
-
id: number;
|
|
70
|
-
}
|
|
71
68
|
export interface OutpostsProxyListRequest {
|
|
72
69
|
name?: string;
|
|
73
70
|
ordering?: string;
|
|
@@ -75,8 +72,9 @@ export interface OutpostsProxyListRequest {
|
|
|
75
72
|
pageSize?: number;
|
|
76
73
|
search?: string;
|
|
77
74
|
}
|
|
78
|
-
export interface
|
|
75
|
+
export interface OutpostsRadiusCheckAccessRetrieveRequest {
|
|
79
76
|
id: number;
|
|
77
|
+
appSlug?: string;
|
|
80
78
|
}
|
|
81
79
|
export interface OutpostsRadiusListRequest {
|
|
82
80
|
name?: string;
|
|
@@ -85,9 +83,6 @@ export interface OutpostsRadiusListRequest {
|
|
|
85
83
|
pageSize?: number;
|
|
86
84
|
search?: string;
|
|
87
85
|
}
|
|
88
|
-
export interface OutpostsRadiusRetrieveRequest {
|
|
89
|
-
id: number;
|
|
90
|
-
}
|
|
91
86
|
export interface OutpostsServiceConnectionsAllDestroyRequest {
|
|
92
87
|
uuid: string;
|
|
93
88
|
}
|
|
@@ -250,14 +245,6 @@ export declare class OutpostsApi extends runtime.BaseAPI {
|
|
|
250
245
|
* LDAPProvider Viewset
|
|
251
246
|
*/
|
|
252
247
|
outpostsLdapList(requestParameters?: OutpostsLdapListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLDAPOutpostConfigList>;
|
|
253
|
-
/**
|
|
254
|
-
* LDAPProvider Viewset
|
|
255
|
-
*/
|
|
256
|
-
outpostsLdapRetrieveRaw(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPOutpostConfig>>;
|
|
257
|
-
/**
|
|
258
|
-
* LDAPProvider Viewset
|
|
259
|
-
*/
|
|
260
|
-
outpostsLdapRetrieve(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPOutpostConfig>;
|
|
261
248
|
/**
|
|
262
249
|
* ProxyProvider Viewset
|
|
263
250
|
*/
|
|
@@ -267,13 +254,13 @@ export declare class OutpostsApi extends runtime.BaseAPI {
|
|
|
267
254
|
*/
|
|
268
255
|
outpostsProxyList(requestParameters?: OutpostsProxyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProxyOutpostConfigList>;
|
|
269
256
|
/**
|
|
270
|
-
*
|
|
257
|
+
* Check access to a single application by slug
|
|
271
258
|
*/
|
|
272
|
-
|
|
259
|
+
outpostsRadiusCheckAccessRetrieveRaw(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusCheckAccess>>;
|
|
273
260
|
/**
|
|
274
|
-
*
|
|
261
|
+
* Check access to a single application by slug
|
|
275
262
|
*/
|
|
276
|
-
|
|
263
|
+
outpostsRadiusCheckAccessRetrieve(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusCheckAccess>;
|
|
277
264
|
/**
|
|
278
265
|
* RadiusProvider Viewset
|
|
279
266
|
*/
|
|
@@ -282,14 +269,6 @@ export declare class OutpostsApi extends runtime.BaseAPI {
|
|
|
282
269
|
* RadiusProvider Viewset
|
|
283
270
|
*/
|
|
284
271
|
outpostsRadiusList(requestParameters?: OutpostsRadiusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRadiusOutpostConfigList>;
|
|
285
|
-
/**
|
|
286
|
-
* RadiusProvider Viewset
|
|
287
|
-
*/
|
|
288
|
-
outpostsRadiusRetrieveRaw(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusOutpostConfig>>;
|
|
289
|
-
/**
|
|
290
|
-
* RadiusProvider Viewset
|
|
291
|
-
*/
|
|
292
|
-
outpostsRadiusRetrieve(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusOutpostConfig>;
|
|
293
272
|
/**
|
|
294
273
|
* ServiceConnection Viewset
|
|
295
274
|
*/
|
|
@@ -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 { DockerServiceConnectionFromJSON, DockerServiceConnectionRequestToJSON, KubernetesServiceConnectionFromJSON, KubernetesServiceConnectionRequestToJSON,
|
|
24
|
+
import { DockerServiceConnectionFromJSON, DockerServiceConnectionRequestToJSON, KubernetesServiceConnectionFromJSON, KubernetesServiceConnectionRequestToJSON, OutpostFromJSON, OutpostDefaultConfigFromJSON, OutpostHealthFromJSON, OutpostRequestToJSON, PaginatedDockerServiceConnectionListFromJSON, PaginatedKubernetesServiceConnectionListFromJSON, PaginatedLDAPOutpostConfigListFromJSON, PaginatedOutpostListFromJSON, PaginatedProxyOutpostConfigListFromJSON, PaginatedRadiusOutpostConfigListFromJSON, PaginatedServiceConnectionListFromJSON, PatchedDockerServiceConnectionRequestToJSON, PatchedKubernetesServiceConnectionRequestToJSON, PatchedOutpostRequestToJSON, RadiusCheckAccessFromJSON, ServiceConnectionFromJSON, ServiceConnectionStateFromJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -456,41 +456,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
|
456
456
|
return yield response.value();
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
|
-
/**
|
|
460
|
-
* LDAPProvider Viewset
|
|
461
|
-
*/
|
|
462
|
-
outpostsLdapRetrieveRaw(requestParameters, initOverrides) {
|
|
463
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
465
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling outpostsLdapRetrieve.');
|
|
466
|
-
}
|
|
467
|
-
const queryParameters = {};
|
|
468
|
-
const headerParameters = {};
|
|
469
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
470
|
-
const token = this.configuration.accessToken;
|
|
471
|
-
const tokenString = yield token("authentik", []);
|
|
472
|
-
if (tokenString) {
|
|
473
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
const response = yield this.request({
|
|
477
|
-
path: `/outposts/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
478
|
-
method: 'GET',
|
|
479
|
-
headers: headerParameters,
|
|
480
|
-
query: queryParameters,
|
|
481
|
-
}, initOverrides);
|
|
482
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPOutpostConfigFromJSON(jsonValue));
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* LDAPProvider Viewset
|
|
487
|
-
*/
|
|
488
|
-
outpostsLdapRetrieve(requestParameters, initOverrides) {
|
|
489
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
-
const response = yield this.outpostsLdapRetrieveRaw(requestParameters, initOverrides);
|
|
491
|
-
return yield response.value();
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
459
|
/**
|
|
495
460
|
* ProxyProvider Viewset
|
|
496
461
|
*/
|
|
@@ -539,14 +504,17 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
|
539
504
|
});
|
|
540
505
|
}
|
|
541
506
|
/**
|
|
542
|
-
*
|
|
507
|
+
* Check access to a single application by slug
|
|
543
508
|
*/
|
|
544
|
-
|
|
509
|
+
outpostsRadiusCheckAccessRetrieveRaw(requestParameters, initOverrides) {
|
|
545
510
|
return __awaiter(this, void 0, void 0, function* () {
|
|
546
511
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
547
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling
|
|
512
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling outpostsRadiusCheckAccessRetrieve.');
|
|
548
513
|
}
|
|
549
514
|
const queryParameters = {};
|
|
515
|
+
if (requestParameters.appSlug !== undefined) {
|
|
516
|
+
queryParameters['app_slug'] = requestParameters.appSlug;
|
|
517
|
+
}
|
|
550
518
|
const headerParameters = {};
|
|
551
519
|
if (this.configuration && this.configuration.accessToken) {
|
|
552
520
|
const token = this.configuration.accessToken;
|
|
@@ -556,20 +524,20 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
|
556
524
|
}
|
|
557
525
|
}
|
|
558
526
|
const response = yield this.request({
|
|
559
|
-
path: `/outposts/
|
|
527
|
+
path: `/outposts/radius/{id}/check_access/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
560
528
|
method: 'GET',
|
|
561
529
|
headers: headerParameters,
|
|
562
530
|
query: queryParameters,
|
|
563
531
|
}, initOverrides);
|
|
564
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
532
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusCheckAccessFromJSON(jsonValue));
|
|
565
533
|
});
|
|
566
534
|
}
|
|
567
535
|
/**
|
|
568
|
-
*
|
|
536
|
+
* Check access to a single application by slug
|
|
569
537
|
*/
|
|
570
|
-
|
|
538
|
+
outpostsRadiusCheckAccessRetrieve(requestParameters, initOverrides) {
|
|
571
539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
-
const response = yield this.
|
|
540
|
+
const response = yield this.outpostsRadiusCheckAccessRetrieveRaw(requestParameters, initOverrides);
|
|
573
541
|
return yield response.value();
|
|
574
542
|
});
|
|
575
543
|
}
|
|
@@ -620,41 +588,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
|
620
588
|
return yield response.value();
|
|
621
589
|
});
|
|
622
590
|
}
|
|
623
|
-
/**
|
|
624
|
-
* RadiusProvider Viewset
|
|
625
|
-
*/
|
|
626
|
-
outpostsRadiusRetrieveRaw(requestParameters, initOverrides) {
|
|
627
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
629
|
-
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling outpostsRadiusRetrieve.');
|
|
630
|
-
}
|
|
631
|
-
const queryParameters = {};
|
|
632
|
-
const headerParameters = {};
|
|
633
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
634
|
-
const token = this.configuration.accessToken;
|
|
635
|
-
const tokenString = yield token("authentik", []);
|
|
636
|
-
if (tokenString) {
|
|
637
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
const response = yield this.request({
|
|
641
|
-
path: `/outposts/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
642
|
-
method: 'GET',
|
|
643
|
-
headers: headerParameters,
|
|
644
|
-
query: queryParameters,
|
|
645
|
-
}, initOverrides);
|
|
646
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusOutpostConfigFromJSON(jsonValue));
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* RadiusProvider Viewset
|
|
651
|
-
*/
|
|
652
|
-
outpostsRadiusRetrieve(requestParameters, initOverrides) {
|
|
653
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
-
const response = yield this.outpostsRadiusRetrieveRaw(requestParameters, initOverrides);
|
|
655
|
-
return yield response.value();
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
591
|
/**
|
|
659
592
|
* ServiceConnection Viewset
|
|
660
593
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPSourcePropertyMapping, LDAPSourcePropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPSourcePropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPSourcePropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest, PropertyMapping, PropertyMappingTestRequest, PropertyMappingTestResult, RACPropertyMapping, RACPropertyMappingRequest, SAMLPropertyMapping, SAMLPropertyMappingRequest, SCIMMapping, SCIMMappingRequest, ScopeMapping, ScopeMappingRequest, TypeCreate, UsedBy } from '../models';
|
|
13
|
+
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPSourcePropertyMapping, LDAPSourcePropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPSourcePropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedRadiusProviderPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPSourcePropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedRadiusProviderPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest, PropertyMapping, PropertyMappingTestRequest, PropertyMappingTestResult, RACPropertyMapping, RACPropertyMappingRequest, RadiusProviderPropertyMapping, RadiusProviderPropertyMappingRequest, SAMLPropertyMapping, SAMLPropertyMappingRequest, SCIMMapping, SCIMMappingRequest, ScopeMapping, ScopeMappingRequest, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface PropertymappingsAllDestroyRequest {
|
|
15
15
|
pmUuid: string;
|
|
16
16
|
}
|
|
@@ -147,6 +147,36 @@ export interface PropertymappingsRacUpdateRequest {
|
|
|
147
147
|
export interface PropertymappingsRacUsedByListRequest {
|
|
148
148
|
pmUuid: string;
|
|
149
149
|
}
|
|
150
|
+
export interface PropertymappingsRadiusCreateRequest {
|
|
151
|
+
radiusProviderPropertyMappingRequest: RadiusProviderPropertyMappingRequest;
|
|
152
|
+
}
|
|
153
|
+
export interface PropertymappingsRadiusDestroyRequest {
|
|
154
|
+
pmUuid: string;
|
|
155
|
+
}
|
|
156
|
+
export interface PropertymappingsRadiusListRequest {
|
|
157
|
+
expression?: string;
|
|
158
|
+
managed?: Array<string>;
|
|
159
|
+
name?: string;
|
|
160
|
+
ordering?: string;
|
|
161
|
+
page?: number;
|
|
162
|
+
pageSize?: number;
|
|
163
|
+
pmUuid?: string;
|
|
164
|
+
search?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface PropertymappingsRadiusPartialUpdateRequest {
|
|
167
|
+
pmUuid: string;
|
|
168
|
+
patchedRadiusProviderPropertyMappingRequest?: PatchedRadiusProviderPropertyMappingRequest;
|
|
169
|
+
}
|
|
170
|
+
export interface PropertymappingsRadiusRetrieveRequest {
|
|
171
|
+
pmUuid: string;
|
|
172
|
+
}
|
|
173
|
+
export interface PropertymappingsRadiusUpdateRequest {
|
|
174
|
+
pmUuid: string;
|
|
175
|
+
radiusProviderPropertyMappingRequest: RadiusProviderPropertyMappingRequest;
|
|
176
|
+
}
|
|
177
|
+
export interface PropertymappingsRadiusUsedByListRequest {
|
|
178
|
+
pmUuid: string;
|
|
179
|
+
}
|
|
150
180
|
export interface PropertymappingsSamlCreateRequest {
|
|
151
181
|
sAMLPropertyMappingRequest: SAMLPropertyMappingRequest;
|
|
152
182
|
}
|
|
@@ -544,6 +574,62 @@ export declare class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
544
574
|
* Get a list of all objects that use this object
|
|
545
575
|
*/
|
|
546
576
|
propertymappingsRacUsedByList(requestParameters: PropertymappingsRacUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
|
|
577
|
+
/**
|
|
578
|
+
* RadiusProviderPropertyMapping Viewset
|
|
579
|
+
*/
|
|
580
|
+
propertymappingsRadiusCreateRaw(requestParameters: PropertymappingsRadiusCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>>;
|
|
581
|
+
/**
|
|
582
|
+
* RadiusProviderPropertyMapping Viewset
|
|
583
|
+
*/
|
|
584
|
+
propertymappingsRadiusCreate(requestParameters: PropertymappingsRadiusCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping>;
|
|
585
|
+
/**
|
|
586
|
+
* RadiusProviderPropertyMapping Viewset
|
|
587
|
+
*/
|
|
588
|
+
propertymappingsRadiusDestroyRaw(requestParameters: PropertymappingsRadiusDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
589
|
+
/**
|
|
590
|
+
* RadiusProviderPropertyMapping Viewset
|
|
591
|
+
*/
|
|
592
|
+
propertymappingsRadiusDestroy(requestParameters: PropertymappingsRadiusDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
593
|
+
/**
|
|
594
|
+
* RadiusProviderPropertyMapping Viewset
|
|
595
|
+
*/
|
|
596
|
+
propertymappingsRadiusListRaw(requestParameters: PropertymappingsRadiusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRadiusProviderPropertyMappingList>>;
|
|
597
|
+
/**
|
|
598
|
+
* RadiusProviderPropertyMapping Viewset
|
|
599
|
+
*/
|
|
600
|
+
propertymappingsRadiusList(requestParameters?: PropertymappingsRadiusListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRadiusProviderPropertyMappingList>;
|
|
601
|
+
/**
|
|
602
|
+
* RadiusProviderPropertyMapping Viewset
|
|
603
|
+
*/
|
|
604
|
+
propertymappingsRadiusPartialUpdateRaw(requestParameters: PropertymappingsRadiusPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>>;
|
|
605
|
+
/**
|
|
606
|
+
* RadiusProviderPropertyMapping Viewset
|
|
607
|
+
*/
|
|
608
|
+
propertymappingsRadiusPartialUpdate(requestParameters: PropertymappingsRadiusPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping>;
|
|
609
|
+
/**
|
|
610
|
+
* RadiusProviderPropertyMapping Viewset
|
|
611
|
+
*/
|
|
612
|
+
propertymappingsRadiusRetrieveRaw(requestParameters: PropertymappingsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>>;
|
|
613
|
+
/**
|
|
614
|
+
* RadiusProviderPropertyMapping Viewset
|
|
615
|
+
*/
|
|
616
|
+
propertymappingsRadiusRetrieve(requestParameters: PropertymappingsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping>;
|
|
617
|
+
/**
|
|
618
|
+
* RadiusProviderPropertyMapping Viewset
|
|
619
|
+
*/
|
|
620
|
+
propertymappingsRadiusUpdateRaw(requestParameters: PropertymappingsRadiusUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusProviderPropertyMapping>>;
|
|
621
|
+
/**
|
|
622
|
+
* RadiusProviderPropertyMapping Viewset
|
|
623
|
+
*/
|
|
624
|
+
propertymappingsRadiusUpdate(requestParameters: PropertymappingsRadiusUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusProviderPropertyMapping>;
|
|
625
|
+
/**
|
|
626
|
+
* Get a list of all objects that use this object
|
|
627
|
+
*/
|
|
628
|
+
propertymappingsRadiusUsedByListRaw(requestParameters: PropertymappingsRadiusUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>>;
|
|
629
|
+
/**
|
|
630
|
+
* Get a list of all objects that use this object
|
|
631
|
+
*/
|
|
632
|
+
propertymappingsRadiusUsedByList(requestParameters: PropertymappingsRadiusUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>>;
|
|
547
633
|
/**
|
|
548
634
|
* SAMLPropertyMapping Viewset
|
|
549
635
|
*/
|
|
@@ -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 { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPSourcePropertyMappingFromJSON, LDAPSourcePropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPSourcePropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPSourcePropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedScopeMappingRequestToJSON, PropertyMappingFromJSON, PropertyMappingTestRequestToJSON, PropertyMappingTestResultFromJSON, RACPropertyMappingFromJSON, RACPropertyMappingRequestToJSON, SAMLPropertyMappingFromJSON, SAMLPropertyMappingRequestToJSON, SCIMMappingFromJSON, SCIMMappingRequestToJSON, ScopeMappingFromJSON, ScopeMappingRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
24
|
+
import { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPSourcePropertyMappingFromJSON, LDAPSourcePropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPSourcePropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedRadiusProviderPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPSourcePropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedRadiusProviderPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedScopeMappingRequestToJSON, PropertyMappingFromJSON, PropertyMappingTestRequestToJSON, PropertyMappingTestResultFromJSON, RACPropertyMappingFromJSON, RACPropertyMappingRequestToJSON, RadiusProviderPropertyMappingFromJSON, RadiusProviderPropertyMappingRequestToJSON, SAMLPropertyMappingFromJSON, SAMLPropertyMappingRequestToJSON, SCIMMappingFromJSON, SCIMMappingRequestToJSON, ScopeMappingFromJSON, ScopeMappingRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -1330,6 +1330,280 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
1330
1330
|
return yield response.value();
|
|
1331
1331
|
});
|
|
1332
1332
|
}
|
|
1333
|
+
/**
|
|
1334
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1335
|
+
*/
|
|
1336
|
+
propertymappingsRadiusCreateRaw(requestParameters, initOverrides) {
|
|
1337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
|
1339
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest', 'Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusCreate.');
|
|
1340
|
+
}
|
|
1341
|
+
const queryParameters = {};
|
|
1342
|
+
const headerParameters = {};
|
|
1343
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1344
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1345
|
+
const token = this.configuration.accessToken;
|
|
1346
|
+
const tokenString = yield token("authentik", []);
|
|
1347
|
+
if (tokenString) {
|
|
1348
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
const response = yield this.request({
|
|
1352
|
+
path: `/propertymappings/radius/`,
|
|
1353
|
+
method: 'POST',
|
|
1354
|
+
headers: headerParameters,
|
|
1355
|
+
query: queryParameters,
|
|
1356
|
+
body: RadiusProviderPropertyMappingRequestToJSON(requestParameters.radiusProviderPropertyMappingRequest),
|
|
1357
|
+
}, initOverrides);
|
|
1358
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1363
|
+
*/
|
|
1364
|
+
propertymappingsRadiusCreate(requestParameters, initOverrides) {
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1366
|
+
const response = yield this.propertymappingsRadiusCreateRaw(requestParameters, initOverrides);
|
|
1367
|
+
return yield response.value();
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1372
|
+
*/
|
|
1373
|
+
propertymappingsRadiusDestroyRaw(requestParameters, initOverrides) {
|
|
1374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1375
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1376
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusDestroy.');
|
|
1377
|
+
}
|
|
1378
|
+
const queryParameters = {};
|
|
1379
|
+
const headerParameters = {};
|
|
1380
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1381
|
+
const token = this.configuration.accessToken;
|
|
1382
|
+
const tokenString = yield token("authentik", []);
|
|
1383
|
+
if (tokenString) {
|
|
1384
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
const response = yield this.request({
|
|
1388
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1389
|
+
method: 'DELETE',
|
|
1390
|
+
headers: headerParameters,
|
|
1391
|
+
query: queryParameters,
|
|
1392
|
+
}, initOverrides);
|
|
1393
|
+
return new runtime.VoidApiResponse(response);
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1398
|
+
*/
|
|
1399
|
+
propertymappingsRadiusDestroy(requestParameters, initOverrides) {
|
|
1400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1401
|
+
yield this.propertymappingsRadiusDestroyRaw(requestParameters, initOverrides);
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1406
|
+
*/
|
|
1407
|
+
propertymappingsRadiusListRaw(requestParameters, initOverrides) {
|
|
1408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1409
|
+
const queryParameters = {};
|
|
1410
|
+
if (requestParameters.expression !== undefined) {
|
|
1411
|
+
queryParameters['expression'] = requestParameters.expression;
|
|
1412
|
+
}
|
|
1413
|
+
if (requestParameters.managed) {
|
|
1414
|
+
queryParameters['managed'] = requestParameters.managed;
|
|
1415
|
+
}
|
|
1416
|
+
if (requestParameters.name !== undefined) {
|
|
1417
|
+
queryParameters['name'] = requestParameters.name;
|
|
1418
|
+
}
|
|
1419
|
+
if (requestParameters.ordering !== undefined) {
|
|
1420
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
1421
|
+
}
|
|
1422
|
+
if (requestParameters.page !== undefined) {
|
|
1423
|
+
queryParameters['page'] = requestParameters.page;
|
|
1424
|
+
}
|
|
1425
|
+
if (requestParameters.pageSize !== undefined) {
|
|
1426
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
1427
|
+
}
|
|
1428
|
+
if (requestParameters.pmUuid !== undefined) {
|
|
1429
|
+
queryParameters['pm_uuid'] = requestParameters.pmUuid;
|
|
1430
|
+
}
|
|
1431
|
+
if (requestParameters.search !== undefined) {
|
|
1432
|
+
queryParameters['search'] = requestParameters.search;
|
|
1433
|
+
}
|
|
1434
|
+
const headerParameters = {};
|
|
1435
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1436
|
+
const token = this.configuration.accessToken;
|
|
1437
|
+
const tokenString = yield token("authentik", []);
|
|
1438
|
+
if (tokenString) {
|
|
1439
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
const response = yield this.request({
|
|
1443
|
+
path: `/propertymappings/radius/`,
|
|
1444
|
+
method: 'GET',
|
|
1445
|
+
headers: headerParameters,
|
|
1446
|
+
query: queryParameters,
|
|
1447
|
+
}, initOverrides);
|
|
1448
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRadiusProviderPropertyMappingListFromJSON(jsonValue));
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1453
|
+
*/
|
|
1454
|
+
propertymappingsRadiusList(requestParameters = {}, initOverrides) {
|
|
1455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1456
|
+
const response = yield this.propertymappingsRadiusListRaw(requestParameters, initOverrides);
|
|
1457
|
+
return yield response.value();
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1462
|
+
*/
|
|
1463
|
+
propertymappingsRadiusPartialUpdateRaw(requestParameters, initOverrides) {
|
|
1464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1465
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1466
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusPartialUpdate.');
|
|
1467
|
+
}
|
|
1468
|
+
const queryParameters = {};
|
|
1469
|
+
const headerParameters = {};
|
|
1470
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1471
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1472
|
+
const token = this.configuration.accessToken;
|
|
1473
|
+
const tokenString = yield token("authentik", []);
|
|
1474
|
+
if (tokenString) {
|
|
1475
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
const response = yield this.request({
|
|
1479
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1480
|
+
method: 'PATCH',
|
|
1481
|
+
headers: headerParameters,
|
|
1482
|
+
query: queryParameters,
|
|
1483
|
+
body: PatchedRadiusProviderPropertyMappingRequestToJSON(requestParameters.patchedRadiusProviderPropertyMappingRequest),
|
|
1484
|
+
}, initOverrides);
|
|
1485
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1490
|
+
*/
|
|
1491
|
+
propertymappingsRadiusPartialUpdate(requestParameters, initOverrides) {
|
|
1492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1493
|
+
const response = yield this.propertymappingsRadiusPartialUpdateRaw(requestParameters, initOverrides);
|
|
1494
|
+
return yield response.value();
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1499
|
+
*/
|
|
1500
|
+
propertymappingsRadiusRetrieveRaw(requestParameters, initOverrides) {
|
|
1501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1502
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1503
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusRetrieve.');
|
|
1504
|
+
}
|
|
1505
|
+
const queryParameters = {};
|
|
1506
|
+
const headerParameters = {};
|
|
1507
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1508
|
+
const token = this.configuration.accessToken;
|
|
1509
|
+
const tokenString = yield token("authentik", []);
|
|
1510
|
+
if (tokenString) {
|
|
1511
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
const response = yield this.request({
|
|
1515
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1516
|
+
method: 'GET',
|
|
1517
|
+
headers: headerParameters,
|
|
1518
|
+
query: queryParameters,
|
|
1519
|
+
}, initOverrides);
|
|
1520
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1525
|
+
*/
|
|
1526
|
+
propertymappingsRadiusRetrieve(requestParameters, initOverrides) {
|
|
1527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1528
|
+
const response = yield this.propertymappingsRadiusRetrieveRaw(requestParameters, initOverrides);
|
|
1529
|
+
return yield response.value();
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1534
|
+
*/
|
|
1535
|
+
propertymappingsRadiusUpdateRaw(requestParameters, initOverrides) {
|
|
1536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1537
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1538
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUpdate.');
|
|
1539
|
+
}
|
|
1540
|
+
if (requestParameters.radiusProviderPropertyMappingRequest === null || requestParameters.radiusProviderPropertyMappingRequest === undefined) {
|
|
1541
|
+
throw new runtime.RequiredError('radiusProviderPropertyMappingRequest', 'Required parameter requestParameters.radiusProviderPropertyMappingRequest was null or undefined when calling propertymappingsRadiusUpdate.');
|
|
1542
|
+
}
|
|
1543
|
+
const queryParameters = {};
|
|
1544
|
+
const headerParameters = {};
|
|
1545
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1546
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1547
|
+
const token = this.configuration.accessToken;
|
|
1548
|
+
const tokenString = yield token("authentik", []);
|
|
1549
|
+
if (tokenString) {
|
|
1550
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
const response = yield this.request({
|
|
1554
|
+
path: `/propertymappings/radius/{pm_uuid}/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1555
|
+
method: 'PUT',
|
|
1556
|
+
headers: headerParameters,
|
|
1557
|
+
query: queryParameters,
|
|
1558
|
+
body: RadiusProviderPropertyMappingRequestToJSON(requestParameters.radiusProviderPropertyMappingRequest),
|
|
1559
|
+
}, initOverrides);
|
|
1560
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusProviderPropertyMappingFromJSON(jsonValue));
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* RadiusProviderPropertyMapping Viewset
|
|
1565
|
+
*/
|
|
1566
|
+
propertymappingsRadiusUpdate(requestParameters, initOverrides) {
|
|
1567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1568
|
+
const response = yield this.propertymappingsRadiusUpdateRaw(requestParameters, initOverrides);
|
|
1569
|
+
return yield response.value();
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
/**
|
|
1573
|
+
* Get a list of all objects that use this object
|
|
1574
|
+
*/
|
|
1575
|
+
propertymappingsRadiusUsedByListRaw(requestParameters, initOverrides) {
|
|
1576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1577
|
+
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
1578
|
+
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsRadiusUsedByList.');
|
|
1579
|
+
}
|
|
1580
|
+
const queryParameters = {};
|
|
1581
|
+
const headerParameters = {};
|
|
1582
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1583
|
+
const token = this.configuration.accessToken;
|
|
1584
|
+
const tokenString = yield token("authentik", []);
|
|
1585
|
+
if (tokenString) {
|
|
1586
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
const response = yield this.request({
|
|
1590
|
+
path: `/propertymappings/radius/{pm_uuid}/used_by/`.replace(`{${"pm_uuid"}}`, encodeURIComponent(String(requestParameters.pmUuid))),
|
|
1591
|
+
method: 'GET',
|
|
1592
|
+
headers: headerParameters,
|
|
1593
|
+
query: queryParameters,
|
|
1594
|
+
}, initOverrides);
|
|
1595
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Get a list of all objects that use this object
|
|
1600
|
+
*/
|
|
1601
|
+
propertymappingsRadiusUsedByList(requestParameters, initOverrides) {
|
|
1602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1603
|
+
const response = yield this.propertymappingsRadiusUsedByListRaw(requestParameters, initOverrides);
|
|
1604
|
+
return yield response.value();
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1333
1607
|
/**
|
|
1334
1608
|
* SAMLPropertyMapping Viewset
|
|
1335
1609
|
*/
|