HttpCommandExportOptions
Struct
ATS-friendly configuration for resource HTTP commands.
type HttpCommandExportOptions struct { CommandOptions *CommandOptions `json:"CommandOptions"` Description *string `json:"Description"` ConfirmationMessage *string `json:"ConfirmationMessage"` IconName *string `json:"IconName"` IconVariant *IconVariant `json:"IconVariant"` IsHighlighted bool `json:"IsHighlighted"` CommandName *string `json:"CommandName"` EndpointName *string `json:"EndpointName"` MethodName *string `json:"MethodName"` PrepareRequest func(...any) any `json:"PrepareRequest"` ResultMode HttpCommandResultMode `json:"ResultMode"`}11 members
Fields
CommandOptions *CommandOptions optionalOptional command configuration.
Description*stringOptional description of the command, to be shown in the UI.
ConfirmationMessage *stringWhen a confirmation message is specified, the UI will prompt with an OK/Cancel dialog before starting the command.
IconName *stringThe icon name for the command.
IconVariant *IconVariant optionalThe icon variant.
IsHighlighted boolA flag indicating whether the command is highlighted in the UI.
CommandName *stringGets or sets the command name.
EndpointName *stringGets or sets the HTTP endpoint name to send the request to when the command is invoked.
MethodName *stringGets or sets the HTTP method name to use when sending the request.
PrepareRequest func(...any) any optionalcallbackGets or sets a callback to be invoked to configure the request before it is sent.
ResultMode HttpCommandResultMode Gets or sets how the HTTP response content should be returned as command result data.