Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5351edf

Browse files
committedMar 13, 2025
feat(api): api update (#3956)
1 parent 7571c41 commit 5351edf

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1542
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a80f4311bc6fd36640a80989804f6223d7dc2e224d0fc0aea46c13bb85a147df.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bd2b482a83809b029aec6ad87f8bec570c067383f102c15fb9e8483110398194.yml

‎rum/siteinfo.go

+6
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,14 @@ type SiteInfoUpdateParams struct {
284284
// If enabled, the JavaScript snippet is automatically injected for orange-clouded
285285
// sites.
286286
AutoInstall param.Field[bool] `json:"auto_install"`
287+
// Enables or disables RUM. This option can be used only when auto_install is set
288+
// to true.
289+
Enabled param.Field[bool] `json:"enabled"`
287290
// The hostname to use for gray-clouded sites.
288291
Host param.Field[string] `json:"host"`
292+
// If enabled, the JavaScript snippet will not be injected for visitors from the
293+
// EU.
294+
Lite param.Field[bool] `json:"lite"`
289295
// The zone identifier.
290296
ZoneTag param.Field[string] `json:"zone_tag"`
291297
}

‎rum/siteinfo_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ func TestSiteInfoUpdateWithOptionalParams(t *testing.T) {
6161
rum.SiteInfoUpdateParams{
6262
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6363
AutoInstall: cloudflare.F(true),
64+
Enabled: cloudflare.F(true),
6465
Host: cloudflare.F("example.com"),
66+
Lite: cloudflare.F(true),
6567
ZoneTag: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6668
},
6769
)

0 commit comments

Comments
 (0)
Please sign in to comment.