Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: tools.ozone.queue.updateQueue
package ozone
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// QueueUpdateQueue_Input is the input argument to a tools.ozone.queue.updateQueue call.type QueueUpdateQueue_Input struct { // description: Optional description of the queue Description *string `json:"description,omitempty" cborgen:"description,omitempty"` // enabled: Enable or disable the queue Enabled *bool `json:"enabled,omitempty" cborgen:"enabled,omitempty"` // name: New display name for the queue Name *string `json:"name,omitempty" cborgen:"name,omitempty"` // queueId: ID of the queue to update QueueId int64 `json:"queueId" cborgen:"queueId"` // recommendedLabels: Labels to recommend for this queue and use as fallback appeal routing mappings RecommendedLabels []string `json:"recommendedLabels,omitempty" cborgen:"recommendedLabels,omitempty"` // recommendedPolicies: Policy keys to recommend when actioning reports in this queue RecommendedPolicies []string `json:"recommendedPolicies,omitempty" cborgen:"recommendedPolicies,omitempty"`}
// QueueUpdateQueue_Output is the output of a tools.ozone.queue.updateQueue call.type QueueUpdateQueue_Output struct { Queue *QueueDefs_QueueView `json:"queue" cborgen:"queue"`}
// QueueUpdateQueue calls the XRPC method "tools.ozone.queue.updateQueue".func QueueUpdateQueue(ctx context.Context, c lexutil.LexClient, input *QueueUpdateQueue_Input) (*QueueUpdateQueue_Output, error) { var out QueueUpdateQueue_Output if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.queue.updateQueue", nil, input, &out); err != nil { return nil, err }
return &out, nil}