Skip to content

Commit ab3fa1e

Browse files
feat(api): api update
1 parent 66972f0 commit ab3fa1e

File tree

3 files changed

+2
-46
lines changed

3 files changed

+2
-46
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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-38118aeb8d98024487e7ed131f71513d92cc2755d1fa142e0595a8f16da253f7.yml
3-
openapi_spec_hash: ac59cca36c7c1984186692bead828e03
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d66cccbb6e68a04a563b4b97948a510c4575857b8ca14bd89490ad4a67dfcf98.yml
3+
openapi_spec_hash: 64ed30f8af381273583738989e6019bc
44
config_hash: 9e096c169b43682069730a4291c62d4a

zero_trust/gatewayconfiguration.go

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,6 @@ type GatewayConfigurationSettings struct {
481481
ActivityLog ActivityLogSettings `json:"activity_log,nullable"`
482482
// Anti-virus settings.
483483
Antivirus AntiVirusSettings `json:"antivirus,nullable"`
484-
// Setting to enable App Control
485-
AppControlSettings GatewayConfigurationSettingsAppControlSettings `json:"app-control-settings,nullable"`
486484
// Block page layout settings.
487485
BlockPage BlockPageSettings `json:"block_page,nullable"`
488486
// DLP body scanning settings.
@@ -517,7 +515,6 @@ type GatewayConfigurationSettings struct {
517515
type gatewayConfigurationSettingsJSON struct {
518516
ActivityLog apijson.Field
519517
Antivirus apijson.Field
520-
AppControlSettings apijson.Field
521518
BlockPage apijson.Field
522519
BodyScanning apijson.Field
523520
BrowserIsolation apijson.Field
@@ -541,29 +538,6 @@ func (r gatewayConfigurationSettingsJSON) RawJSON() string {
541538
return r.raw
542539
}
543540

544-
// Setting to enable App Control
545-
type GatewayConfigurationSettingsAppControlSettings struct {
546-
// Enable App Control
547-
Enabled bool `json:"enabled"`
548-
JSON gatewayConfigurationSettingsAppControlSettingsJSON `json:"-"`
549-
}
550-
551-
// gatewayConfigurationSettingsAppControlSettingsJSON contains the JSON metadata
552-
// for the struct [GatewayConfigurationSettingsAppControlSettings]
553-
type gatewayConfigurationSettingsAppControlSettingsJSON struct {
554-
Enabled apijson.Field
555-
raw string
556-
ExtraFields map[string]apijson.Field
557-
}
558-
559-
func (r *GatewayConfigurationSettingsAppControlSettings) UnmarshalJSON(data []byte) (err error) {
560-
return apijson.UnmarshalRoot(data, r)
561-
}
562-
563-
func (r gatewayConfigurationSettingsAppControlSettingsJSON) RawJSON() string {
564-
return r.raw
565-
}
566-
567541
// Certificate settings for Gateway TLS interception. If not specified, the
568542
// Cloudflare Root CA will be used.
569543
type GatewayConfigurationSettingsCertificate struct {
@@ -661,8 +635,6 @@ type GatewayConfigurationSettingsParam struct {
661635
ActivityLog param.Field[ActivityLogSettingsParam] `json:"activity_log"`
662636
// Anti-virus settings.
663637
Antivirus param.Field[AntiVirusSettingsParam] `json:"antivirus"`
664-
// Setting to enable App Control
665-
AppControlSettings param.Field[GatewayConfigurationSettingsAppControlSettingsParam] `json:"app-control-settings"`
666638
// Block page layout settings.
667639
BlockPage param.Field[BlockPageSettingsParam] `json:"block_page"`
668640
// DLP body scanning settings.
@@ -695,16 +667,6 @@ func (r GatewayConfigurationSettingsParam) MarshalJSON() (data []byte, err error
695667
return apijson.MarshalRoot(r)
696668
}
697669

698-
// Setting to enable App Control
699-
type GatewayConfigurationSettingsAppControlSettingsParam struct {
700-
// Enable App Control
701-
Enabled param.Field[bool] `json:"enabled"`
702-
}
703-
704-
func (r GatewayConfigurationSettingsAppControlSettingsParam) MarshalJSON() (data []byte, err error) {
705-
return apijson.MarshalRoot(r)
706-
}
707-
708670
// Certificate settings for Gateway TLS interception. If not specified, the
709671
// Cloudflare Root CA will be used.
710672
type GatewayConfigurationSettingsCertificateParam struct {

zero_trust/gatewayconfiguration_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ func TestGatewayConfigurationUpdateWithOptionalParams(t *testing.T) {
4444
SupportURL: cloudflare.F("support_url"),
4545
}),
4646
}),
47-
AppControlSettings: cloudflare.F(zero_trust.GatewayConfigurationSettingsAppControlSettingsParam{
48-
Enabled: cloudflare.F(false),
49-
}),
5047
BlockPage: cloudflare.F(zero_trust.BlockPageSettingsParam{
5148
BackgroundColor: cloudflare.F("background_color"),
5249
Enabled: cloudflare.F(true),
@@ -135,9 +132,6 @@ func TestGatewayConfigurationEditWithOptionalParams(t *testing.T) {
135132
SupportURL: cloudflare.F("support_url"),
136133
}),
137134
}),
138-
AppControlSettings: cloudflare.F(zero_trust.GatewayConfigurationSettingsAppControlSettingsParam{
139-
Enabled: cloudflare.F(false),
140-
}),
141135
BlockPage: cloudflare.F(zero_trust.BlockPageSettingsParam{
142136
BackgroundColor: cloudflare.F("background_color"),
143137
Enabled: cloudflare.F(true),

0 commit comments

Comments
 (0)