From c53b434c4fc8dbe9377800ea47d3ac57e7c77c8e Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Mon, 31 Jan 2022 09:47:06 +1100 Subject: [PATCH] workers: add `UsageModel` for scripts Support changes required for cloudflare/terraform-provider-cloudflare#1205 --- workers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workers.go b/workers.go index d0268e34ee..82f0c7a7c9 100644 --- a/workers.go +++ b/workers.go @@ -56,7 +56,8 @@ type WorkerRouteResponse struct { // WorkerScript Cloudflare Worker struct with metadata. type WorkerScript struct { WorkerMetaData - Script string `json:"script"` + Script string `json:"script"` + UsageModel string `json:"usage_model,omitempty"` } // WorkerMetaData contains worker script information such as size, creation & modification dates.