workers: add `UsageModel` for scripts
Support changes required for cloudflare/terraform-provider-cloudflare#1205
@@ -57,6 +57,7 @@ type WorkerRouteResponse struct {
type WorkerScript struct {
WorkerMetaData
Script string `json:"script"`
+ UsageModel string `json:"usage_model,omitempty"`
}
// WorkerMetaData contains worker script information such as size, creation & modification dates.
