filters

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a client for 'filters' requests.

func NewClient added in v1.0.0

func NewClient(c *api.Client) *Client

NewFilters returns a new 'filters' client.

func (*Client) CreateSourceFilter

func (c *Client) CreateSourceFilter(params *CreateSourceFilterParams) (*CreateSourceFilterResponse, error)

Creates a new filter, adding it to the specified source.

func (*Client) GetSourceFilter

func (c *Client) GetSourceFilter(params *GetSourceFilterParams) (*GetSourceFilterResponse, error)

Gets the info for a specific source filter.

func (*Client) GetSourceFilterDefaultSettings

func (c *Client) GetSourceFilterDefaultSettings(
	params *GetSourceFilterDefaultSettingsParams,
) (*GetSourceFilterDefaultSettingsResponse, error)

Gets the default settings for a filter kind.

func (*Client) GetSourceFilterKindList added in v1.2.0

func (c *Client) GetSourceFilterKindList(
	paramss ...*GetSourceFilterKindListParams,
) (*GetSourceFilterKindListResponse, error)

Gets an array of all available source filter kinds.

Similar to `GetInputKindList`

func (*Client) GetSourceFilterList

func (c *Client) GetSourceFilterList(paramss ...*GetSourceFilterListParams) (*GetSourceFilterListResponse, error)

Gets an array of all of a source's filters.

func (*Client) RemoveSourceFilter

func (c *Client) RemoveSourceFilter(params *RemoveSourceFilterParams) (*RemoveSourceFilterResponse, error)

Removes a filter from a source.

func (*Client) SetSourceFilterEnabled

func (c *Client) SetSourceFilterEnabled(params *SetSourceFilterEnabledParams) (*SetSourceFilterEnabledResponse, error)

Sets the enable state of a source filter.

func (*Client) SetSourceFilterIndex

func (c *Client) SetSourceFilterIndex(params *SetSourceFilterIndexParams) (*SetSourceFilterIndexResponse, error)

Sets the index position of a filter on a source.

func (*Client) SetSourceFilterName

func (c *Client) SetSourceFilterName(params *SetSourceFilterNameParams) (*SetSourceFilterNameResponse, error)

Sets the name of a source filter (rename).

func (*Client) SetSourceFilterSettings

func (c *Client) SetSourceFilterSettings(
	params *SetSourceFilterSettingsParams,
) (*SetSourceFilterSettingsResponse, error)

Sets the settings of a source filter.

type CreateSourceFilterParams

type CreateSourceFilterParams struct {
	// The kind of filter to be created
	FilterKind *string `json:"filterKind,omitempty"`

	// Name of the new filter to be created
	FilterName *string `json:"filterName,omitempty"`

	// Settings object to initialize the filter with
	FilterSettings map[string]any `json:"filterSettings,omitempty"`

	// Name of the source to add the filter to
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source to add the filter to
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the CreateSourceFilter request.

func NewCreateSourceFilterParams added in v1.0.0

func NewCreateSourceFilterParams() *CreateSourceFilterParams

func (*CreateSourceFilterParams) GetRequestName

func (o *CreateSourceFilterParams) GetRequestName() string

Returns the associated request.

func (*CreateSourceFilterParams) WithFilterKind added in v1.0.0

func (*CreateSourceFilterParams) WithFilterName added in v1.0.0

func (*CreateSourceFilterParams) WithFilterSettings added in v1.0.0

func (o *CreateSourceFilterParams) WithFilterSettings(x map[string]any) *CreateSourceFilterParams

func (*CreateSourceFilterParams) WithSourceName added in v1.0.0

func (*CreateSourceFilterParams) WithSourceUuid added in v1.2.0

type CreateSourceFilterResponse

type CreateSourceFilterResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the CreateSourceFilter request.

type GetSourceFilterDefaultSettingsParams

type GetSourceFilterDefaultSettingsParams struct {
	// Filter kind to get the default settings for
	FilterKind *string `json:"filterKind,omitempty"`
}

Represents the request body for the GetSourceFilterDefaultSettings request.

func NewGetSourceFilterDefaultSettingsParams added in v1.0.0

func NewGetSourceFilterDefaultSettingsParams() *GetSourceFilterDefaultSettingsParams

func (*GetSourceFilterDefaultSettingsParams) GetRequestName

func (o *GetSourceFilterDefaultSettingsParams) GetRequestName() string

Returns the associated request.

func (*GetSourceFilterDefaultSettingsParams) WithFilterKind added in v1.0.0

type GetSourceFilterDefaultSettingsResponse

type GetSourceFilterDefaultSettingsResponse struct {

	// Object of default settings for the filter kind
	DefaultFilterSettings map[string]any `json:"defaultFilterSettings,omitempty"`
	// contains filtered or unexported fields
}

Represents the response body for the GetSourceFilterDefaultSettings request.

type GetSourceFilterKindListParams added in v1.2.0

type GetSourceFilterKindListParams struct{}

Represents the request body for the GetSourceFilterKindList request.

func (*GetSourceFilterKindListParams) GetRequestName added in v1.2.0

func (o *GetSourceFilterKindListParams) GetRequestName() string

Returns the associated request.

type GetSourceFilterKindListResponse added in v1.2.0

type GetSourceFilterKindListResponse struct {

	// Array of source filter kinds
	SourceFilterKinds []string `json:"sourceFilterKinds,omitempty"`
	// contains filtered or unexported fields
}

Represents the response body for the GetSourceFilterKindList request.

type GetSourceFilterListParams

type GetSourceFilterListParams struct {
	// Name of the source
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the GetSourceFilterList request.

func NewGetSourceFilterListParams added in v1.0.0

func NewGetSourceFilterListParams() *GetSourceFilterListParams

func (*GetSourceFilterListParams) GetRequestName

func (o *GetSourceFilterListParams) GetRequestName() string

Returns the associated request.

func (*GetSourceFilterListParams) WithSourceName added in v1.0.0

func (*GetSourceFilterListParams) WithSourceUuid added in v1.2.0

type GetSourceFilterListResponse

type GetSourceFilterListResponse struct {

	// Array of filters
	Filters []*typedefs.Filter `json:"filters,omitempty"`
	// contains filtered or unexported fields
}

Represents the response body for the GetSourceFilterList request.

type GetSourceFilterParams

type GetSourceFilterParams struct {
	// Name of the filter
	FilterName *string `json:"filterName,omitempty"`

	// Name of the source
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the GetSourceFilter request.

func NewGetSourceFilterParams added in v1.0.0

func NewGetSourceFilterParams() *GetSourceFilterParams

func (*GetSourceFilterParams) GetRequestName

func (o *GetSourceFilterParams) GetRequestName() string

Returns the associated request.

func (*GetSourceFilterParams) WithFilterName added in v1.0.0

func (o *GetSourceFilterParams) WithFilterName(x string) *GetSourceFilterParams

func (*GetSourceFilterParams) WithSourceName added in v1.0.0

func (o *GetSourceFilterParams) WithSourceName(x string) *GetSourceFilterParams

func (*GetSourceFilterParams) WithSourceUuid added in v1.2.0

func (o *GetSourceFilterParams) WithSourceUuid(x string) *GetSourceFilterParams

type GetSourceFilterResponse

type GetSourceFilterResponse struct {

	// Whether the filter is enabled
	FilterEnabled bool `json:"filterEnabled,omitempty"`

	// Index of the filter in the list, beginning at 0
	FilterIndex int `json:"filterIndex,omitempty"`

	// The kind of filter
	FilterKind string `json:"filterKind,omitempty"`

	// Settings object associated with the filter
	FilterSettings map[string]any `json:"filterSettings,omitempty"`
	// contains filtered or unexported fields
}

Represents the response body for the GetSourceFilter request.

type RemoveSourceFilterParams

type RemoveSourceFilterParams struct {
	// Name of the filter to remove
	FilterName *string `json:"filterName,omitempty"`

	// Name of the source the filter is on
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source the filter is on
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the RemoveSourceFilter request.

func NewRemoveSourceFilterParams added in v1.0.0

func NewRemoveSourceFilterParams() *RemoveSourceFilterParams

func (*RemoveSourceFilterParams) GetRequestName

func (o *RemoveSourceFilterParams) GetRequestName() string

Returns the associated request.

func (*RemoveSourceFilterParams) WithFilterName added in v1.0.0

func (*RemoveSourceFilterParams) WithSourceName added in v1.0.0

func (*RemoveSourceFilterParams) WithSourceUuid added in v1.2.0

type RemoveSourceFilterResponse

type RemoveSourceFilterResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the RemoveSourceFilter request.

type SetSourceFilterEnabledParams

type SetSourceFilterEnabledParams struct {
	// New enable state of the filter
	FilterEnabled *bool `json:"filterEnabled,omitempty"`

	// Name of the filter
	FilterName *string `json:"filterName,omitempty"`

	// Name of the source the filter is on
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source the filter is on
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the SetSourceFilterEnabled request.

func NewSetSourceFilterEnabledParams added in v1.0.0

func NewSetSourceFilterEnabledParams() *SetSourceFilterEnabledParams

func (*SetSourceFilterEnabledParams) GetRequestName

func (o *SetSourceFilterEnabledParams) GetRequestName() string

Returns the associated request.

func (*SetSourceFilterEnabledParams) WithFilterEnabled added in v1.0.0

func (*SetSourceFilterEnabledParams) WithFilterName added in v1.0.0

func (*SetSourceFilterEnabledParams) WithSourceName added in v1.0.0

func (*SetSourceFilterEnabledParams) WithSourceUuid added in v1.2.0

type SetSourceFilterEnabledResponse

type SetSourceFilterEnabledResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the SetSourceFilterEnabled request.

type SetSourceFilterIndexParams

type SetSourceFilterIndexParams struct {
	// New index position of the filter
	FilterIndex *int `json:"filterIndex,omitempty"`

	// Name of the filter
	FilterName *string `json:"filterName,omitempty"`

	// Name of the source the filter is on
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source the filter is on
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the SetSourceFilterIndex request.

func NewSetSourceFilterIndexParams added in v1.0.0

func NewSetSourceFilterIndexParams() *SetSourceFilterIndexParams

func (*SetSourceFilterIndexParams) GetRequestName

func (o *SetSourceFilterIndexParams) GetRequestName() string

Returns the associated request.

func (*SetSourceFilterIndexParams) WithFilterIndex added in v1.0.0

func (*SetSourceFilterIndexParams) WithFilterName added in v1.0.0

func (*SetSourceFilterIndexParams) WithSourceName added in v1.0.0

func (*SetSourceFilterIndexParams) WithSourceUuid added in v1.2.0

type SetSourceFilterIndexResponse

type SetSourceFilterIndexResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the SetSourceFilterIndex request.

type SetSourceFilterNameParams

type SetSourceFilterNameParams struct {
	// Current name of the filter
	FilterName *string `json:"filterName,omitempty"`

	// New name for the filter
	NewFilterName *string `json:"newFilterName,omitempty"`

	// Name of the source the filter is on
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source the filter is on
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the SetSourceFilterName request.

func NewSetSourceFilterNameParams added in v1.0.0

func NewSetSourceFilterNameParams() *SetSourceFilterNameParams

func (*SetSourceFilterNameParams) GetRequestName

func (o *SetSourceFilterNameParams) GetRequestName() string

Returns the associated request.

func (*SetSourceFilterNameParams) WithFilterName added in v1.0.0

func (*SetSourceFilterNameParams) WithNewFilterName added in v1.0.0

func (*SetSourceFilterNameParams) WithSourceName added in v1.0.0

func (*SetSourceFilterNameParams) WithSourceUuid added in v1.2.0

type SetSourceFilterNameResponse

type SetSourceFilterNameResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the SetSourceFilterName request.

type SetSourceFilterSettingsParams

type SetSourceFilterSettingsParams struct {
	// Name of the filter to set the settings of
	FilterName *string `json:"filterName,omitempty"`

	// Object of settings to apply
	FilterSettings map[string]any `json:"filterSettings,omitempty"`

	// True == apply the settings on top of existing ones, False == reset the input to its defaults, then apply
	// settings.
	Overlay *bool `json:"overlay,omitempty"`

	// Name of the source the filter is on
	SourceName *string `json:"sourceName,omitempty"`

	// UUID of the source the filter is on
	SourceUuid *string `json:"sourceUuid,omitempty"`
}

Represents the request body for the SetSourceFilterSettings request.

func NewSetSourceFilterSettingsParams added in v1.0.0

func NewSetSourceFilterSettingsParams() *SetSourceFilterSettingsParams

func (*SetSourceFilterSettingsParams) GetRequestName

func (o *SetSourceFilterSettingsParams) GetRequestName() string

Returns the associated request.

func (*SetSourceFilterSettingsParams) WithFilterName added in v1.0.0

func (*SetSourceFilterSettingsParams) WithFilterSettings added in v1.0.0

func (*SetSourceFilterSettingsParams) WithOverlay added in v1.0.0

func (*SetSourceFilterSettingsParams) WithSourceName added in v1.0.0

func (*SetSourceFilterSettingsParams) WithSourceUuid added in v1.2.0

type SetSourceFilterSettingsResponse

type SetSourceFilterSettingsResponse struct {
	// contains filtered or unexported fields
}

Represents the response body for the SetSourceFilterSettings request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL