Skip to content

Commit 072f9f7

Browse files
chore(api): Specify default value for Zone Lockdown 'paused' property
1 parent 9ec0e90 commit 072f9f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1769
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a2195f6a1ef92721db6c845b4d864ab688295623c8c88d71698087a17dca4fc7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-64386694cfc0ee9d354e15bb6398ccbdc66e4bd51c1af0d0d531e4b938e5930b.yml
33
openapi_spec_hash: 3e0f59ac2722028954566a4c850e8849
4-
config_hash: 6a2779d0015054eac7082cca3c4e72bf
4+
config_hash: eb5c619d50d6dd1b8cc66f03d5649c28

internal/services/firewall_rule/schema.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
1212
"github.com/hashicorp/terraform-plugin-framework/resource"
1313
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
14+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
1415
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1516
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1617
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
@@ -105,6 +106,7 @@ func ResourceSchema(ctx context.Context) schema.Schema {
105106
"paused": schema.BoolAttribute{
106107
Description: "When true, indicates that the firewall rule is currently paused.",
107108
Computed: true,
109+
Default: booldefault.StaticBool(false),
108110
},
109111
"priority": schema.Float64Attribute{
110112
Description: "The priority of the rule. Optional value used to define the processing order. A lower number indicates a higher priority. If not provided, rules with a defined priority will be processed before rules without a priority.",

0 commit comments

Comments
 (0)