From 04ff63d0c5eece8e7161474e83334a4105bbd1c4 Mon Sep 17 00:00:00 2001 From: Matthias Theuermann Date: Mon, 16 Dec 2024 20:29:21 +0100 Subject: [PATCH] fix: import error Signed-off-by: Matthias Theuermann --- internal/provider/gql.go | 4 +--- internal/provider/integration_msdefender_resource.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/provider/gql.go b/internal/provider/gql.go index c1f1110..9058d61 100644 --- a/internal/provider/gql.go +++ b/internal/provider/gql.go @@ -656,8 +656,6 @@ type MicrosoftDefenderConfigurationOptionsInput struct { ClientId string SubscriptionsAllowlist []string SubscriptionsDenylist []string - Certificate string - ClientSecret string } type ClientIntegrationConfigurationOptions struct { @@ -673,7 +671,7 @@ type ClientIntegrationConfigurationOptions struct { JiraConfigurationOptions JiraConfigurationOptions `graphql:"... on JiraConfigurationOptions"` EmailConfigurationOptions EmailConfigurationOptions `graphql:"... on EmailConfigurationOptions"` GitlabConfigurationOptions GitlabConfigurationOptions `graphql:"... on GitlabConfigurationOptions"` - MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptionsInput"` + MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptions"` // Add other configuration options here } diff --git a/internal/provider/integration_msdefender_resource.go b/internal/provider/integration_msdefender_resource.go index edb2400..398f098 100644 --- a/internal/provider/integration_msdefender_resource.go +++ b/internal/provider/integration_msdefender_resource.go @@ -304,7 +304,7 @@ func (r *integrationMsDefenderResource) ImportState(ctx context.Context, req res SubscriptionAllowList: allowList, SubscriptionDenyList: denyList, Credential: integrationMsDefenderCredentialModel{ - PEMFile: types.StringValue(integration.ConfigurationOptions.MicrosoftDefenderConfigurationOptionsInput.Certificate), + PEMFile: types.StringPointerValue(nil), }, }