Skip to content

Commit 62f27c3

Browse files
authored
Merge spencer/eng-3779/tm-idp-types-api (#64)
* add TenantManagerIdentityProviderTypeConfiguration domain object * add IdP type configs to SystemConfiguration.tenantManagerConfiguration * add /api/tenant-manager/identity-provider methods
1 parent 9522a5c commit 62f27c3

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,20 @@ def create_tenant(self, request, tenant_id=None):
761761
.post() \
762762
.go()
763763

764+
def create_tenant_manager_identity_provider_type_configuration(self, _type, request):
765+
"""
766+
Creates a tenant manager identity provider type configuration for the given identity provider type.
767+
768+
Attributes:
769+
_type: The type of the identity provider.
770+
request: The request object that contains all the information used to create the tenant manager identity provider type configuration.
771+
"""
772+
return self.start().uri('/api/tenant-manager/identity-provider') \
773+
.url_segment(_type) \
774+
.body_handler(JSONBodyHandler(request)) \
775+
.post() \
776+
.go()
777+
764778
def create_theme(self, request, theme_id=None):
765779
"""
766780
Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
@@ -1264,6 +1278,18 @@ def delete_tenant_async(self, tenant_id):
12641278
.delete() \
12651279
.go()
12661280

1281+
def delete_tenant_manager_identity_provider_type_configuration(self, _type):
1282+
"""
1283+
Deletes the tenant manager identity provider type configuration for the given identity provider type.
1284+
1285+
Attributes:
1286+
_type: The type of the identity provider.
1287+
"""
1288+
return self.start().uri('/api/tenant-manager/identity-provider') \
1289+
.url_segment(_type) \
1290+
.delete() \
1291+
.go()
1292+
12671293
def delete_tenant_with_request(self, tenant_id, request):
12681294
"""
12691295
Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
@@ -2396,6 +2422,20 @@ def patch_tenant(self, tenant_id, request):
23962422
.patch() \
23972423
.go()
23982424

2425+
def patch_tenant_manager_identity_provider_type_configuration(self, _type, request):
2426+
"""
2427+
Patches the tenant manager identity provider type configuration for the given identity provider type.
2428+
2429+
Attributes:
2430+
_type: The type of the identity provider.
2431+
request: The request object that contains the new tenant manager identity provider type configuration information.
2432+
"""
2433+
return self.start().uri('/api/tenant-manager/identity-provider') \
2434+
.url_segment(_type) \
2435+
.body_handler(JSONBodyHandler(request)) \
2436+
.patch() \
2437+
.go()
2438+
23992439
def patch_theme(self, theme_id, request):
24002440
"""
24012441
Updates, via PATCH, the theme with the given Id.
@@ -5070,6 +5110,20 @@ def update_tenant(self, tenant_id, request):
50705110
.put() \
50715111
.go()
50725112

5113+
def update_tenant_manager_identity_provider_type_configuration(self, _type, request):
5114+
"""
5115+
Updates the tenant manager identity provider type configuration for the given identity provider type.
5116+
5117+
Attributes:
5118+
_type: The type of the identity provider.
5119+
request: The request object that contains the updated tenant manager identity provider type configuration.
5120+
"""
5121+
return self.start().uri('/api/tenant-manager/identity-provider') \
5122+
.url_segment(_type) \
5123+
.body_handler(JSONBodyHandler(request)) \
5124+
.put() \
5125+
.go()
5126+
50735127
def update_theme(self, theme_id, request):
50745128
"""
50755129
Updates the theme with the given Id.

0 commit comments

Comments
 (0)