From 1e44b7e05955a05c925405baa9084e63675fd3a9 Mon Sep 17 00:00:00 2001 From: Matthias Theuermann <73223147+mati007thm@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:54:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20import=20error=20(#187)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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), }, }