diff --git a/src/FusionAuth/FusionAuthClient.php b/src/FusionAuth/FusionAuthClient.php index bc736ce..d579612 100644 --- a/src/FusionAuth/FusionAuthClient.php +++ b/src/FusionAuth/FusionAuthClient.php @@ -980,6 +980,24 @@ public function createTenant($tenantId, $request) ->go(); } + /** + * Creates a tenant manager identity provider type configuration for the given identity provider type. + * + * @param array $type The type of the identity provider. + * @param array $request The request object that contains all the information used to create the tenant manager identity provider type configuration. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function createTenantManagerIdentityProviderTypeConfiguration($type, $request) + { + return $this->start()->uri("/api/tenant-manager/identity-provider") + ->urlSegment($type) + ->bodyHandler(new JSONBodyHandler($request)) + ->post() + ->go(); + } + /** * Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated. * @@ -1635,6 +1653,22 @@ public function deleteTenantAsync($tenantId) ->go(); } + /** + * Deletes the tenant manager identity provider type configuration for the given identity provider type. + * + * @param array $type The type of the identity provider. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function deleteTenantManagerIdentityProviderTypeConfiguration($type) + { + return $this->start()->uri("/api/tenant-manager/identity-provider") + ->urlSegment($type) + ->delete() + ->go(); + } + /** * Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated * with the tenant and everything under the tenant (applications, users, etc). @@ -3055,6 +3089,24 @@ public function patchTenant($tenantId, $request) ->go(); } + /** + * Patches the tenant manager identity provider type configuration for the given identity provider type. + * + * @param array $type The type of the identity provider. + * @param array $request The request object that contains the new tenant manager identity provider type configuration information. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function patchTenantManagerIdentityProviderTypeConfiguration($type, $request) + { + return $this->start()->uri("/api/tenant-manager/identity-provider") + ->urlSegment($type) + ->bodyHandler(new JSONBodyHandler($request)) + ->patch() + ->go(); + } + /** * Updates, via PATCH, the theme with the given Id. * @@ -6553,6 +6605,24 @@ public function updateTenant($tenantId, $request) ->go(); } + /** + * Updates the tenant manager identity provider type configuration for the given identity provider type. + * + * @param array $type The type of the identity provider. + * @param array $request The request object that contains the updated tenant manager identity provider type configuration. + * + * @return ClientResponse The ClientResponse. + * @throws \Exception + */ + public function updateTenantManagerIdentityProviderTypeConfiguration($type, $request) + { + return $this->start()->uri("/api/tenant-manager/identity-provider") + ->urlSegment($type) + ->bodyHandler(new JSONBodyHandler($request)) + ->put() + ->go(); + } + /** * Updates the theme with the given Id. *