Skip to content

Commit a084e1b

Browse files
committed
chore: update model for zt gateway settings
1 parent 7cee731 commit a084e1b

File tree

1 file changed

+4
-5
lines changed
  • internal/services/zero_trust_gateway_settings

1 file changed

+4
-5
lines changed

internal/services/zero_trust_gateway_settings/model.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package zero_trust_gateway_settings
44

55
import (
66
"github.com/cloudflare/terraform-provider-cloudflare/internal/apijson"
7-
"github.com/cloudflare/terraform-provider-cloudflare/internal/customfield"
87
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
98
"github.com/hashicorp/terraform-plugin-framework/types"
109
)
@@ -51,10 +50,10 @@ type ZeroTrustGatewaySettingsSettingsActivityLogModel struct {
5150
}
5251

5352
type ZeroTrustGatewaySettingsSettingsAntivirusModel struct {
54-
EnabledDownloadPhase types.Bool `tfsdk:"enabled_download_phase" json:"enabled_download_phase,computed_optional"`
55-
EnabledUploadPhase types.Bool `tfsdk:"enabled_upload_phase" json:"enabled_upload_phase,computed_optional"`
56-
FailClosed types.Bool `tfsdk:"fail_closed" json:"fail_closed,computed_optional"`
57-
NotificationSettings customfield.NestedObject[ZeroTrustGatewaySettingsSettingsAntivirusNotificationSettingsModel] `tfsdk:"notification_settings" json:"notification_settings,computed_optional"`
53+
EnabledDownloadPhase types.Bool `tfsdk:"enabled_download_phase" json:"enabled_download_phase,computed_optional"`
54+
EnabledUploadPhase types.Bool `tfsdk:"enabled_upload_phase" json:"enabled_upload_phase,computed_optional"`
55+
FailClosed types.Bool `tfsdk:"fail_closed" json:"fail_closed,computed_optional"`
56+
NotificationSettings *ZeroTrustGatewaySettingsSettingsAntivirusNotificationSettingsModel `tfsdk:"notification_settings" json:"notification_settings,computed_optional"`
5857
}
5958

6059
type ZeroTrustGatewaySettingsSettingsAntivirusNotificationSettingsModel struct {

0 commit comments

Comments
 (0)