From 316b5f0716342f62a10f0885e8f7c041fcda3d07 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 22:23:51 +0000 Subject: [PATCH] chore(internal): codegen related update (#5211) --- .stats.yml | 2 +- internal/services/web_analytics_site/model.go | 2 ++ internal/services/web_analytics_site/schema.go | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index fda2e4ba9e..029d9f1b4b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1542 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-be63dc99cd0bc3f8ac5f6626d38a7d6c2c683167f7440f9936733cf8e22cc9ba.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bd2b482a83809b029aec6ad87f8bec570c067383f102c15fb9e8483110398194.yml diff --git a/internal/services/web_analytics_site/model.go b/internal/services/web_analytics_site/model.go index 82ef1f48db..b71e9e1d17 100644 --- a/internal/services/web_analytics_site/model.go +++ b/internal/services/web_analytics_site/model.go @@ -18,7 +18,9 @@ type WebAnalyticsSiteModel struct { SiteTag types.String `tfsdk:"site_tag" json:"site_tag,computed"` AccountID types.String `tfsdk:"account_id" path:"account_id,required"` AutoInstall types.Bool `tfsdk:"auto_install" json:"auto_install,optional"` + Enabled types.Bool `tfsdk:"enabled" json:"enabled,optional"` Host types.String `tfsdk:"host" json:"host,optional"` + Lite types.Bool `tfsdk:"lite" json:"lite,optional"` ZoneTag types.String `tfsdk:"zone_tag" json:"zone_tag,optional"` Created timetypes.RFC3339 `tfsdk:"created" json:"created,computed" format:"date-time"` SiteToken types.String `tfsdk:"site_token" json:"site_token,computed"` diff --git a/internal/services/web_analytics_site/schema.go b/internal/services/web_analytics_site/schema.go index 60a60d1f45..b7675146d0 100644 --- a/internal/services/web_analytics_site/schema.go +++ b/internal/services/web_analytics_site/schema.go @@ -37,10 +37,18 @@ func ResourceSchema(ctx context.Context) schema.Schema { Description: "If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.", Optional: true, }, + "enabled": schema.BoolAttribute{ + Description: "Enables or disables RUM. This option can be used only when auto_install is set to true.", + Optional: true, + }, "host": schema.StringAttribute{ Description: "The hostname to use for gray-clouded sites.", Optional: true, }, + "lite": schema.BoolAttribute{ + Description: "If enabled, the JavaScript snippet will not be injected for visitors from the EU.", + Optional: true, + }, "zone_tag": schema.StringAttribute{ Description: "The zone identifier.", Optional: true,