globalsearch

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSearchResultFromDiscriminatorValue

CreateSearchResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateSearchResultsFromDiscriminatorValue

CreateSearchResultsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func ParseGlobalSearchType

func ParseGlobalSearchType(v string) (any, error)

func SerializeGlobalSearchType

func SerializeGlobalSearchType(values []GlobalSearchType) []string

Types

type GlobalSearchType

type GlobalSearchType int
const (
	CDN_GLOBALSEARCHTYPE GlobalSearchType = iota
	STORAGE_GLOBALSEARCHTYPE
	DNS_GLOBALSEARCHTYPE
	SCRIPT_GLOBALSEARCHTYPE
	STREAM_GLOBALSEARCHTYPE
)

func (GlobalSearchType) String

func (i GlobalSearchType) String() string

type SearchResult

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

func NewSearchResult

func NewSearchResult() *SearchResult

NewSearchResult instantiates a new SearchResult and sets the default values.

func (*SearchResult) GetAdditionalData

func (m *SearchResult) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*SearchResult) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*SearchResult) GetId

func (m *SearchResult) GetId() *int64

GetId gets the Id property value. The ID of the search result item linked object returns a *int64 when successful

func (*SearchResult) GetName

func (m *SearchResult) GetName() *string

GetName gets the Name property value. The name of the object found returns a *string when successful

func (*SearchResult) GetTypeEscaped

func (m *SearchResult) GetTypeEscaped() *GlobalSearchType

GetTypeEscaped gets the Type property value. The type of the search result item. Possible values: cdn, storage, dns, script, stream returns a *GlobalSearchType when successful

func (*SearchResult) Serialize

Serialize serializes information the current object

func (*SearchResult) SetAdditionalData

func (m *SearchResult) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*SearchResult) SetId

func (m *SearchResult) SetId(value *int64)

SetId sets the Id property value. The ID of the search result item linked object

func (*SearchResult) SetName

func (m *SearchResult) SetName(value *string)

SetName sets the Name property value. The name of the object found

func (*SearchResult) SetTypeEscaped

func (m *SearchResult) SetTypeEscaped(value *GlobalSearchType)

SetTypeEscaped sets the Type property value. The type of the search result item. Possible values: cdn, storage, dns, script, stream

type SearchResults

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

func NewSearchResults

func NewSearchResults() *SearchResults

NewSearchResults instantiates a new SearchResults and sets the default values.

func (*SearchResults) GetAdditionalData

func (m *SearchResults) GetAdditionalData() map[string]any

GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. returns a map[string]any when successful

func (*SearchResults) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*SearchResults) GetFrom

func (m *SearchResults) GetFrom() *int32

GetFrom gets the From property value. The number of results skipped in the search query returns a *int32 when successful

func (*SearchResults) GetQuery

func (m *SearchResults) GetQuery() *string

GetQuery gets the Query property value. The input query for the search request returns a *string when successful

func (*SearchResults) GetSearchResults

func (m *SearchResults) GetSearchResults() []SearchResultable

GetSearchResults gets the SearchResults property value. The list of search results found for the query returns a []SearchResultable when successful

func (*SearchResults) GetSize

func (m *SearchResults) GetSize() *int32

GetSize gets the Size property value. The size of the result set returns a *int32 when successful

func (*SearchResults) GetTotal

func (m *SearchResults) GetTotal() *int32

GetTotal gets the Total property value. The total number of search results found matching the query returns a *int32 when successful

func (*SearchResults) Serialize

Serialize serializes information the current object

func (*SearchResults) SetAdditionalData

func (m *SearchResults) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*SearchResults) SetFrom

func (m *SearchResults) SetFrom(value *int32)

SetFrom sets the From property value. The number of results skipped in the search query

func (*SearchResults) SetQuery

func (m *SearchResults) SetQuery(value *string)

SetQuery sets the Query property value. The input query for the search request

func (*SearchResults) SetSearchResults

func (m *SearchResults) SetSearchResults(value []SearchResultable)

SetSearchResults sets the SearchResults property value. The list of search results found for the query

func (*SearchResults) SetSize

func (m *SearchResults) SetSize(value *int32)

SetSize sets the Size property value. The size of the result set

func (*SearchResults) SetTotal

func (m *SearchResults) SetTotal(value *int32)

SetTotal sets the Total property value. The total number of search results found matching the query

type SearchResultsable

type SearchResultsable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetFrom() *int32
	GetQuery() *string
	GetSearchResults() []SearchResultable
	GetSize() *int32
	GetTotal() *int32
	SetFrom(value *int32)
	SetQuery(value *string)
	SetSearchResults(value []SearchResultable)
	SetSize(value *int32)
	SetTotal(value *int32)
}

Jump to

Keyboard shortcuts

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