diff --git a/pkg/api/resourceInstances.go b/pkg/api/resourceInstances.go index 2b023ac..a113d4b 100644 --- a/pkg/api/resourceInstances.go +++ b/pkg/api/resourceInstances.go @@ -2,6 +2,7 @@ package api import ( "context" + "github.com/permitio/permit-golang/pkg/config" "github.com/permitio/permit-golang/pkg/errors" "github.com/permitio/permit-golang/pkg/models" @@ -67,7 +68,7 @@ func (r *ResourceInstances) Delete( return err } - httpRes, err := r.client.ResourceInstances.DeleteResourceInstance(ctx, + httpRes, err := r.client.ResourceInstancesApi.DeleteResourceInstance(ctx, r.config.Context.GetProject(), r.config.Context.GetEnvironment(), instanceId, @@ -94,7 +95,7 @@ func (r *ResourceInstances) Get( return nil, err } - retrieved, httpRes, err := r.client.ResourceInstances.GetResourceInstance(ctx, + retrieved, httpRes, err := r.client.ResourceInstancesApi.GetResourceInstance(ctx, r.config.Context.GetProject(), r.config.Context.GetEnvironment(), instanceId, diff --git a/pkg/openapi/client.go b/pkg/openapi/client.go index 24a4e4a..6a365b6 100644 --- a/pkg/openapi/client.go +++ b/pkg/openapi/client.go @@ -70,7 +70,6 @@ type APIClient struct { ProjectsApi *ProjectsApiService ProxyConfigAPI *ProxyConfigAPIService RelationshipTuplesApi *RelationshipTuplesAPIService - ResourceInstances *ResourceInstancesApiService ResourceActionGroupsApi *ResourceActionGroupsApiService ResourceActionsApi *ResourceActionsApiService ResourceAttributesApi *ResourceAttributesApiService