From 6a4281b4d3e79983e338a6f5651e65ec464c0d52 Mon Sep 17 00:00:00 2001 From: Oded Date: Wed, 15 May 2024 19:38:41 +0300 Subject: [PATCH 1/2] fix typo in resource instances --- pkg/api/resourceInstances.go | 4 ++-- pkg/openapi/client.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/resourceInstances.go b/pkg/api/resourceInstances.go index 58465b7..2b023ac 100644 --- a/pkg/api/resourceInstances.go +++ b/pkg/api/resourceInstances.go @@ -67,7 +67,7 @@ func (r *ResourceInstances) Delete( return err } - httpRes, err := r.client.ResouceInstances.DeleteResourceInstance(ctx, + httpRes, err := r.client.ResourceInstances.DeleteResourceInstance(ctx, r.config.Context.GetProject(), r.config.Context.GetEnvironment(), instanceId, @@ -94,7 +94,7 @@ func (r *ResourceInstances) Get( return nil, err } - retrieved, httpRes, err := r.client.ResouceInstances.GetResourceInstance(ctx, + retrieved, httpRes, err := r.client.ResourceInstances.GetResourceInstance(ctx, r.config.Context.GetProject(), r.config.Context.GetEnvironment(), instanceId, diff --git a/pkg/openapi/client.go b/pkg/openapi/client.go index e7edda2..262bc92 100644 --- a/pkg/openapi/client.go +++ b/pkg/openapi/client.go @@ -70,7 +70,7 @@ type APIClient struct { ProjectsApi *ProjectsApiService ProxyConfigAPI *ProxyConfigAPIService RelationshipTuplesApi *RelationshipTuplesAPIService - ResouceInstances *ResourceInstancesApiService + ResourceInstances *ResourceInstancesApiService ResourceActionGroupsApi *ResourceActionGroupsApiService ResourceActionsApi *ResourceActionsApiService ResourceAttributesApi *ResourceAttributesApiService From 655c477660936c461d7cf08ff28ed813a696587e Mon Sep 17 00:00:00 2001 From: Oded Date: Thu, 16 May 2024 12:17:13 +0300 Subject: [PATCH 2/2] remove duplicate line --- pkg/openapi/client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/openapi/client.go b/pkg/openapi/client.go index 262bc92..24a4e4a 100644 --- a/pkg/openapi/client.go +++ b/pkg/openapi/client.go @@ -126,7 +126,6 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ResourceActionsApi = (*ResourceActionsApiService)(&c.common) c.ResourceAttributesApi = (*ResourceAttributesApiService)(&c.common) c.ResourceInstancesApi = (*ResourceInstancesApiService)(&c.common) - c.ResourceInstancesApi = (*ResourceInstancesApiService)(&c.common) c.ResourceRelations = (*ResourceRelationsAPIService)(&c.common) c.ResourceRoles = (*ResourceRolesApiService)(&c.common) c.ResourcesApi = (*ResourcesApiService)(&c.common)