openapi: generate
This commit is contained in:
@@ -50,7 +50,7 @@ type Invoker interface {
|
||||
//
|
||||
// (Internal endpoint) Fail an operation and write a StatusMessage.
|
||||
//
|
||||
// POST /operations/{OperationID}/failed
|
||||
// POST /operations/{OperationID}/status/operation-failed
|
||||
ActionOperationFailed(ctx context.Context, params ActionOperationFailedParams) error
|
||||
// ActionSubmissionAccepted invokes actionSubmissionAccepted operation.
|
||||
//
|
||||
@@ -468,7 +468,7 @@ func (c *Client) sendActionMapfixValidated(ctx context.Context, params ActionMap
|
||||
//
|
||||
// (Internal endpoint) Fail an operation and write a StatusMessage.
|
||||
//
|
||||
// POST /operations/{OperationID}/failed
|
||||
// POST /operations/{OperationID}/status/operation-failed
|
||||
func (c *Client) ActionOperationFailed(ctx context.Context, params ActionOperationFailedParams) error {
|
||||
_, err := c.sendActionOperationFailed(ctx, params)
|
||||
return err
|
||||
@@ -478,7 +478,7 @@ func (c *Client) sendActionOperationFailed(ctx context.Context, params ActionOpe
|
||||
otelAttrs := []attribute.KeyValue{
|
||||
otelogen.OperationID("actionOperationFailed"),
|
||||
semconv.HTTPRequestMethodKey.String("POST"),
|
||||
semconv.HTTPRouteKey.String("/operations/{OperationID}/failed"),
|
||||
semconv.HTTPRouteKey.String("/operations/{OperationID}/status/operation-failed"),
|
||||
}
|
||||
|
||||
// Run stopwatch.
|
||||
@@ -530,7 +530,7 @@ func (c *Client) sendActionOperationFailed(ctx context.Context, params ActionOpe
|
||||
}
|
||||
pathParts[1] = encoded
|
||||
}
|
||||
pathParts[2] = "/failed"
|
||||
pathParts[2] = "/status/operation-failed"
|
||||
uri.AddPathParts(u, pathParts[:]...)
|
||||
|
||||
stage = "EncodeQueryParams"
|
||||
|
||||
Reference in New Issue
Block a user