Skip to content

Commit 86c25f4

Browse files
committedJan 30, 2025
chore(internal): codegen related update (#3831)
1 parent 2133cab commit 86c25f4

18 files changed

+67
-93
lines changed
 

‎accounts/token_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
8989
accounts.TokenUpdateParams{
9090
AccountID: cloudflare.F("eb78d65290b24279ba6f44721b3ea3c4"),
9191
Token: shared.TokenParam{
92-
Name: cloudflare.F("readonly token"),
92+
Condition: cloudflare.F(shared.TokenConditionParam{
93+
RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
94+
In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
95+
NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
96+
}),
97+
}),
98+
ExpiresOn: cloudflare.F(time.Now()),
99+
Name: cloudflare.F("readonly token"),
100+
NotBefore: cloudflare.F(time.Now()),
93101
Policies: cloudflare.F([]shared.TokenPolicyParam{{
94102
Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
95103
PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
@@ -109,14 +117,6 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
109117
}),
110118
}}),
111119
Status: cloudflare.F(shared.TokenStatusActive),
112-
Condition: cloudflare.F(shared.TokenConditionParam{
113-
RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
114-
In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
115-
NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
116-
}),
117-
}),
118-
ExpiresOn: cloudflare.F(time.Now()),
119-
NotBefore: cloudflare.F(time.Now()),
120120
},
121121
},
122122
)

‎content_scanning/payload_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func TestPayloadDelete(t *testing.T) {
8282
)
8383
_, err := client.ContentScanning.Payloads.Delete(
8484
context.TODO(),
85-
"a350a054caa840c9becd89c3b4f0195b",
85+
"023e105f4ecef8ad9ca31a8372d0c353",
8686
content_scanning.PayloadDeleteParams{
8787
ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
8888
},

‎dns/settingview.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ type SettingViewNewParams struct {
307307
// Identifier
308308
AccountID param.Field[string] `path:"account_id,required"`
309309
// The name of the view.
310-
Name param.Field[string] `json:"name,required"`
310+
Name param.Field[string] `json:"name"`
311311
// The list of zones linked to this view.
312-
Zones param.Field[[]string] `json:"zones,required"`
312+
Zones param.Field[[]string] `json:"zones"`
313313
}
314314

315315
func (r SettingViewNewParams) MarshalJSON() (data []byte, err error) {

‎dns/settingview_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/cloudflare/cloudflare-go/v4/option"
1515
)
1616

17-
func TestSettingViewNew(t *testing.T) {
17+
func TestSettingViewNewWithOptionalParams(t *testing.T) {
1818
baseURL := "http://localhost:4010"
1919
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
2020
baseURL = envURL

‎dns_firewall/dnsfirewall.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,6 @@ func (r dnsFirewallGetResponseJSON) RawJSON() string {
472472
type DNSFirewallNewParams struct {
473473
// Identifier
474474
AccountID param.Field[string] `path:"account_id,required"`
475-
// DNS Firewall cluster name
476-
Name param.Field[string] `json:"name,required"`
477-
UpstreamIPs param.Field[[]UpstreamIPsParam] `json:"upstream_ips,required" format:"ipv4"`
478475
// Attack mitigation settings
479476
AttackMitigation param.Field[AttackMitigationParam] `json:"attack_mitigation"`
480477
// Whether to refuse to answer queries for the ANY type
@@ -489,6 +486,8 @@ type DNSFirewallNewParams struct {
489486
// of caching between DNS Firewall and the upstream servers. Lower TTLs will be
490487
// increased to the minimum defined here for caching purposes.
491488
MinimumCacheTTL param.Field[float64] `json:"minimum_cache_ttl"`
489+
// DNS Firewall cluster name
490+
Name param.Field[string] `json:"name"`
492491
// Negative DNS cache TTL This setting controls how long DNS Firewall should cache
493492
// negative responses (e.g., NXDOMAIN) from the upstream servers.
494493
NegativeCacheTTL param.Field[float64] `json:"negative_cache_ttl"`
@@ -497,7 +496,8 @@ type DNSFirewallNewParams struct {
497496
Ratelimit param.Field[float64] `json:"ratelimit"`
498497
// Number of retries for fetching DNS responses from upstream nameservers (not
499498
// counting the initial attempt)
500-
Retries param.Field[float64] `json:"retries"`
499+
Retries param.Field[float64] `json:"retries"`
500+
UpstreamIPs param.Field[[]UpstreamIPsParam] `json:"upstream_ips" format:"ipv4"`
501501
}
502502

503503
func (r DNSFirewallNewParams) MarshalJSON() (data []byte, err error) {

‎dns_firewall/dnsfirewall_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ func TestDNSFirewallNewWithOptionalParams(t *testing.T) {
2929
option.WithAPIEmail("user@example.com"),
3030
)
3131
_, err := client.DNSFirewall.New(context.TODO(), dns_firewall.DNSFirewallNewParams{
32-
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
33-
Name: cloudflare.F("My Awesome DNS Firewall cluster"),
34-
UpstreamIPs: cloudflare.F([]dns_firewall.UpstreamIPsParam{"192.0.2.1", "198.51.100.1", "string"}),
32+
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
3533
AttackMitigation: cloudflare.F(dns_firewall.AttackMitigationParam{
3634
Enabled: cloudflare.F(true),
3735
OnlyWhenUpstreamUnhealthy: cloudflare.F(false),
@@ -40,9 +38,11 @@ func TestDNSFirewallNewWithOptionalParams(t *testing.T) {
4038
ECSFallback: cloudflare.F(false),
4139
MaximumCacheTTL: cloudflare.F(900.000000),
4240
MinimumCacheTTL: cloudflare.F(60.000000),
41+
Name: cloudflare.F("My Awesome DNS Firewall cluster"),
4342
NegativeCacheTTL: cloudflare.F(900.000000),
4443
Ratelimit: cloudflare.F(600.000000),
4544
Retries: cloudflare.F(2.000000),
45+
UpstreamIPs: cloudflare.F([]dns_firewall.UpstreamIPsParam{"192.0.2.1", "198.51.100.1", "string"}),
4646
})
4747
if err != nil {
4848
var apierr *cloudflare.Error

‎dns_firewall/reversedns.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (r *ReverseDNSService) Get(ctx context.Context, dnsFirewallID string, query
7878

7979
type ReverseDNSEditResponse struct {
8080
// Map of cluster IP addresses to PTR record contents
81-
PTR map[string]string `json:"ptr,required"`
81+
PTR map[string]string `json:"ptr"`
8282
JSON reverseDNSEditResponseJSON `json:"-"`
8383
}
8484

@@ -100,7 +100,7 @@ func (r reverseDNSEditResponseJSON) RawJSON() string {
100100

101101
type ReverseDNSGetResponse struct {
102102
// Map of cluster IP addresses to PTR record contents
103-
PTR map[string]string `json:"ptr,required"`
103+
PTR map[string]string `json:"ptr"`
104104
JSON reverseDNSGetResponseJSON `json:"-"`
105105
}
106106

‎leaked_credential_checks/detection_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestDetectionUpdateWithOptionalParams(t *testing.T) {
5656
)
5757
_, err := client.LeakedCredentialChecks.Detections.Update(
5858
context.TODO(),
59-
"18a14bafaa8eb1df04ce683ec18c765e",
59+
"023e105f4ecef8ad9ca31a8372d0c353",
6060
leaked_credential_checks.DetectionUpdateParams{
6161
ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6262
Password: cloudflare.F("lookup_json_string(http.request.body.raw, \"secret\")"),
@@ -112,7 +112,7 @@ func TestDetectionDelete(t *testing.T) {
112112
)
113113
_, err := client.LeakedCredentialChecks.Detections.Delete(
114114
context.TODO(),
115-
"18a14bafaa8eb1df04ce683ec18c765e",
115+
"023e105f4ecef8ad9ca31a8372d0c353",
116116
leaked_credential_checks.DetectionDeleteParams{
117117
ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
118118
},

‎magic_transit/app_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestAppNewWithOptionalParams(t *testing.T) {
3333
Name: cloudflare.F("Cloudflare Dashboard"),
3434
Type: cloudflare.F("Development"),
3535
Hostnames: cloudflare.F([]string{"auth.cloudflare.com"}),
36-
IPSubnets: cloudflare.F([]string{"1.1.1.1/32"}),
36+
IPSubnets: cloudflare.F([]string{"192.0.2.0/24"}),
3737
})
3838
if err != nil {
3939
var apierr *cloudflare.Error

‎pages/project_test.go

+2-10
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,8 @@ func TestProjectEditWithOptionalParams(t *testing.T) {
384384
},
385385
}),
386386
EnvVars: cloudflare.F(map[string]pages.ProjectDeploymentConfigsProductionEnvVarParam{
387-
"BUILD_VERSION": {
388-
Value: cloudflare.F("3.3"),
389-
Type: cloudflare.F(pages.ProjectDeploymentConfigsProductionEnvVarsTypePlainText),
390-
},
391-
"delete_this_env_var": {
392-
Value: cloudflare.F("value"),
393-
Type: cloudflare.F(pages.ProjectDeploymentConfigsProductionEnvVarsTypePlainText),
394-
},
395-
"secret_var": {
396-
Value: cloudflare.F("A_CMS_API_TOKEN"),
387+
"foo": {
388+
Value: cloudflare.F("hello world"),
397389
Type: cloudflare.F(pages.ProjectDeploymentConfigsProductionEnvVarsTypePlainText),
398390
},
399391
}),

‎spectrum/analyticseventbytime.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,10 @@ type AnalyticsEventBytimeGetParams struct {
284284
// | duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
285285
// | duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
286286
Metrics param.Field[[]AnalyticsEventBytimeGetParamsMetric] `query:"metrics"`
287-
// Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
288-
// be in RFC3339 format and uses UTC unless otherwise specified.
289-
Since param.Field[time.Time] `query:"since" format:"date-time"`
287+
Since param.Field[time.Time] `query:"since" format:"date-time"`
290288
// The sort order for the result set; sort fields must be included in `metrics` or
291289
// `dimensions`.
292-
Sort param.Field[[]string] `query:"sort"`
293-
// End of time interval to query, defaults to current time. Timestamp must be in
294-
// RFC3339 format and uses UTC unless otherwise specified.
290+
Sort param.Field[[]string] `query:"sort"`
295291
Until param.Field[time.Time] `query:"until" format:"date-time"`
296292
}
297293

‎spectrum/analyticseventsummary.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,10 @@ type AnalyticsEventSummaryGetParams struct {
282282
// | duration90th | 90th percentile connection duration | 1.0 | Time in milliseconds |
283283
// | duration99th | 99th percentile connection duration | 1.0 | Time in milliseconds. |
284284
Metrics param.Field[[]AnalyticsEventSummaryGetParamsMetric] `query:"metrics"`
285-
// Start of time interval to query, defaults to `until` - 6 hours. Timestamp must
286-
// be in RFC3339 format and uses UTC unless otherwise specified.
287-
Since param.Field[time.Time] `query:"since" format:"date-time"`
285+
Since param.Field[time.Time] `query:"since" format:"date-time"`
288286
// The sort order for the result set; sort fields must be included in `metrics` or
289287
// `dimensions`.
290-
Sort param.Field[[]string] `query:"sort"`
291-
// End of time interval to query, defaults to current time. Timestamp must be in
292-
// RFC3339 format and uses UTC unless otherwise specified.
288+
Sort param.Field[[]string] `query:"sort"`
293289
Until param.Field[time.Time] `query:"until" format:"date-time"`
294290
}
295291

‎spectrum/app.go

+18-20
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,11 @@ func (r AppNewResponseSpectrumConfigAppConfigTrafficType) IsKnown() bool {
399399
}
400400

401401
type AppNewResponseSpectrumConfigPaygoAppConfig struct {
402-
// App identifier.
403-
ID string `json:"id,required"`
404-
// When the Application was created.
402+
// Identifier
403+
ID string `json:"id,required"`
405404
CreatedOn time.Time `json:"created_on,required" format:"date-time"`
406405
// The name and type of DNS record for the Spectrum application.
407-
DNS DNS `json:"dns,required"`
408-
// When the Application was last modified.
406+
DNS DNS `json:"dns,required"`
409407
ModifiedOn time.Time `json:"modified_on,required" format:"date-time"`
410408
// The port configuration at Cloudflare's edge. May specify a single port, for
411409
// example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.
@@ -750,13 +748,11 @@ func (r AppUpdateResponseSpectrumConfigAppConfigTrafficType) IsKnown() bool {
750748
}
751749

752750
type AppUpdateResponseSpectrumConfigPaygoAppConfig struct {
753-
// App identifier.
754-
ID string `json:"id,required"`
755-
// When the Application was created.
751+
// Identifier
752+
ID string `json:"id,required"`
756753
CreatedOn time.Time `json:"created_on,required" format:"date-time"`
757754
// The name and type of DNS record for the Spectrum application.
758-
DNS DNS `json:"dns,required"`
759-
// When the Application was last modified.
755+
DNS DNS `json:"dns,required"`
760756
ModifiedOn time.Time `json:"modified_on,required" format:"date-time"`
761757
// The port configuration at Cloudflare's edge. May specify a single port, for
762758
// example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.
@@ -1283,13 +1279,11 @@ func (r AppGetResponseSpectrumConfigAppConfigTrafficType) IsKnown() bool {
12831279
}
12841280

12851281
type AppGetResponseSpectrumConfigPaygoAppConfig struct {
1286-
// App identifier.
1287-
ID string `json:"id,required"`
1288-
// When the Application was created.
1282+
// Identifier
1283+
ID string `json:"id,required"`
12891284
CreatedOn time.Time `json:"created_on,required" format:"date-time"`
12901285
// The name and type of DNS record for the Spectrum application.
1291-
DNS DNS `json:"dns,required"`
1292-
// When the Application was last modified.
1286+
DNS DNS `json:"dns,required"`
12931287
ModifiedOn time.Time `json:"modified_on,required" format:"date-time"`
12941288
// The port configuration at Cloudflare's edge. May specify a single port, for
12951289
// example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.
@@ -1384,7 +1378,7 @@ func (r AppGetResponseTrafficType) IsKnown() bool {
13841378
}
13851379

13861380
type AppNewParams struct {
1387-
// Zone identifier.
1381+
// Identifier
13881382
ZoneID param.Field[string] `path:"zone_id,required"`
13891383
Body AppNewParamsBodyUnion `json:"body,required"`
13901384
}
@@ -1550,6 +1544,8 @@ func (r AppNewParamsBodySpectrumConfigAppConfigTrafficType) IsKnown() bool {
15501544
}
15511545

15521546
type AppNewParamsBodySpectrumConfigPaygoAppConfig struct {
1547+
// Identifier
1548+
ID param.Field[string] `json:"id,required"`
15531549
// The name and type of DNS record for the Spectrum application.
15541550
DNS param.Field[DNSParam] `json:"dns,required"`
15551551
// The port configuration at Cloudflare's edge. May specify a single port, for
@@ -1670,7 +1666,7 @@ func (r AppNewResponseEnvelopeSuccess) IsKnown() bool {
16701666
}
16711667

16721668
type AppUpdateParams struct {
1673-
// Zone identifier.
1669+
// Identifier
16741670
ZoneID param.Field[string] `path:"zone_id,required"`
16751671
Body AppUpdateParamsBodyUnion `json:"body,required"`
16761672
}
@@ -1837,6 +1833,8 @@ func (r AppUpdateParamsBodySpectrumConfigAppConfigTrafficType) IsKnown() bool {
18371833
}
18381834

18391835
type AppUpdateParamsBodySpectrumConfigPaygoAppConfig struct {
1836+
// Identifier
1837+
ID param.Field[string] `json:"id,required"`
18401838
// The name and type of DNS record for the Spectrum application.
18411839
DNS param.Field[DNSParam] `json:"dns,required"`
18421840
// The port configuration at Cloudflare's edge. May specify a single port, for
@@ -1958,7 +1956,7 @@ func (r AppUpdateResponseEnvelopeSuccess) IsKnown() bool {
19581956
}
19591957

19601958
type AppListParams struct {
1961-
// Zone identifier.
1959+
// Identifier
19621960
ZoneID param.Field[string] `path:"zone_id,required"`
19631961
// Sets the direction by which results are ordered.
19641962
Direction param.Field[AppListParamsDirection] `query:"direction"`
@@ -2016,7 +2014,7 @@ func (r AppListParamsOrder) IsKnown() bool {
20162014
}
20172015

20182016
type AppDeleteParams struct {
2019-
// Zone identifier.
2017+
// Identifier
20202018
ZoneID param.Field[string] `path:"zone_id,required"`
20212019
}
20222020

@@ -2064,7 +2062,7 @@ func (r AppDeleteResponseEnvelopeSuccess) IsKnown() bool {
20642062
}
20652063

20662064
type AppGetParams struct {
2067-
// Zone identifier.
2065+
// Identifier
20682066
ZoneID param.Field[string] `path:"zone_id,required"`
20692067
}
20702068

‎user/token_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,15 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
8787
"ed17574386854bf78a67040be0a770b0",
8888
user.TokenUpdateParams{
8989
Token: shared.TokenParam{
90-
Name: cloudflare.F("readonly token"),
90+
Condition: cloudflare.F(shared.TokenConditionParam{
91+
RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
92+
In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
93+
NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
94+
}),
95+
}),
96+
ExpiresOn: cloudflare.F(time.Now()),
97+
Name: cloudflare.F("readonly token"),
98+
NotBefore: cloudflare.F(time.Now()),
9199
Policies: cloudflare.F([]shared.TokenPolicyParam{{
92100
Effect: cloudflare.F(shared.TokenPolicyEffectAllow),
93101
PermissionGroups: cloudflare.F([]shared.TokenPolicyPermissionGroupParam{{
@@ -107,14 +115,6 @@ func TestTokenUpdateWithOptionalParams(t *testing.T) {
107115
}),
108116
}}),
109117
Status: cloudflare.F(shared.TokenStatusActive),
110-
Condition: cloudflare.F(shared.TokenConditionParam{
111-
RequestIP: cloudflare.F(shared.TokenConditionRequestIPParam{
112-
In: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.0/24", "2606:4700::/32"}),
113-
NotIn: cloudflare.F([]shared.TokenConditionCIDRListParam{"123.123.123.100/24", "2606:4700:4700::/48"}),
114-
}),
115-
}),
116-
ExpiresOn: cloudflare.F(time.Now()),
117-
NotBefore: cloudflare.F(time.Now()),
118118
},
119119
},
120120
)

‎zero_trust/devicenetwork.go

+4-12
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,8 @@ func (r DeviceNetworkType) IsKnown() bool {
220220
}
221221

222222
type DeviceNetworkNewParams struct {
223-
AccountID param.Field[string] `path:"account_id,required"`
224-
// The configuration object containing information for the WARP client to detect
225-
// the managed network.
226-
Config param.Field[DeviceNetworkNewParamsConfig] `json:"config,required"`
223+
AccountID param.Field[string] `path:"account_id,required"`
224+
Config param.Field[DeviceNetworkNewParamsConfig] `json:"config,required"`
227225
// The name of the device managed network. This name must be unique.
228226
Name param.Field[string] `json:"name,required"`
229227
// The type of device managed network.
@@ -234,8 +232,6 @@ func (r DeviceNetworkNewParams) MarshalJSON() (data []byte, err error) {
234232
return apijson.MarshalRoot(r)
235233
}
236234

237-
// The configuration object containing information for the WARP client to detect
238-
// the managed network.
239235
type DeviceNetworkNewParamsConfig struct {
240236
// A network address of the form "host:port" that the WARP client will use to
241237
// detect the presence of a TLS host.
@@ -309,10 +305,8 @@ func (r DeviceNetworkNewResponseEnvelopeSuccess) IsKnown() bool {
309305
}
310306

311307
type DeviceNetworkUpdateParams struct {
312-
AccountID param.Field[string] `path:"account_id,required"`
313-
// The configuration object containing information for the WARP client to detect
314-
// the managed network.
315-
Config param.Field[DeviceNetworkUpdateParamsConfig] `json:"config"`
308+
AccountID param.Field[string] `path:"account_id,required"`
309+
Config param.Field[DeviceNetworkUpdateParamsConfig] `json:"config"`
316310
// The name of the device managed network. This name must be unique.
317311
Name param.Field[string] `json:"name"`
318312
// The type of device managed network.
@@ -323,8 +317,6 @@ func (r DeviceNetworkUpdateParams) MarshalJSON() (data []byte, err error) {
323317
return apijson.MarshalRoot(r)
324318
}
325319

326-
// The configuration object containing information for the WARP client to detect
327-
// the managed network.
328320
type DeviceNetworkUpdateParamsConfig struct {
329321
// A network address of the form "host:port" that the WARP client will use to
330322
// detect the presence of a TLS host.

‎zero_trust/devicenetwork_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestDeviceNetworkNewWithOptionalParams(t *testing.T) {
3030
_, err := client.ZeroTrust.Devices.Networks.New(context.TODO(), zero_trust.DeviceNetworkNewParams{
3131
AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"),
3232
Config: cloudflare.F(zero_trust.DeviceNetworkNewParamsConfig{
33-
TLSSockaddr: cloudflare.F("foo.bar:1234"),
33+
TLSSockaddr: cloudflare.F("foobar:1234"),
3434
Sha256: cloudflare.F("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c"),
3535
}),
3636
Name: cloudflare.F("managed-network-1"),
@@ -64,7 +64,7 @@ func TestDeviceNetworkUpdateWithOptionalParams(t *testing.T) {
6464
zero_trust.DeviceNetworkUpdateParams{
6565
AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"),
6666
Config: cloudflare.F(zero_trust.DeviceNetworkUpdateParamsConfig{
67-
TLSSockaddr: cloudflare.F("foo.bar:1234"),
67+
TLSSockaddr: cloudflare.F("foobar:1234"),
6868
Sha256: cloudflare.F("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c"),
6969
}),
7070
Name: cloudflare.F("managed-network-1"),

‎zero_trust/devicepostureintegration.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (r *DevicePostureIntegrationService) Get(ctx context.Context, integrationID
145145
type Integration struct {
146146
// API UUID.
147147
ID string `json:"id"`
148-
// The configuration object containing third-party integration information.
148+
// The Workspace One Config Response.
149149
Config IntegrationConfig `json:"config"`
150150
// The interval between each posture check with the third-party API. Use `m` for
151151
// minutes (e.g. `5m`) and `h` for hours (e.g. `12h`).
@@ -176,7 +176,7 @@ func (r integrationJSON) RawJSON() string {
176176
return r.raw
177177
}
178178

179-
// The configuration object containing third-party integration information.
179+
// The Workspace One Config Response.
180180
type IntegrationConfig struct {
181181
// The Workspace One API URL provided in the Workspace One Admin Dashboard.
182182
APIURL string `json:"api_url,required"`

‎zero_trust/seat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestSeatEdit(t *testing.T) {
2929
option.WithAPIEmail("user@example.com"),
3030
)
3131
_, err := client.ZeroTrust.Seats.Edit(context.TODO(), zero_trust.SeatEditParams{
32-
AccountID: cloudflare.F("699d98642c564d2e855e9661899b7252"),
32+
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
3333
Body: []zero_trust.SeatEditParamsBody{{
3434
AccessSeat: cloudflare.F(false),
3535
GatewaySeat: cloudflare.F(false),

0 commit comments

Comments
 (0)
Please sign in to comment.