Skip to content

Commit 831ce6c

Browse files
feat(api): api update
1 parent 6f648e1 commit 831ce6c

File tree

3 files changed

+40
-72
lines changed

3 files changed

+40
-72
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: 1739
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7ff6599ff586bf0356b14d6fd68cbd43723867b4acd53aa0f831773a0e6e2087.yml
3-
openapi_spec_hash: 841f6e2270def2199b5af2c41a828e92
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ff3aaa7b7860a552abcb9202d4adc02ced6d1038dc2a250995af70efcfc2fc30.yml
3+
openapi_spec_hash: 6068a5e3b99a718fda24dfc60b41d2f5
44
config_hash: 7e270b3449efce600e3469937a344c2d

internal/services/zero_trust_gateway_policy/model.go

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ type ZeroTrustGatewayPolicyModel struct {
1818
AccountID types.String `tfsdk:"account_id" path:"account_id,required"`
1919
Action types.String `tfsdk:"action" json:"action,required"`
2020
Name types.String `tfsdk:"name" json:"name,required"`
21+
Description types.String `tfsdk:"description" json:"description,optional"`
2122
Precedence types.Int64 `tfsdk:"precedence" json:"precedence,optional"`
2223
Filters *[]types.String `tfsdk:"filters" json:"filters,optional"`
2324
Schedule *ZeroTrustGatewayPolicyScheduleModel `tfsdk:"schedule" json:"schedule,optional"`
24-
Description types.String `tfsdk:"description" json:"description,computed_optional"`
2525
DevicePosture types.String `tfsdk:"device_posture" json:"device_posture,computed_optional"`
2626
Enabled types.Bool `tfsdk:"enabled" json:"enabled,computed_optional"`
2727
Identity types.String `tfsdk:"identity" json:"identity,computed_optional"`
@@ -60,35 +60,35 @@ type ZeroTrustGatewayPolicyExpirationModel struct {
6060
}
6161

6262
type ZeroTrustGatewayPolicyRuleSettingsModel struct {
63-
AddHeaders *map[string]types.String `tfsdk:"add_headers" json:"add_headers,optional"`
64-
AllowChildBypass types.Bool `tfsdk:"allow_child_bypass" json:"allow_child_bypass,optional"`
65-
AuditSSH customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsAuditSSHModel] `tfsdk:"audit_ssh" json:"audit_ssh,computed_optional"`
66-
BISOAdminControls customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsBISOAdminControlsModel] `tfsdk:"biso_admin_controls" json:"biso_admin_controls,computed_optional"`
67-
BlockPage customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsBlockPageModel] `tfsdk:"block_page" json:"block_page,computed_optional"`
68-
BlockPageEnabled types.Bool `tfsdk:"block_page_enabled" json:"block_page_enabled,optional"`
69-
BlockReason types.String `tfsdk:"block_reason" json:"block_reason,optional"`
70-
BypassParentRule types.Bool `tfsdk:"bypass_parent_rule" json:"bypass_parent_rule,optional"`
71-
CheckSession customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsCheckSessionModel] `tfsdk:"check_session" json:"check_session,computed_optional"`
72-
DNSResolvers *ZeroTrustGatewayPolicyRuleSettingsDNSResolversModel `tfsdk:"dns_resolvers" json:"dns_resolvers,optional"`
73-
Egress *ZeroTrustGatewayPolicyRuleSettingsEgressModel `tfsdk:"egress" json:"egress,optional"`
74-
IgnoreCNAMECategoryMatches types.Bool `tfsdk:"ignore_cname_category_matches" json:"ignore_cname_category_matches,optional"`
75-
InsecureDisableDNSSECValidation types.Bool `tfsdk:"insecure_disable_dnssec_validation" json:"insecure_disable_dnssec_validation,optional"`
76-
IPCategories types.Bool `tfsdk:"ip_categories" json:"ip_categories,optional"`
77-
IPIndicatorFeeds types.Bool `tfsdk:"ip_indicator_feeds" json:"ip_indicator_feeds,optional"`
78-
L4override *ZeroTrustGatewayPolicyRuleSettingsL4overrideModel `tfsdk:"l4override" json:"l4override,optional"`
79-
NotificationSettings customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsNotificationSettingsModel] `tfsdk:"notification_settings" json:"notification_settings,computed_optional"`
80-
OverrideHost types.String `tfsdk:"override_host" json:"override_host,optional"`
81-
OverrideIPs *[]types.String `tfsdk:"override_ips" json:"override_ips,optional"`
82-
PayloadLog customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsPayloadLogModel] `tfsdk:"payload_log" json:"payload_log,computed_optional"`
83-
Quarantine *ZeroTrustGatewayPolicyRuleSettingsQuarantineModel `tfsdk:"quarantine" json:"quarantine,optional"`
84-
Redirect customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsRedirectModel] `tfsdk:"redirect" json:"redirect,computed_optional"`
85-
ResolveDNSInternally customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsResolveDNSInternallyModel] `tfsdk:"resolve_dns_internally" json:"resolve_dns_internally,computed_optional"`
86-
ResolveDNSThroughCloudflare types.Bool `tfsdk:"resolve_dns_through_cloudflare" json:"resolve_dns_through_cloudflare,optional"`
87-
UntrustedCERT *ZeroTrustGatewayPolicyRuleSettingsUntrustedCERTModel `tfsdk:"untrusted_cert" json:"untrusted_cert,optional"`
63+
AddHeaders *map[string]types.String `tfsdk:"add_headers" json:"add_headers,optional"`
64+
AllowChildBypass types.Bool `tfsdk:"allow_child_bypass" json:"allow_child_bypass,optional"`
65+
AuditSSH *ZeroTrustGatewayPolicyRuleSettingsAuditSSHModel `tfsdk:"audit_ssh" json:"audit_ssh,optional"`
66+
BISOAdminControls customfield.NestedObject[ZeroTrustGatewayPolicyRuleSettingsBISOAdminControlsModel] `tfsdk:"biso_admin_controls" json:"biso_admin_controls,computed_optional"`
67+
BlockPage *ZeroTrustGatewayPolicyRuleSettingsBlockPageModel `tfsdk:"block_page" json:"block_page,optional"`
68+
BlockPageEnabled types.Bool `tfsdk:"block_page_enabled" json:"block_page_enabled,optional"`
69+
BlockReason types.String `tfsdk:"block_reason" json:"block_reason,optional"`
70+
BypassParentRule types.Bool `tfsdk:"bypass_parent_rule" json:"bypass_parent_rule,optional"`
71+
CheckSession *ZeroTrustGatewayPolicyRuleSettingsCheckSessionModel `tfsdk:"check_session" json:"check_session,optional"`
72+
DNSResolvers *ZeroTrustGatewayPolicyRuleSettingsDNSResolversModel `tfsdk:"dns_resolvers" json:"dns_resolvers,optional"`
73+
Egress *ZeroTrustGatewayPolicyRuleSettingsEgressModel `tfsdk:"egress" json:"egress,optional"`
74+
IgnoreCNAMECategoryMatches types.Bool `tfsdk:"ignore_cname_category_matches" json:"ignore_cname_category_matches,optional"`
75+
InsecureDisableDNSSECValidation types.Bool `tfsdk:"insecure_disable_dnssec_validation" json:"insecure_disable_dnssec_validation,optional"`
76+
IPCategories types.Bool `tfsdk:"ip_categories" json:"ip_categories,optional"`
77+
IPIndicatorFeeds types.Bool `tfsdk:"ip_indicator_feeds" json:"ip_indicator_feeds,optional"`
78+
L4override *ZeroTrustGatewayPolicyRuleSettingsL4overrideModel `tfsdk:"l4override" json:"l4override,optional"`
79+
NotificationSettings *ZeroTrustGatewayPolicyRuleSettingsNotificationSettingsModel `tfsdk:"notification_settings" json:"notification_settings,optional"`
80+
OverrideHost types.String `tfsdk:"override_host" json:"override_host,optional"`
81+
OverrideIPs *[]types.String `tfsdk:"override_ips" json:"override_ips,optional"`
82+
PayloadLog *ZeroTrustGatewayPolicyRuleSettingsPayloadLogModel `tfsdk:"payload_log" json:"payload_log,optional"`
83+
Quarantine *ZeroTrustGatewayPolicyRuleSettingsQuarantineModel `tfsdk:"quarantine" json:"quarantine,optional"`
84+
Redirect *ZeroTrustGatewayPolicyRuleSettingsRedirectModel `tfsdk:"redirect" json:"redirect,optional"`
85+
ResolveDNSInternally *ZeroTrustGatewayPolicyRuleSettingsResolveDNSInternallyModel `tfsdk:"resolve_dns_internally" json:"resolve_dns_internally,optional"`
86+
ResolveDNSThroughCloudflare types.Bool `tfsdk:"resolve_dns_through_cloudflare" json:"resolve_dns_through_cloudflare,optional"`
87+
UntrustedCERT *ZeroTrustGatewayPolicyRuleSettingsUntrustedCERTModel `tfsdk:"untrusted_cert" json:"untrusted_cert,optional"`
8888
}
8989

9090
type ZeroTrustGatewayPolicyRuleSettingsAuditSSHModel struct {
91-
CommandLogging types.Bool `tfsdk:"command_logging" json:"command_logging,computed_optional"`
91+
CommandLogging types.Bool `tfsdk:"command_logging" json:"command_logging,optional"`
9292
}
9393

9494
type ZeroTrustGatewayPolicyRuleSettingsBISOAdminControlsModel struct {
@@ -108,12 +108,12 @@ type ZeroTrustGatewayPolicyRuleSettingsBISOAdminControlsModel struct {
108108

109109
type ZeroTrustGatewayPolicyRuleSettingsBlockPageModel struct {
110110
TargetURI types.String `tfsdk:"target_uri" json:"target_uri,required"`
111-
IncludeContext types.Bool `tfsdk:"include_context" json:"include_context,computed_optional"`
111+
IncludeContext types.Bool `tfsdk:"include_context" json:"include_context,optional"`
112112
}
113113

114114
type ZeroTrustGatewayPolicyRuleSettingsCheckSessionModel struct {
115115
Duration types.String `tfsdk:"duration" json:"duration,optional"`
116-
Enforce types.Bool `tfsdk:"enforce" json:"enforce,computed_optional"`
116+
Enforce types.Bool `tfsdk:"enforce" json:"enforce,optional"`
117117
}
118118

119119
type ZeroTrustGatewayPolicyRuleSettingsDNSResolversModel struct {
@@ -147,14 +147,14 @@ type ZeroTrustGatewayPolicyRuleSettingsL4overrideModel struct {
147147
}
148148

149149
type ZeroTrustGatewayPolicyRuleSettingsNotificationSettingsModel struct {
150-
Enabled types.Bool `tfsdk:"enabled" json:"enabled,computed_optional"`
150+
Enabled types.Bool `tfsdk:"enabled" json:"enabled,optional"`
151151
IncludeContext types.Bool `tfsdk:"include_context" json:"include_context,optional"`
152152
Msg types.String `tfsdk:"msg" json:"msg,optional"`
153153
SupportURL types.String `tfsdk:"support_url" json:"support_url,optional"`
154154
}
155155

156156
type ZeroTrustGatewayPolicyRuleSettingsPayloadLogModel struct {
157-
Enabled types.Bool `tfsdk:"enabled" json:"enabled,computed_optional"`
157+
Enabled types.Bool `tfsdk:"enabled" json:"enabled,optional"`
158158
}
159159

160160
type ZeroTrustGatewayPolicyRuleSettingsQuarantineModel struct {
@@ -163,12 +163,12 @@ type ZeroTrustGatewayPolicyRuleSettingsQuarantineModel struct {
163163

164164
type ZeroTrustGatewayPolicyRuleSettingsRedirectModel struct {
165165
TargetURI types.String `tfsdk:"target_uri" json:"target_uri,required"`
166-
IncludeContext types.Bool `tfsdk:"include_context" json:"include_context,computed_optional"`
167-
PreservePathAndQuery types.Bool `tfsdk:"preserve_path_and_query" json:"preserve_path_and_query,computed_optional"`
166+
IncludeContext types.Bool `tfsdk:"include_context" json:"include_context,optional"`
167+
PreservePathAndQuery types.Bool `tfsdk:"preserve_path_and_query" json:"preserve_path_and_query,optional"`
168168
}
169169

170170
type ZeroTrustGatewayPolicyRuleSettingsResolveDNSInternallyModel struct {
171-
Fallback types.String `tfsdk:"fallback" json:"fallback,computed_optional"`
171+
Fallback types.String `tfsdk:"fallback" json:"fallback,optional"`
172172
ViewID types.String `tfsdk:"view_id" json:"view_id,optional"`
173173
}
174174

0 commit comments

Comments
 (0)