Skip to content

Commit 11d4efc

Browse files
authored
Merge branch 'next' into fix-modules
2 parents 069aef8 + 54b3c10 commit 11d4efc

File tree

10 files changed

+16
-36
lines changed

10 files changed

+16
-36
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1781
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a8e2f9b43dab071e1560856014f5de528bf67743c5e3f129f42f0a6d08d88c1b.yml
3-
openapi_spec_hash: ff9ad2afc74c6556007cde31b96c0453
1+
configured_endpoints: 1783
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e408a7cdec2dae3d1a18842dcc59280c56050fb042569139aec3fe0f12e0d461.yml
3+
openapi_spec_hash: 7e210c76f5dd4c79b3e67204ad279b81
44
config_hash: a433f3793b734bc6fcc9d9e0c27ff8c2

examples/resources/cloudflare_r2_custom_domain/resource.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ resource "cloudflare_r2_custom_domain" "example_r2_custom_domain" {
44
domain = "domain"
55
enabled = true
66
zone_id = "zoneId"
7-
ciphers = ["string"]
87
min_tls = "1.0"
98
}

examples/resources/cloudflare_zero_trust_gateway_settings/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "cloudflare_zero_trust_gateway_settings" "example_zero_trust_gateway_se
2424
logo_path = "https://logos.com/a.png"
2525
mailto_address = "[email protected]"
2626
mailto_subject = "Blocked User Inquiry"
27-
mode = ""
27+
mode = "customized_block_page"
2828
name = "Cloudflare"
2929
suppress_footer = false
3030
target_uri = "https://example.com"

internal/services/r2_custom_domain/data_source_model.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type R2CustomDomainDataSourceModel struct {
2424
MinTLS types.String `tfsdk:"min_tls" json:"minTLS,computed"`
2525
ZoneID types.String `tfsdk:"zone_id" json:"zoneId,computed"`
2626
ZoneName types.String `tfsdk:"zone_name" json:"zoneName,computed"`
27-
Ciphers customfield.List[types.String] `tfsdk:"ciphers" json:"ciphers,computed"`
2827
Status customfield.NestedObject[R2CustomDomainStatusDataSourceModel] `tfsdk:"status" json:"status,computed"`
2928
}
3029

internal/services/r2_custom_domain/data_source_schema.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/datasource"
1111
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
1212
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
13-
"github.com/hashicorp/terraform-plugin-framework/types"
1413
)
1514

1615
var _ datasource.DataSourceWithConfigValidators = (*R2CustomDomainDataSource)(nil)
@@ -54,12 +53,6 @@ func DataSourceSchema(ctx context.Context) schema.Schema {
5453
Description: "Zone that the custom domain resides in.",
5554
Computed: true,
5655
},
57-
"ciphers": schema.ListAttribute{
58-
Description: "An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.",
59-
Computed: true,
60-
CustomType: customfield.NewListType[types.String](ctx),
61-
ElementType: types.StringType,
62-
},
6356
"status": schema.SingleNestedAttribute{
6457
Computed: true,
6558
CustomType: customfield.NewNestedObjectType[R2CustomDomainStatusDataSourceModel](ctx),

internal/services/r2_custom_domain/model.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ type R2CustomDomainModel struct {
2020
ZoneID types.String `tfsdk:"zone_id" json:"zoneId,required"`
2121
Enabled types.Bool `tfsdk:"enabled" json:"enabled,required"`
2222
MinTLS types.String `tfsdk:"min_tls" json:"minTLS,optional"`
23-
Ciphers *[]types.String `tfsdk:"ciphers" json:"ciphers,optional"`
2423
ZoneName types.String `tfsdk:"zone_name" json:"zoneName,computed"`
2524
Status customfield.NestedObject[R2CustomDomainStatusModel] `tfsdk:"status" json:"status,computed"`
2625
}

internal/services/r2_custom_domain/schema.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
1414
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1515
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
16-
"github.com/hashicorp/terraform-plugin-framework/types"
1716
)
1817

1918
var _ resource.ResourceWithConfigValidators = (*R2CustomDomainResource)(nil)
@@ -70,11 +69,6 @@ func ResourceSchema(ctx context.Context) schema.Schema {
7069
),
7170
},
7271
},
73-
"ciphers": schema.ListAttribute{
74-
Description: "An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.",
75-
Optional: true,
76-
ElementType: types.StringType,
77-
},
7872
"zone_name": schema.StringAttribute{
7973
Description: "Zone that the custom domain resides in.",
8074
Computed: true,

internal/services/zero_trust_gateway_settings/data_source_schema.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,10 @@ func DataSourceSchema(ctx context.Context) schema.Schema {
125125
Computed: true,
126126
},
127127
"mode": schema.StringAttribute{
128-
Description: "Controls whether the user is redirected to a Cloudflare-hosted block page or to a customer-provided URI.\nAvailable values: \"\", \"customized_block_page\", \"redirect_uri\".",
128+
Description: "Controls whether the user is redirected to a Cloudflare-hosted block page or to a customer-provided URI.\nAvailable values: \"customized_block_page\", \"redirect_uri\".",
129129
Computed: true,
130130
Validators: []validator.String{
131-
stringvalidator.OneOfCaseInsensitive(
132-
"",
133-
"customized_block_page",
134-
"redirect_uri",
135-
),
131+
stringvalidator.OneOfCaseInsensitive("customized_block_page", "redirect_uri"),
136132
},
137133
},
138134
"name": schema.StringAttribute{

internal/services/zero_trust_gateway_settings/model.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ 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"
78
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
89
"github.com/hashicorp/terraform-plugin-framework/types"
910
)
@@ -50,10 +51,10 @@ type ZeroTrustGatewaySettingsSettingsActivityLogModel struct {
5051
}
5152

5253
type ZeroTrustGatewaySettingsSettingsAntivirusModel struct {
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,optional"`
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"`
5758
}
5859

5960
type ZeroTrustGatewaySettingsSettingsAntivirusNotificationSettingsModel struct {

internal/services/zero_trust_gateway_settings/schema.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package zero_trust_gateway_settings
55
import (
66
"context"
77

8+
"github.com/cloudflare/terraform-provider-cloudflare/internal/customfield"
89
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
910
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
1011
"github.com/hashicorp/terraform-plugin-framework/resource"
@@ -62,7 +63,9 @@ func ResourceSchema(ctx context.Context) schema.Schema {
6263
},
6364
"notification_settings": schema.SingleNestedAttribute{
6465
Description: "Configure a message to display on the user's device when an antivirus search is performed.",
66+
Computed: true,
6567
Optional: true,
68+
CustomType: customfield.NewNestedObjectType[ZeroTrustGatewaySettingsSettingsAntivirusNotificationSettingsModel](ctx),
6669
Attributes: map[string]schema.Attribute{
6770
"enabled": schema.BoolAttribute{
6871
Description: "Set notification on",
@@ -121,14 +124,10 @@ func ResourceSchema(ctx context.Context) schema.Schema {
121124
Optional: true,
122125
},
123126
"mode": schema.StringAttribute{
124-
Description: "Controls whether the user is redirected to a Cloudflare-hosted block page or to a customer-provided URI.\nAvailable values: \"\", \"customized_block_page\", \"redirect_uri\".",
127+
Description: "Controls whether the user is redirected to a Cloudflare-hosted block page or to a customer-provided URI.\nAvailable values: \"customized_block_page\", \"redirect_uri\".",
125128
Optional: true,
126129
Validators: []validator.String{
127-
stringvalidator.OneOfCaseInsensitive(
128-
"",
129-
"customized_block_page",
130-
"redirect_uri",
131-
),
130+
stringvalidator.OneOfCaseInsensitive("customized_block_page", "redirect_uri"),
132131
},
133132
},
134133
"name": schema.StringAttribute{

0 commit comments

Comments
 (0)