Skip to content

Commit 3514c11

Browse files
author
FusionAuth Automation
committed
Sync from monorepo 797cf4b8ea23
1 parent 876c9a3 commit 3514c11

2 files changed

Lines changed: 420 additions & 47 deletions

File tree

pkg/fusionauth/Client.go

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,36 @@ func (c *FusionAuthClient) CreateTenantWithContext(ctx context.Context, tenantId
19961996
return &resp, &errors, err
19971997
}
19981998

1999+
// CreateTenantManagerIdentityProviderTypeConfiguration
2000+
// Creates a tenant manager identity provider type configuration for the given identity provider type.
2001+
//
2002+
// IdentityProviderType _type The type of the identity provider.
2003+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains all the information used to create the tenant manager identity provider type configuration.
2004+
func (c *FusionAuthClient) CreateTenantManagerIdentityProviderTypeConfiguration(_type IdentityProviderType, request TenantManagerIdentityProviderTypeConfigurationRequest) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
2005+
return c.CreateTenantManagerIdentityProviderTypeConfigurationWithContext(context.TODO(), _type, request)
2006+
}
2007+
2008+
// CreateTenantManagerIdentityProviderTypeConfigurationWithContext
2009+
// Creates a tenant manager identity provider type configuration for the given identity provider type.
2010+
//
2011+
// IdentityProviderType _type The type of the identity provider.
2012+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains all the information used to create the tenant manager identity provider type configuration.
2013+
func (c *FusionAuthClient) CreateTenantManagerIdentityProviderTypeConfigurationWithContext(ctx context.Context, _type IdentityProviderType, request TenantManagerIdentityProviderTypeConfigurationRequest) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
2014+
var resp TenantManagerIdentityProviderTypeConfigurationResponse
2015+
var errors Errors
2016+
2017+
restClient := c.Start(&resp, &errors)
2018+
err := restClient.WithUri("/api/tenant-manager/identity-provider").
2019+
WithUriSegment(string(_type)).
2020+
WithJSONBody(request).
2021+
WithMethod(http.MethodPost).
2022+
Do(ctx)
2023+
if restClient.ErrorRef == nil {
2024+
return &resp, nil, err
2025+
}
2026+
return &resp, &errors, err
2027+
}
2028+
19992029
// CreateTheme
20002030
// Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
20012031
//
@@ -3089,6 +3119,33 @@ func (c *FusionAuthClient) DeleteTenantAsyncWithContext(ctx context.Context, ten
30893119
return &resp, &errors, err
30903120
}
30913121

3122+
// DeleteTenantManagerIdentityProviderTypeConfiguration
3123+
// Deletes the tenant manager identity provider type configuration for the given identity provider type.
3124+
//
3125+
// IdentityProviderType _type The type of the identity provider.
3126+
func (c *FusionAuthClient) DeleteTenantManagerIdentityProviderTypeConfiguration(_type IdentityProviderType) (*BaseHTTPResponse, *Errors, error) {
3127+
return c.DeleteTenantManagerIdentityProviderTypeConfigurationWithContext(context.TODO(), _type)
3128+
}
3129+
3130+
// DeleteTenantManagerIdentityProviderTypeConfigurationWithContext
3131+
// Deletes the tenant manager identity provider type configuration for the given identity provider type.
3132+
//
3133+
// IdentityProviderType _type The type of the identity provider.
3134+
func (c *FusionAuthClient) DeleteTenantManagerIdentityProviderTypeConfigurationWithContext(ctx context.Context, _type IdentityProviderType) (*BaseHTTPResponse, *Errors, error) {
3135+
var resp BaseHTTPResponse
3136+
var errors Errors
3137+
3138+
restClient := c.Start(&resp, &errors)
3139+
err := restClient.WithUri("/api/tenant-manager/identity-provider").
3140+
WithUriSegment(string(_type)).
3141+
WithMethod(http.MethodDelete).
3142+
Do(ctx)
3143+
if restClient.ErrorRef == nil {
3144+
return &resp, nil, err
3145+
}
3146+
return &resp, &errors, err
3147+
}
3148+
30923149
// DeleteTenantWithRequest
30933150
// Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
30943151
// with the tenant and everything under the tenant (applications, users, etc).
@@ -5321,6 +5378,63 @@ func (c *FusionAuthClient) PatchTenantWithContext(ctx context.Context, tenantId
53215378
return &resp, &errors, err
53225379
}
53235380

5381+
// PatchTenantManagerConfiguration
5382+
// Updates, via PATCH, the Tenant Manager configuration.
5383+
//
5384+
// TenantManagerConfigurationRequest request The request that contains just the new Tenant Manager configuration information.
5385+
func (c *FusionAuthClient) PatchTenantManagerConfiguration(request map[string]interface{}) (*TenantManagerConfigurationResponse, *Errors, error) {
5386+
return c.PatchTenantManagerConfigurationWithContext(context.TODO(), request)
5387+
}
5388+
5389+
// PatchTenantManagerConfigurationWithContext
5390+
// Updates, via PATCH, the Tenant Manager configuration.
5391+
//
5392+
// TenantManagerConfigurationRequest request The request that contains just the new Tenant Manager configuration information.
5393+
func (c *FusionAuthClient) PatchTenantManagerConfigurationWithContext(ctx context.Context, request map[string]interface{}) (*TenantManagerConfigurationResponse, *Errors, error) {
5394+
var resp TenantManagerConfigurationResponse
5395+
var errors Errors
5396+
5397+
restClient := c.Start(&resp, &errors)
5398+
err := restClient.WithUri("/api/tenant-manager").
5399+
WithJSONBody(request).
5400+
WithMethod(http.MethodPatch).
5401+
Do(ctx)
5402+
if restClient.ErrorRef == nil {
5403+
return &resp, nil, err
5404+
}
5405+
return &resp, &errors, err
5406+
}
5407+
5408+
// PatchTenantManagerIdentityProviderTypeConfiguration
5409+
// Patches the tenant manager identity provider type configuration for the given identity provider type.
5410+
//
5411+
// IdentityProviderType _type The type of the identity provider.
5412+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains the new tenant manager identity provider type configuration information.
5413+
func (c *FusionAuthClient) PatchTenantManagerIdentityProviderTypeConfiguration(_type IdentityProviderType, request map[string]interface{}) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
5414+
return c.PatchTenantManagerIdentityProviderTypeConfigurationWithContext(context.TODO(), _type, request)
5415+
}
5416+
5417+
// PatchTenantManagerIdentityProviderTypeConfigurationWithContext
5418+
// Patches the tenant manager identity provider type configuration for the given identity provider type.
5419+
//
5420+
// IdentityProviderType _type The type of the identity provider.
5421+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains the new tenant manager identity provider type configuration information.
5422+
func (c *FusionAuthClient) PatchTenantManagerIdentityProviderTypeConfigurationWithContext(ctx context.Context, _type IdentityProviderType, request map[string]interface{}) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
5423+
var resp TenantManagerIdentityProviderTypeConfigurationResponse
5424+
var errors Errors
5425+
5426+
restClient := c.Start(&resp, &errors)
5427+
err := restClient.WithUri("/api/tenant-manager/identity-provider").
5428+
WithUriSegment(string(_type)).
5429+
WithJSONBody(request).
5430+
WithMethod(http.MethodPatch).
5431+
Do(ctx)
5432+
if restClient.ErrorRef == nil {
5433+
return &resp, nil, err
5434+
}
5435+
return &resp, &errors, err
5436+
}
5437+
53245438
// PatchTheme
53255439
// Updates, via PATCH, the theme with the given Id.
53265440
//
@@ -6636,6 +6750,33 @@ func (c *FusionAuthClient) RetrieveIdentityProviderByTypeWithContext(ctx context
66366750
return &resp, &errors, err
66376751
}
66386752

6753+
// RetrieveIdentityProviderConnectionTestResults
6754+
// Retrieves the results for an identity provider connection test.
6755+
//
6756+
// string connectionTestId The connection test id to retrieve results for.
6757+
func (c *FusionAuthClient) RetrieveIdentityProviderConnectionTestResults(connectionTestId string) (*IdentityProviderConnectionTestResponse, *Errors, error) {
6758+
return c.RetrieveIdentityProviderConnectionTestResultsWithContext(context.TODO(), connectionTestId)
6759+
}
6760+
6761+
// RetrieveIdentityProviderConnectionTestResultsWithContext
6762+
// Retrieves the results for an identity provider connection test.
6763+
//
6764+
// string connectionTestId The connection test id to retrieve results for.
6765+
func (c *FusionAuthClient) RetrieveIdentityProviderConnectionTestResultsWithContext(ctx context.Context, connectionTestId string) (*IdentityProviderConnectionTestResponse, *Errors, error) {
6766+
var resp IdentityProviderConnectionTestResponse
6767+
var errors Errors
6768+
6769+
restClient := c.Start(&resp, &errors)
6770+
err := restClient.WithUri("/api/identity-provider/test").
6771+
WithParameter("connectionTestId", connectionTestId).
6772+
WithMethod(http.MethodGet).
6773+
Do(ctx)
6774+
if restClient.ErrorRef == nil {
6775+
return &resp, nil, err
6776+
}
6777+
return &resp, &errors, err
6778+
}
6779+
66396780
// RetrieveInactiveActions
66406781
// Retrieves all the actions for the user with the given Id that are currently inactive.
66416782
// An inactive action means one that is time based and has been canceled or has expired, or is not time based.
@@ -7589,6 +7730,24 @@ func (c *FusionAuthClient) RetrieveTenantWithContext(ctx context.Context, tenant
75897730
return &resp, &errors, err
75907731
}
75917732

7733+
// RetrieveTenantManagerConfiguration
7734+
// Retrieves the Tenant Manager configuration.
7735+
func (c *FusionAuthClient) RetrieveTenantManagerConfiguration() (*TenantManagerConfigurationResponse, error) {
7736+
return c.RetrieveTenantManagerConfigurationWithContext(context.TODO())
7737+
}
7738+
7739+
// RetrieveTenantManagerConfigurationWithContext
7740+
// Retrieves the Tenant Manager configuration.
7741+
func (c *FusionAuthClient) RetrieveTenantManagerConfigurationWithContext(ctx context.Context) (*TenantManagerConfigurationResponse, error) {
7742+
var resp TenantManagerConfigurationResponse
7743+
7744+
err := c.Start(&resp, nil).
7745+
WithUri("/api/tenant-manager").
7746+
WithMethod(http.MethodGet).
7747+
Do(ctx)
7748+
return &resp, err
7749+
}
7750+
75927751
// RetrieveTenants
75937752
// Retrieves all the tenants.
75947753
func (c *FusionAuthClient) RetrieveTenants() (*TenantResponse, error) {
@@ -9857,6 +10016,33 @@ func (c *FusionAuthClient) SendVerifyIdentityWithContext(ctx context.Context, re
985710016
return &resp, &errors, err
985810017
}
985910018

10019+
// StartIdentityProviderConnectionTest
10020+
// Begins an identity provider connection test.
10021+
//
10022+
// IdentityProviderConnectionTestRequest request The request that contains information on the connection test.
10023+
func (c *FusionAuthClient) StartIdentityProviderConnectionTest(request IdentityProviderConnectionTestRequest) (*IdentityProviderConnectionTestResponse, *Errors, error) {
10024+
return c.StartIdentityProviderConnectionTestWithContext(context.TODO(), request)
10025+
}
10026+
10027+
// StartIdentityProviderConnectionTestWithContext
10028+
// Begins an identity provider connection test.
10029+
//
10030+
// IdentityProviderConnectionTestRequest request The request that contains information on the connection test.
10031+
func (c *FusionAuthClient) StartIdentityProviderConnectionTestWithContext(ctx context.Context, request IdentityProviderConnectionTestRequest) (*IdentityProviderConnectionTestResponse, *Errors, error) {
10032+
var resp IdentityProviderConnectionTestResponse
10033+
var errors Errors
10034+
10035+
restClient := c.Start(&resp, &errors)
10036+
err := restClient.WithUri("/api/identity-provider/test").
10037+
WithJSONBody(request).
10038+
WithMethod(http.MethodPost).
10039+
Do(ctx)
10040+
if restClient.ErrorRef == nil {
10041+
return &resp, nil, err
10042+
}
10043+
return &resp, &errors, err
10044+
}
10045+
986010046
// StartIdentityProviderLogin
986110047
// Begins a login request for a 3rd party login that requires user interaction such as HYPR.
986210048
//
@@ -10785,6 +10971,63 @@ func (c *FusionAuthClient) UpdateTenantWithContext(ctx context.Context, tenantId
1078510971
return &resp, &errors, err
1078610972
}
1078710973

10974+
// UpdateTenantManagerConfiguration
10975+
// Updates the Tenant Manager configuration.
10976+
//
10977+
// TenantManagerConfigurationRequest request The request that contains all the new Tenant Manager configuration information.
10978+
func (c *FusionAuthClient) UpdateTenantManagerConfiguration(request TenantManagerConfigurationRequest) (*TenantManagerConfigurationResponse, *Errors, error) {
10979+
return c.UpdateTenantManagerConfigurationWithContext(context.TODO(), request)
10980+
}
10981+
10982+
// UpdateTenantManagerConfigurationWithContext
10983+
// Updates the Tenant Manager configuration.
10984+
//
10985+
// TenantManagerConfigurationRequest request The request that contains all the new Tenant Manager configuration information.
10986+
func (c *FusionAuthClient) UpdateTenantManagerConfigurationWithContext(ctx context.Context, request TenantManagerConfigurationRequest) (*TenantManagerConfigurationResponse, *Errors, error) {
10987+
var resp TenantManagerConfigurationResponse
10988+
var errors Errors
10989+
10990+
restClient := c.Start(&resp, &errors)
10991+
err := restClient.WithUri("/api/tenant-manager").
10992+
WithJSONBody(request).
10993+
WithMethod(http.MethodPut).
10994+
Do(ctx)
10995+
if restClient.ErrorRef == nil {
10996+
return &resp, nil, err
10997+
}
10998+
return &resp, &errors, err
10999+
}
11000+
11001+
// UpdateTenantManagerIdentityProviderTypeConfiguration
11002+
// Updates the tenant manager identity provider type configuration for the given identity provider type.
11003+
//
11004+
// IdentityProviderType _type The type of the identity provider.
11005+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains the updated tenant manager identity provider type configuration.
11006+
func (c *FusionAuthClient) UpdateTenantManagerIdentityProviderTypeConfiguration(_type IdentityProviderType, request TenantManagerIdentityProviderTypeConfigurationRequest) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
11007+
return c.UpdateTenantManagerIdentityProviderTypeConfigurationWithContext(context.TODO(), _type, request)
11008+
}
11009+
11010+
// UpdateTenantManagerIdentityProviderTypeConfigurationWithContext
11011+
// Updates the tenant manager identity provider type configuration for the given identity provider type.
11012+
//
11013+
// IdentityProviderType _type The type of the identity provider.
11014+
// TenantManagerIdentityProviderTypeConfigurationRequest request The request object that contains the updated tenant manager identity provider type configuration.
11015+
func (c *FusionAuthClient) UpdateTenantManagerIdentityProviderTypeConfigurationWithContext(ctx context.Context, _type IdentityProviderType, request TenantManagerIdentityProviderTypeConfigurationRequest) (*TenantManagerIdentityProviderTypeConfigurationResponse, *Errors, error) {
11016+
var resp TenantManagerIdentityProviderTypeConfigurationResponse
11017+
var errors Errors
11018+
11019+
restClient := c.Start(&resp, &errors)
11020+
err := restClient.WithUri("/api/tenant-manager/identity-provider").
11021+
WithUriSegment(string(_type)).
11022+
WithJSONBody(request).
11023+
WithMethod(http.MethodPut).
11024+
Do(ctx)
11025+
if restClient.ErrorRef == nil {
11026+
return &resp, nil, err
11027+
}
11028+
return &resp, &errors, err
11029+
}
11030+
1078811031
// UpdateTheme
1078911032
// Updates the theme with the given Id.
1079011033
//

0 commit comments

Comments
 (0)