diff --git a/src/main/python/fusionauth/fusionauth_client.py b/src/main/python/fusionauth/fusionauth_client.py index 4bb2782..28876ab 100644 --- a/src/main/python/fusionauth/fusionauth_client.py +++ b/src/main/python/fusionauth/fusionauth_client.py @@ -1835,6 +1835,20 @@ def patch_email_template(self, email_template_id, request): .patch() \ .go() + def patch_entity(self, entity_id, request): + """ + Updates, via PATCH, the Entity with the given Id. + + Attributes: + entity_id: The Id of the Entity Type to update. + request: The request that contains just the new Entity information. + """ + return self.start().uri('/api/entity') \ + .url_segment(entity_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + def patch_entity_type(self, entity_type_id, request): """ Updates, via PATCH, the Entity Type with the given Id. @@ -1849,6 +1863,51 @@ def patch_entity_type(self, entity_type_id, request): .patch() \ .go() + def patch_entity_type_permission(self, entity_type_id, permission_id, request): + """ + Patches the permission with the given Id for the entity type. + + Attributes: + entity_type_id: The Id of the entityType that the permission belongs to. + permission_id: The Id of the permission to patch. + request: The request that contains the new permission information. + """ + return self.start().uri('/api/entity/type') \ + .url_segment(entity_type_id) \ + .url_segment("permission") \ + .url_segment(permission_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + + def patch_form(self, form_id, request): + """ + Patches the form with the given Id. + + Attributes: + form_id: The Id of the form to patch. + request: The request object that contains the new form information. + """ + return self.start().uri('/api/form') \ + .url_segment(form_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + + def patch_form_field(self, field_id, request): + """ + Patches the form field with the given Id. + + Attributes: + field_id: The Id of the form field to patch. + request: The request object that contains the new form field information. + """ + return self.start().uri('/api/form/field') \ + .url_segment(field_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + def patch_group(self, group_id, request): """ Updates, via PATCH, the group with the given Id. @@ -1863,6 +1922,20 @@ def patch_group(self, group_id, request): .patch() \ .go() + def patch_ip_access_control_list(self, access_control_list_id, request): + """ + Update the IP Access Control List with the given Id. + + Attributes: + access_control_list_id: The Id of the IP Access Control List to patch. + request: The request that contains the new IP Access Control List information. + """ + return self.start().uri('/api/ip-acl') \ + .url_segment(access_control_list_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + def patch_identity_provider(self, identity_provider_id, request): """ Updates, via PATCH, the identity provider with the given Id. @@ -2058,6 +2131,20 @@ def patch_user_consent(self, user_consent_id, request): .patch() \ .go() + def patch_webhook(self, webhook_id, request): + """ + Patches the webhook with the given Id. + + Attributes: + webhook_id: The Id of the webhook to update. + request: The request that contains the new webhook information. + """ + return self.start().uri('/api/webhook') \ + .url_segment(webhook_id) \ + .body_handler(JSONBodyHandler(request)) \ + .patch() \ + .go() + def reactivate_application(self, application_id): """ Reactivates the application with the given Id. @@ -4299,6 +4386,20 @@ def update_entity_type_permission(self, entity_type_id, permission_id, request): .put() \ .go() + def update_family(self, family_id, request): + """ + Updates a family with a given Id. + + Attributes: + family_id: The Id of the family to update. + request: The request object that contains all the new family information. + """ + return self.start().uri('/api/user/family') \ + .url_segment(family_id) \ + .body_handler(JSONBodyHandler(request)) \ + .put() \ + .go() + def update_form(self, form_id, request): """ Updates the form with the given Id.