Documentation
¶
Index ¶
- func CreateSearchResultFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateSearchResultsFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func ParseGlobalSearchType(v string) (any, error)
- func SerializeGlobalSearchType(values []GlobalSearchType) []string
- type GlobalSearchType
- type SearchResult
- func (m *SearchResult) GetAdditionalData() map[string]any
- func (m *SearchResult) GetFieldDeserializers() ...
- func (m *SearchResult) GetId() *int64
- func (m *SearchResult) GetName() *string
- func (m *SearchResult) GetTypeEscaped() *GlobalSearchType
- func (m *SearchResult) Serialize(...) error
- func (m *SearchResult) SetAdditionalData(value map[string]any)
- func (m *SearchResult) SetId(value *int64)
- func (m *SearchResult) SetName(value *string)
- func (m *SearchResult) SetTypeEscaped(value *GlobalSearchType)
- type SearchResultable
- type SearchResults
- func (m *SearchResults) GetAdditionalData() map[string]any
- func (m *SearchResults) GetFieldDeserializers() ...
- func (m *SearchResults) GetFrom() *int32
- func (m *SearchResults) GetQuery() *string
- func (m *SearchResults) GetSearchResults() []SearchResultable
- func (m *SearchResults) GetSize() *int32
- func (m *SearchResults) GetTotal() *int32
- func (m *SearchResults) Serialize(...) error
- func (m *SearchResults) SetAdditionalData(value map[string]any)
- func (m *SearchResults) SetFrom(value *int32)
- func (m *SearchResults) SetQuery(value *string)
- func (m *SearchResults) SetSearchResults(value []SearchResultable)
- func (m *SearchResults) SetSize(value *int32)
- func (m *SearchResults) SetTotal(value *int32)
- type SearchResultsable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSearchResultFromDiscriminatorValue ¶
func CreateSearchResultFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateSearchResultFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateSearchResultsFromDiscriminatorValue ¶
func CreateSearchResultsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateSearchResultsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func ParseGlobalSearchType ¶
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 ¶
func (m *SearchResult) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
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 ¶
func (m *SearchResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 SearchResultable ¶
type SearchResultable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetId() *int64 GetName() *string GetTypeEscaped() *GlobalSearchType SetId(value *int64) SetName(value *string) SetTypeEscaped(value *GlobalSearchType) }
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 ¶
func (m *SearchResults) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
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 ¶
func (m *SearchResults) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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) }