(pluginName string, connectionId uint64, scopes ...any)
| 219 | } |
| 220 | |
| 221 | func (d *DevlakeClient) CreateScopes(pluginName string, connectionId uint64, scopes ...any) any { |
| 222 | request := map[string]any{ |
| 223 | "data": scopes, |
| 224 | } |
| 225 | return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{ |
| 226 | client: d, |
| 227 | printPayload: true, |
| 228 | inlineJson: false, |
| 229 | }, http.MethodPut, fmt.Sprintf("%s/plugins/%s/connections/%d/scopes", d.Endpoint, pluginName, connectionId), nil, request) |
| 230 | } |
| 231 | |
| 232 | func (d *DevlakeClient) UpdateScope(pluginName string, connectionId uint64, scopeId string, scope any) any { |
| 233 | return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{ |
no outgoing calls