Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ArticleInner
- func (o *ArticleInner) GetAuthor() string
- func (o *ArticleInner) GetAuthorOk() (*string, bool)
- func (o *ArticleInner) GetAuthors() string
- func (o *ArticleInner) GetAuthorsOk() (*string, bool)
- func (o *ArticleInner) GetCleanUrl() string
- func (o *ArticleInner) GetCleanUrlOk() (*string, bool)
- func (o *ArticleInner) GetCountry() string
- func (o *ArticleInner) GetCountryOk() (*string, bool)
- func (o *ArticleInner) GetExcerpt() string
- func (o *ArticleInner) GetExcerptOk() (*string, bool)
- func (o *ArticleInner) GetId() string
- func (o *ArticleInner) GetIdOk() (*string, bool)
- func (o *ArticleInner) GetIsOpinion() bool
- func (o *ArticleInner) GetIsOpinionOk() (*bool, bool)
- func (o *ArticleInner) GetLanguage() string
- func (o *ArticleInner) GetLanguageOk() (*string, bool)
- func (o *ArticleInner) GetLink() string
- func (o *ArticleInner) GetLinkOk() (*string, bool)
- func (o *ArticleInner) GetPublishedDate() string
- func (o *ArticleInner) GetPublishedDateOk() (*string, bool)
- func (o *ArticleInner) GetPublishedDatePrecision() string
- func (o *ArticleInner) GetPublishedDatePrecisionOk() (*string, bool)
- func (o *ArticleInner) GetRank() int32
- func (o *ArticleInner) GetRankOk() (*int32, bool)
- func (o *ArticleInner) GetRights() string
- func (o *ArticleInner) GetRightsOk() (*string, bool)
- func (o *ArticleInner) GetScore() float32
- func (o *ArticleInner) GetScoreOk() (*float32, bool)
- func (o *ArticleInner) GetSummary() string
- func (o *ArticleInner) GetSummaryOk() (*string, bool)
- func (o *ArticleInner) GetTitle() string
- func (o *ArticleInner) GetTitleOk() (*string, bool)
- func (o *ArticleInner) GetTopic() string
- func (o *ArticleInner) GetTopicOk() (*string, bool)
- func (o *ArticleInner) GetTwitterAccount() string
- func (o *ArticleInner) GetTwitterAccountOk() (*string, bool)
- func (o *ArticleInner) HasAuthor() bool
- func (o *ArticleInner) HasAuthors() bool
- func (o *ArticleInner) HasCleanUrl() bool
- func (o *ArticleInner) HasCountry() bool
- func (o *ArticleInner) HasExcerpt() bool
- func (o *ArticleInner) HasId() bool
- func (o *ArticleInner) HasIsOpinion() bool
- func (o *ArticleInner) HasLanguage() bool
- func (o *ArticleInner) HasLink() bool
- func (o *ArticleInner) HasPublishedDate() bool
- func (o *ArticleInner) HasPublishedDatePrecision() bool
- func (o *ArticleInner) HasRank() bool
- func (o *ArticleInner) HasRights() bool
- func (o *ArticleInner) HasScore() bool
- func (o *ArticleInner) HasSummary() bool
- func (o *ArticleInner) HasTitle() bool
- func (o *ArticleInner) HasTopic() bool
- func (o *ArticleInner) HasTwitterAccount() bool
- func (o ArticleInner) MarshalJSON() ([]byte, error)
- func (o *ArticleInner) SetAuthor(v string)
- func (o *ArticleInner) SetAuthors(v string)
- func (o *ArticleInner) SetCleanUrl(v string)
- func (o *ArticleInner) SetCountry(v string)
- func (o *ArticleInner) SetExcerpt(v string)
- func (o *ArticleInner) SetExcerptNil()
- func (o *ArticleInner) SetId(v string)
- func (o *ArticleInner) SetIsOpinion(v bool)
- func (o *ArticleInner) SetLanguage(v string)
- func (o *ArticleInner) SetLanguageNil()
- func (o *ArticleInner) SetLink(v string)
- func (o *ArticleInner) SetPublishedDate(v string)
- func (o *ArticleInner) SetPublishedDatePrecision(v string)
- func (o *ArticleInner) SetRank(v int32)
- func (o *ArticleInner) SetRights(v string)
- func (o *ArticleInner) SetRightsNil()
- func (o *ArticleInner) SetScore(v float32)
- func (o *ArticleInner) SetScoreNil()
- func (o *ArticleInner) SetSummary(v string)
- func (o *ArticleInner) SetTitle(v string)
- func (o *ArticleInner) SetTopic(v string)
- func (o *ArticleInner) SetTwitterAccount(v string)
- func (o *ArticleInner) SetTwitterAccountNil()
- func (o *ArticleInner) UnsetExcerpt()
- func (o *ArticleInner) UnsetLanguage()
- func (o *ArticleInner) UnsetRights()
- func (o *ArticleInner) UnsetScore()
- func (o *ArticleInner) UnsetTwitterAccount()
- type BasicAuth
- type Configuration
- func (c *Configuration) AddDefaultHeader(key string, value string)
- func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)
- func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)
- func (c *Configuration) SetOAuthClientCredentials(clientId string, clientSecret string)
- type ErrorResponse
- func (o *ErrorResponse) GetErrorCode() string
- func (o *ErrorResponse) GetErrorCodeOk() (*string, bool)
- func (o *ErrorResponse) GetMessage() string
- func (o *ErrorResponse) GetMessageOk() (*string, bool)
- func (o *ErrorResponse) GetStatus() ErrorStatus
- func (o *ErrorResponse) GetStatusOk() (*ErrorStatus, bool)
- func (o *ErrorResponse) HasErrorCode() bool
- func (o *ErrorResponse) HasMessage() bool
- func (o *ErrorResponse) HasStatus() bool
- func (o ErrorResponse) MarshalJSON() ([]byte, error)
- func (o *ErrorResponse) SetErrorCode(v string)
- func (o *ErrorResponse) SetMessage(v string)
- func (o *ErrorResponse) SetStatus(v ErrorStatus)
- type ErrorStatus
- type GenericOpenAPIError
- type Lang
- type LatestHeadlines
- func (o *LatestHeadlines) GetCountries() string
- func (o *LatestHeadlines) GetCountriesOk() (*string, bool)
- func (o *LatestHeadlines) GetLang() string
- func (o *LatestHeadlines) GetLangOk() (*string, bool)
- func (o *LatestHeadlines) GetNotCountries() string
- func (o *LatestHeadlines) GetNotCountriesOk() (*string, bool)
- func (o *LatestHeadlines) GetNotSources() string
- func (o *LatestHeadlines) GetNotSourcesOk() (*string, bool)
- func (o *LatestHeadlines) GetPage() int32
- func (o *LatestHeadlines) GetPageOk() (*int32, bool)
- func (o *LatestHeadlines) GetPageSize() int32
- func (o *LatestHeadlines) GetPageSizeOk() (*int32, bool)
- func (o *LatestHeadlines) GetRankedOnly() bool
- func (o *LatestHeadlines) GetRankedOnlyOk() (*bool, bool)
- func (o *LatestHeadlines) GetSources() string
- func (o *LatestHeadlines) GetSourcesOk() (*string, bool)
- func (o *LatestHeadlines) GetTopic() string
- func (o *LatestHeadlines) GetTopicOk() (*string, bool)
- func (o *LatestHeadlines) GetWhen() string
- func (o *LatestHeadlines) GetWhenOk() (*string, bool)
- func (o *LatestHeadlines) HasCountries() bool
- func (o *LatestHeadlines) HasLang() bool
- func (o *LatestHeadlines) HasNotCountries() bool
- func (o *LatestHeadlines) HasNotSources() bool
- func (o *LatestHeadlines) HasPage() bool
- func (o *LatestHeadlines) HasPageSize() bool
- func (o *LatestHeadlines) HasRankedOnly() bool
- func (o *LatestHeadlines) HasSources() bool
- func (o *LatestHeadlines) HasTopic() bool
- func (o *LatestHeadlines) HasWhen() bool
- func (o LatestHeadlines) MarshalJSON() ([]byte, error)
- func (o *LatestHeadlines) SetCountries(v string)
- func (o *LatestHeadlines) SetLang(v string)
- func (o *LatestHeadlines) SetNotCountries(v string)
- func (o *LatestHeadlines) SetNotSources(v string)
- func (o *LatestHeadlines) SetPage(v int32)
- func (o *LatestHeadlines) SetPageSize(v int32)
- func (o *LatestHeadlines) SetRankedOnly(v bool)
- func (o *LatestHeadlines) SetSources(v string)
- func (o *LatestHeadlines) SetTopic(v string)
- func (o *LatestHeadlines) SetWhen(v string)
- type LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) Countries(countries string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) Execute() (*Model200ResponseLatest, *http.Response, error)
- func (r LatestHeadlinesApiGetRequest) Lang(lang string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) NotCountries(notCountries string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) NotLang(notLang string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) NotSources(notSources string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) Page(page int32) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) PageSize(pageSize int32) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) RankedOnly(rankedOnly bool) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) Sources(sources string) LatestHeadlinesApiGetRequest
- func (r LatestHeadlinesApiGetRequest) Topic(topic Topic) LatestHeadlinesApiGetRequest
- type LatestHeadlinesApiPostRequest
- type LatestHeadlinesApiService
- func (a *LatestHeadlinesApiService) Get() LatestHeadlinesApiGetRequest
- func (a *LatestHeadlinesApiService) GetExecute(r LatestHeadlinesApiGetRequest) (*Model200ResponseLatest, *http.Response, error)
- func (a *LatestHeadlinesApiService) Post() LatestHeadlinesApiPostRequest
- func (a *LatestHeadlinesApiService) PostExecute(r LatestHeadlinesApiPostRequest) (*Model200ResponseLatest, *http.Response, error)
- type LatestHeadlinesUserInput
- func (o *LatestHeadlinesUserInput) GetCountries() []string
- func (o *LatestHeadlinesUserInput) GetCountriesOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetLang() []string
- func (o *LatestHeadlinesUserInput) GetLangOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetNotCountries() []string
- func (o *LatestHeadlinesUserInput) GetNotCountriesOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetNotLang() []string
- func (o *LatestHeadlinesUserInput) GetNotLangOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetNotSources() []string
- func (o *LatestHeadlinesUserInput) GetNotSourcesOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetPage() int32
- func (o *LatestHeadlinesUserInput) GetPageOk() (*int32, bool)
- func (o *LatestHeadlinesUserInput) GetSize() int32
- func (o *LatestHeadlinesUserInput) GetSizeOk() (*int32, bool)
- func (o *LatestHeadlinesUserInput) GetSources() []string
- func (o *LatestHeadlinesUserInput) GetSourcesOk() ([]string, bool)
- func (o *LatestHeadlinesUserInput) GetTopic() string
- func (o *LatestHeadlinesUserInput) GetTopicOk() (*string, bool)
- func (o *LatestHeadlinesUserInput) HasCountries() bool
- func (o *LatestHeadlinesUserInput) HasLang() bool
- func (o *LatestHeadlinesUserInput) HasNotCountries() bool
- func (o *LatestHeadlinesUserInput) HasNotLang() bool
- func (o *LatestHeadlinesUserInput) HasNotSources() bool
- func (o *LatestHeadlinesUserInput) HasPage() bool
- func (o *LatestHeadlinesUserInput) HasSize() bool
- func (o *LatestHeadlinesUserInput) HasSources() bool
- func (o *LatestHeadlinesUserInput) HasTopic() bool
- func (o LatestHeadlinesUserInput) MarshalJSON() ([]byte, error)
- func (o *LatestHeadlinesUserInput) SetCountries(v []string)
- func (o *LatestHeadlinesUserInput) SetLang(v []string)
- func (o *LatestHeadlinesUserInput) SetNotCountries(v []string)
- func (o *LatestHeadlinesUserInput) SetNotLang(v []string)
- func (o *LatestHeadlinesUserInput) SetNotSources(v []string)
- func (o *LatestHeadlinesUserInput) SetPage(v int32)
- func (o *LatestHeadlinesUserInput) SetSize(v int32)
- func (o *LatestHeadlinesUserInput) SetSources(v []string)
- func (o *LatestHeadlinesUserInput) SetTopic(v string)
- func (o *LatestHeadlinesUserInput) SetTopicNil()
- func (o *LatestHeadlinesUserInput) UnsetTopic()
- type Model200Response
- func (o *Model200Response) GetArticles() []ArticleInner
- func (o *Model200Response) GetArticlesOk() ([]ArticleInner, bool)
- func (o *Model200Response) GetPage() int32
- func (o *Model200Response) GetPageOk() (*int32, bool)
- func (o *Model200Response) GetPageSize() int32
- func (o *Model200Response) GetPageSizeOk() (*int32, bool)
- func (o *Model200Response) GetStatus() SuccessStatus
- func (o *Model200Response) GetStatusOk() (*SuccessStatus, bool)
- func (o *Model200Response) GetTotalHits() int32
- func (o *Model200Response) GetTotalHitsOk() (*int32, bool)
- func (o *Model200Response) GetTotalPages() int32
- func (o *Model200Response) GetTotalPagesOk() (*int32, bool)
- func (o *Model200Response) GetUserInput() SearchUserInput
- func (o *Model200Response) GetUserInputOk() (*SearchUserInput, bool)
- func (o *Model200Response) HasArticles() bool
- func (o *Model200Response) HasPage() bool
- func (o *Model200Response) HasPageSize() bool
- func (o *Model200Response) HasStatus() bool
- func (o *Model200Response) HasTotalHits() bool
- func (o *Model200Response) HasTotalPages() bool
- func (o *Model200Response) HasUserInput() bool
- func (o Model200Response) MarshalJSON() ([]byte, error)
- func (o *Model200Response) SetArticles(v []ArticleInner)
- func (o *Model200Response) SetPage(v int32)
- func (o *Model200Response) SetPageSize(v int32)
- func (o *Model200Response) SetStatus(v SuccessStatus)
- func (o *Model200Response) SetTotalHits(v int32)
- func (o *Model200Response) SetTotalPages(v int32)
- func (o *Model200Response) SetUserInput(v SearchUserInput)
- type Model200ResponseLatest
- func (o *Model200ResponseLatest) GetArticles() []ArticleInner
- func (o *Model200ResponseLatest) GetArticlesOk() ([]ArticleInner, bool)
- func (o *Model200ResponseLatest) GetPage() int32
- func (o *Model200ResponseLatest) GetPageOk() (*int32, bool)
- func (o *Model200ResponseLatest) GetPageSize() int32
- func (o *Model200ResponseLatest) GetPageSizeOk() (*int32, bool)
- func (o *Model200ResponseLatest) GetStatus() SuccessStatus
- func (o *Model200ResponseLatest) GetStatusOk() (*SuccessStatus, bool)
- func (o *Model200ResponseLatest) GetTotalHits() int32
- func (o *Model200ResponseLatest) GetTotalHitsOk() (*int32, bool)
- func (o *Model200ResponseLatest) GetTotalPages() int32
- func (o *Model200ResponseLatest) GetTotalPagesOk() (*int32, bool)
- func (o *Model200ResponseLatest) GetUserInput() LatestHeadlinesUserInput
- func (o *Model200ResponseLatest) GetUserInputOk() (*LatestHeadlinesUserInput, bool)
- func (o *Model200ResponseLatest) HasArticles() bool
- func (o *Model200ResponseLatest) HasPage() bool
- func (o *Model200ResponseLatest) HasPageSize() bool
- func (o *Model200ResponseLatest) HasStatus() bool
- func (o *Model200ResponseLatest) HasTotalHits() bool
- func (o *Model200ResponseLatest) HasTotalPages() bool
- func (o *Model200ResponseLatest) HasUserInput() bool
- func (o Model200ResponseLatest) MarshalJSON() ([]byte, error)
- func (o *Model200ResponseLatest) SetArticles(v []ArticleInner)
- func (o *Model200ResponseLatest) SetPage(v int32)
- func (o *Model200ResponseLatest) SetPageSize(v int32)
- func (o *Model200ResponseLatest) SetStatus(v SuccessStatus)
- func (o *Model200ResponseLatest) SetTotalHits(v int32)
- func (o *Model200ResponseLatest) SetTotalPages(v int32)
- func (o *Model200ResponseLatest) SetUserInput(v LatestHeadlinesUserInput)
- type Model200ResponseSources
- func (o *Model200ResponseSources) GetMessage() string
- func (o *Model200ResponseSources) GetMessageOk() (*string, bool)
- func (o *Model200ResponseSources) GetSources() []string
- func (o *Model200ResponseSources) GetSourcesOk() ([]string, bool)
- func (o *Model200ResponseSources) GetUserInput() SourcesUserInput
- func (o *Model200ResponseSources) GetUserInputOk() (*SourcesUserInput, bool)
- func (o *Model200ResponseSources) HasMessage() bool
- func (o *Model200ResponseSources) HasSources() bool
- func (o *Model200ResponseSources) HasUserInput() bool
- func (o Model200ResponseSources) MarshalJSON() ([]byte, error)
- func (o *Model200ResponseSources) SetMessage(v string)
- func (o *Model200ResponseSources) SetSources(v []string)
- func (o *Model200ResponseSources) SetUserInput(v SourcesUserInput)
- type NullableArticleInner
- func (v NullableArticleInner) Get() *ArticleInner
- func (v NullableArticleInner) IsSet() bool
- func (v NullableArticleInner) MarshalJSON() ([]byte, error)
- func (v *NullableArticleInner) Set(val *ArticleInner)
- func (v *NullableArticleInner) UnmarshalJSON(src []byte) error
- func (v *NullableArticleInner) Unset()
- type NullableBool
- type NullableErrorResponse
- func (v NullableErrorResponse) Get() *ErrorResponse
- func (v NullableErrorResponse) IsSet() bool
- func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
- func (v *NullableErrorResponse) Set(val *ErrorResponse)
- func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
- func (v *NullableErrorResponse) Unset()
- type NullableErrorStatus
- func (v NullableErrorStatus) Get() *ErrorStatus
- func (v NullableErrorStatus) IsSet() bool
- func (v NullableErrorStatus) MarshalJSON() ([]byte, error)
- func (v *NullableErrorStatus) Set(val *ErrorStatus)
- func (v *NullableErrorStatus) UnmarshalJSON(src []byte) error
- func (v *NullableErrorStatus) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableLang
- type NullableLatestHeadlines
- func (v NullableLatestHeadlines) Get() *LatestHeadlines
- func (v NullableLatestHeadlines) IsSet() bool
- func (v NullableLatestHeadlines) MarshalJSON() ([]byte, error)
- func (v *NullableLatestHeadlines) Set(val *LatestHeadlines)
- func (v *NullableLatestHeadlines) UnmarshalJSON(src []byte) error
- func (v *NullableLatestHeadlines) Unset()
- type NullableLatestHeadlinesUserInput
- func (v NullableLatestHeadlinesUserInput) Get() *LatestHeadlinesUserInput
- func (v NullableLatestHeadlinesUserInput) IsSet() bool
- func (v NullableLatestHeadlinesUserInput) MarshalJSON() ([]byte, error)
- func (v *NullableLatestHeadlinesUserInput) Set(val *LatestHeadlinesUserInput)
- func (v *NullableLatestHeadlinesUserInput) UnmarshalJSON(src []byte) error
- func (v *NullableLatestHeadlinesUserInput) Unset()
- type NullableModel200Response
- func (v NullableModel200Response) Get() *Model200Response
- func (v NullableModel200Response) IsSet() bool
- func (v NullableModel200Response) MarshalJSON() ([]byte, error)
- func (v *NullableModel200Response) Set(val *Model200Response)
- func (v *NullableModel200Response) UnmarshalJSON(src []byte) error
- func (v *NullableModel200Response) Unset()
- type NullableModel200ResponseLatest
- func (v NullableModel200ResponseLatest) Get() *Model200ResponseLatest
- func (v NullableModel200ResponseLatest) IsSet() bool
- func (v NullableModel200ResponseLatest) MarshalJSON() ([]byte, error)
- func (v *NullableModel200ResponseLatest) Set(val *Model200ResponseLatest)
- func (v *NullableModel200ResponseLatest) UnmarshalJSON(src []byte) error
- func (v *NullableModel200ResponseLatest) Unset()
- type NullableModel200ResponseSources
- func (v NullableModel200ResponseSources) Get() *Model200ResponseSources
- func (v NullableModel200ResponseSources) IsSet() bool
- func (v NullableModel200ResponseSources) MarshalJSON() ([]byte, error)
- func (v *NullableModel200ResponseSources) Set(val *Model200ResponseSources)
- func (v *NullableModel200ResponseSources) UnmarshalJSON(src []byte) error
- func (v *NullableModel200ResponseSources) Unset()
- type NullablePublishDatePrecision
- func (v NullablePublishDatePrecision) Get() *PublishDatePrecision
- func (v NullablePublishDatePrecision) IsSet() bool
- func (v NullablePublishDatePrecision) MarshalJSON() ([]byte, error)
- func (v *NullablePublishDatePrecision) Set(val *PublishDatePrecision)
- func (v *NullablePublishDatePrecision) UnmarshalJSON(src []byte) error
- func (v *NullablePublishDatePrecision) Unset()
- type NullableSearch
- type NullableSearchIn
- type NullableSearchUserInput
- func (v NullableSearchUserInput) Get() *SearchUserInput
- func (v NullableSearchUserInput) IsSet() bool
- func (v NullableSearchUserInput) MarshalJSON() ([]byte, error)
- func (v *NullableSearchUserInput) Set(val *SearchUserInput)
- func (v *NullableSearchUserInput) UnmarshalJSON(src []byte) error
- func (v *NullableSearchUserInput) Unset()
- type NullableSortBy
- type NullableSourcesQuery
- func (v NullableSourcesQuery) Get() *SourcesQuery
- func (v NullableSourcesQuery) IsSet() bool
- func (v NullableSourcesQuery) MarshalJSON() ([]byte, error)
- func (v *NullableSourcesQuery) Set(val *SourcesQuery)
- func (v *NullableSourcesQuery) UnmarshalJSON(src []byte) error
- func (v *NullableSourcesQuery) Unset()
- type NullableSourcesUserInput
- func (v NullableSourcesUserInput) Get() *SourcesUserInput
- func (v NullableSourcesUserInput) IsSet() bool
- func (v NullableSourcesUserInput) MarshalJSON() ([]byte, error)
- func (v *NullableSourcesUserInput) Set(val *SourcesUserInput)
- func (v *NullableSourcesUserInput) UnmarshalJSON(src []byte) error
- func (v *NullableSourcesUserInput) Unset()
- type NullableString
- type NullableSuccessStatus
- func (v NullableSuccessStatus) Get() *SuccessStatus
- func (v NullableSuccessStatus) IsSet() bool
- func (v NullableSuccessStatus) MarshalJSON() ([]byte, error)
- func (v *NullableSuccessStatus) Set(val *SuccessStatus)
- func (v *NullableSuccessStatus) UnmarshalJSON(src []byte) error
- func (v *NullableSuccessStatus) Unset()
- type NullableTime
- type NullableTopic
- type PublishDatePrecision
- type Search
- func (o *Search) GetCountries() string
- func (o *Search) GetCountriesOk() (*string, bool)
- func (o *Search) GetFrom() string
- func (o *Search) GetFromOk() (*string, bool)
- func (o *Search) GetFromRank() int32
- func (o *Search) GetFromRankOk() (*int32, bool)
- func (o *Search) GetLang() string
- func (o *Search) GetLangOk() (*string, bool)
- func (o *Search) GetNotCountries() string
- func (o *Search) GetNotCountriesOk() (*string, bool)
- func (o *Search) GetNotLang() string
- func (o *Search) GetNotLangOk() (*string, bool)
- func (o *Search) GetNotSources() string
- func (o *Search) GetNotSourcesOk() (*string, bool)
- func (o *Search) GetPage() int32
- func (o *Search) GetPageOk() (*int32, bool)
- func (o *Search) GetPageSize() int32
- func (o *Search) GetPageSizeOk() (*int32, bool)
- func (o *Search) GetPublishedDatePrecision() string
- func (o *Search) GetPublishedDatePrecisionOk() (*string, bool)
- func (o *Search) GetQ() string
- func (o *Search) GetQOk() (*string, bool)
- func (o *Search) GetRankedOnly() bool
- func (o *Search) GetRankedOnlyOk() (*bool, bool)
- func (o *Search) GetSearchIn() string
- func (o *Search) GetSearchInOk() (*string, bool)
- func (o *Search) GetSortBy() string
- func (o *Search) GetSortByOk() (*string, bool)
- func (o *Search) GetSources() string
- func (o *Search) GetSourcesOk() (*string, bool)
- func (o *Search) GetTo() string
- func (o *Search) GetToOk() (*string, bool)
- func (o *Search) GetToRank() int32
- func (o *Search) GetToRankOk() (*int32, bool)
- func (o *Search) GetTopic() string
- func (o *Search) GetTopicOk() (*string, bool)
- func (o *Search) HasCountries() bool
- func (o *Search) HasFrom() bool
- func (o *Search) HasFromRank() bool
- func (o *Search) HasLang() bool
- func (o *Search) HasNotCountries() bool
- func (o *Search) HasNotLang() bool
- func (o *Search) HasNotSources() bool
- func (o *Search) HasPage() bool
- func (o *Search) HasPageSize() bool
- func (o *Search) HasPublishedDatePrecision() bool
- func (o *Search) HasQ() bool
- func (o *Search) HasRankedOnly() bool
- func (o *Search) HasSearchIn() bool
- func (o *Search) HasSortBy() bool
- func (o *Search) HasSources() bool
- func (o *Search) HasTo() bool
- func (o *Search) HasToRank() bool
- func (o *Search) HasTopic() bool
- func (o Search) MarshalJSON() ([]byte, error)
- func (o *Search) SetCountries(v string)
- func (o *Search) SetFrom(v string)
- func (o *Search) SetFromRank(v int32)
- func (o *Search) SetLang(v string)
- func (o *Search) SetNotCountries(v string)
- func (o *Search) SetNotLang(v string)
- func (o *Search) SetNotSources(v string)
- func (o *Search) SetPage(v int32)
- func (o *Search) SetPageSize(v int32)
- func (o *Search) SetPublishedDatePrecision(v string)
- func (o *Search) SetQ(v string)
- func (o *Search) SetRankedOnly(v bool)
- func (o *Search) SetSearchIn(v string)
- func (o *Search) SetSortBy(v string)
- func (o *Search) SetSources(v string)
- func (o *Search) SetTo(v string)
- func (o *Search) SetToRank(v int32)
- func (o *Search) SetTopic(v string)
- type SearchApiGetRequest
- func (r SearchApiGetRequest) Countries(countries string) SearchApiGetRequest
- func (r SearchApiGetRequest) Execute() (*Model200Response, *http.Response, error)
- func (r SearchApiGetRequest) From(from string) SearchApiGetRequest
- func (r SearchApiGetRequest) FromRank(fromRank int32) SearchApiGetRequest
- func (r SearchApiGetRequest) Lang(lang string) SearchApiGetRequest
- func (r SearchApiGetRequest) NotCountries(notCountries string) SearchApiGetRequest
- func (r SearchApiGetRequest) NotLang(notLang string) SearchApiGetRequest
- func (r SearchApiGetRequest) NotSources(notSources string) SearchApiGetRequest
- func (r SearchApiGetRequest) Page(page int32) SearchApiGetRequest
- func (r SearchApiGetRequest) PageSize(pageSize int32) SearchApiGetRequest
- func (r SearchApiGetRequest) PublishedDatePrecision(publishedDatePrecision PublishDatePrecision) SearchApiGetRequest
- func (r SearchApiGetRequest) Q(q string) SearchApiGetRequest
- func (r SearchApiGetRequest) RankedOnly(rankedOnly bool) SearchApiGetRequest
- func (r SearchApiGetRequest) SearchIn(searchIn SearchIn) SearchApiGetRequest
- func (r SearchApiGetRequest) SortBy(sortBy SortBy) SearchApiGetRequest
- func (r SearchApiGetRequest) Sources(sources string) SearchApiGetRequest
- func (r SearchApiGetRequest) To(to string) SearchApiGetRequest
- func (r SearchApiGetRequest) ToRank(toRank int32) SearchApiGetRequest
- func (r SearchApiGetRequest) Topic(topic Topic) SearchApiGetRequest
- type SearchApiPostRequest
- type SearchApiService
- func (a *SearchApiService) Get() SearchApiGetRequest
- func (a *SearchApiService) GetExecute(r SearchApiGetRequest) (*Model200Response, *http.Response, error)
- func (a *SearchApiService) Post() SearchApiPostRequest
- func (a *SearchApiService) PostExecute(r SearchApiPostRequest) (*Model200Response, *http.Response, error)
- type SearchIn
- type SearchUserInput
- func (o *SearchUserInput) GetCountries() []string
- func (o *SearchUserInput) GetCountriesOk() ([]string, bool)
- func (o *SearchUserInput) GetFrom() string
- func (o *SearchUserInput) GetFromOk() (*string, bool)
- func (o *SearchUserInput) GetFromRank() int32
- func (o *SearchUserInput) GetFromRankOk() (*int32, bool)
- func (o *SearchUserInput) GetLang() []string
- func (o *SearchUserInput) GetLangOk() ([]string, bool)
- func (o *SearchUserInput) GetNotCountries() []string
- func (o *SearchUserInput) GetNotCountriesOk() ([]string, bool)
- func (o *SearchUserInput) GetNotLang() []string
- func (o *SearchUserInput) GetNotLangOk() ([]string, bool)
- func (o *SearchUserInput) GetNotSources() []string
- func (o *SearchUserInput) GetNotSourcesOk() ([]string, bool)
- func (o *SearchUserInput) GetPage() int32
- func (o *SearchUserInput) GetPageOk() (*int32, bool)
- func (o *SearchUserInput) GetPublishedDatePrecision() string
- func (o *SearchUserInput) GetPublishedDatePrecisionOk() (*string, bool)
- func (o *SearchUserInput) GetQ() string
- func (o *SearchUserInput) GetQOk() (*string, bool)
- func (o *SearchUserInput) GetRankedOnly() string
- func (o *SearchUserInput) GetRankedOnlyOk() (*string, bool)
- func (o *SearchUserInput) GetSearchIn() []string
- func (o *SearchUserInput) GetSearchInOk() ([]string, bool)
- func (o *SearchUserInput) GetSize() int32
- func (o *SearchUserInput) GetSizeOk() (*int32, bool)
- func (o *SearchUserInput) GetSortBy() string
- func (o *SearchUserInput) GetSortByOk() (*string, bool)
- func (o *SearchUserInput) GetSources() []string
- func (o *SearchUserInput) GetSourcesOk() ([]string, bool)
- func (o *SearchUserInput) GetTo() string
- func (o *SearchUserInput) GetToOk() (*string, bool)
- func (o *SearchUserInput) GetToRank() int32
- func (o *SearchUserInput) GetToRankOk() (*int32, bool)
- func (o *SearchUserInput) GetTopic() string
- func (o *SearchUserInput) GetTopicOk() (*string, bool)
- func (o *SearchUserInput) HasCountries() bool
- func (o *SearchUserInput) HasFrom() bool
- func (o *SearchUserInput) HasFromRank() bool
- func (o *SearchUserInput) HasLang() bool
- func (o *SearchUserInput) HasNotCountries() bool
- func (o *SearchUserInput) HasNotLang() bool
- func (o *SearchUserInput) HasNotSources() bool
- func (o *SearchUserInput) HasPage() bool
- func (o *SearchUserInput) HasPublishedDatePrecision() bool
- func (o *SearchUserInput) HasQ() bool
- func (o *SearchUserInput) HasRankedOnly() bool
- func (o *SearchUserInput) HasSearchIn() bool
- func (o *SearchUserInput) HasSize() bool
- func (o *SearchUserInput) HasSortBy() bool
- func (o *SearchUserInput) HasSources() bool
- func (o *SearchUserInput) HasTo() bool
- func (o *SearchUserInput) HasToRank() bool
- func (o *SearchUserInput) HasTopic() bool
- func (o SearchUserInput) MarshalJSON() ([]byte, error)
- func (o *SearchUserInput) SetCountries(v []string)
- func (o *SearchUserInput) SetFrom(v string)
- func (o *SearchUserInput) SetFromRank(v int32)
- func (o *SearchUserInput) SetFromRankNil()
- func (o *SearchUserInput) SetLang(v []string)
- func (o *SearchUserInput) SetNotCountries(v []string)
- func (o *SearchUserInput) SetNotLang(v []string)
- func (o *SearchUserInput) SetNotSources(v []string)
- func (o *SearchUserInput) SetPage(v int32)
- func (o *SearchUserInput) SetPublishedDatePrecision(v string)
- func (o *SearchUserInput) SetPublishedDatePrecisionNil()
- func (o *SearchUserInput) SetQ(v string)
- func (o *SearchUserInput) SetRankedOnly(v string)
- func (o *SearchUserInput) SetSearchIn(v []string)
- func (o *SearchUserInput) SetSize(v int32)
- func (o *SearchUserInput) SetSortBy(v string)
- func (o *SearchUserInput) SetSources(v []string)
- func (o *SearchUserInput) SetTo(v string)
- func (o *SearchUserInput) SetToNil()
- func (o *SearchUserInput) SetToRank(v int32)
- func (o *SearchUserInput) SetToRankNil()
- func (o *SearchUserInput) SetTopic(v string)
- func (o *SearchUserInput) SetTopicNil()
- func (o *SearchUserInput) UnsetFromRank()
- func (o *SearchUserInput) UnsetPublishedDatePrecision()
- func (o *SearchUserInput) UnsetTo()
- func (o *SearchUserInput) UnsetToRank()
- func (o *SearchUserInput) UnsetTopic()
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type SortBy
- type SourcesApiGetRequest
- func (r SourcesApiGetRequest) Countries(countries string) SourcesApiGetRequest
- func (r SourcesApiGetRequest) Execute() (*Model200ResponseSources, *http.Response, error)
- func (r SourcesApiGetRequest) Lang(lang string) SourcesApiGetRequest
- func (r SourcesApiGetRequest) Topic(topic Topic) SourcesApiGetRequest
- type SourcesApiPostRequest
- type SourcesApiService
- func (a *SourcesApiService) Get() SourcesApiGetRequest
- func (a *SourcesApiService) GetExecute(r SourcesApiGetRequest) (*Model200ResponseSources, *http.Response, error)
- func (a *SourcesApiService) Post() SourcesApiPostRequest
- func (a *SourcesApiService) PostExecute(r SourcesApiPostRequest) (*Model200ResponseSources, *http.Response, error)
- type SourcesQuery
- func (o *SourcesQuery) GetCountries() string
- func (o *SourcesQuery) GetCountriesOk() (*string, bool)
- func (o *SourcesQuery) GetLang() string
- func (o *SourcesQuery) GetLangOk() (*string, bool)
- func (o *SourcesQuery) GetTopic() string
- func (o *SourcesQuery) GetTopicOk() (*string, bool)
- func (o *SourcesQuery) HasCountries() bool
- func (o *SourcesQuery) HasLang() bool
- func (o *SourcesQuery) HasTopic() bool
- func (o SourcesQuery) MarshalJSON() ([]byte, error)
- func (o *SourcesQuery) SetCountries(v string)
- func (o *SourcesQuery) SetLang(v string)
- func (o *SourcesQuery) SetTopic(v string)
- type SourcesUserInput
- func (o *SourcesUserInput) GetCountries() []string
- func (o *SourcesUserInput) GetCountriesOk() ([]string, bool)
- func (o *SourcesUserInput) GetLang() []string
- func (o *SourcesUserInput) GetLangOk() ([]string, bool)
- func (o *SourcesUserInput) GetTopic() string
- func (o *SourcesUserInput) GetTopicOk() (*string, bool)
- func (o *SourcesUserInput) HasCountries() bool
- func (o *SourcesUserInput) HasLang() bool
- func (o *SourcesUserInput) HasTopic() bool
- func (o SourcesUserInput) MarshalJSON() ([]byte, error)
- func (o *SourcesUserInput) SetCountries(v []string)
- func (o *SourcesUserInput) SetLang(v []string)
- func (o *SourcesUserInput) SetTopic(v string)
- func (o *SourcesUserInput) SetTopicNil()
- func (o *SourcesUserInput) UnsetTopic()
- type SuccessStatus
- type Topic
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKeys takes a string apikey as authentication for the request ContextAPIKeys = contextKey("apiKeys") // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. ContextHttpSignatureAuth = contextKey("httpsignature") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
var AllowedErrorStatusEnumValues = []ErrorStatus{
"error",
"No matches for your search.",
}
All allowed values of ErrorStatus enum
var AllowedLangEnumValues = []Lang{
"af",
"ar",
"bg",
"bn",
"ca",
"cn",
"cs",
"cy",
"da",
"de",
"el",
"en",
"es",
"et",
"fa",
"fi",
"fr",
"gu",
"he",
"hi",
"hr",
"hu",
"id",
"it",
"ja",
"kn",
"ko",
"lt",
"lv",
"mk",
"ml",
"mr",
"ne",
"nl",
"false",
"pa",
"pl",
"pt",
"ro",
"ru",
"sk",
"sl",
"so",
"sq",
"sv",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"tw",
"uk",
"ur",
"vi",
}
All allowed values of Lang enum
var AllowedPublishDatePrecisionEnumValues = []PublishDatePrecision{
"full",
"timezone unknown",
"date",
}
All allowed values of PublishDatePrecision enum
var AllowedSearchInEnumValues = []SearchIn{
"title",
"summary",
"title_summary",
}
All allowed values of SearchIn enum
var AllowedSortByEnumValues = []SortBy{
"relevancy",
"date",
"rank",
}
All allowed values of SortBy enum
var AllowedSuccessStatusEnumValues = []SuccessStatus{
"ok",
"No matches for your search.",
}
All allowed values of SuccessStatus enum
var AllowedTopicEnumValues = []Topic{
"news",
"sport",
"tech",
"world",
"finance",
"politics",
"business",
"economics",
"entertainment",
"beauty",
"travel",
"music",
"food",
"science",
"gaming",
}
All allowed values of Topic enum
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { LatestHeadlinesApi *LatestHeadlinesApiService SearchApi *SearchApiService SourcesApi *SourcesApiService // contains filtered or unexported fields }
APIClient manages communication with the NewsCatcher News API V2 API v1.0.1 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ArticleInner ¶
type ArticleInner struct { Title *string `json:"title,omitempty"` Author *string `json:"author,omitempty"` PublishedDate *string `json:"published_date,omitempty"` PublishedDatePrecision *string `json:"published_date_precision,omitempty"` Link *string `json:"link,omitempty"` CleanUrl *string `json:"clean_url,omitempty"` Excerpt NullableString `json:"excerpt,omitempty"` Summary *string `json:"summary,omitempty"` Rights NullableString `json:"rights,omitempty"` Rank *int32 `json:"rank,omitempty"` Topic *string `json:"topic,omitempty"` Country *string `json:"country,omitempty"` Language NullableString `json:"language,omitempty"` Authors *string `json:"authors,omitempty"` IsOpinion *bool `json:"is_opinion,omitempty"` TwitterAccount NullableString `json:"twitter_account,omitempty"` Score NullableFloat32 `json:"_score,omitempty"` Id *string `json:"_id,omitempty"` }
ArticleInner struct for ArticleInner
func NewArticleInner ¶
func NewArticleInner() *ArticleInner
NewArticleInner instantiates a new ArticleInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewArticleInnerWithDefaults ¶
func NewArticleInnerWithDefaults() *ArticleInner
NewArticleInnerWithDefaults instantiates a new ArticleInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ArticleInner) GetAuthor ¶
func (o *ArticleInner) GetAuthor() string
GetAuthor returns the Author field value if set, zero value otherwise.
func (*ArticleInner) GetAuthorOk ¶
func (o *ArticleInner) GetAuthorOk() (*string, bool)
GetAuthorOk returns a tuple with the Author field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetAuthors ¶
func (o *ArticleInner) GetAuthors() string
GetAuthors returns the Authors field value if set, zero value otherwise.
func (*ArticleInner) GetAuthorsOk ¶
func (o *ArticleInner) GetAuthorsOk() (*string, bool)
GetAuthorsOk returns a tuple with the Authors field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetCleanUrl ¶
func (o *ArticleInner) GetCleanUrl() string
GetCleanUrl returns the CleanUrl field value if set, zero value otherwise.
func (*ArticleInner) GetCleanUrlOk ¶
func (o *ArticleInner) GetCleanUrlOk() (*string, bool)
GetCleanUrlOk returns a tuple with the CleanUrl field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetCountry ¶
func (o *ArticleInner) GetCountry() string
GetCountry returns the Country field value if set, zero value otherwise.
func (*ArticleInner) GetCountryOk ¶
func (o *ArticleInner) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetExcerpt ¶
func (o *ArticleInner) GetExcerpt() string
GetExcerpt returns the Excerpt field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ArticleInner) GetExcerptOk ¶
func (o *ArticleInner) GetExcerptOk() (*string, bool)
GetExcerptOk returns a tuple with the Excerpt field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ArticleInner) GetId ¶
func (o *ArticleInner) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (*ArticleInner) GetIdOk ¶
func (o *ArticleInner) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetIsOpinion ¶
func (o *ArticleInner) GetIsOpinion() bool
GetIsOpinion returns the IsOpinion field value if set, zero value otherwise.
func (*ArticleInner) GetIsOpinionOk ¶
func (o *ArticleInner) GetIsOpinionOk() (*bool, bool)
GetIsOpinionOk returns a tuple with the IsOpinion field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetLanguage ¶
func (o *ArticleInner) GetLanguage() string
GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ArticleInner) GetLanguageOk ¶
func (o *ArticleInner) GetLanguageOk() (*string, bool)
GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ArticleInner) GetLink ¶
func (o *ArticleInner) GetLink() string
GetLink returns the Link field value if set, zero value otherwise.
func (*ArticleInner) GetLinkOk ¶
func (o *ArticleInner) GetLinkOk() (*string, bool)
GetLinkOk returns a tuple with the Link field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetPublishedDate ¶
func (o *ArticleInner) GetPublishedDate() string
GetPublishedDate returns the PublishedDate field value if set, zero value otherwise.
func (*ArticleInner) GetPublishedDateOk ¶
func (o *ArticleInner) GetPublishedDateOk() (*string, bool)
GetPublishedDateOk returns a tuple with the PublishedDate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetPublishedDatePrecision ¶
func (o *ArticleInner) GetPublishedDatePrecision() string
GetPublishedDatePrecision returns the PublishedDatePrecision field value if set, zero value otherwise.
func (*ArticleInner) GetPublishedDatePrecisionOk ¶
func (o *ArticleInner) GetPublishedDatePrecisionOk() (*string, bool)
GetPublishedDatePrecisionOk returns a tuple with the PublishedDatePrecision field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetRank ¶
func (o *ArticleInner) GetRank() int32
GetRank returns the Rank field value if set, zero value otherwise.
func (*ArticleInner) GetRankOk ¶
func (o *ArticleInner) GetRankOk() (*int32, bool)
GetRankOk returns a tuple with the Rank field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetRights ¶
func (o *ArticleInner) GetRights() string
GetRights returns the Rights field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ArticleInner) GetRightsOk ¶
func (o *ArticleInner) GetRightsOk() (*string, bool)
GetRightsOk returns a tuple with the Rights field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ArticleInner) GetScore ¶
func (o *ArticleInner) GetScore() float32
GetScore returns the Score field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ArticleInner) GetScoreOk ¶
func (o *ArticleInner) GetScoreOk() (*float32, bool)
GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ArticleInner) GetSummary ¶
func (o *ArticleInner) GetSummary() string
GetSummary returns the Summary field value if set, zero value otherwise.
func (*ArticleInner) GetSummaryOk ¶
func (o *ArticleInner) GetSummaryOk() (*string, bool)
GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetTitle ¶
func (o *ArticleInner) GetTitle() string
GetTitle returns the Title field value if set, zero value otherwise.
func (*ArticleInner) GetTitleOk ¶
func (o *ArticleInner) GetTitleOk() (*string, bool)
GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetTopic ¶
func (o *ArticleInner) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise.
func (*ArticleInner) GetTopicOk ¶
func (o *ArticleInner) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ArticleInner) GetTwitterAccount ¶
func (o *ArticleInner) GetTwitterAccount() string
GetTwitterAccount returns the TwitterAccount field value if set, zero value otherwise (both if not set or set to explicit null).
func (*ArticleInner) GetTwitterAccountOk ¶
func (o *ArticleInner) GetTwitterAccountOk() (*string, bool)
GetTwitterAccountOk returns a tuple with the TwitterAccount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*ArticleInner) HasAuthor ¶
func (o *ArticleInner) HasAuthor() bool
HasAuthor returns a boolean if a field has been set.
func (*ArticleInner) HasAuthors ¶
func (o *ArticleInner) HasAuthors() bool
HasAuthors returns a boolean if a field has been set.
func (*ArticleInner) HasCleanUrl ¶
func (o *ArticleInner) HasCleanUrl() bool
HasCleanUrl returns a boolean if a field has been set.
func (*ArticleInner) HasCountry ¶
func (o *ArticleInner) HasCountry() bool
HasCountry returns a boolean if a field has been set.
func (*ArticleInner) HasExcerpt ¶
func (o *ArticleInner) HasExcerpt() bool
HasExcerpt returns a boolean if a field has been set.
func (*ArticleInner) HasId ¶
func (o *ArticleInner) HasId() bool
HasId returns a boolean if a field has been set.
func (*ArticleInner) HasIsOpinion ¶
func (o *ArticleInner) HasIsOpinion() bool
HasIsOpinion returns a boolean if a field has been set.
func (*ArticleInner) HasLanguage ¶
func (o *ArticleInner) HasLanguage() bool
HasLanguage returns a boolean if a field has been set.
func (*ArticleInner) HasLink ¶
func (o *ArticleInner) HasLink() bool
HasLink returns a boolean if a field has been set.
func (*ArticleInner) HasPublishedDate ¶
func (o *ArticleInner) HasPublishedDate() bool
HasPublishedDate returns a boolean if a field has been set.
func (*ArticleInner) HasPublishedDatePrecision ¶
func (o *ArticleInner) HasPublishedDatePrecision() bool
HasPublishedDatePrecision returns a boolean if a field has been set.
func (*ArticleInner) HasRank ¶
func (o *ArticleInner) HasRank() bool
HasRank returns a boolean if a field has been set.
func (*ArticleInner) HasRights ¶
func (o *ArticleInner) HasRights() bool
HasRights returns a boolean if a field has been set.
func (*ArticleInner) HasScore ¶
func (o *ArticleInner) HasScore() bool
HasScore returns a boolean if a field has been set.
func (*ArticleInner) HasSummary ¶
func (o *ArticleInner) HasSummary() bool
HasSummary returns a boolean if a field has been set.
func (*ArticleInner) HasTitle ¶
func (o *ArticleInner) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (*ArticleInner) HasTopic ¶
func (o *ArticleInner) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (*ArticleInner) HasTwitterAccount ¶
func (o *ArticleInner) HasTwitterAccount() bool
HasTwitterAccount returns a boolean if a field has been set.
func (ArticleInner) MarshalJSON ¶
func (o ArticleInner) MarshalJSON() ([]byte, error)
func (*ArticleInner) SetAuthor ¶
func (o *ArticleInner) SetAuthor(v string)
SetAuthor gets a reference to the given string and assigns it to the Author field.
func (*ArticleInner) SetAuthors ¶
func (o *ArticleInner) SetAuthors(v string)
SetAuthors gets a reference to the given string and assigns it to the Authors field.
func (*ArticleInner) SetCleanUrl ¶
func (o *ArticleInner) SetCleanUrl(v string)
SetCleanUrl gets a reference to the given string and assigns it to the CleanUrl field.
func (*ArticleInner) SetCountry ¶
func (o *ArticleInner) SetCountry(v string)
SetCountry gets a reference to the given string and assigns it to the Country field.
func (*ArticleInner) SetExcerpt ¶
func (o *ArticleInner) SetExcerpt(v string)
SetExcerpt gets a reference to the given NullableString and assigns it to the Excerpt field.
func (*ArticleInner) SetExcerptNil ¶
func (o *ArticleInner) SetExcerptNil()
SetExcerptNil sets the value for Excerpt to be an explicit nil
func (*ArticleInner) SetId ¶
func (o *ArticleInner) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (*ArticleInner) SetIsOpinion ¶
func (o *ArticleInner) SetIsOpinion(v bool)
SetIsOpinion gets a reference to the given bool and assigns it to the IsOpinion field.
func (*ArticleInner) SetLanguage ¶
func (o *ArticleInner) SetLanguage(v string)
SetLanguage gets a reference to the given NullableString and assigns it to the Language field.
func (*ArticleInner) SetLanguageNil ¶
func (o *ArticleInner) SetLanguageNil()
SetLanguageNil sets the value for Language to be an explicit nil
func (*ArticleInner) SetLink ¶
func (o *ArticleInner) SetLink(v string)
SetLink gets a reference to the given string and assigns it to the Link field.
func (*ArticleInner) SetPublishedDate ¶
func (o *ArticleInner) SetPublishedDate(v string)
SetPublishedDate gets a reference to the given string and assigns it to the PublishedDate field.
func (*ArticleInner) SetPublishedDatePrecision ¶
func (o *ArticleInner) SetPublishedDatePrecision(v string)
SetPublishedDatePrecision gets a reference to the given string and assigns it to the PublishedDatePrecision field.
func (*ArticleInner) SetRank ¶
func (o *ArticleInner) SetRank(v int32)
SetRank gets a reference to the given int32 and assigns it to the Rank field.
func (*ArticleInner) SetRights ¶
func (o *ArticleInner) SetRights(v string)
SetRights gets a reference to the given NullableString and assigns it to the Rights field.
func (*ArticleInner) SetRightsNil ¶
func (o *ArticleInner) SetRightsNil()
SetRightsNil sets the value for Rights to be an explicit nil
func (*ArticleInner) SetScore ¶
func (o *ArticleInner) SetScore(v float32)
SetScore gets a reference to the given NullableFloat32 and assigns it to the Score field.
func (*ArticleInner) SetScoreNil ¶
func (o *ArticleInner) SetScoreNil()
SetScoreNil sets the value for Score to be an explicit nil
func (*ArticleInner) SetSummary ¶
func (o *ArticleInner) SetSummary(v string)
SetSummary gets a reference to the given string and assigns it to the Summary field.
func (*ArticleInner) SetTitle ¶
func (o *ArticleInner) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (*ArticleInner) SetTopic ¶
func (o *ArticleInner) SetTopic(v string)
SetTopic gets a reference to the given string and assigns it to the Topic field.
func (*ArticleInner) SetTwitterAccount ¶
func (o *ArticleInner) SetTwitterAccount(v string)
SetTwitterAccount gets a reference to the given NullableString and assigns it to the TwitterAccount field.
func (*ArticleInner) SetTwitterAccountNil ¶
func (o *ArticleInner) SetTwitterAccountNil()
SetTwitterAccountNil sets the value for TwitterAccount to be an explicit nil
func (*ArticleInner) UnsetExcerpt ¶
func (o *ArticleInner) UnsetExcerpt()
UnsetExcerpt ensures that no value is present for Excerpt, not even an explicit nil
func (*ArticleInner) UnsetLanguage ¶
func (o *ArticleInner) UnsetLanguage()
UnsetLanguage ensures that no value is present for Language, not even an explicit nil
func (*ArticleInner) UnsetRights ¶
func (o *ArticleInner) UnsetRights()
UnsetRights ensures that no value is present for Rights, not even an explicit nil
func (*ArticleInner) UnsetScore ¶
func (o *ArticleInner) UnsetScore()
UnsetScore ensures that no value is present for Score, not even an explicit nil
func (*ArticleInner) UnsetTwitterAccount ¶
func (o *ArticleInner) UnsetTwitterAccount()
UnsetTwitterAccount ensures that no value is present for TwitterAccount, not even an explicit nil
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client Context context.Context }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
func (*Configuration) SetOAuthClientCredentials ¶
func (c *Configuration) SetOAuthClientCredentials(clientId string, clientSecret string)
Setup OAuth Client Credentials Flow for all requests
type ErrorResponse ¶
type ErrorResponse struct { Status *ErrorStatus `json:"status,omitempty"` ErrorCode *string `json:"error_code,omitempty"` Message *string `json:"message,omitempty"` }
ErrorResponse struct for ErrorResponse
func NewErrorResponse ¶
func NewErrorResponse() *ErrorResponse
NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorResponseWithDefaults ¶
func NewErrorResponseWithDefaults() *ErrorResponse
NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ErrorResponse) GetErrorCode ¶
func (o *ErrorResponse) GetErrorCode() string
GetErrorCode returns the ErrorCode field value if set, zero value otherwise.
func (*ErrorResponse) GetErrorCodeOk ¶
func (o *ErrorResponse) GetErrorCodeOk() (*string, bool)
GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorResponse) GetMessage ¶
func (o *ErrorResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*ErrorResponse) GetMessageOk ¶
func (o *ErrorResponse) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorResponse) GetStatus ¶
func (o *ErrorResponse) GetStatus() ErrorStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (*ErrorResponse) GetStatusOk ¶
func (o *ErrorResponse) GetStatusOk() (*ErrorStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ErrorResponse) HasErrorCode ¶
func (o *ErrorResponse) HasErrorCode() bool
HasErrorCode returns a boolean if a field has been set.
func (*ErrorResponse) HasMessage ¶
func (o *ErrorResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*ErrorResponse) HasStatus ¶
func (o *ErrorResponse) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (ErrorResponse) MarshalJSON ¶
func (o ErrorResponse) MarshalJSON() ([]byte, error)
func (*ErrorResponse) SetErrorCode ¶
func (o *ErrorResponse) SetErrorCode(v string)
SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.
func (*ErrorResponse) SetMessage ¶
func (o *ErrorResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*ErrorResponse) SetStatus ¶
func (o *ErrorResponse) SetStatus(v ErrorStatus)
SetStatus gets a reference to the given ErrorStatus and assigns it to the Status field.
type ErrorStatus ¶
type ErrorStatus string
ErrorStatus the model 'ErrorStatus'
const ( ERRORSTATUS_ERROR ErrorStatus = "error" ERRORSTATUS_NO_MATCHES_FOR_YOUR_SEARCH ErrorStatus = "No matches for your search." )
List of error_status
func NewErrorStatusFromValue ¶
func NewErrorStatusFromValue(v string) (*ErrorStatus, error)
NewErrorStatusFromValue returns a pointer to a valid ErrorStatus for the value passed as argument, or an error if the value passed is not allowed by the enum
func (ErrorStatus) IsValid ¶
func (v ErrorStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (ErrorStatus) Ptr ¶
func (v ErrorStatus) Ptr() *ErrorStatus
Ptr returns reference to error_status value
func (*ErrorStatus) UnmarshalJSON ¶
func (v *ErrorStatus) UnmarshalJSON(src []byte) error
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type Lang ¶
type Lang string
Lang the model 'Lang'
const ( LANG_AF Lang = "af" LANG_AR Lang = "ar" LANG_BG Lang = "bg" LANG_BN Lang = "bn" LANG_CA Lang = "ca" LANG_CN Lang = "cn" LANG_CS Lang = "cs" LANG_CY Lang = "cy" LANG_DA Lang = "da" LANG_DE Lang = "de" LANG_EL Lang = "el" LANG_EN Lang = "en" LANG_ES Lang = "es" LANG_ET Lang = "et" LANG_FA Lang = "fa" LANG_FI Lang = "fi" LANG_FR Lang = "fr" LANG_GU Lang = "gu" LANG_HE Lang = "he" LANG_HI Lang = "hi" LANG_HR Lang = "hr" LANG_HU Lang = "hu" LANG_ID Lang = "id" LANG_IT Lang = "it" LANG_JA Lang = "ja" LANG_KN Lang = "kn" LANG_KO Lang = "ko" LANG_LT Lang = "lt" LANG_LV Lang = "lv" LANG_MK Lang = "mk" LANG_ML Lang = "ml" LANG_MR Lang = "mr" LANG_NE Lang = "ne" LANG_NL Lang = "nl" LANG_FALSE Lang = "false" LANG_PA Lang = "pa" LANG_PL Lang = "pl" LANG_PT Lang = "pt" LANG_RO Lang = "ro" LANG_RU Lang = "ru" LANG_SK Lang = "sk" LANG_SL Lang = "sl" LANG_SO Lang = "so" LANG_SQ Lang = "sq" LANG_SV Lang = "sv" LANG_SW Lang = "sw" LANG_TA Lang = "ta" LANG_TE Lang = "te" LANG_TH Lang = "th" LANG_TL Lang = "tl" LANG_TR Lang = "tr" LANG_TW Lang = "tw" LANG_UK Lang = "uk" LANG_UR Lang = "ur" LANG_VI Lang = "vi" )
List of lang
func NewLangFromValue ¶
NewLangFromValue returns a pointer to a valid Lang for the value passed as argument, or an error if the value passed is not allowed by the enum
func (*Lang) UnmarshalJSON ¶
type LatestHeadlines ¶
type LatestHeadlines struct { // The time period you want to get the headlines for. Accpeted format: - `7d` -> Daily form, last 7 days time period - `6h` -> Hourly form, last six hours When *string `json:"when,omitempty"` // The language you want to search in. Lang *string `json:"lang,omitempty"` Countries *string `json:"countries,omitempty"` NotCountries *string `json:"not_countries,omitempty"` Topic *string `json:"topic,omitempty"` Sources *string `json:"sources,omitempty"` NotSources *string `json:"not_sources,omitempty"` RankedOnly *bool `json:"ranked_only,omitempty"` PageSize *int32 `json:"page_size,omitempty"` Page *int32 `json:"page,omitempty"` }
LatestHeadlines struct for LatestHeadlines
func NewLatestHeadlines ¶
func NewLatestHeadlines() *LatestHeadlines
NewLatestHeadlines instantiates a new LatestHeadlines object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewLatestHeadlinesWithDefaults ¶
func NewLatestHeadlinesWithDefaults() *LatestHeadlines
NewLatestHeadlinesWithDefaults instantiates a new LatestHeadlines object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*LatestHeadlines) GetCountries ¶
func (o *LatestHeadlines) GetCountries() string
GetCountries returns the Countries field value if set, zero value otherwise.
func (*LatestHeadlines) GetCountriesOk ¶
func (o *LatestHeadlines) GetCountriesOk() (*string, bool)
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetLang ¶
func (o *LatestHeadlines) GetLang() string
GetLang returns the Lang field value if set, zero value otherwise.
func (*LatestHeadlines) GetLangOk ¶
func (o *LatestHeadlines) GetLangOk() (*string, bool)
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetNotCountries ¶
func (o *LatestHeadlines) GetNotCountries() string
GetNotCountries returns the NotCountries field value if set, zero value otherwise.
func (*LatestHeadlines) GetNotCountriesOk ¶
func (o *LatestHeadlines) GetNotCountriesOk() (*string, bool)
GetNotCountriesOk returns a tuple with the NotCountries field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetNotSources ¶
func (o *LatestHeadlines) GetNotSources() string
GetNotSources returns the NotSources field value if set, zero value otherwise.
func (*LatestHeadlines) GetNotSourcesOk ¶
func (o *LatestHeadlines) GetNotSourcesOk() (*string, bool)
GetNotSourcesOk returns a tuple with the NotSources field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetPage ¶
func (o *LatestHeadlines) GetPage() int32
GetPage returns the Page field value if set, zero value otherwise.
func (*LatestHeadlines) GetPageOk ¶
func (o *LatestHeadlines) GetPageOk() (*int32, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetPageSize ¶
func (o *LatestHeadlines) GetPageSize() int32
GetPageSize returns the PageSize field value if set, zero value otherwise.
func (*LatestHeadlines) GetPageSizeOk ¶
func (o *LatestHeadlines) GetPageSizeOk() (*int32, bool)
GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetRankedOnly ¶
func (o *LatestHeadlines) GetRankedOnly() bool
GetRankedOnly returns the RankedOnly field value if set, zero value otherwise.
func (*LatestHeadlines) GetRankedOnlyOk ¶
func (o *LatestHeadlines) GetRankedOnlyOk() (*bool, bool)
GetRankedOnlyOk returns a tuple with the RankedOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetSources ¶
func (o *LatestHeadlines) GetSources() string
GetSources returns the Sources field value if set, zero value otherwise.
func (*LatestHeadlines) GetSourcesOk ¶
func (o *LatestHeadlines) GetSourcesOk() (*string, bool)
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetTopic ¶
func (o *LatestHeadlines) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise.
func (*LatestHeadlines) GetTopicOk ¶
func (o *LatestHeadlines) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) GetWhen ¶
func (o *LatestHeadlines) GetWhen() string
GetWhen returns the When field value if set, zero value otherwise.
func (*LatestHeadlines) GetWhenOk ¶
func (o *LatestHeadlines) GetWhenOk() (*string, bool)
GetWhenOk returns a tuple with the When field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlines) HasCountries ¶
func (o *LatestHeadlines) HasCountries() bool
HasCountries returns a boolean if a field has been set.
func (*LatestHeadlines) HasLang ¶
func (o *LatestHeadlines) HasLang() bool
HasLang returns a boolean if a field has been set.
func (*LatestHeadlines) HasNotCountries ¶
func (o *LatestHeadlines) HasNotCountries() bool
HasNotCountries returns a boolean if a field has been set.
func (*LatestHeadlines) HasNotSources ¶
func (o *LatestHeadlines) HasNotSources() bool
HasNotSources returns a boolean if a field has been set.
func (*LatestHeadlines) HasPage ¶
func (o *LatestHeadlines) HasPage() bool
HasPage returns a boolean if a field has been set.
func (*LatestHeadlines) HasPageSize ¶
func (o *LatestHeadlines) HasPageSize() bool
HasPageSize returns a boolean if a field has been set.
func (*LatestHeadlines) HasRankedOnly ¶
func (o *LatestHeadlines) HasRankedOnly() bool
HasRankedOnly returns a boolean if a field has been set.
func (*LatestHeadlines) HasSources ¶
func (o *LatestHeadlines) HasSources() bool
HasSources returns a boolean if a field has been set.
func (*LatestHeadlines) HasTopic ¶
func (o *LatestHeadlines) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (*LatestHeadlines) HasWhen ¶
func (o *LatestHeadlines) HasWhen() bool
HasWhen returns a boolean if a field has been set.
func (LatestHeadlines) MarshalJSON ¶
func (o LatestHeadlines) MarshalJSON() ([]byte, error)
func (*LatestHeadlines) SetCountries ¶
func (o *LatestHeadlines) SetCountries(v string)
SetCountries gets a reference to the given string and assigns it to the Countries field.
func (*LatestHeadlines) SetLang ¶
func (o *LatestHeadlines) SetLang(v string)
SetLang gets a reference to the given string and assigns it to the Lang field.
func (*LatestHeadlines) SetNotCountries ¶
func (o *LatestHeadlines) SetNotCountries(v string)
SetNotCountries gets a reference to the given string and assigns it to the NotCountries field.
func (*LatestHeadlines) SetNotSources ¶
func (o *LatestHeadlines) SetNotSources(v string)
SetNotSources gets a reference to the given string and assigns it to the NotSources field.
func (*LatestHeadlines) SetPage ¶
func (o *LatestHeadlines) SetPage(v int32)
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*LatestHeadlines) SetPageSize ¶
func (o *LatestHeadlines) SetPageSize(v int32)
SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.
func (*LatestHeadlines) SetRankedOnly ¶
func (o *LatestHeadlines) SetRankedOnly(v bool)
SetRankedOnly gets a reference to the given bool and assigns it to the RankedOnly field.
func (*LatestHeadlines) SetSources ¶
func (o *LatestHeadlines) SetSources(v string)
SetSources gets a reference to the given string and assigns it to the Sources field.
func (*LatestHeadlines) SetTopic ¶
func (o *LatestHeadlines) SetTopic(v string)
SetTopic gets a reference to the given string and assigns it to the Topic field.
func (*LatestHeadlines) SetWhen ¶
func (o *LatestHeadlines) SetWhen(v string)
SetWhen gets a reference to the given string and assigns it to the When field.
type LatestHeadlinesApiGetRequest ¶
type LatestHeadlinesApiGetRequest struct { ApiService *LatestHeadlinesApiService // contains filtered or unexported fields }
func (LatestHeadlinesApiGetRequest) Countries ¶
func (r LatestHeadlinesApiGetRequest) Countries(countries string) LatestHeadlinesApiGetRequest
Countries where the news publisher is located. **Important**: This parameter is not responsible for the countries mentioned in the news article. One or multiple countries can be used in the search. The only acceptable format is [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) For example, `US,CA,MX` or just `US`
func (LatestHeadlinesApiGetRequest) Execute ¶
func (r LatestHeadlinesApiGetRequest) Execute() (*Model200ResponseLatest, *http.Response, error)
func (LatestHeadlinesApiGetRequest) Lang ¶
func (r LatestHeadlinesApiGetRequest) Lang(lang string) LatestHeadlinesApiGetRequest
Specifies the languages of the search. For example: `en`. The only accepted format is [ISO 639-1 — 2](https://en.wikipedia.org/wiki/ISO_639-1) letter code.
func (LatestHeadlinesApiGetRequest) NotCountries ¶
func (r LatestHeadlinesApiGetRequest) NotCountries(notCountries string) LatestHeadlinesApiGetRequest
The inverse of the `countries` parameter.
func (LatestHeadlinesApiGetRequest) NotLang ¶
func (r LatestHeadlinesApiGetRequest) NotLang(notLang string) LatestHeadlinesApiGetRequest
Inverse to the `lang` parameter
func (LatestHeadlinesApiGetRequest) NotSources ¶
func (r LatestHeadlinesApiGetRequest) NotSources(notSources string) LatestHeadlinesApiGetRequest
One or more sources to be excluded from the search. Comma-separated list. For example: `nytimes.com,cnn.com,wsj.com`
func (LatestHeadlinesApiGetRequest) Page ¶
func (r LatestHeadlinesApiGetRequest) Page(page int32) LatestHeadlinesApiGetRequest
The number of the page. Use it to scroll through the results. This parameter is used to paginate: scroll through results because one API response cannot return more than 100 articles.
func (LatestHeadlinesApiGetRequest) PageSize ¶
func (r LatestHeadlinesApiGetRequest) PageSize(pageSize int32) LatestHeadlinesApiGetRequest
`[1:100]` How many articles to return per page.
func (LatestHeadlinesApiGetRequest) RankedOnly ¶
func (r LatestHeadlinesApiGetRequest) RankedOnly(rankedOnly bool) LatestHeadlinesApiGetRequest
Default: `True` Limit the search only for the sources which are in the top 1 million online websites. Unranked sources are assigned a rank that equals `999999`
func (LatestHeadlinesApiGetRequest) Sources ¶
func (r LatestHeadlinesApiGetRequest) Sources(sources string) LatestHeadlinesApiGetRequest
One or more news resources to filter your search. It should be the normal form of the URL, For example: `nytimes.com,theguardian.com`
func (LatestHeadlinesApiGetRequest) Topic ¶
func (r LatestHeadlinesApiGetRequest) Topic(topic Topic) LatestHeadlinesApiGetRequest
Accepted values: `news`, `sport`, `tech`, `world`, `finance`, `politics`, `business`, `economics`, `entertainment`, `beauty`, `travel`, `music`, `food`, `science`, `gaming` The topic to which you want to restrict the articles of your choice. Not all news articles are assigned with a topic, therefore, we cannot guarantee that 100% of topics talking about technology will be assigned a tech label.
type LatestHeadlinesApiPostRequest ¶
type LatestHeadlinesApiPostRequest struct { ApiService *LatestHeadlinesApiService // contains filtered or unexported fields }
func (LatestHeadlinesApiPostRequest) Execute ¶
func (r LatestHeadlinesApiPostRequest) Execute() (*Model200ResponseLatest, *http.Response, error)
func (LatestHeadlinesApiPostRequest) LatestHeadlines ¶
func (r LatestHeadlinesApiPostRequest) LatestHeadlines(latestHeadlines LatestHeadlines) LatestHeadlinesApiPostRequest
type LatestHeadlinesApiService ¶
type LatestHeadlinesApiService service
LatestHeadlinesApiService LatestHeadlinesApi service
func (*LatestHeadlinesApiService) Get ¶
func (a *LatestHeadlinesApiService) Get() LatestHeadlinesApiGetRequest
Get Get Latest News Articles
Get the latest headlines given any topic, country, or language.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return LatestHeadlinesApiGetRequest
func (*LatestHeadlinesApiService) GetExecute ¶
func (a *LatestHeadlinesApiService) GetExecute(r LatestHeadlinesApiGetRequest) (*Model200ResponseLatest, *http.Response, error)
Execute executes the request
@return Model200ResponseLatest
func (*LatestHeadlinesApiService) Post ¶
func (a *LatestHeadlinesApiService) Post() LatestHeadlinesApiPostRequest
Post Get Latest News Articles
Get the latest headlines given any topic, country, or language.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return LatestHeadlinesApiPostRequest
func (*LatestHeadlinesApiService) PostExecute ¶
func (a *LatestHeadlinesApiService) PostExecute(r LatestHeadlinesApiPostRequest) (*Model200ResponseLatest, *http.Response, error)
Execute executes the request
@return Model200ResponseLatest
type LatestHeadlinesUserInput ¶
type LatestHeadlinesUserInput struct { Lang []string `json:"lang,omitempty"` NotLang []string `json:"not_lang,omitempty"` Countries []string `json:"countries,omitempty"` NotCountries []string `json:"not_countries,omitempty"` Page *int32 `json:"page,omitempty"` Size *int32 `json:"size,omitempty"` Sources []string `json:"sources,omitempty"` NotSources []string `json:"not_sources,omitempty"` Topic NullableString `json:"topic,omitempty"` }
LatestHeadlinesUserInput struct for LatestHeadlinesUserInput
func NewLatestHeadlinesUserInput ¶
func NewLatestHeadlinesUserInput() *LatestHeadlinesUserInput
NewLatestHeadlinesUserInput instantiates a new LatestHeadlinesUserInput object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewLatestHeadlinesUserInputWithDefaults ¶
func NewLatestHeadlinesUserInputWithDefaults() *LatestHeadlinesUserInput
NewLatestHeadlinesUserInputWithDefaults instantiates a new LatestHeadlinesUserInput object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*LatestHeadlinesUserInput) GetCountries ¶
func (o *LatestHeadlinesUserInput) GetCountries() []string
GetCountries returns the Countries field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetCountriesOk ¶
func (o *LatestHeadlinesUserInput) GetCountriesOk() ([]string, bool)
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetLang ¶
func (o *LatestHeadlinesUserInput) GetLang() []string
GetLang returns the Lang field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetLangOk ¶
func (o *LatestHeadlinesUserInput) GetLangOk() ([]string, bool)
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetNotCountries ¶
func (o *LatestHeadlinesUserInput) GetNotCountries() []string
GetNotCountries returns the NotCountries field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetNotCountriesOk ¶
func (o *LatestHeadlinesUserInput) GetNotCountriesOk() ([]string, bool)
GetNotCountriesOk returns a tuple with the NotCountries field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetNotLang ¶
func (o *LatestHeadlinesUserInput) GetNotLang() []string
GetNotLang returns the NotLang field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetNotLangOk ¶
func (o *LatestHeadlinesUserInput) GetNotLangOk() ([]string, bool)
GetNotLangOk returns a tuple with the NotLang field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetNotSources ¶
func (o *LatestHeadlinesUserInput) GetNotSources() []string
GetNotSources returns the NotSources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetNotSourcesOk ¶
func (o *LatestHeadlinesUserInput) GetNotSourcesOk() ([]string, bool)
GetNotSourcesOk returns a tuple with the NotSources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetPage ¶
func (o *LatestHeadlinesUserInput) GetPage() int32
GetPage returns the Page field value if set, zero value otherwise.
func (*LatestHeadlinesUserInput) GetPageOk ¶
func (o *LatestHeadlinesUserInput) GetPageOk() (*int32, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlinesUserInput) GetSize ¶
func (o *LatestHeadlinesUserInput) GetSize() int32
GetSize returns the Size field value if set, zero value otherwise.
func (*LatestHeadlinesUserInput) GetSizeOk ¶
func (o *LatestHeadlinesUserInput) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LatestHeadlinesUserInput) GetSources ¶
func (o *LatestHeadlinesUserInput) GetSources() []string
GetSources returns the Sources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetSourcesOk ¶
func (o *LatestHeadlinesUserInput) GetSourcesOk() ([]string, bool)
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) GetTopic ¶
func (o *LatestHeadlinesUserInput) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LatestHeadlinesUserInput) GetTopicOk ¶
func (o *LatestHeadlinesUserInput) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*LatestHeadlinesUserInput) HasCountries ¶
func (o *LatestHeadlinesUserInput) HasCountries() bool
HasCountries returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasLang ¶
func (o *LatestHeadlinesUserInput) HasLang() bool
HasLang returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasNotCountries ¶
func (o *LatestHeadlinesUserInput) HasNotCountries() bool
HasNotCountries returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasNotLang ¶
func (o *LatestHeadlinesUserInput) HasNotLang() bool
HasNotLang returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasNotSources ¶
func (o *LatestHeadlinesUserInput) HasNotSources() bool
HasNotSources returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasPage ¶
func (o *LatestHeadlinesUserInput) HasPage() bool
HasPage returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasSize ¶
func (o *LatestHeadlinesUserInput) HasSize() bool
HasSize returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasSources ¶
func (o *LatestHeadlinesUserInput) HasSources() bool
HasSources returns a boolean if a field has been set.
func (*LatestHeadlinesUserInput) HasTopic ¶
func (o *LatestHeadlinesUserInput) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (LatestHeadlinesUserInput) MarshalJSON ¶
func (o LatestHeadlinesUserInput) MarshalJSON() ([]byte, error)
func (*LatestHeadlinesUserInput) SetCountries ¶
func (o *LatestHeadlinesUserInput) SetCountries(v []string)
SetCountries gets a reference to the given []string and assigns it to the Countries field.
func (*LatestHeadlinesUserInput) SetLang ¶
func (o *LatestHeadlinesUserInput) SetLang(v []string)
SetLang gets a reference to the given []string and assigns it to the Lang field.
func (*LatestHeadlinesUserInput) SetNotCountries ¶
func (o *LatestHeadlinesUserInput) SetNotCountries(v []string)
SetNotCountries gets a reference to the given []string and assigns it to the NotCountries field.
func (*LatestHeadlinesUserInput) SetNotLang ¶
func (o *LatestHeadlinesUserInput) SetNotLang(v []string)
SetNotLang gets a reference to the given []string and assigns it to the NotLang field.
func (*LatestHeadlinesUserInput) SetNotSources ¶
func (o *LatestHeadlinesUserInput) SetNotSources(v []string)
SetNotSources gets a reference to the given []string and assigns it to the NotSources field.
func (*LatestHeadlinesUserInput) SetPage ¶
func (o *LatestHeadlinesUserInput) SetPage(v int32)
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*LatestHeadlinesUserInput) SetSize ¶
func (o *LatestHeadlinesUserInput) SetSize(v int32)
SetSize gets a reference to the given int32 and assigns it to the Size field.
func (*LatestHeadlinesUserInput) SetSources ¶
func (o *LatestHeadlinesUserInput) SetSources(v []string)
SetSources gets a reference to the given []string and assigns it to the Sources field.
func (*LatestHeadlinesUserInput) SetTopic ¶
func (o *LatestHeadlinesUserInput) SetTopic(v string)
SetTopic gets a reference to the given NullableString and assigns it to the Topic field.
func (*LatestHeadlinesUserInput) SetTopicNil ¶
func (o *LatestHeadlinesUserInput) SetTopicNil()
SetTopicNil sets the value for Topic to be an explicit nil
func (*LatestHeadlinesUserInput) UnsetTopic ¶
func (o *LatestHeadlinesUserInput) UnsetTopic()
UnsetTopic ensures that no value is present for Topic, not even an explicit nil
type Model200Response ¶
type Model200Response struct { Status *SuccessStatus `json:"status,omitempty"` TotalHits *int32 `json:"total_hits,omitempty"` Page *int32 `json:"page,omitempty"` TotalPages *int32 `json:"total_pages,omitempty"` PageSize *int32 `json:"page_size,omitempty"` Articles []ArticleInner `json:"articles,omitempty"` UserInput *SearchUserInput `json:"user_input,omitempty"` }
Model200Response struct for Model200Response
func NewModel200Response ¶
func NewModel200Response() *Model200Response
NewModel200Response instantiates a new Model200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewModel200ResponseWithDefaults ¶
func NewModel200ResponseWithDefaults() *Model200Response
NewModel200ResponseWithDefaults instantiates a new Model200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Model200Response) GetArticles ¶
func (o *Model200Response) GetArticles() []ArticleInner
GetArticles returns the Articles field value if set, zero value otherwise.
func (*Model200Response) GetArticlesOk ¶
func (o *Model200Response) GetArticlesOk() ([]ArticleInner, bool)
GetArticlesOk returns a tuple with the Articles field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetPage ¶
func (o *Model200Response) GetPage() int32
GetPage returns the Page field value if set, zero value otherwise.
func (*Model200Response) GetPageOk ¶
func (o *Model200Response) GetPageOk() (*int32, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetPageSize ¶
func (o *Model200Response) GetPageSize() int32
GetPageSize returns the PageSize field value if set, zero value otherwise.
func (*Model200Response) GetPageSizeOk ¶
func (o *Model200Response) GetPageSizeOk() (*int32, bool)
GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetStatus ¶
func (o *Model200Response) GetStatus() SuccessStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (*Model200Response) GetStatusOk ¶
func (o *Model200Response) GetStatusOk() (*SuccessStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetTotalHits ¶
func (o *Model200Response) GetTotalHits() int32
GetTotalHits returns the TotalHits field value if set, zero value otherwise.
func (*Model200Response) GetTotalHitsOk ¶
func (o *Model200Response) GetTotalHitsOk() (*int32, bool)
GetTotalHitsOk returns a tuple with the TotalHits field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetTotalPages ¶
func (o *Model200Response) GetTotalPages() int32
GetTotalPages returns the TotalPages field value if set, zero value otherwise.
func (*Model200Response) GetTotalPagesOk ¶
func (o *Model200Response) GetTotalPagesOk() (*int32, bool)
GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) GetUserInput ¶
func (o *Model200Response) GetUserInput() SearchUserInput
GetUserInput returns the UserInput field value if set, zero value otherwise.
func (*Model200Response) GetUserInputOk ¶
func (o *Model200Response) GetUserInputOk() (*SearchUserInput, bool)
GetUserInputOk returns a tuple with the UserInput field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200Response) HasArticles ¶
func (o *Model200Response) HasArticles() bool
HasArticles returns a boolean if a field has been set.
func (*Model200Response) HasPage ¶
func (o *Model200Response) HasPage() bool
HasPage returns a boolean if a field has been set.
func (*Model200Response) HasPageSize ¶
func (o *Model200Response) HasPageSize() bool
HasPageSize returns a boolean if a field has been set.
func (*Model200Response) HasStatus ¶
func (o *Model200Response) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (*Model200Response) HasTotalHits ¶
func (o *Model200Response) HasTotalHits() bool
HasTotalHits returns a boolean if a field has been set.
func (*Model200Response) HasTotalPages ¶
func (o *Model200Response) HasTotalPages() bool
HasTotalPages returns a boolean if a field has been set.
func (*Model200Response) HasUserInput ¶
func (o *Model200Response) HasUserInput() bool
HasUserInput returns a boolean if a field has been set.
func (Model200Response) MarshalJSON ¶
func (o Model200Response) MarshalJSON() ([]byte, error)
func (*Model200Response) SetArticles ¶
func (o *Model200Response) SetArticles(v []ArticleInner)
SetArticles gets a reference to the given []ArticleInner and assigns it to the Articles field.
func (*Model200Response) SetPage ¶
func (o *Model200Response) SetPage(v int32)
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*Model200Response) SetPageSize ¶
func (o *Model200Response) SetPageSize(v int32)
SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.
func (*Model200Response) SetStatus ¶
func (o *Model200Response) SetStatus(v SuccessStatus)
SetStatus gets a reference to the given SuccessStatus and assigns it to the Status field.
func (*Model200Response) SetTotalHits ¶
func (o *Model200Response) SetTotalHits(v int32)
SetTotalHits gets a reference to the given int32 and assigns it to the TotalHits field.
func (*Model200Response) SetTotalPages ¶
func (o *Model200Response) SetTotalPages(v int32)
SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field.
func (*Model200Response) SetUserInput ¶
func (o *Model200Response) SetUserInput(v SearchUserInput)
SetUserInput gets a reference to the given SearchUserInput and assigns it to the UserInput field.
type Model200ResponseLatest ¶
type Model200ResponseLatest struct { Status *SuccessStatus `json:"status,omitempty"` TotalHits *int32 `json:"total_hits,omitempty"` Page *int32 `json:"page,omitempty"` TotalPages *int32 `json:"total_pages,omitempty"` PageSize *int32 `json:"page_size,omitempty"` Articles []ArticleInner `json:"articles,omitempty"` UserInput *LatestHeadlinesUserInput `json:"user_input,omitempty"` }
Model200ResponseLatest struct for Model200ResponseLatest
func NewModel200ResponseLatest ¶
func NewModel200ResponseLatest() *Model200ResponseLatest
NewModel200ResponseLatest instantiates a new Model200ResponseLatest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewModel200ResponseLatestWithDefaults ¶
func NewModel200ResponseLatestWithDefaults() *Model200ResponseLatest
NewModel200ResponseLatestWithDefaults instantiates a new Model200ResponseLatest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Model200ResponseLatest) GetArticles ¶
func (o *Model200ResponseLatest) GetArticles() []ArticleInner
GetArticles returns the Articles field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetArticlesOk ¶
func (o *Model200ResponseLatest) GetArticlesOk() ([]ArticleInner, bool)
GetArticlesOk returns a tuple with the Articles field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetPage ¶
func (o *Model200ResponseLatest) GetPage() int32
GetPage returns the Page field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetPageOk ¶
func (o *Model200ResponseLatest) GetPageOk() (*int32, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetPageSize ¶
func (o *Model200ResponseLatest) GetPageSize() int32
GetPageSize returns the PageSize field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetPageSizeOk ¶
func (o *Model200ResponseLatest) GetPageSizeOk() (*int32, bool)
GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetStatus ¶
func (o *Model200ResponseLatest) GetStatus() SuccessStatus
GetStatus returns the Status field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetStatusOk ¶
func (o *Model200ResponseLatest) GetStatusOk() (*SuccessStatus, bool)
GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetTotalHits ¶
func (o *Model200ResponseLatest) GetTotalHits() int32
GetTotalHits returns the TotalHits field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetTotalHitsOk ¶
func (o *Model200ResponseLatest) GetTotalHitsOk() (*int32, bool)
GetTotalHitsOk returns a tuple with the TotalHits field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetTotalPages ¶
func (o *Model200ResponseLatest) GetTotalPages() int32
GetTotalPages returns the TotalPages field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetTotalPagesOk ¶
func (o *Model200ResponseLatest) GetTotalPagesOk() (*int32, bool)
GetTotalPagesOk returns a tuple with the TotalPages field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) GetUserInput ¶
func (o *Model200ResponseLatest) GetUserInput() LatestHeadlinesUserInput
GetUserInput returns the UserInput field value if set, zero value otherwise.
func (*Model200ResponseLatest) GetUserInputOk ¶
func (o *Model200ResponseLatest) GetUserInputOk() (*LatestHeadlinesUserInput, bool)
GetUserInputOk returns a tuple with the UserInput field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseLatest) HasArticles ¶
func (o *Model200ResponseLatest) HasArticles() bool
HasArticles returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasPage ¶
func (o *Model200ResponseLatest) HasPage() bool
HasPage returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasPageSize ¶
func (o *Model200ResponseLatest) HasPageSize() bool
HasPageSize returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasStatus ¶
func (o *Model200ResponseLatest) HasStatus() bool
HasStatus returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasTotalHits ¶
func (o *Model200ResponseLatest) HasTotalHits() bool
HasTotalHits returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasTotalPages ¶
func (o *Model200ResponseLatest) HasTotalPages() bool
HasTotalPages returns a boolean if a field has been set.
func (*Model200ResponseLatest) HasUserInput ¶
func (o *Model200ResponseLatest) HasUserInput() bool
HasUserInput returns a boolean if a field has been set.
func (Model200ResponseLatest) MarshalJSON ¶
func (o Model200ResponseLatest) MarshalJSON() ([]byte, error)
func (*Model200ResponseLatest) SetArticles ¶
func (o *Model200ResponseLatest) SetArticles(v []ArticleInner)
SetArticles gets a reference to the given []ArticleInner and assigns it to the Articles field.
func (*Model200ResponseLatest) SetPage ¶
func (o *Model200ResponseLatest) SetPage(v int32)
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*Model200ResponseLatest) SetPageSize ¶
func (o *Model200ResponseLatest) SetPageSize(v int32)
SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.
func (*Model200ResponseLatest) SetStatus ¶
func (o *Model200ResponseLatest) SetStatus(v SuccessStatus)
SetStatus gets a reference to the given SuccessStatus and assigns it to the Status field.
func (*Model200ResponseLatest) SetTotalHits ¶
func (o *Model200ResponseLatest) SetTotalHits(v int32)
SetTotalHits gets a reference to the given int32 and assigns it to the TotalHits field.
func (*Model200ResponseLatest) SetTotalPages ¶
func (o *Model200ResponseLatest) SetTotalPages(v int32)
SetTotalPages gets a reference to the given int32 and assigns it to the TotalPages field.
func (*Model200ResponseLatest) SetUserInput ¶
func (o *Model200ResponseLatest) SetUserInput(v LatestHeadlinesUserInput)
SetUserInput gets a reference to the given LatestHeadlinesUserInput and assigns it to the UserInput field.
type Model200ResponseSources ¶
type Model200ResponseSources struct { Message *string `json:"message,omitempty"` Sources []string `json:"sources,omitempty"` UserInput *SourcesUserInput `json:"user_input,omitempty"` }
Model200ResponseSources struct for Model200ResponseSources
func NewModel200ResponseSources ¶
func NewModel200ResponseSources() *Model200ResponseSources
NewModel200ResponseSources instantiates a new Model200ResponseSources object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewModel200ResponseSourcesWithDefaults ¶
func NewModel200ResponseSourcesWithDefaults() *Model200ResponseSources
NewModel200ResponseSourcesWithDefaults instantiates a new Model200ResponseSources object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Model200ResponseSources) GetMessage ¶
func (o *Model200ResponseSources) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*Model200ResponseSources) GetMessageOk ¶
func (o *Model200ResponseSources) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseSources) GetSources ¶
func (o *Model200ResponseSources) GetSources() []string
GetSources returns the Sources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Model200ResponseSources) GetSourcesOk ¶
func (o *Model200ResponseSources) GetSourcesOk() ([]string, bool)
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Model200ResponseSources) GetUserInput ¶
func (o *Model200ResponseSources) GetUserInput() SourcesUserInput
GetUserInput returns the UserInput field value if set, zero value otherwise.
func (*Model200ResponseSources) GetUserInputOk ¶
func (o *Model200ResponseSources) GetUserInputOk() (*SourcesUserInput, bool)
GetUserInputOk returns a tuple with the UserInput field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Model200ResponseSources) HasMessage ¶
func (o *Model200ResponseSources) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (*Model200ResponseSources) HasSources ¶
func (o *Model200ResponseSources) HasSources() bool
HasSources returns a boolean if a field has been set.
func (*Model200ResponseSources) HasUserInput ¶
func (o *Model200ResponseSources) HasUserInput() bool
HasUserInput returns a boolean if a field has been set.
func (Model200ResponseSources) MarshalJSON ¶
func (o Model200ResponseSources) MarshalJSON() ([]byte, error)
func (*Model200ResponseSources) SetMessage ¶
func (o *Model200ResponseSources) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (*Model200ResponseSources) SetSources ¶
func (o *Model200ResponseSources) SetSources(v []string)
SetSources gets a reference to the given []string and assigns it to the Sources field.
func (*Model200ResponseSources) SetUserInput ¶
func (o *Model200ResponseSources) SetUserInput(v SourcesUserInput)
SetUserInput gets a reference to the given SourcesUserInput and assigns it to the UserInput field.
type NullableArticleInner ¶
type NullableArticleInner struct {
// contains filtered or unexported fields
}
func NewNullableArticleInner ¶
func NewNullableArticleInner(val *ArticleInner) *NullableArticleInner
func (NullableArticleInner) Get ¶
func (v NullableArticleInner) Get() *ArticleInner
func (NullableArticleInner) IsSet ¶
func (v NullableArticleInner) IsSet() bool
func (NullableArticleInner) MarshalJSON ¶
func (v NullableArticleInner) MarshalJSON() ([]byte, error)
func (*NullableArticleInner) Set ¶
func (v *NullableArticleInner) Set(val *ArticleInner)
func (*NullableArticleInner) UnmarshalJSON ¶
func (v *NullableArticleInner) UnmarshalJSON(src []byte) error
func (*NullableArticleInner) Unset ¶
func (v *NullableArticleInner) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableErrorResponse ¶
type NullableErrorResponse struct {
// contains filtered or unexported fields
}
func NewNullableErrorResponse ¶
func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse
func (NullableErrorResponse) Get ¶
func (v NullableErrorResponse) Get() *ErrorResponse
func (NullableErrorResponse) IsSet ¶
func (v NullableErrorResponse) IsSet() bool
func (NullableErrorResponse) MarshalJSON ¶
func (v NullableErrorResponse) MarshalJSON() ([]byte, error)
func (*NullableErrorResponse) Set ¶
func (v *NullableErrorResponse) Set(val *ErrorResponse)
func (*NullableErrorResponse) UnmarshalJSON ¶
func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error
func (*NullableErrorResponse) Unset ¶
func (v *NullableErrorResponse) Unset()
type NullableErrorStatus ¶
type NullableErrorStatus struct {
// contains filtered or unexported fields
}
func NewNullableErrorStatus ¶
func NewNullableErrorStatus(val *ErrorStatus) *NullableErrorStatus
func (NullableErrorStatus) Get ¶
func (v NullableErrorStatus) Get() *ErrorStatus
func (NullableErrorStatus) IsSet ¶
func (v NullableErrorStatus) IsSet() bool
func (NullableErrorStatus) MarshalJSON ¶
func (v NullableErrorStatus) MarshalJSON() ([]byte, error)
func (*NullableErrorStatus) Set ¶
func (v *NullableErrorStatus) Set(val *ErrorStatus)
func (*NullableErrorStatus) UnmarshalJSON ¶
func (v *NullableErrorStatus) UnmarshalJSON(src []byte) error
func (*NullableErrorStatus) Unset ¶
func (v *NullableErrorStatus) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableLang ¶
type NullableLang struct {
// contains filtered or unexported fields
}
func NewNullableLang ¶
func NewNullableLang(val *Lang) *NullableLang
func (NullableLang) Get ¶
func (v NullableLang) Get() *Lang
func (NullableLang) IsSet ¶
func (v NullableLang) IsSet() bool
func (NullableLang) MarshalJSON ¶
func (v NullableLang) MarshalJSON() ([]byte, error)
func (*NullableLang) Set ¶
func (v *NullableLang) Set(val *Lang)
func (*NullableLang) UnmarshalJSON ¶
func (v *NullableLang) UnmarshalJSON(src []byte) error
func (*NullableLang) Unset ¶
func (v *NullableLang) Unset()
type NullableLatestHeadlines ¶
type NullableLatestHeadlines struct {
// contains filtered or unexported fields
}
func NewNullableLatestHeadlines ¶
func NewNullableLatestHeadlines(val *LatestHeadlines) *NullableLatestHeadlines
func (NullableLatestHeadlines) Get ¶
func (v NullableLatestHeadlines) Get() *LatestHeadlines
func (NullableLatestHeadlines) IsSet ¶
func (v NullableLatestHeadlines) IsSet() bool
func (NullableLatestHeadlines) MarshalJSON ¶
func (v NullableLatestHeadlines) MarshalJSON() ([]byte, error)
func (*NullableLatestHeadlines) Set ¶
func (v *NullableLatestHeadlines) Set(val *LatestHeadlines)
func (*NullableLatestHeadlines) UnmarshalJSON ¶
func (v *NullableLatestHeadlines) UnmarshalJSON(src []byte) error
func (*NullableLatestHeadlines) Unset ¶
func (v *NullableLatestHeadlines) Unset()
type NullableLatestHeadlinesUserInput ¶
type NullableLatestHeadlinesUserInput struct {
// contains filtered or unexported fields
}
func NewNullableLatestHeadlinesUserInput ¶
func NewNullableLatestHeadlinesUserInput(val *LatestHeadlinesUserInput) *NullableLatestHeadlinesUserInput
func (NullableLatestHeadlinesUserInput) Get ¶
func (v NullableLatestHeadlinesUserInput) Get() *LatestHeadlinesUserInput
func (NullableLatestHeadlinesUserInput) IsSet ¶
func (v NullableLatestHeadlinesUserInput) IsSet() bool
func (NullableLatestHeadlinesUserInput) MarshalJSON ¶
func (v NullableLatestHeadlinesUserInput) MarshalJSON() ([]byte, error)
func (*NullableLatestHeadlinesUserInput) Set ¶
func (v *NullableLatestHeadlinesUserInput) Set(val *LatestHeadlinesUserInput)
func (*NullableLatestHeadlinesUserInput) UnmarshalJSON ¶
func (v *NullableLatestHeadlinesUserInput) UnmarshalJSON(src []byte) error
func (*NullableLatestHeadlinesUserInput) Unset ¶
func (v *NullableLatestHeadlinesUserInput) Unset()
type NullableModel200Response ¶
type NullableModel200Response struct {
// contains filtered or unexported fields
}
func NewNullableModel200Response ¶
func NewNullableModel200Response(val *Model200Response) *NullableModel200Response
func (NullableModel200Response) Get ¶
func (v NullableModel200Response) Get() *Model200Response
func (NullableModel200Response) IsSet ¶
func (v NullableModel200Response) IsSet() bool
func (NullableModel200Response) MarshalJSON ¶
func (v NullableModel200Response) MarshalJSON() ([]byte, error)
func (*NullableModel200Response) Set ¶
func (v *NullableModel200Response) Set(val *Model200Response)
func (*NullableModel200Response) UnmarshalJSON ¶
func (v *NullableModel200Response) UnmarshalJSON(src []byte) error
func (*NullableModel200Response) Unset ¶
func (v *NullableModel200Response) Unset()
type NullableModel200ResponseLatest ¶
type NullableModel200ResponseLatest struct {
// contains filtered or unexported fields
}
func NewNullableModel200ResponseLatest ¶
func NewNullableModel200ResponseLatest(val *Model200ResponseLatest) *NullableModel200ResponseLatest
func (NullableModel200ResponseLatest) Get ¶
func (v NullableModel200ResponseLatest) Get() *Model200ResponseLatest
func (NullableModel200ResponseLatest) IsSet ¶
func (v NullableModel200ResponseLatest) IsSet() bool
func (NullableModel200ResponseLatest) MarshalJSON ¶
func (v NullableModel200ResponseLatest) MarshalJSON() ([]byte, error)
func (*NullableModel200ResponseLatest) Set ¶
func (v *NullableModel200ResponseLatest) Set(val *Model200ResponseLatest)
func (*NullableModel200ResponseLatest) UnmarshalJSON ¶
func (v *NullableModel200ResponseLatest) UnmarshalJSON(src []byte) error
func (*NullableModel200ResponseLatest) Unset ¶
func (v *NullableModel200ResponseLatest) Unset()
type NullableModel200ResponseSources ¶
type NullableModel200ResponseSources struct {
// contains filtered or unexported fields
}
func NewNullableModel200ResponseSources ¶
func NewNullableModel200ResponseSources(val *Model200ResponseSources) *NullableModel200ResponseSources
func (NullableModel200ResponseSources) Get ¶
func (v NullableModel200ResponseSources) Get() *Model200ResponseSources
func (NullableModel200ResponseSources) IsSet ¶
func (v NullableModel200ResponseSources) IsSet() bool
func (NullableModel200ResponseSources) MarshalJSON ¶
func (v NullableModel200ResponseSources) MarshalJSON() ([]byte, error)
func (*NullableModel200ResponseSources) Set ¶
func (v *NullableModel200ResponseSources) Set(val *Model200ResponseSources)
func (*NullableModel200ResponseSources) UnmarshalJSON ¶
func (v *NullableModel200ResponseSources) UnmarshalJSON(src []byte) error
func (*NullableModel200ResponseSources) Unset ¶
func (v *NullableModel200ResponseSources) Unset()
type NullablePublishDatePrecision ¶
type NullablePublishDatePrecision struct {
// contains filtered or unexported fields
}
func NewNullablePublishDatePrecision ¶
func NewNullablePublishDatePrecision(val *PublishDatePrecision) *NullablePublishDatePrecision
func (NullablePublishDatePrecision) Get ¶
func (v NullablePublishDatePrecision) Get() *PublishDatePrecision
func (NullablePublishDatePrecision) IsSet ¶
func (v NullablePublishDatePrecision) IsSet() bool
func (NullablePublishDatePrecision) MarshalJSON ¶
func (v NullablePublishDatePrecision) MarshalJSON() ([]byte, error)
func (*NullablePublishDatePrecision) Set ¶
func (v *NullablePublishDatePrecision) Set(val *PublishDatePrecision)
func (*NullablePublishDatePrecision) UnmarshalJSON ¶
func (v *NullablePublishDatePrecision) UnmarshalJSON(src []byte) error
func (*NullablePublishDatePrecision) Unset ¶
func (v *NullablePublishDatePrecision) Unset()
type NullableSearch ¶
type NullableSearch struct {
// contains filtered or unexported fields
}
func NewNullableSearch ¶
func NewNullableSearch(val *Search) *NullableSearch
func (NullableSearch) Get ¶
func (v NullableSearch) Get() *Search
func (NullableSearch) IsSet ¶
func (v NullableSearch) IsSet() bool
func (NullableSearch) MarshalJSON ¶
func (v NullableSearch) MarshalJSON() ([]byte, error)
func (*NullableSearch) Set ¶
func (v *NullableSearch) Set(val *Search)
func (*NullableSearch) UnmarshalJSON ¶
func (v *NullableSearch) UnmarshalJSON(src []byte) error
func (*NullableSearch) Unset ¶
func (v *NullableSearch) Unset()
type NullableSearchIn ¶
type NullableSearchIn struct {
// contains filtered or unexported fields
}
func NewNullableSearchIn ¶
func NewNullableSearchIn(val *SearchIn) *NullableSearchIn
func (NullableSearchIn) Get ¶
func (v NullableSearchIn) Get() *SearchIn
func (NullableSearchIn) IsSet ¶
func (v NullableSearchIn) IsSet() bool
func (NullableSearchIn) MarshalJSON ¶
func (v NullableSearchIn) MarshalJSON() ([]byte, error)
func (*NullableSearchIn) Set ¶
func (v *NullableSearchIn) Set(val *SearchIn)
func (*NullableSearchIn) UnmarshalJSON ¶
func (v *NullableSearchIn) UnmarshalJSON(src []byte) error
func (*NullableSearchIn) Unset ¶
func (v *NullableSearchIn) Unset()
type NullableSearchUserInput ¶
type NullableSearchUserInput struct {
// contains filtered or unexported fields
}
func NewNullableSearchUserInput ¶
func NewNullableSearchUserInput(val *SearchUserInput) *NullableSearchUserInput
func (NullableSearchUserInput) Get ¶
func (v NullableSearchUserInput) Get() *SearchUserInput
func (NullableSearchUserInput) IsSet ¶
func (v NullableSearchUserInput) IsSet() bool
func (NullableSearchUserInput) MarshalJSON ¶
func (v NullableSearchUserInput) MarshalJSON() ([]byte, error)
func (*NullableSearchUserInput) Set ¶
func (v *NullableSearchUserInput) Set(val *SearchUserInput)
func (*NullableSearchUserInput) UnmarshalJSON ¶
func (v *NullableSearchUserInput) UnmarshalJSON(src []byte) error
func (*NullableSearchUserInput) Unset ¶
func (v *NullableSearchUserInput) Unset()
type NullableSortBy ¶
type NullableSortBy struct {
// contains filtered or unexported fields
}
func NewNullableSortBy ¶
func NewNullableSortBy(val *SortBy) *NullableSortBy
func (NullableSortBy) Get ¶
func (v NullableSortBy) Get() *SortBy
func (NullableSortBy) IsSet ¶
func (v NullableSortBy) IsSet() bool
func (NullableSortBy) MarshalJSON ¶
func (v NullableSortBy) MarshalJSON() ([]byte, error)
func (*NullableSortBy) Set ¶
func (v *NullableSortBy) Set(val *SortBy)
func (*NullableSortBy) UnmarshalJSON ¶
func (v *NullableSortBy) UnmarshalJSON(src []byte) error
func (*NullableSortBy) Unset ¶
func (v *NullableSortBy) Unset()
type NullableSourcesQuery ¶
type NullableSourcesQuery struct {
// contains filtered or unexported fields
}
func NewNullableSourcesQuery ¶
func NewNullableSourcesQuery(val *SourcesQuery) *NullableSourcesQuery
func (NullableSourcesQuery) Get ¶
func (v NullableSourcesQuery) Get() *SourcesQuery
func (NullableSourcesQuery) IsSet ¶
func (v NullableSourcesQuery) IsSet() bool
func (NullableSourcesQuery) MarshalJSON ¶
func (v NullableSourcesQuery) MarshalJSON() ([]byte, error)
func (*NullableSourcesQuery) Set ¶
func (v *NullableSourcesQuery) Set(val *SourcesQuery)
func (*NullableSourcesQuery) UnmarshalJSON ¶
func (v *NullableSourcesQuery) UnmarshalJSON(src []byte) error
func (*NullableSourcesQuery) Unset ¶
func (v *NullableSourcesQuery) Unset()
type NullableSourcesUserInput ¶
type NullableSourcesUserInput struct {
// contains filtered or unexported fields
}
func NewNullableSourcesUserInput ¶
func NewNullableSourcesUserInput(val *SourcesUserInput) *NullableSourcesUserInput
func (NullableSourcesUserInput) Get ¶
func (v NullableSourcesUserInput) Get() *SourcesUserInput
func (NullableSourcesUserInput) IsSet ¶
func (v NullableSourcesUserInput) IsSet() bool
func (NullableSourcesUserInput) MarshalJSON ¶
func (v NullableSourcesUserInput) MarshalJSON() ([]byte, error)
func (*NullableSourcesUserInput) Set ¶
func (v *NullableSourcesUserInput) Set(val *SourcesUserInput)
func (*NullableSourcesUserInput) UnmarshalJSON ¶
func (v *NullableSourcesUserInput) UnmarshalJSON(src []byte) error
func (*NullableSourcesUserInput) Unset ¶
func (v *NullableSourcesUserInput) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableSuccessStatus ¶
type NullableSuccessStatus struct {
// contains filtered or unexported fields
}
func NewNullableSuccessStatus ¶
func NewNullableSuccessStatus(val *SuccessStatus) *NullableSuccessStatus
func (NullableSuccessStatus) Get ¶
func (v NullableSuccessStatus) Get() *SuccessStatus
func (NullableSuccessStatus) IsSet ¶
func (v NullableSuccessStatus) IsSet() bool
func (NullableSuccessStatus) MarshalJSON ¶
func (v NullableSuccessStatus) MarshalJSON() ([]byte, error)
func (*NullableSuccessStatus) Set ¶
func (v *NullableSuccessStatus) Set(val *SuccessStatus)
func (*NullableSuccessStatus) UnmarshalJSON ¶
func (v *NullableSuccessStatus) UnmarshalJSON(src []byte) error
func (*NullableSuccessStatus) Unset ¶
func (v *NullableSuccessStatus) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableTopic ¶
type NullableTopic struct {
// contains filtered or unexported fields
}
func NewNullableTopic ¶
func NewNullableTopic(val *Topic) *NullableTopic
func (NullableTopic) Get ¶
func (v NullableTopic) Get() *Topic
func (NullableTopic) IsSet ¶
func (v NullableTopic) IsSet() bool
func (NullableTopic) MarshalJSON ¶
func (v NullableTopic) MarshalJSON() ([]byte, error)
func (*NullableTopic) Set ¶
func (v *NullableTopic) Set(val *Topic)
func (*NullableTopic) UnmarshalJSON ¶
func (v *NullableTopic) UnmarshalJSON(src []byte) error
func (*NullableTopic) Unset ¶
func (v *NullableTopic) Unset()
type PublishDatePrecision ¶
type PublishDatePrecision string
PublishDatePrecision the model 'PublishDatePrecision'
const ( PUBLISHDATEPRECISION_FULL PublishDatePrecision = "full" PUBLISHDATEPRECISION_TIMEZONE_UNKNOWN PublishDatePrecision = "timezone unknown" PUBLISHDATEPRECISION_DATE PublishDatePrecision = "date" )
List of publish_date_precision
func NewPublishDatePrecisionFromValue ¶
func NewPublishDatePrecisionFromValue(v string) (*PublishDatePrecision, error)
NewPublishDatePrecisionFromValue returns a pointer to a valid PublishDatePrecision for the value passed as argument, or an error if the value passed is not allowed by the enum
func (PublishDatePrecision) IsValid ¶
func (v PublishDatePrecision) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (PublishDatePrecision) Ptr ¶
func (v PublishDatePrecision) Ptr() *PublishDatePrecision
Ptr returns reference to publish_date_precision value
func (*PublishDatePrecision) UnmarshalJSON ¶
func (v *PublishDatePrecision) UnmarshalJSON(src []byte) error
type Search ¶
type Search struct { // Keyword/keywords you're searching for. This is the most important part of your query. Please, refer to the **Advanced Query Parameter** section of the docs for more examples and explanations. Q *string `json:"q,omitempty"` // The language you want to search in. Lang *string `json:"lang,omitempty"` // Inverse to the lang parameter. NotLang *string `json:"not_lang,omitempty"` // Precision of the publication date. PublishedDatePrecision *string `json:"published_date_precision,omitempty"` // YYYY/mm/dd From which point in time to start the search. The default timezone is UTC. Defaults to the past week. From *string `json:"from,omitempty"` // YYYY/mm/dd Until which point in time to search for. The default timezone is UTC. To *string `json:"to,omitempty"` SearchIn *string `json:"search_in,omitempty"` Countries *string `json:"countries,omitempty"` NotCountries *string `json:"not_countries,omitempty"` Topic *string `json:"topic,omitempty"` Sources *string `json:"sources,omitempty"` NotSources *string `json:"not_sources,omitempty"` RankedOnly *bool `json:"ranked_only,omitempty"` // `[0:999999]` The lowest boundary of the rank of a news website to filter by. Important: lower rank means that a source is more popular FromRank *int32 `json:"from_rank,omitempty"` // `[0:999999]` The upper boundary of the rank of a news website to filter by. ToRank *int32 `json:"to_rank,omitempty"` SortBy *string `json:"sort_by,omitempty"` PageSize *int32 `json:"page_size,omitempty"` Page *int32 `json:"page,omitempty"` }
Search struct for Search
func NewSearch ¶
func NewSearch() *Search
NewSearch instantiates a new Search object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSearchWithDefaults ¶
func NewSearchWithDefaults() *Search
NewSearchWithDefaults instantiates a new Search object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Search) GetCountries ¶
GetCountries returns the Countries field value if set, zero value otherwise.
func (*Search) GetCountriesOk ¶
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetFromOk ¶
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetFromRank ¶
GetFromRank returns the FromRank field value if set, zero value otherwise.
func (*Search) GetFromRankOk ¶
GetFromRankOk returns a tuple with the FromRank field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetLangOk ¶
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetNotCountries ¶
GetNotCountries returns the NotCountries field value if set, zero value otherwise.
func (*Search) GetNotCountriesOk ¶
GetNotCountriesOk returns a tuple with the NotCountries field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetNotLang ¶
GetNotLang returns the NotLang field value if set, zero value otherwise.
func (*Search) GetNotLangOk ¶
GetNotLangOk returns a tuple with the NotLang field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetNotSources ¶
GetNotSources returns the NotSources field value if set, zero value otherwise.
func (*Search) GetNotSourcesOk ¶
GetNotSourcesOk returns a tuple with the NotSources field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetPageOk ¶
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetPageSize ¶
GetPageSize returns the PageSize field value if set, zero value otherwise.
func (*Search) GetPageSizeOk ¶
GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetPublishedDatePrecision ¶
GetPublishedDatePrecision returns the PublishedDatePrecision field value if set, zero value otherwise.
func (*Search) GetPublishedDatePrecisionOk ¶
GetPublishedDatePrecisionOk returns a tuple with the PublishedDatePrecision field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetQOk ¶
GetQOk returns a tuple with the Q field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetRankedOnly ¶
GetRankedOnly returns the RankedOnly field value if set, zero value otherwise.
func (*Search) GetRankedOnlyOk ¶
GetRankedOnlyOk returns a tuple with the RankedOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetSearchIn ¶
GetSearchIn returns the SearchIn field value if set, zero value otherwise.
func (*Search) GetSearchInOk ¶
GetSearchInOk returns a tuple with the SearchIn field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetSortByOk ¶
GetSortByOk returns a tuple with the SortBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetSources ¶
GetSources returns the Sources field value if set, zero value otherwise.
func (*Search) GetSourcesOk ¶
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetToOk ¶
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetToRankOk ¶
GetToRankOk returns a tuple with the ToRank field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) GetTopicOk ¶
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Search) HasCountries ¶
HasCountries returns a boolean if a field has been set.
func (*Search) HasFromRank ¶
HasFromRank returns a boolean if a field has been set.
func (*Search) HasNotCountries ¶
HasNotCountries returns a boolean if a field has been set.
func (*Search) HasNotLang ¶
HasNotLang returns a boolean if a field has been set.
func (*Search) HasNotSources ¶
HasNotSources returns a boolean if a field has been set.
func (*Search) HasPageSize ¶
HasPageSize returns a boolean if a field has been set.
func (*Search) HasPublishedDatePrecision ¶
HasPublishedDatePrecision returns a boolean if a field has been set.
func (*Search) HasRankedOnly ¶
HasRankedOnly returns a boolean if a field has been set.
func (*Search) HasSearchIn ¶
HasSearchIn returns a boolean if a field has been set.
func (*Search) HasSources ¶
HasSources returns a boolean if a field has been set.
func (Search) MarshalJSON ¶
func (*Search) SetCountries ¶
SetCountries gets a reference to the given string and assigns it to the Countries field.
func (*Search) SetFrom ¶
SetFrom gets a reference to the given string and assigns it to the From field.
func (*Search) SetFromRank ¶
SetFromRank gets a reference to the given int32 and assigns it to the FromRank field.
func (*Search) SetLang ¶
SetLang gets a reference to the given string and assigns it to the Lang field.
func (*Search) SetNotCountries ¶
SetNotCountries gets a reference to the given string and assigns it to the NotCountries field.
func (*Search) SetNotLang ¶
SetNotLang gets a reference to the given string and assigns it to the NotLang field.
func (*Search) SetNotSources ¶
SetNotSources gets a reference to the given string and assigns it to the NotSources field.
func (*Search) SetPage ¶
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*Search) SetPageSize ¶
SetPageSize gets a reference to the given int32 and assigns it to the PageSize field.
func (*Search) SetPublishedDatePrecision ¶
SetPublishedDatePrecision gets a reference to the given string and assigns it to the PublishedDatePrecision field.
func (*Search) SetRankedOnly ¶
SetRankedOnly gets a reference to the given bool and assigns it to the RankedOnly field.
func (*Search) SetSearchIn ¶
SetSearchIn gets a reference to the given string and assigns it to the SearchIn field.
func (*Search) SetSortBy ¶
SetSortBy gets a reference to the given string and assigns it to the SortBy field.
func (*Search) SetSources ¶
SetSources gets a reference to the given string and assigns it to the Sources field.
type SearchApiGetRequest ¶
type SearchApiGetRequest struct { ApiService *SearchApiService // contains filtered or unexported fields }
func (SearchApiGetRequest) Countries ¶
func (r SearchApiGetRequest) Countries(countries string) SearchApiGetRequest
Countries where the news publisher is located. **Important**: This parameter is not responsible for the countries mentioned in the news article. One or multiple countries can be used in the search. The only acceptable format is [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) For example, `US,CA,MX` or just `US`
func (SearchApiGetRequest) Execute ¶
func (r SearchApiGetRequest) Execute() (*Model200Response, *http.Response, error)
func (SearchApiGetRequest) From ¶
func (r SearchApiGetRequest) From(from string) SearchApiGetRequest
`YYYY/mm/dd` From which point in time to start the search. The default timezone is UTC. Defaults to the past week.
func (SearchApiGetRequest) FromRank ¶
func (r SearchApiGetRequest) FromRank(fromRank int32) SearchApiGetRequest
`[0:999999]` The lowest boundary of the rank of a news website to filter by. Important: lower rank means that a source is more popular
func (SearchApiGetRequest) Lang ¶
func (r SearchApiGetRequest) Lang(lang string) SearchApiGetRequest
Specifies the languages of the search. For example: `en`. The only accepted format is [ISO 639-1 — 2](https://en.wikipedia.org/wiki/ISO_639-1) letter code.
func (SearchApiGetRequest) NotCountries ¶
func (r SearchApiGetRequest) NotCountries(notCountries string) SearchApiGetRequest
The inverse of the `countries` parameter.
func (SearchApiGetRequest) NotLang ¶
func (r SearchApiGetRequest) NotLang(notLang string) SearchApiGetRequest
Inverse to the `lang` parameter
func (SearchApiGetRequest) NotSources ¶
func (r SearchApiGetRequest) NotSources(notSources string) SearchApiGetRequest
One or more sources to be excluded from the search. Comma-separated list. For example: `nytimes.com,cnn.com,wsj.com`
func (SearchApiGetRequest) Page ¶
func (r SearchApiGetRequest) Page(page int32) SearchApiGetRequest
The number of the page. Use it to scroll through the results. This parameter is used to paginate: scroll through results because one API response cannot return more than 100 articles.
func (SearchApiGetRequest) PageSize ¶
func (r SearchApiGetRequest) PageSize(pageSize int32) SearchApiGetRequest
`[1:100]` How many articles to return per page.
func (SearchApiGetRequest) PublishedDatePrecision ¶
func (r SearchApiGetRequest) PublishedDatePrecision(publishedDatePrecision PublishDatePrecision) SearchApiGetRequest
There are 3 types of date precision we define: `full` — day and time of an article is correctly identified with the appropriate timezone `timezone unknown` — day and time of an article is correctly identified without timezone `date` — only the day is identified without an exact time
func (SearchApiGetRequest) Q ¶
func (r SearchApiGetRequest) Q(q string) SearchApiGetRequest
Keyword/keywords you're searching for. This is the most important part of your query. Please, refer to the **Advanced Query Parameter** section below of the docs for more examples and explanations
func (SearchApiGetRequest) RankedOnly ¶
func (r SearchApiGetRequest) RankedOnly(rankedOnly bool) SearchApiGetRequest
Default: `True` Limit the search only for the sources which are in the top 1 million online websites. Unranked sources are assigned a rank that equals `999999`
func (SearchApiGetRequest) SearchIn ¶
func (r SearchApiGetRequest) SearchIn(searchIn SearchIn) SearchApiGetRequest
By default, we search what you specified in the `q` parameter in both `title` and `summary` of the article. However, you can limit this to either `title` or `summary`
func (SearchApiGetRequest) SortBy ¶
func (r SearchApiGetRequest) SortBy(sortBy SortBy) SearchApiGetRequest
`relevancy` (default value) — the most relevant results first `date` — the most recently published results first `rank` — the results from the highest-ranked sources first
func (SearchApiGetRequest) Sources ¶
func (r SearchApiGetRequest) Sources(sources string) SearchApiGetRequest
One or more news resources to filter your search. It should be the normal form of the URL, For example: `nytimes.com,theguardian.com`
func (SearchApiGetRequest) To ¶
func (r SearchApiGetRequest) To(to string) SearchApiGetRequest
`YYYY/mm/dd` Until which point in time to search for. The default timezone is UTC.
func (SearchApiGetRequest) ToRank ¶
func (r SearchApiGetRequest) ToRank(toRank int32) SearchApiGetRequest
`[0:999999]` The upper boundary of the rank of a news website to filter by.
func (SearchApiGetRequest) Topic ¶
func (r SearchApiGetRequest) Topic(topic Topic) SearchApiGetRequest
Accepted values: `news`, `sport`, `tech`, `world`, `finance`, `politics`, `business`, `economics`, `entertainment`, `beauty`, `travel`, `music`, `food`, `science`, `gaming` The topic to which you want to restrict the articles of your choice. Not all news articles are assigned with a topic, therefore, we cannot guarantee that 100% of topics talking about technology will be assigned a tech label.
type SearchApiPostRequest ¶
type SearchApiPostRequest struct { ApiService *SearchApiService // contains filtered or unexported fields }
func (SearchApiPostRequest) Execute ¶
func (r SearchApiPostRequest) Execute() (*Model200Response, *http.Response, error)
func (SearchApiPostRequest) Search ¶
func (r SearchApiPostRequest) Search(search Search) SearchApiPostRequest
type SearchApiService ¶
type SearchApiService service
SearchApiService SearchApi service
func (*SearchApiService) Get ¶
func (a *SearchApiService) Get() SearchApiGetRequest
Get Search for specific news articles
Main endpoint that allows you to find news article by keyword, date, language, country, etc.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return SearchApiGetRequest
func (*SearchApiService) GetExecute ¶
func (a *SearchApiService) GetExecute(r SearchApiGetRequest) (*Model200Response, *http.Response, error)
Execute executes the request
@return Model200Response
func (*SearchApiService) Post ¶
func (a *SearchApiService) Post() SearchApiPostRequest
Post Search for specific news articles
Main endpoint that allows you to find news article by keyword, date, language, country, etc.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return SearchApiPostRequest
func (*SearchApiService) PostExecute ¶
func (a *SearchApiService) PostExecute(r SearchApiPostRequest) (*Model200Response, *http.Response, error)
Execute executes the request
@return Model200Response
type SearchIn ¶
type SearchIn string
SearchIn the model 'SearchIn'
const ( SEARCHIN_TITLE SearchIn = "title" SEARCHIN_SUMMARY SearchIn = "summary" SEARCHIN_TITLE_SUMMARY SearchIn = "title_summary" )
List of search_in
func NewSearchInFromValue ¶
NewSearchInFromValue returns a pointer to a valid SearchIn for the value passed as argument, or an error if the value passed is not allowed by the enum
func (*SearchIn) UnmarshalJSON ¶
type SearchUserInput ¶
type SearchUserInput struct { Q *string `json:"q,omitempty"` SearchIn []string `json:"search_in,omitempty"` Lang []string `json:"lang,omitempty"` NotLang []string `json:"not_lang,omitempty"` Countries []string `json:"countries,omitempty"` NotCountries []string `json:"not_countries,omitempty"` From *string `json:"from,omitempty"` To NullableString `json:"to,omitempty"` RankedOnly *string `json:"ranked_only,omitempty"` FromRank NullableInt32 `json:"from_rank,omitempty"` ToRank NullableInt32 `json:"to_rank,omitempty"` SortBy *string `json:"sort_by,omitempty"` Page *int32 `json:"page,omitempty"` Size *int32 `json:"size,omitempty"` Sources []string `json:"sources,omitempty"` NotSources []string `json:"not_sources,omitempty"` Topic NullableString `json:"topic,omitempty"` PublishedDatePrecision NullableString `json:"published_date_precision,omitempty"` }
SearchUserInput struct for SearchUserInput
func NewSearchUserInput ¶
func NewSearchUserInput() *SearchUserInput
NewSearchUserInput instantiates a new SearchUserInput object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSearchUserInputWithDefaults ¶
func NewSearchUserInputWithDefaults() *SearchUserInput
NewSearchUserInputWithDefaults instantiates a new SearchUserInput object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*SearchUserInput) GetCountries ¶
func (o *SearchUserInput) GetCountries() []string
GetCountries returns the Countries field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetCountriesOk ¶
func (o *SearchUserInput) GetCountriesOk() ([]string, bool)
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetFrom ¶
func (o *SearchUserInput) GetFrom() string
GetFrom returns the From field value if set, zero value otherwise.
func (*SearchUserInput) GetFromOk ¶
func (o *SearchUserInput) GetFromOk() (*string, bool)
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetFromRank ¶
func (o *SearchUserInput) GetFromRank() int32
GetFromRank returns the FromRank field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetFromRankOk ¶
func (o *SearchUserInput) GetFromRankOk() (*int32, bool)
GetFromRankOk returns a tuple with the FromRank field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetLang ¶
func (o *SearchUserInput) GetLang() []string
GetLang returns the Lang field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetLangOk ¶
func (o *SearchUserInput) GetLangOk() ([]string, bool)
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetNotCountries ¶
func (o *SearchUserInput) GetNotCountries() []string
GetNotCountries returns the NotCountries field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetNotCountriesOk ¶
func (o *SearchUserInput) GetNotCountriesOk() ([]string, bool)
GetNotCountriesOk returns a tuple with the NotCountries field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetNotLang ¶
func (o *SearchUserInput) GetNotLang() []string
GetNotLang returns the NotLang field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetNotLangOk ¶
func (o *SearchUserInput) GetNotLangOk() ([]string, bool)
GetNotLangOk returns a tuple with the NotLang field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetNotSources ¶
func (o *SearchUserInput) GetNotSources() []string
GetNotSources returns the NotSources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetNotSourcesOk ¶
func (o *SearchUserInput) GetNotSourcesOk() ([]string, bool)
GetNotSourcesOk returns a tuple with the NotSources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetPage ¶
func (o *SearchUserInput) GetPage() int32
GetPage returns the Page field value if set, zero value otherwise.
func (*SearchUserInput) GetPageOk ¶
func (o *SearchUserInput) GetPageOk() (*int32, bool)
GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetPublishedDatePrecision ¶
func (o *SearchUserInput) GetPublishedDatePrecision() string
GetPublishedDatePrecision returns the PublishedDatePrecision field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetPublishedDatePrecisionOk ¶
func (o *SearchUserInput) GetPublishedDatePrecisionOk() (*string, bool)
GetPublishedDatePrecisionOk returns a tuple with the PublishedDatePrecision field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetQ ¶
func (o *SearchUserInput) GetQ() string
GetQ returns the Q field value if set, zero value otherwise.
func (*SearchUserInput) GetQOk ¶
func (o *SearchUserInput) GetQOk() (*string, bool)
GetQOk returns a tuple with the Q field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetRankedOnly ¶
func (o *SearchUserInput) GetRankedOnly() string
GetRankedOnly returns the RankedOnly field value if set, zero value otherwise.
func (*SearchUserInput) GetRankedOnlyOk ¶
func (o *SearchUserInput) GetRankedOnlyOk() (*string, bool)
GetRankedOnlyOk returns a tuple with the RankedOnly field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetSearchIn ¶
func (o *SearchUserInput) GetSearchIn() []string
GetSearchIn returns the SearchIn field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetSearchInOk ¶
func (o *SearchUserInput) GetSearchInOk() ([]string, bool)
GetSearchInOk returns a tuple with the SearchIn field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetSize ¶
func (o *SearchUserInput) GetSize() int32
GetSize returns the Size field value if set, zero value otherwise.
func (*SearchUserInput) GetSizeOk ¶
func (o *SearchUserInput) GetSizeOk() (*int32, bool)
GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetSortBy ¶
func (o *SearchUserInput) GetSortBy() string
GetSortBy returns the SortBy field value if set, zero value otherwise.
func (*SearchUserInput) GetSortByOk ¶
func (o *SearchUserInput) GetSortByOk() (*string, bool)
GetSortByOk returns a tuple with the SortBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SearchUserInput) GetSources ¶
func (o *SearchUserInput) GetSources() []string
GetSources returns the Sources field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetSourcesOk ¶
func (o *SearchUserInput) GetSourcesOk() ([]string, bool)
GetSourcesOk returns a tuple with the Sources field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetTo ¶
func (o *SearchUserInput) GetTo() string
GetTo returns the To field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetToOk ¶
func (o *SearchUserInput) GetToOk() (*string, bool)
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetToRank ¶
func (o *SearchUserInput) GetToRank() int32
GetToRank returns the ToRank field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetToRankOk ¶
func (o *SearchUserInput) GetToRankOk() (*int32, bool)
GetToRankOk returns a tuple with the ToRank field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) GetTopic ¶
func (o *SearchUserInput) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SearchUserInput) GetTopicOk ¶
func (o *SearchUserInput) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SearchUserInput) HasCountries ¶
func (o *SearchUserInput) HasCountries() bool
HasCountries returns a boolean if a field has been set.
func (*SearchUserInput) HasFrom ¶
func (o *SearchUserInput) HasFrom() bool
HasFrom returns a boolean if a field has been set.
func (*SearchUserInput) HasFromRank ¶
func (o *SearchUserInput) HasFromRank() bool
HasFromRank returns a boolean if a field has been set.
func (*SearchUserInput) HasLang ¶
func (o *SearchUserInput) HasLang() bool
HasLang returns a boolean if a field has been set.
func (*SearchUserInput) HasNotCountries ¶
func (o *SearchUserInput) HasNotCountries() bool
HasNotCountries returns a boolean if a field has been set.
func (*SearchUserInput) HasNotLang ¶
func (o *SearchUserInput) HasNotLang() bool
HasNotLang returns a boolean if a field has been set.
func (*SearchUserInput) HasNotSources ¶
func (o *SearchUserInput) HasNotSources() bool
HasNotSources returns a boolean if a field has been set.
func (*SearchUserInput) HasPage ¶
func (o *SearchUserInput) HasPage() bool
HasPage returns a boolean if a field has been set.
func (*SearchUserInput) HasPublishedDatePrecision ¶
func (o *SearchUserInput) HasPublishedDatePrecision() bool
HasPublishedDatePrecision returns a boolean if a field has been set.
func (*SearchUserInput) HasQ ¶
func (o *SearchUserInput) HasQ() bool
HasQ returns a boolean if a field has been set.
func (*SearchUserInput) HasRankedOnly ¶
func (o *SearchUserInput) HasRankedOnly() bool
HasRankedOnly returns a boolean if a field has been set.
func (*SearchUserInput) HasSearchIn ¶
func (o *SearchUserInput) HasSearchIn() bool
HasSearchIn returns a boolean if a field has been set.
func (*SearchUserInput) HasSize ¶
func (o *SearchUserInput) HasSize() bool
HasSize returns a boolean if a field has been set.
func (*SearchUserInput) HasSortBy ¶
func (o *SearchUserInput) HasSortBy() bool
HasSortBy returns a boolean if a field has been set.
func (*SearchUserInput) HasSources ¶
func (o *SearchUserInput) HasSources() bool
HasSources returns a boolean if a field has been set.
func (*SearchUserInput) HasTo ¶
func (o *SearchUserInput) HasTo() bool
HasTo returns a boolean if a field has been set.
func (*SearchUserInput) HasToRank ¶
func (o *SearchUserInput) HasToRank() bool
HasToRank returns a boolean if a field has been set.
func (*SearchUserInput) HasTopic ¶
func (o *SearchUserInput) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (SearchUserInput) MarshalJSON ¶
func (o SearchUserInput) MarshalJSON() ([]byte, error)
func (*SearchUserInput) SetCountries ¶
func (o *SearchUserInput) SetCountries(v []string)
SetCountries gets a reference to the given []string and assigns it to the Countries field.
func (*SearchUserInput) SetFrom ¶
func (o *SearchUserInput) SetFrom(v string)
SetFrom gets a reference to the given string and assigns it to the From field.
func (*SearchUserInput) SetFromRank ¶
func (o *SearchUserInput) SetFromRank(v int32)
SetFromRank gets a reference to the given NullableInt32 and assigns it to the FromRank field.
func (*SearchUserInput) SetFromRankNil ¶
func (o *SearchUserInput) SetFromRankNil()
SetFromRankNil sets the value for FromRank to be an explicit nil
func (*SearchUserInput) SetLang ¶
func (o *SearchUserInput) SetLang(v []string)
SetLang gets a reference to the given []string and assigns it to the Lang field.
func (*SearchUserInput) SetNotCountries ¶
func (o *SearchUserInput) SetNotCountries(v []string)
SetNotCountries gets a reference to the given []string and assigns it to the NotCountries field.
func (*SearchUserInput) SetNotLang ¶
func (o *SearchUserInput) SetNotLang(v []string)
SetNotLang gets a reference to the given []string and assigns it to the NotLang field.
func (*SearchUserInput) SetNotSources ¶
func (o *SearchUserInput) SetNotSources(v []string)
SetNotSources gets a reference to the given []string and assigns it to the NotSources field.
func (*SearchUserInput) SetPage ¶
func (o *SearchUserInput) SetPage(v int32)
SetPage gets a reference to the given int32 and assigns it to the Page field.
func (*SearchUserInput) SetPublishedDatePrecision ¶
func (o *SearchUserInput) SetPublishedDatePrecision(v string)
SetPublishedDatePrecision gets a reference to the given NullableString and assigns it to the PublishedDatePrecision field.
func (*SearchUserInput) SetPublishedDatePrecisionNil ¶
func (o *SearchUserInput) SetPublishedDatePrecisionNil()
SetPublishedDatePrecisionNil sets the value for PublishedDatePrecision to be an explicit nil
func (*SearchUserInput) SetQ ¶
func (o *SearchUserInput) SetQ(v string)
SetQ gets a reference to the given string and assigns it to the Q field.
func (*SearchUserInput) SetRankedOnly ¶
func (o *SearchUserInput) SetRankedOnly(v string)
SetRankedOnly gets a reference to the given string and assigns it to the RankedOnly field.
func (*SearchUserInput) SetSearchIn ¶
func (o *SearchUserInput) SetSearchIn(v []string)
SetSearchIn gets a reference to the given []string and assigns it to the SearchIn field.
func (*SearchUserInput) SetSize ¶
func (o *SearchUserInput) SetSize(v int32)
SetSize gets a reference to the given int32 and assigns it to the Size field.
func (*SearchUserInput) SetSortBy ¶
func (o *SearchUserInput) SetSortBy(v string)
SetSortBy gets a reference to the given string and assigns it to the SortBy field.
func (*SearchUserInput) SetSources ¶
func (o *SearchUserInput) SetSources(v []string)
SetSources gets a reference to the given []string and assigns it to the Sources field.
func (*SearchUserInput) SetTo ¶
func (o *SearchUserInput) SetTo(v string)
SetTo gets a reference to the given NullableString and assigns it to the To field.
func (*SearchUserInput) SetToNil ¶
func (o *SearchUserInput) SetToNil()
SetToNil sets the value for To to be an explicit nil
func (*SearchUserInput) SetToRank ¶
func (o *SearchUserInput) SetToRank(v int32)
SetToRank gets a reference to the given NullableInt32 and assigns it to the ToRank field.
func (*SearchUserInput) SetToRankNil ¶
func (o *SearchUserInput) SetToRankNil()
SetToRankNil sets the value for ToRank to be an explicit nil
func (*SearchUserInput) SetTopic ¶
func (o *SearchUserInput) SetTopic(v string)
SetTopic gets a reference to the given NullableString and assigns it to the Topic field.
func (*SearchUserInput) SetTopicNil ¶
func (o *SearchUserInput) SetTopicNil()
SetTopicNil sets the value for Topic to be an explicit nil
func (*SearchUserInput) UnsetFromRank ¶
func (o *SearchUserInput) UnsetFromRank()
UnsetFromRank ensures that no value is present for FromRank, not even an explicit nil
func (*SearchUserInput) UnsetPublishedDatePrecision ¶
func (o *SearchUserInput) UnsetPublishedDatePrecision()
UnsetPublishedDatePrecision ensures that no value is present for PublishedDatePrecision, not even an explicit nil
func (*SearchUserInput) UnsetTo ¶
func (o *SearchUserInput) UnsetTo()
UnsetTo ensures that no value is present for To, not even an explicit nil
func (*SearchUserInput) UnsetToRank ¶
func (o *SearchUserInput) UnsetToRank()
UnsetToRank ensures that no value is present for ToRank, not even an explicit nil
func (*SearchUserInput) UnsetTopic ¶
func (o *SearchUserInput) UnsetTopic()
UnsetTopic ensures that no value is present for Topic, not even an explicit nil
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type SortBy ¶
type SortBy string
SortBy the model 'SortBy'
const ( SORTBY_RELEVANCY SortBy = "relevancy" SORTBY_DATE SortBy = "date" SORTBY_RANK SortBy = "rank" )
List of sort_by
func NewSortByFromValue ¶
NewSortByFromValue returns a pointer to a valid SortBy for the value passed as argument, or an error if the value passed is not allowed by the enum
func (*SortBy) UnmarshalJSON ¶
type SourcesApiGetRequest ¶
type SourcesApiGetRequest struct { ApiService *SourcesApiService // contains filtered or unexported fields }
func (SourcesApiGetRequest) Countries ¶
func (r SourcesApiGetRequest) Countries(countries string) SourcesApiGetRequest
Countries where the news publisher is located. **Important**: This parameter is not responsible for the countries mentioned in the news article. One or multiple countries can be used in the search. The only acceptable format is [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) For example, `US,CA,MX` or just `US`
func (SourcesApiGetRequest) Execute ¶
func (r SourcesApiGetRequest) Execute() (*Model200ResponseSources, *http.Response, error)
func (SourcesApiGetRequest) Lang ¶
func (r SourcesApiGetRequest) Lang(lang string) SourcesApiGetRequest
Specifies the languages of the search. For example: `en`. The only accepted format is [ISO 639-1 — 2](https://en.wikipedia.org/wiki/ISO_639-1) letter code.
func (SourcesApiGetRequest) Topic ¶
func (r SourcesApiGetRequest) Topic(topic Topic) SourcesApiGetRequest
Accepted values: `news`, `sport`, `tech`, `world`, `finance`, `politics`, `business`, `economics`, `entertainment`, `beauty`, `travel`, `music`, `food`, `science`, `gaming` The topic to which you want to restrict the articles of your choice. Not all news articles are assigned with a topic, therefore, we cannot guarantee that 100% of topics talking about technology will be assigned a tech label.
type SourcesApiPostRequest ¶
type SourcesApiPostRequest struct { ApiService *SourcesApiService // contains filtered or unexported fields }
func (SourcesApiPostRequest) Execute ¶
func (r SourcesApiPostRequest) Execute() (*Model200ResponseSources, *http.Response, error)
func (SourcesApiPostRequest) SourcesQuery ¶
func (r SourcesApiPostRequest) SourcesQuery(sourcesQuery SourcesQuery) SourcesApiPostRequest
type SourcesApiService ¶
type SourcesApiService service
SourcesApiService SourcesApi service
func (*SourcesApiService) Get ¶
func (a *SourcesApiService) Get() SourcesApiGetRequest
Get Get top news sources supported by NewsCatcher.
Returns a list of the top 100 supported news websites. Overall, we support over 60,000 websites. Using this endpoint, you may find the top 100 for your specific language, country, topic combination.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return SourcesApiGetRequest
func (*SourcesApiService) GetExecute ¶
func (a *SourcesApiService) GetExecute(r SourcesApiGetRequest) (*Model200ResponseSources, *http.Response, error)
Execute executes the request
@return Model200ResponseSources
func (*SourcesApiService) Post ¶
func (a *SourcesApiService) Post() SourcesApiPostRequest
Post Get top news sources supported by NewsCatcher.
Returns a list of the top 100 supported news websites. Overall, we support over 60,000 websites. Using this endpoint, you may find the top 100 for your specific language, country, topic combination.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return SourcesApiPostRequest
func (*SourcesApiService) PostExecute ¶
func (a *SourcesApiService) PostExecute(r SourcesApiPostRequest) (*Model200ResponseSources, *http.Response, error)
Execute executes the request
@return Model200ResponseSources
type SourcesQuery ¶
type SourcesQuery struct { // The language you want to search in. Lang *string `json:"lang,omitempty"` Countries *string `json:"countries,omitempty"` Topic *string `json:"topic,omitempty"` }
SourcesQuery struct for SourcesQuery
func NewSourcesQuery ¶
func NewSourcesQuery() *SourcesQuery
NewSourcesQuery instantiates a new SourcesQuery object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSourcesQueryWithDefaults ¶
func NewSourcesQueryWithDefaults() *SourcesQuery
NewSourcesQueryWithDefaults instantiates a new SourcesQuery object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*SourcesQuery) GetCountries ¶
func (o *SourcesQuery) GetCountries() string
GetCountries returns the Countries field value if set, zero value otherwise.
func (*SourcesQuery) GetCountriesOk ¶
func (o *SourcesQuery) GetCountriesOk() (*string, bool)
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SourcesQuery) GetLang ¶
func (o *SourcesQuery) GetLang() string
GetLang returns the Lang field value if set, zero value otherwise.
func (*SourcesQuery) GetLangOk ¶
func (o *SourcesQuery) GetLangOk() (*string, bool)
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SourcesQuery) GetTopic ¶
func (o *SourcesQuery) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise.
func (*SourcesQuery) GetTopicOk ¶
func (o *SourcesQuery) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set.
func (*SourcesQuery) HasCountries ¶
func (o *SourcesQuery) HasCountries() bool
HasCountries returns a boolean if a field has been set.
func (*SourcesQuery) HasLang ¶
func (o *SourcesQuery) HasLang() bool
HasLang returns a boolean if a field has been set.
func (*SourcesQuery) HasTopic ¶
func (o *SourcesQuery) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (SourcesQuery) MarshalJSON ¶
func (o SourcesQuery) MarshalJSON() ([]byte, error)
func (*SourcesQuery) SetCountries ¶
func (o *SourcesQuery) SetCountries(v string)
SetCountries gets a reference to the given string and assigns it to the Countries field.
func (*SourcesQuery) SetLang ¶
func (o *SourcesQuery) SetLang(v string)
SetLang gets a reference to the given string and assigns it to the Lang field.
func (*SourcesQuery) SetTopic ¶
func (o *SourcesQuery) SetTopic(v string)
SetTopic gets a reference to the given string and assigns it to the Topic field.
type SourcesUserInput ¶
type SourcesUserInput struct { Lang []string `json:"lang,omitempty"` Countries []string `json:"countries,omitempty"` Topic NullableString `json:"topic,omitempty"` }
SourcesUserInput struct for SourcesUserInput
func NewSourcesUserInput ¶
func NewSourcesUserInput() *SourcesUserInput
NewSourcesUserInput instantiates a new SourcesUserInput object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSourcesUserInputWithDefaults ¶
func NewSourcesUserInputWithDefaults() *SourcesUserInput
NewSourcesUserInputWithDefaults instantiates a new SourcesUserInput object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*SourcesUserInput) GetCountries ¶
func (o *SourcesUserInput) GetCountries() []string
GetCountries returns the Countries field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SourcesUserInput) GetCountriesOk ¶
func (o *SourcesUserInput) GetCountriesOk() ([]string, bool)
GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SourcesUserInput) GetLang ¶
func (o *SourcesUserInput) GetLang() []string
GetLang returns the Lang field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SourcesUserInput) GetLangOk ¶
func (o *SourcesUserInput) GetLangOk() ([]string, bool)
GetLangOk returns a tuple with the Lang field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SourcesUserInput) GetTopic ¶
func (o *SourcesUserInput) GetTopic() string
GetTopic returns the Topic field value if set, zero value otherwise (both if not set or set to explicit null).
func (*SourcesUserInput) GetTopicOk ¶
func (o *SourcesUserInput) GetTopicOk() (*string, bool)
GetTopicOk returns a tuple with the Topic field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*SourcesUserInput) HasCountries ¶
func (o *SourcesUserInput) HasCountries() bool
HasCountries returns a boolean if a field has been set.
func (*SourcesUserInput) HasLang ¶
func (o *SourcesUserInput) HasLang() bool
HasLang returns a boolean if a field has been set.
func (*SourcesUserInput) HasTopic ¶
func (o *SourcesUserInput) HasTopic() bool
HasTopic returns a boolean if a field has been set.
func (SourcesUserInput) MarshalJSON ¶
func (o SourcesUserInput) MarshalJSON() ([]byte, error)
func (*SourcesUserInput) SetCountries ¶
func (o *SourcesUserInput) SetCountries(v []string)
SetCountries gets a reference to the given []string and assigns it to the Countries field.
func (*SourcesUserInput) SetLang ¶
func (o *SourcesUserInput) SetLang(v []string)
SetLang gets a reference to the given []string and assigns it to the Lang field.
func (*SourcesUserInput) SetTopic ¶
func (o *SourcesUserInput) SetTopic(v string)
SetTopic gets a reference to the given NullableString and assigns it to the Topic field.
func (*SourcesUserInput) SetTopicNil ¶
func (o *SourcesUserInput) SetTopicNil()
SetTopicNil sets the value for Topic to be an explicit nil
func (*SourcesUserInput) UnsetTopic ¶
func (o *SourcesUserInput) UnsetTopic()
UnsetTopic ensures that no value is present for Topic, not even an explicit nil
type SuccessStatus ¶
type SuccessStatus string
SuccessStatus the model 'SuccessStatus'
const ( SUCCESSSTATUS_OK SuccessStatus = "ok" SUCCESSSTATUS_NO_MATCHES_FOR_YOUR_SEARCH SuccessStatus = "No matches for your search." )
List of success_status
func NewSuccessStatusFromValue ¶
func NewSuccessStatusFromValue(v string) (*SuccessStatus, error)
NewSuccessStatusFromValue returns a pointer to a valid SuccessStatus for the value passed as argument, or an error if the value passed is not allowed by the enum
func (SuccessStatus) IsValid ¶
func (v SuccessStatus) IsValid() bool
IsValid return true if the value is valid for the enum, false otherwise
func (SuccessStatus) Ptr ¶
func (v SuccessStatus) Ptr() *SuccessStatus
Ptr returns reference to success_status value
func (*SuccessStatus) UnmarshalJSON ¶
func (v *SuccessStatus) UnmarshalJSON(src []byte) error
type Topic ¶
type Topic string
Topic the model 'Topic'
const ( TOPIC_NEWS Topic = "news" TOPIC_SPORT Topic = "sport" TOPIC_TECH Topic = "tech" TOPIC_WORLD Topic = "world" TOPIC_FINANCE Topic = "finance" TOPIC_POLITICS Topic = "politics" TOPIC_BUSINESS Topic = "business" TOPIC_ECONOMICS Topic = "economics" TOPIC_ENTERTAINMENT Topic = "entertainment" TOPIC_BEAUTY Topic = "beauty" TOPIC_TRAVEL Topic = "travel" TOPIC_MUSIC Topic = "music" TOPIC_FOOD Topic = "food" TOPIC_SCIENCE Topic = "science" TOPIC_GAMING Topic = "gaming" )
List of topic
func NewTopicFromValue ¶
NewTopicFromValue returns a pointer to a valid Topic for the value passed as argument, or an error if the value passed is not allowed by the enum
func (*Topic) UnmarshalJSON ¶
Source Files ¶
- api_latest_headlines.go
- api_search.go
- api_sources.go
- client.go
- configuration.go
- model_200_response.go
- model_200_response_latest.go
- model_200_response_sources.go
- model_article_inner.go
- model_error_response.go
- model_error_status.go
- model_lang.go
- model_latest_headlines.go
- model_latest_headlines_user_input.go
- model_publish_date_precision.go
- model_search.go
- model_search_in.go
- model_search_user_input.go
- model_sort_by.go
- model_sources_query.go
- model_sources_user_input.go
- model_success_status.go
- model_topic.go
- response.go
- utils.go