Skip to content

Commit 9c406c2

Browse files
author
FusionAuth Automation
committed
Bump version to 1.58.0
2 parents 59fbbfb + 0d9a1c1 commit 9c406c2

File tree

3 files changed

+887
-22
lines changed

3 files changed

+887
-22
lines changed

build.savant

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* language governing permissions and limitations under the License.
1515
*/
1616

17-
project(group: "io.fusionauth", name: "go-client", version: "1.56.0", licenses: ["ApacheV2_0"]) {
17+
project(group: "io.fusionauth", name: "go-client", version: "1.57.0", licenses: ["ApacheV2_0"]) {
1818
workflow {
1919
fetch {
2020
cache()

pkg/fusionauth/Client.go

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3886,6 +3886,36 @@ func (c *FusionAuthClient) PatchEmailTemplateWithContext(ctx context.Context, em
38863886
return &resp, &errors, err
38873887
}
38883888

3889+
// PatchEntity
3890+
// Updates, via PATCH, the Entity with the given Id.
3891+
//
3892+
// string entityId The Id of the Entity Type to update.
3893+
// EntityRequest request The request that contains just the new Entity information.
3894+
func (c *FusionAuthClient) PatchEntity(entityId string, request map[string]interface{}) (*EntityResponse, *Errors, error) {
3895+
return c.PatchEntityWithContext(context.TODO(), entityId, request)
3896+
}
3897+
3898+
// PatchEntityWithContext
3899+
// Updates, via PATCH, the Entity with the given Id.
3900+
//
3901+
// string entityId The Id of the Entity Type to update.
3902+
// EntityRequest request The request that contains just the new Entity information.
3903+
func (c *FusionAuthClient) PatchEntityWithContext(ctx context.Context, entityId string, request map[string]interface{}) (*EntityResponse, *Errors, error) {
3904+
var resp EntityResponse
3905+
var errors Errors
3906+
3907+
restClient := c.Start(&resp, &errors)
3908+
err := restClient.WithUri("/api/entity").
3909+
WithUriSegment(entityId).
3910+
WithJSONBody(request).
3911+
WithMethod(http.MethodPatch).
3912+
Do(ctx)
3913+
if restClient.ErrorRef == nil {
3914+
return &resp, nil, err
3915+
}
3916+
return &resp, &errors, err
3917+
}
3918+
38893919
// PatchEntityType
38903920
// Updates, via PATCH, the Entity Type with the given Id.
38913921
//
@@ -3916,6 +3946,100 @@ func (c *FusionAuthClient) PatchEntityTypeWithContext(ctx context.Context, entit
39163946
return &resp, &errors, err
39173947
}
39183948

3949+
// PatchEntityTypePermission
3950+
// Patches the permission with the given Id for the entity type.
3951+
//
3952+
// string entityTypeId The Id of the entityType that the permission belongs to.
3953+
// string permissionId The Id of the permission to patch.
3954+
// EntityTypeRequest request The request that contains the new permission information.
3955+
func (c *FusionAuthClient) PatchEntityTypePermission(entityTypeId string, permissionId string, request map[string]interface{}) (*EntityTypeResponse, *Errors, error) {
3956+
return c.PatchEntityTypePermissionWithContext(context.TODO(), entityTypeId, permissionId, request)
3957+
}
3958+
3959+
// PatchEntityTypePermissionWithContext
3960+
// Patches the permission with the given Id for the entity type.
3961+
//
3962+
// string entityTypeId The Id of the entityType that the permission belongs to.
3963+
// string permissionId The Id of the permission to patch.
3964+
// EntityTypeRequest request The request that contains the new permission information.
3965+
func (c *FusionAuthClient) PatchEntityTypePermissionWithContext(ctx context.Context, entityTypeId string, permissionId string, request map[string]interface{}) (*EntityTypeResponse, *Errors, error) {
3966+
var resp EntityTypeResponse
3967+
var errors Errors
3968+
3969+
restClient := c.Start(&resp, &errors)
3970+
err := restClient.WithUri("/api/entity/type").
3971+
WithUriSegment(entityTypeId).
3972+
WithUriSegment("permission").
3973+
WithUriSegment(permissionId).
3974+
WithJSONBody(request).
3975+
WithMethod(http.MethodPatch).
3976+
Do(ctx)
3977+
if restClient.ErrorRef == nil {
3978+
return &resp, nil, err
3979+
}
3980+
return &resp, &errors, err
3981+
}
3982+
3983+
// PatchForm
3984+
// Patches the form with the given Id.
3985+
//
3986+
// string formId The Id of the form to patch.
3987+
// FormRequest request The request object that contains the new form information.
3988+
func (c *FusionAuthClient) PatchForm(formId string, request map[string]interface{}) (*FormResponse, *Errors, error) {
3989+
return c.PatchFormWithContext(context.TODO(), formId, request)
3990+
}
3991+
3992+
// PatchFormWithContext
3993+
// Patches the form with the given Id.
3994+
//
3995+
// string formId The Id of the form to patch.
3996+
// FormRequest request The request object that contains the new form information.
3997+
func (c *FusionAuthClient) PatchFormWithContext(ctx context.Context, formId string, request map[string]interface{}) (*FormResponse, *Errors, error) {
3998+
var resp FormResponse
3999+
var errors Errors
4000+
4001+
restClient := c.Start(&resp, &errors)
4002+
err := restClient.WithUri("/api/form").
4003+
WithUriSegment(formId).
4004+
WithJSONBody(request).
4005+
WithMethod(http.MethodPatch).
4006+
Do(ctx)
4007+
if restClient.ErrorRef == nil {
4008+
return &resp, nil, err
4009+
}
4010+
return &resp, &errors, err
4011+
}
4012+
4013+
// PatchFormField
4014+
// Patches the form field with the given Id.
4015+
//
4016+
// string fieldId The Id of the form field to patch.
4017+
// FormFieldRequest request The request object that contains the new form field information.
4018+
func (c *FusionAuthClient) PatchFormField(fieldId string, request map[string]interface{}) (*FormFieldResponse, *Errors, error) {
4019+
return c.PatchFormFieldWithContext(context.TODO(), fieldId, request)
4020+
}
4021+
4022+
// PatchFormFieldWithContext
4023+
// Patches the form field with the given Id.
4024+
//
4025+
// string fieldId The Id of the form field to patch.
4026+
// FormFieldRequest request The request object that contains the new form field information.
4027+
func (c *FusionAuthClient) PatchFormFieldWithContext(ctx context.Context, fieldId string, request map[string]interface{}) (*FormFieldResponse, *Errors, error) {
4028+
var resp FormFieldResponse
4029+
var errors Errors
4030+
4031+
restClient := c.Start(&resp, &errors)
4032+
err := restClient.WithUri("/api/form/field").
4033+
WithUriSegment(fieldId).
4034+
WithJSONBody(request).
4035+
WithMethod(http.MethodPatch).
4036+
Do(ctx)
4037+
if restClient.ErrorRef == nil {
4038+
return &resp, nil, err
4039+
}
4040+
return &resp, &errors, err
4041+
}
4042+
39194043
// PatchGroup
39204044
// Updates, via PATCH, the group with the given Id.
39214045
//
@@ -3946,6 +4070,36 @@ func (c *FusionAuthClient) PatchGroupWithContext(ctx context.Context, groupId st
39464070
return &resp, &errors, err
39474071
}
39484072

4073+
// PatchIPAccessControlList
4074+
// Update the IP Access Control List with the given Id.
4075+
//
4076+
// string accessControlListId The Id of the IP Access Control List to patch.
4077+
// IPAccessControlListRequest request The request that contains the new IP Access Control List information.
4078+
func (c *FusionAuthClient) PatchIPAccessControlList(accessControlListId string, request map[string]interface{}) (*IPAccessControlListResponse, *Errors, error) {
4079+
return c.PatchIPAccessControlListWithContext(context.TODO(), accessControlListId, request)
4080+
}
4081+
4082+
// PatchIPAccessControlListWithContext
4083+
// Update the IP Access Control List with the given Id.
4084+
//
4085+
// string accessControlListId The Id of the IP Access Control List to patch.
4086+
// IPAccessControlListRequest request The request that contains the new IP Access Control List information.
4087+
func (c *FusionAuthClient) PatchIPAccessControlListWithContext(ctx context.Context, accessControlListId string, request map[string]interface{}) (*IPAccessControlListResponse, *Errors, error) {
4088+
var resp IPAccessControlListResponse
4089+
var errors Errors
4090+
4091+
restClient := c.Start(&resp, &errors)
4092+
err := restClient.WithUri("/api/ip-acl").
4093+
WithUriSegment(accessControlListId).
4094+
WithJSONBody(request).
4095+
WithMethod(http.MethodPatch).
4096+
Do(ctx)
4097+
if restClient.ErrorRef == nil {
4098+
return &resp, nil, err
4099+
}
4100+
return &resp, &errors, err
4101+
}
4102+
39494103
// PatchIdentityProvider
39504104
// Updates, via PATCH, the identity provider with the given Id.
39514105
//
@@ -4364,6 +4518,36 @@ func (c *FusionAuthClient) PatchUserConsentWithContext(ctx context.Context, user
43644518
return &resp, &errors, err
43654519
}
43664520

4521+
// PatchWebhook
4522+
// Patches the webhook with the given Id.
4523+
//
4524+
// string webhookId The Id of the webhook to update.
4525+
// WebhookRequest request The request that contains the new webhook information.
4526+
func (c *FusionAuthClient) PatchWebhook(webhookId string, request map[string]interface{}) (*WebhookResponse, *Errors, error) {
4527+
return c.PatchWebhookWithContext(context.TODO(), webhookId, request)
4528+
}
4529+
4530+
// PatchWebhookWithContext
4531+
// Patches the webhook with the given Id.
4532+
//
4533+
// string webhookId The Id of the webhook to update.
4534+
// WebhookRequest request The request that contains the new webhook information.
4535+
func (c *FusionAuthClient) PatchWebhookWithContext(ctx context.Context, webhookId string, request map[string]interface{}) (*WebhookResponse, *Errors, error) {
4536+
var resp WebhookResponse
4537+
var errors Errors
4538+
4539+
restClient := c.Start(&resp, &errors)
4540+
err := restClient.WithUri("/api/webhook").
4541+
WithUriSegment(webhookId).
4542+
WithJSONBody(request).
4543+
WithMethod(http.MethodPatch).
4544+
Do(ctx)
4545+
if restClient.ErrorRef == nil {
4546+
return &resp, nil, err
4547+
}
4548+
return &resp, &errors, err
4549+
}
4550+
43674551
// ReactivateApplication
43684552
// Reactivates the application with the given Id.
43694553
//
@@ -8979,6 +9163,36 @@ func (c *FusionAuthClient) UpdateEntityTypePermissionWithContext(ctx context.Con
89799163
return &resp, &errors, err
89809164
}
89819165

9166+
// UpdateFamily
9167+
// Updates a family with a given Id.
9168+
//
9169+
// string familyId The Id of the family to update.
9170+
// FamilyRequest request The request object that contains all the new family information.
9171+
func (c *FusionAuthClient) UpdateFamily(familyId string, request FamilyRequest) (*FamilyResponse, *Errors, error) {
9172+
return c.UpdateFamilyWithContext(context.TODO(), familyId, request)
9173+
}
9174+
9175+
// UpdateFamilyWithContext
9176+
// Updates a family with a given Id.
9177+
//
9178+
// string familyId The Id of the family to update.
9179+
// FamilyRequest request The request object that contains all the new family information.
9180+
func (c *FusionAuthClient) UpdateFamilyWithContext(ctx context.Context, familyId string, request FamilyRequest) (*FamilyResponse, *Errors, error) {
9181+
var resp FamilyResponse
9182+
var errors Errors
9183+
9184+
restClient := c.Start(&resp, &errors)
9185+
err := restClient.WithUri("/api/user/family").
9186+
WithUriSegment(familyId).
9187+
WithJSONBody(request).
9188+
WithMethod(http.MethodPut).
9189+
Do(ctx)
9190+
if restClient.ErrorRef == nil {
9191+
return &resp, nil, err
9192+
}
9193+
return &resp, &errors, err
9194+
}
9195+
89829196
// UpdateForm
89839197
// Updates the form with the given Id.
89849198
//

0 commit comments

Comments
 (0)