MCPcopy
hub / github.com/apache/devlake / DeleteScope

Method DeleteScope

backend/test/helper/api.go:265–271  ·  view source on GitHub ↗
(pluginName string, connectionId uint64, scopeId string, deleteDataOnly bool)

Source from the content-addressed store, hash-verified

263}
264
265func (d *DevlakeClient) DeleteScope(pluginName string, connectionId uint64, scopeId string, deleteDataOnly bool) services.BlueprintProjectPairs {
266 return sendHttpRequest[services.BlueprintProjectPairs](d.testCtx, d.timeout, &testContext{
267 client: d,
268 printPayload: true,
269 inlineJson: false,
270 }, http.MethodDelete, fmt.Sprintf("%s/plugins/%s/connections/%d/scopes/%s?delete_data_only=%v", d.Endpoint, pluginName, connectionId, scopeId, deleteDataOnly), nil, nil)
271}
272
273func (d *DevlakeClient) CreateScopeConfig(pluginName string, connectionId uint64, scopeConfig any) any {
274 return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{

Callers

nothing calls this directly

Calls 1

sendHttpRequestFunction · 0.85

Tested by

no test coverage detected