Skip to content

Commit

Permalink
feat(api): api update (#5209)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 26, 2025
1 parent 8699c1b commit 6fed8b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1542
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a80f4311bc6fd36640a80989804f6223d7dc2e224d0fc0aea46c13bb85a147df.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bd2b482a83809b029aec6ad87f8bec570c067383f102c15fb9e8483110398194.yml
2 changes: 2 additions & 0 deletions internal/services/web_analytics_site/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
8 changes: 8 additions & 0 deletions internal/services/web_analytics_site/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fed8b5

Please sign in to comment.