Skip to content

Commit 2edacdd

Browse files
authored
rebuild for 1.57.0 (#39)
1 parent cb7ff6c commit 2edacdd

File tree

1 file changed

+101
-0
lines changed

1 file changed

+101
-0
lines changed

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,20 @@ def patch_email_template(self, email_template_id, request):
18351835
.patch() \
18361836
.go()
18371837

1838+
def patch_entity(self, entity_id, request):
1839+
"""
1840+
Updates, via PATCH, the Entity with the given Id.
1841+
1842+
Attributes:
1843+
entity_id: The Id of the Entity Type to update.
1844+
request: The request that contains just the new Entity information.
1845+
"""
1846+
return self.start().uri('/api/entity') \
1847+
.url_segment(entity_id) \
1848+
.body_handler(JSONBodyHandler(request)) \
1849+
.patch() \
1850+
.go()
1851+
18381852
def patch_entity_type(self, entity_type_id, request):
18391853
"""
18401854
Updates, via PATCH, the Entity Type with the given Id.
@@ -1849,6 +1863,51 @@ def patch_entity_type(self, entity_type_id, request):
18491863
.patch() \
18501864
.go()
18511865

1866+
def patch_entity_type_permission(self, entity_type_id, permission_id, request):
1867+
"""
1868+
Patches the permission with the given Id for the entity type.
1869+
1870+
Attributes:
1871+
entity_type_id: The Id of the entityType that the permission belongs to.
1872+
permission_id: The Id of the permission to patch.
1873+
request: The request that contains the new permission information.
1874+
"""
1875+
return self.start().uri('/api/entity/type') \
1876+
.url_segment(entity_type_id) \
1877+
.url_segment("permission") \
1878+
.url_segment(permission_id) \
1879+
.body_handler(JSONBodyHandler(request)) \
1880+
.patch() \
1881+
.go()
1882+
1883+
def patch_form(self, form_id, request):
1884+
"""
1885+
Patches the form with the given Id.
1886+
1887+
Attributes:
1888+
form_id: The Id of the form to patch.
1889+
request: The request object that contains the new form information.
1890+
"""
1891+
return self.start().uri('/api/form') \
1892+
.url_segment(form_id) \
1893+
.body_handler(JSONBodyHandler(request)) \
1894+
.patch() \
1895+
.go()
1896+
1897+
def patch_form_field(self, field_id, request):
1898+
"""
1899+
Patches the form field with the given Id.
1900+
1901+
Attributes:
1902+
field_id: The Id of the form field to patch.
1903+
request: The request object that contains the new form field information.
1904+
"""
1905+
return self.start().uri('/api/form/field') \
1906+
.url_segment(field_id) \
1907+
.body_handler(JSONBodyHandler(request)) \
1908+
.patch() \
1909+
.go()
1910+
18521911
def patch_group(self, group_id, request):
18531912
"""
18541913
Updates, via PATCH, the group with the given Id.
@@ -1863,6 +1922,20 @@ def patch_group(self, group_id, request):
18631922
.patch() \
18641923
.go()
18651924

1925+
def patch_ip_access_control_list(self, access_control_list_id, request):
1926+
"""
1927+
Update the IP Access Control List with the given Id.
1928+
1929+
Attributes:
1930+
access_control_list_id: The Id of the IP Access Control List to patch.
1931+
request: The request that contains the new IP Access Control List information.
1932+
"""
1933+
return self.start().uri('/api/ip-acl') \
1934+
.url_segment(access_control_list_id) \
1935+
.body_handler(JSONBodyHandler(request)) \
1936+
.patch() \
1937+
.go()
1938+
18661939
def patch_identity_provider(self, identity_provider_id, request):
18671940
"""
18681941
Updates, via PATCH, the identity provider with the given Id.
@@ -2058,6 +2131,20 @@ def patch_user_consent(self, user_consent_id, request):
20582131
.patch() \
20592132
.go()
20602133

2134+
def patch_webhook(self, webhook_id, request):
2135+
"""
2136+
Patches the webhook with the given Id.
2137+
2138+
Attributes:
2139+
webhook_id: The Id of the webhook to update.
2140+
request: The request that contains the new webhook information.
2141+
"""
2142+
return self.start().uri('/api/webhook') \
2143+
.url_segment(webhook_id) \
2144+
.body_handler(JSONBodyHandler(request)) \
2145+
.patch() \
2146+
.go()
2147+
20612148
def reactivate_application(self, application_id):
20622149
"""
20632150
Reactivates the application with the given Id.
@@ -4299,6 +4386,20 @@ def update_entity_type_permission(self, entity_type_id, permission_id, request):
42994386
.put() \
43004387
.go()
43014388

4389+
def update_family(self, family_id, request):
4390+
"""
4391+
Updates a family with a given Id.
4392+
4393+
Attributes:
4394+
family_id: The Id of the family to update.
4395+
request: The request object that contains all the new family information.
4396+
"""
4397+
return self.start().uri('/api/user/family') \
4398+
.url_segment(family_id) \
4399+
.body_handler(JSONBodyHandler(request)) \
4400+
.put() \
4401+
.go()
4402+
43024403
def update_form(self, form_id, request):
43034404
"""
43044405
Updates the form with the given Id.

0 commit comments

Comments
 (0)