diff --git a/lib/fusionauth/fusionauth_client.rb b/lib/fusionauth/fusionauth_client.rb index d8f425e..e65bb61 100644 --- a/lib/fusionauth/fusionauth_client.rb +++ b/lib/fusionauth/fusionauth_client.rb @@ -766,6 +766,20 @@ def create_tenant(tenant_id, request) .go end + # + # Creates a tenant manager identity provider type configuration for the given identity provider type. + # + # @param type [string] The type of the identity provider. + # @param request [OpenStruct, Hash] The request object that contains all the information used to create the tenant manager identity provider type configuration. + # @return [FusionAuth::ClientResponse] The ClientResponse object. + def create_tenant_manager_identity_provider_type_configuration(type, request) + start.uri('/api/tenant-manager/identity-provider') + .url_segment(type) + .body_handler(FusionAuth::JSONBodyHandler.new(request)) + .post + .go + end + # # Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated. # @@ -1269,6 +1283,18 @@ def delete_tenant_async(tenant_id) .go end + # + # Deletes the tenant manager identity provider type configuration for the given identity provider type. + # + # @param type [string] The type of the identity provider. + # @return [FusionAuth::ClientResponse] The ClientResponse object. + def delete_tenant_manager_identity_provider_type_configuration(type) + start.uri('/api/tenant-manager/identity-provider') + .url_segment(type) + .delete + .go + end + # # 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). @@ -2401,6 +2427,20 @@ def patch_tenant(tenant_id, request) .go end + # + # Patches the tenant manager identity provider type configuration for the given identity provider type. + # + # @param type [string] The type of the identity provider. + # @param request [OpenStruct, Hash] The request object that contains the new tenant manager identity provider type configuration information. + # @return [FusionAuth::ClientResponse] The ClientResponse object. + def patch_tenant_manager_identity_provider_type_configuration(type, request) + start.uri('/api/tenant-manager/identity-provider') + .url_segment(type) + .body_handler(FusionAuth::JSONBodyHandler.new(request)) + .patch + .go + end + # # Updates, via PATCH, the theme with the given Id. # @@ -5075,6 +5115,20 @@ def update_tenant(tenant_id, request) .go end + # + # Updates the tenant manager identity provider type configuration for the given identity provider type. + # + # @param type [string] The type of the identity provider. + # @param request [OpenStruct, Hash] The request object that contains the updated tenant manager identity provider type configuration. + # @return [FusionAuth::ClientResponse] The ClientResponse object. + def update_tenant_manager_identity_provider_type_configuration(type, request) + start.uri('/api/tenant-manager/identity-provider') + .url_segment(type) + .body_handler(FusionAuth::JSONBodyHandler.new(request)) + .put + .go + end + # # Updates the theme with the given Id. #