Skip to content

Commit 17f069f

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent b287c55 commit 17f069f

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1783
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e408a7cdec2dae3d1a18842dcc59280c56050fb042569139aec3fe0f12e0d461.yml
33
openapi_spec_hash: 7e210c76f5dd4c79b3e67204ad279b81
4-
config_hash: 2d45ef3f487fb8c17ee578789175de57
4+
config_hash: 1d1f62e87686c0d8571be460876f347c

internal/services/workers_deployment/resource.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -142,29 +142,7 @@ func (r *WorkersDeploymentResource) Read(ctx context.Context, req resource.ReadR
142142
}
143143

144144
func (r *WorkersDeploymentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) {
145-
var data *WorkersDeploymentModel
146-
147-
resp.Diagnostics.Append(req.State.Get(ctx, &data)...)
148-
149-
if resp.Diagnostics.HasError() {
150-
return
151-
}
152-
153-
_, err := r.client.Workers.Scripts.Deployments.Delete(
154-
ctx,
155-
data.ScriptName.ValueString(),
156-
data.ID.ValueString(),
157-
workers.ScriptDeploymentDeleteParams{
158-
AccountID: cloudflare.F(data.AccountID.ValueString()),
159-
},
160-
option.WithMiddleware(logging.Middleware(ctx)),
161-
)
162-
if err != nil {
163-
resp.Diagnostics.AddError("failed to make http request", err.Error())
164-
return
165-
}
166145

167-
resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
168146
}
169147

170148
func (r *WorkersDeploymentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {

0 commit comments

Comments
 (0)