client

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes bearerAuthContextKey = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateFeedRequest

func NewCreateFeedRequest(server string, body CreateFeedJSONRequestBody) (*http.Request, error)

NewCreateFeedRequest calls the generic CreateFeed builder with application/json body

func NewCreateFeedRequestWithBody

func NewCreateFeedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateFeedRequestWithBody generates requests for CreateFeed with any type of body

func NewCreateSchedulerJobRequest

func NewCreateSchedulerJobRequest(server string, body CreateSchedulerJobJSONRequestBody) (*http.Request, error)

NewCreateSchedulerJobRequest calls the generic CreateSchedulerJob builder with application/json body

func NewCreateSchedulerJobRequestWithBody

func NewCreateSchedulerJobRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSchedulerJobRequestWithBody generates requests for CreateSchedulerJob with any type of body

func NewDeleteArticleRequest

func NewDeleteArticleRequest(server string, id string) (*http.Request, error)

NewDeleteArticleRequest generates requests for DeleteArticle

func NewDeleteFeedRequest

func NewDeleteFeedRequest(server string, id string) (*http.Request, error)

NewDeleteFeedRequest generates requests for DeleteFeed

func NewDeleteSchedulerJobRequest

func NewDeleteSchedulerJobRequest(server string, id string) (*http.Request, error)

NewDeleteSchedulerJobRequest generates requests for DeleteSchedulerJob

func NewGetArticleRequest

func NewGetArticleRequest(server string, id string, params *GetArticleParams) (*http.Request, error)

NewGetArticleRequest generates requests for GetArticle

func NewGetDigestRequest

func NewGetDigestRequest(server string) (*http.Request, error)

NewGetDigestRequest generates requests for GetDigest

func NewGetFeedRequest

func NewGetFeedRequest(server string, id string) (*http.Request, error)

NewGetFeedRequest generates requests for GetFeed

func NewListArticlesRequest

func NewListArticlesRequest(server string, params *ListArticlesParams) (*http.Request, error)

NewListArticlesRequest generates requests for ListArticles

func NewListFeedEntriesRequest

func NewListFeedEntriesRequest(server string, feedId string, params *ListFeedEntriesParams) (*http.Request, error)

NewListFeedEntriesRequest generates requests for ListFeedEntries

func NewListFeedsRequest

func NewListFeedsRequest(server string, params *ListFeedsParams) (*http.Request, error)

NewListFeedsRequest generates requests for ListFeeds

func NewListSchedulerJobRunsRequest

func NewListSchedulerJobRunsRequest(server string, id string) (*http.Request, error)

NewListSchedulerJobRunsRequest generates requests for ListSchedulerJobRuns

func NewListSchedulerJobsRequest

func NewListSchedulerJobsRequest(server string) (*http.Request, error)

NewListSchedulerJobsRequest generates requests for ListSchedulerJobs

func NewPollFeedRequest

func NewPollFeedRequest(server string, id string, params *PollFeedParams) (*http.Request, error)

NewPollFeedRequest generates requests for PollFeed

func NewSaveArticleRequest

func NewSaveArticleRequest(server string, body SaveArticleJSONRequestBody) (*http.Request, error)

NewSaveArticleRequest calls the generic SaveArticle builder with application/json body

func NewSaveArticleRequestWithBody

func NewSaveArticleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSaveArticleRequestWithBody generates requests for SaveArticle with any type of body

func NewTriggerSchedulerJobRequest

func NewTriggerSchedulerJobRequest(server string, id string) (*http.Request, error)

NewTriggerSchedulerJobRequest generates requests for TriggerSchedulerJob

func NewUpdateArticleRequest

func NewUpdateArticleRequest(server string, id string, body UpdateArticleJSONRequestBody) (*http.Request, error)

NewUpdateArticleRequest calls the generic UpdateArticle builder with application/json body

func NewUpdateArticleRequestWithBody

func NewUpdateArticleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateArticleRequestWithBody generates requests for UpdateArticle with any type of body

func NewUpdateFeedEntryRequest

func NewUpdateFeedEntryRequest(server string, feedId string, id string, body UpdateFeedEntryJSONRequestBody) (*http.Request, error)

NewUpdateFeedEntryRequest calls the generic UpdateFeedEntry builder with application/json body

func NewUpdateFeedEntryRequestWithBody

func NewUpdateFeedEntryRequestWithBody(server string, feedId string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFeedEntryRequestWithBody generates requests for UpdateFeedEntry with any type of body

func NewUpdateFeedRequest

func NewUpdateFeedRequest(server string, id string, body UpdateFeedJSONRequestBody) (*http.Request, error)

NewUpdateFeedRequest calls the generic UpdateFeed builder with application/json body

func NewUpdateFeedRequestWithBody

func NewUpdateFeedRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFeedRequestWithBody generates requests for UpdateFeed with any type of body

func NewUpdateSchedulerJobRequest

func NewUpdateSchedulerJobRequest(server string, id string, body UpdateSchedulerJobJSONRequestBody) (*http.Request, error)

NewUpdateSchedulerJobRequest calls the generic UpdateSchedulerJob builder with application/json body

func NewUpdateSchedulerJobRequestWithBody

func NewUpdateSchedulerJobRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSchedulerJobRequestWithBody generates requests for UpdateSchedulerJob with any type of body

Types

type Article

type Article = externalRef0.Article

Article defines model for Article.

type ArticleList

type ArticleList = externalRef0.ArticleList

ArticleList defines model for ArticleList.

type ArticleStatus

type ArticleStatus = externalRef0.ArticleStatus

ArticleStatus defines model for ArticleStatus.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateFeed

func (c *Client) CreateFeed(ctx context.Context, body CreateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFeedWithBody

func (c *Client) CreateFeedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSchedulerJob

func (c *Client) CreateSchedulerJob(ctx context.Context, body CreateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSchedulerJobWithBody

func (c *Client) CreateSchedulerJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteArticle

func (c *Client) DeleteArticle(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteFeed

func (c *Client) DeleteFeed(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSchedulerJob

func (c *Client) DeleteSchedulerJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetArticle

func (c *Client) GetArticle(ctx context.Context, id string, params *GetArticleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDigest

func (c *Client) GetDigest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFeed

func (c *Client) GetFeed(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListArticles

func (c *Client) ListArticles(ctx context.Context, params *ListArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListFeedEntries

func (c *Client) ListFeedEntries(ctx context.Context, feedId string, params *ListFeedEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListFeeds

func (c *Client) ListFeeds(ctx context.Context, params *ListFeedsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSchedulerJobRuns

func (c *Client) ListSchedulerJobRuns(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSchedulerJobs

func (c *Client) ListSchedulerJobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PollFeed

func (c *Client) PollFeed(ctx context.Context, id string, params *PollFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SaveArticle

func (c *Client) SaveArticle(ctx context.Context, body SaveArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SaveArticleWithBody

func (c *Client) SaveArticleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerSchedulerJob

func (c *Client) TriggerSchedulerJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArticle

func (c *Client) UpdateArticle(ctx context.Context, id string, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateArticleWithBody

func (c *Client) UpdateArticleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeed

func (c *Client) UpdateFeed(ctx context.Context, id string, body UpdateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedEntry

func (c *Client) UpdateFeedEntry(ctx context.Context, feedId string, id string, body UpdateFeedEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedEntryWithBody

func (c *Client) UpdateFeedEntryWithBody(ctx context.Context, feedId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedWithBody

func (c *Client) UpdateFeedWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSchedulerJob

func (c *Client) UpdateSchedulerJob(ctx context.Context, id string, body UpdateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSchedulerJobWithBody

func (c *Client) UpdateSchedulerJobWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListArticles request
	ListArticles(ctx context.Context, params *ListArticlesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveArticleWithBody request with any body
	SaveArticleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SaveArticle(ctx context.Context, body SaveArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteArticle request
	DeleteArticle(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetArticle request
	GetArticle(ctx context.Context, id string, params *GetArticleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateArticleWithBody request with any body
	UpdateArticleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateArticle(ctx context.Context, id string, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDigest request
	GetDigest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFeeds request
	ListFeeds(ctx context.Context, params *ListFeedsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFeedWithBody request with any body
	CreateFeedWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateFeed(ctx context.Context, body CreateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFeedEntries request
	ListFeedEntries(ctx context.Context, feedId string, params *ListFeedEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFeedEntryWithBody request with any body
	UpdateFeedEntryWithBody(ctx context.Context, feedId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFeedEntry(ctx context.Context, feedId string, id string, body UpdateFeedEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFeed request
	DeleteFeed(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFeed request
	GetFeed(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFeedWithBody request with any body
	UpdateFeedWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFeed(ctx context.Context, id string, body UpdateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PollFeed request
	PollFeed(ctx context.Context, id string, params *PollFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSchedulerJobs request
	ListSchedulerJobs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSchedulerJobWithBody request with any body
	CreateSchedulerJobWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSchedulerJob(ctx context.Context, body CreateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSchedulerJob request
	DeleteSchedulerJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSchedulerJobWithBody request with any body
	UpdateSchedulerJobWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSchedulerJob(ctx context.Context, id string, body UpdateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerSchedulerJob request
	TriggerSchedulerJob(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSchedulerJobRuns request
	ListSchedulerJobRuns(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateFeedWithBodyWithResponse

func (c *ClientWithResponses) CreateFeedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedResponse, error)

CreateFeedWithBodyWithResponse request with arbitrary body returning *CreateFeedResponse

func (*ClientWithResponses) CreateFeedWithResponse

func (c *ClientWithResponses) CreateFeedWithResponse(ctx context.Context, body CreateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedResponse, error)

func (*ClientWithResponses) CreateSchedulerJobWithBodyWithResponse

func (c *ClientWithResponses) CreateSchedulerJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSchedulerJobResponse, error)

CreateSchedulerJobWithBodyWithResponse request with arbitrary body returning *CreateSchedulerJobResponse

func (*ClientWithResponses) CreateSchedulerJobWithResponse

func (c *ClientWithResponses) CreateSchedulerJobWithResponse(ctx context.Context, body CreateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSchedulerJobResponse, error)

func (*ClientWithResponses) DeleteArticleWithResponse

func (c *ClientWithResponses) DeleteArticleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteArticleResponse, error)

DeleteArticleWithResponse request returning *DeleteArticleResponse

func (*ClientWithResponses) DeleteFeedWithResponse

func (c *ClientWithResponses) DeleteFeedWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFeedResponse, error)

DeleteFeedWithResponse request returning *DeleteFeedResponse

func (*ClientWithResponses) DeleteSchedulerJobWithResponse

func (c *ClientWithResponses) DeleteSchedulerJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteSchedulerJobResponse, error)

DeleteSchedulerJobWithResponse request returning *DeleteSchedulerJobResponse

func (*ClientWithResponses) GetArticleWithResponse

func (c *ClientWithResponses) GetArticleWithResponse(ctx context.Context, id string, params *GetArticleParams, reqEditors ...RequestEditorFn) (*GetArticleResponse, error)

GetArticleWithResponse request returning *GetArticleResponse

func (*ClientWithResponses) GetDigestWithResponse

func (c *ClientWithResponses) GetDigestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDigestResponse, error)

GetDigestWithResponse request returning *GetDigestResponse

func (*ClientWithResponses) GetFeedWithResponse

func (c *ClientWithResponses) GetFeedWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFeedResponse, error)

GetFeedWithResponse request returning *GetFeedResponse

func (*ClientWithResponses) ListArticlesWithResponse

func (c *ClientWithResponses) ListArticlesWithResponse(ctx context.Context, params *ListArticlesParams, reqEditors ...RequestEditorFn) (*ListArticlesResponse, error)

ListArticlesWithResponse request returning *ListArticlesResponse

func (*ClientWithResponses) ListFeedEntriesWithResponse

func (c *ClientWithResponses) ListFeedEntriesWithResponse(ctx context.Context, feedId string, params *ListFeedEntriesParams, reqEditors ...RequestEditorFn) (*ListFeedEntriesResponse, error)

ListFeedEntriesWithResponse request returning *ListFeedEntriesResponse

func (*ClientWithResponses) ListFeedsWithResponse

func (c *ClientWithResponses) ListFeedsWithResponse(ctx context.Context, params *ListFeedsParams, reqEditors ...RequestEditorFn) (*ListFeedsResponse, error)

ListFeedsWithResponse request returning *ListFeedsResponse

func (*ClientWithResponses) ListSchedulerJobRunsWithResponse

func (c *ClientWithResponses) ListSchedulerJobRunsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListSchedulerJobRunsResponse, error)

ListSchedulerJobRunsWithResponse request returning *ListSchedulerJobRunsResponse

func (*ClientWithResponses) ListSchedulerJobsWithResponse

func (c *ClientWithResponses) ListSchedulerJobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSchedulerJobsResponse, error)

ListSchedulerJobsWithResponse request returning *ListSchedulerJobsResponse

func (*ClientWithResponses) PollFeedWithResponse

func (c *ClientWithResponses) PollFeedWithResponse(ctx context.Context, id string, params *PollFeedParams, reqEditors ...RequestEditorFn) (*PollFeedResponse, error)

PollFeedWithResponse request returning *PollFeedResponse

func (*ClientWithResponses) SaveArticleWithBodyWithResponse

func (c *ClientWithResponses) SaveArticleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveArticleResponse, error)

SaveArticleWithBodyWithResponse request with arbitrary body returning *SaveArticleResponse

func (*ClientWithResponses) SaveArticleWithResponse

func (c *ClientWithResponses) SaveArticleWithResponse(ctx context.Context, body SaveArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveArticleResponse, error)

func (*ClientWithResponses) TriggerSchedulerJobWithResponse

func (c *ClientWithResponses) TriggerSchedulerJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TriggerSchedulerJobResponse, error)

TriggerSchedulerJobWithResponse request returning *TriggerSchedulerJobResponse

func (*ClientWithResponses) UpdateArticleWithBodyWithResponse

func (c *ClientWithResponses) UpdateArticleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)

UpdateArticleWithBodyWithResponse request with arbitrary body returning *UpdateArticleResponse

func (*ClientWithResponses) UpdateArticleWithResponse

func (c *ClientWithResponses) UpdateArticleWithResponse(ctx context.Context, id string, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)

func (*ClientWithResponses) UpdateFeedEntryWithBodyWithResponse

func (c *ClientWithResponses) UpdateFeedEntryWithBodyWithResponse(ctx context.Context, feedId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedEntryResponse, error)

UpdateFeedEntryWithBodyWithResponse request with arbitrary body returning *UpdateFeedEntryResponse

func (*ClientWithResponses) UpdateFeedEntryWithResponse

func (c *ClientWithResponses) UpdateFeedEntryWithResponse(ctx context.Context, feedId string, id string, body UpdateFeedEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedEntryResponse, error)

func (*ClientWithResponses) UpdateFeedWithBodyWithResponse

func (c *ClientWithResponses) UpdateFeedWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedResponse, error)

UpdateFeedWithBodyWithResponse request with arbitrary body returning *UpdateFeedResponse

func (*ClientWithResponses) UpdateFeedWithResponse

func (c *ClientWithResponses) UpdateFeedWithResponse(ctx context.Context, id string, body UpdateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedResponse, error)

func (*ClientWithResponses) UpdateSchedulerJobWithBodyWithResponse

func (c *ClientWithResponses) UpdateSchedulerJobWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSchedulerJobResponse, error)

UpdateSchedulerJobWithBodyWithResponse request with arbitrary body returning *UpdateSchedulerJobResponse

func (*ClientWithResponses) UpdateSchedulerJobWithResponse

func (c *ClientWithResponses) UpdateSchedulerJobWithResponse(ctx context.Context, id string, body UpdateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSchedulerJobResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListArticlesWithResponse request
	ListArticlesWithResponse(ctx context.Context, params *ListArticlesParams, reqEditors ...RequestEditorFn) (*ListArticlesResponse, error)

	// SaveArticleWithBodyWithResponse request with any body
	SaveArticleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveArticleResponse, error)

	SaveArticleWithResponse(ctx context.Context, body SaveArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveArticleResponse, error)

	// DeleteArticleWithResponse request
	DeleteArticleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteArticleResponse, error)

	// GetArticleWithResponse request
	GetArticleWithResponse(ctx context.Context, id string, params *GetArticleParams, reqEditors ...RequestEditorFn) (*GetArticleResponse, error)

	// UpdateArticleWithBodyWithResponse request with any body
	UpdateArticleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)

	UpdateArticleWithResponse(ctx context.Context, id string, body UpdateArticleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateArticleResponse, error)

	// GetDigestWithResponse request
	GetDigestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDigestResponse, error)

	// ListFeedsWithResponse request
	ListFeedsWithResponse(ctx context.Context, params *ListFeedsParams, reqEditors ...RequestEditorFn) (*ListFeedsResponse, error)

	// CreateFeedWithBodyWithResponse request with any body
	CreateFeedWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedResponse, error)

	CreateFeedWithResponse(ctx context.Context, body CreateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedResponse, error)

	// ListFeedEntriesWithResponse request
	ListFeedEntriesWithResponse(ctx context.Context, feedId string, params *ListFeedEntriesParams, reqEditors ...RequestEditorFn) (*ListFeedEntriesResponse, error)

	// UpdateFeedEntryWithBodyWithResponse request with any body
	UpdateFeedEntryWithBodyWithResponse(ctx context.Context, feedId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedEntryResponse, error)

	UpdateFeedEntryWithResponse(ctx context.Context, feedId string, id string, body UpdateFeedEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedEntryResponse, error)

	// DeleteFeedWithResponse request
	DeleteFeedWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFeedResponse, error)

	// GetFeedWithResponse request
	GetFeedWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFeedResponse, error)

	// UpdateFeedWithBodyWithResponse request with any body
	UpdateFeedWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedResponse, error)

	UpdateFeedWithResponse(ctx context.Context, id string, body UpdateFeedJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedResponse, error)

	// PollFeedWithResponse request
	PollFeedWithResponse(ctx context.Context, id string, params *PollFeedParams, reqEditors ...RequestEditorFn) (*PollFeedResponse, error)

	// ListSchedulerJobsWithResponse request
	ListSchedulerJobsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSchedulerJobsResponse, error)

	// CreateSchedulerJobWithBodyWithResponse request with any body
	CreateSchedulerJobWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSchedulerJobResponse, error)

	CreateSchedulerJobWithResponse(ctx context.Context, body CreateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSchedulerJobResponse, error)

	// DeleteSchedulerJobWithResponse request
	DeleteSchedulerJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteSchedulerJobResponse, error)

	// UpdateSchedulerJobWithBodyWithResponse request with any body
	UpdateSchedulerJobWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSchedulerJobResponse, error)

	UpdateSchedulerJobWithResponse(ctx context.Context, id string, body UpdateSchedulerJobJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSchedulerJobResponse, error)

	// TriggerSchedulerJobWithResponse request
	TriggerSchedulerJobWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*TriggerSchedulerJobResponse, error)

	// ListSchedulerJobRunsWithResponse request
	ListSchedulerJobRunsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ListSchedulerJobRunsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateFeedJSONRequestBody

type CreateFeedJSONRequestBody = externalRef0.CreateFeedRequest

CreateFeedJSONRequestBody defines body for CreateFeed for application/json ContentType.

type CreateFeedRequest

type CreateFeedRequest = externalRef0.CreateFeedRequest

CreateFeedRequest defines model for CreateFeedRequest.

type CreateFeedResponse

type CreateFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *externalRef0.Feed
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
	JSON409      *externalRef0.Error
}

func ParseCreateFeedResponse

func ParseCreateFeedResponse(rsp *http.Response) (*CreateFeedResponse, error)

ParseCreateFeedResponse parses an HTTP response from a CreateFeedWithResponse call

func (CreateFeedResponse) ContentType

func (r CreateFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateFeedResponse) Status

func (r CreateFeedResponse) Status() string

Status returns HTTPResponse.Status

func (CreateFeedResponse) StatusCode

func (r CreateFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSchedulerJobJSONRequestBody

type CreateSchedulerJobJSONRequestBody = externalRef0.JobInput

CreateSchedulerJobJSONRequestBody defines body for CreateSchedulerJob for application/json ContentType.

type CreateSchedulerJobResponse

type CreateSchedulerJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *externalRef0.Job
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
}

func ParseCreateSchedulerJobResponse

func ParseCreateSchedulerJobResponse(rsp *http.Response) (*CreateSchedulerJobResponse, error)

ParseCreateSchedulerJobResponse parses an HTTP response from a CreateSchedulerJobWithResponse call

func (CreateSchedulerJobResponse) ContentType

func (r CreateSchedulerJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSchedulerJobResponse) Status

Status returns HTTPResponse.Status

func (CreateSchedulerJobResponse) StatusCode

func (r CreateSchedulerJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteArticleResponse

type DeleteArticleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseDeleteArticleResponse

func ParseDeleteArticleResponse(rsp *http.Response) (*DeleteArticleResponse, error)

ParseDeleteArticleResponse parses an HTTP response from a DeleteArticleWithResponse call

func (DeleteArticleResponse) ContentType

func (r DeleteArticleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteArticleResponse) Status

func (r DeleteArticleResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteArticleResponse) StatusCode

func (r DeleteArticleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFeedResponse

type DeleteFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseDeleteFeedResponse

func ParseDeleteFeedResponse(rsp *http.Response) (*DeleteFeedResponse, error)

ParseDeleteFeedResponse parses an HTTP response from a DeleteFeedWithResponse call

func (DeleteFeedResponse) ContentType

func (r DeleteFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteFeedResponse) Status

func (r DeleteFeedResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteFeedResponse) StatusCode

func (r DeleteFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteResult

type DeleteResult = externalRef0.DeleteResult

DeleteResult defines model for DeleteResult.

type DeleteSchedulerJobResponse

type DeleteSchedulerJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.DeleteResult
	JSON401      *externalRef0.Unauthorized
	JSON403      *externalRef0.Forbidden
	JSON404      *externalRef0.NotFound
}

func ParseDeleteSchedulerJobResponse

func ParseDeleteSchedulerJobResponse(rsp *http.Response) (*DeleteSchedulerJobResponse, error)

ParseDeleteSchedulerJobResponse parses an HTTP response from a DeleteSchedulerJobWithResponse call

func (DeleteSchedulerJobResponse) ContentType

func (r DeleteSchedulerJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteSchedulerJobResponse) Status

Status returns HTTPResponse.Status

func (DeleteSchedulerJobResponse) StatusCode

func (r DeleteSchedulerJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Digest

type Digest = externalRef0.Digest

Digest defines model for Digest.

type Error

type Error = externalRef0.Error

Error defines model for Error.

type Feed

type Feed = externalRef0.Feed

Feed defines model for Feed.

type FeedEntry

type FeedEntry = externalRef0.FeedEntry

FeedEntry defines model for FeedEntry.

type FeedEntryList

type FeedEntryList = externalRef0.FeedEntryList

FeedEntryList defines model for FeedEntryList.

type FeedEntryStatus

type FeedEntryStatus = externalRef0.FeedEntryStatus

FeedEntryStatus defines model for FeedEntryStatus.

type FeedList

type FeedList = externalRef0.FeedList

FeedList defines model for FeedList.

type FeedPollResult

type FeedPollResult = externalRef0.FeedPollResult

FeedPollResult defines model for FeedPollResult.

type GetArticleParams

type GetArticleParams struct {
	// Include Comma-separated extras (only `content` supported)
	Include *string `form:"include,omitempty" json:"include,omitempty"`
}

GetArticleParams defines parameters for GetArticle.

type GetArticleResponse

type GetArticleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Article
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseGetArticleResponse

func ParseGetArticleResponse(rsp *http.Response) (*GetArticleResponse, error)

ParseGetArticleResponse parses an HTTP response from a GetArticleWithResponse call

func (GetArticleResponse) ContentType

func (r GetArticleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetArticleResponse) Status

func (r GetArticleResponse) Status() string

Status returns HTTPResponse.Status

func (GetArticleResponse) StatusCode

func (r GetArticleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDigestResponse

type GetDigestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Digest
	JSON401      *externalRef0.Unauthorized
}

func ParseGetDigestResponse

func ParseGetDigestResponse(rsp *http.Response) (*GetDigestResponse, error)

ParseGetDigestResponse parses an HTTP response from a GetDigestWithResponse call

func (GetDigestResponse) ContentType

func (r GetDigestResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDigestResponse) Status

func (r GetDigestResponse) Status() string

Status returns HTTPResponse.Status

func (GetDigestResponse) StatusCode

func (r GetDigestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeedResponse

type GetFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Feed
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseGetFeedResponse

func ParseGetFeedResponse(rsp *http.Response) (*GetFeedResponse, error)

ParseGetFeedResponse parses an HTTP response from a GetFeedWithResponse call

func (GetFeedResponse) ContentType

func (r GetFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetFeedResponse) Status

func (r GetFeedResponse) Status() string

Status returns HTTPResponse.Status

func (GetFeedResponse) StatusCode

func (r GetFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Job

type Job = externalRef0.Job

Job defines model for Job.

type JobInput

type JobInput = externalRef0.JobInput

JobInput Fields for creating or updating a job. For create: name, message, and exactly one of cron/every/at are required.

type JobList

type JobList = externalRef0.JobList

JobList defines model for JobList.

type ListArticlesParams

type ListArticlesParams struct {
	// Q Free-text search across title, summary, tags, author
	Q          *string                     `form:"q,omitempty" json:"q,omitempty"`
	Status     *externalRef0.ArticleStatus `form:"status,omitempty" json:"status,omitempty"`
	SourceType *externalRef0.SourceType    `form:"source_type,omitempty" json:"source_type,omitempty"`
	Starred    *bool                       `form:"starred,omitempty" json:"starred,omitempty"`

	// CanonicalUrl Lookup by exact canonical URL
	CanonicalUrl *string `form:"canonical_url,omitempty" json:"canonical_url,omitempty"`
	Limit        *int    `form:"limit,omitempty" json:"limit,omitempty"`
}

ListArticlesParams defines parameters for ListArticles.

type ListArticlesResponse

type ListArticlesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.ArticleList
	JSON401      *externalRef0.Unauthorized
}

func ParseListArticlesResponse

func ParseListArticlesResponse(rsp *http.Response) (*ListArticlesResponse, error)

ParseListArticlesResponse parses an HTTP response from a ListArticlesWithResponse call

func (ListArticlesResponse) ContentType

func (r ListArticlesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListArticlesResponse) Status

func (r ListArticlesResponse) Status() string

Status returns HTTPResponse.Status

func (ListArticlesResponse) StatusCode

func (r ListArticlesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListFeedEntriesParams

type ListFeedEntriesParams struct {
	// Status Filter by entry status. Currently only 'pending' is supported; other values return 400.
	Status *externalRef0.FeedEntryStatus `form:"status,omitempty" json:"status,omitempty"`
	Limit  *int                          `form:"limit,omitempty" json:"limit,omitempty"`
}

ListFeedEntriesParams defines parameters for ListFeedEntries.

type ListFeedEntriesResponse

type ListFeedEntriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.FeedEntryList
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseListFeedEntriesResponse

func ParseListFeedEntriesResponse(rsp *http.Response) (*ListFeedEntriesResponse, error)

ParseListFeedEntriesResponse parses an HTTP response from a ListFeedEntriesWithResponse call

func (ListFeedEntriesResponse) ContentType

func (r ListFeedEntriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFeedEntriesResponse) Status

func (r ListFeedEntriesResponse) Status() string

Status returns HTTPResponse.Status

func (ListFeedEntriesResponse) StatusCode

func (r ListFeedEntriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListFeedsParams

type ListFeedsParams struct {
	// Url Lookup by exact feed URL
	Url *string `form:"url,omitempty" json:"url,omitempty"`
}

ListFeedsParams defines parameters for ListFeeds.

type ListFeedsResponse

type ListFeedsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.FeedList
	JSON401      *externalRef0.Unauthorized
}

func ParseListFeedsResponse

func ParseListFeedsResponse(rsp *http.Response) (*ListFeedsResponse, error)

ParseListFeedsResponse parses an HTTP response from a ListFeedsWithResponse call

func (ListFeedsResponse) ContentType

func (r ListFeedsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListFeedsResponse) Status

func (r ListFeedsResponse) Status() string

Status returns HTTPResponse.Status

func (ListFeedsResponse) StatusCode

func (r ListFeedsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSchedulerJobRunsResponse

type ListSchedulerJobRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.JobRunList
	JSON401      *externalRef0.Unauthorized
	JSON403      *externalRef0.Forbidden
	JSON404      *externalRef0.NotFound
}

func ParseListSchedulerJobRunsResponse

func ParseListSchedulerJobRunsResponse(rsp *http.Response) (*ListSchedulerJobRunsResponse, error)

ParseListSchedulerJobRunsResponse parses an HTTP response from a ListSchedulerJobRunsWithResponse call

func (ListSchedulerJobRunsResponse) ContentType

func (r ListSchedulerJobRunsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSchedulerJobRunsResponse) Status

Status returns HTTPResponse.Status

func (ListSchedulerJobRunsResponse) StatusCode

func (r ListSchedulerJobRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSchedulerJobsResponse

type ListSchedulerJobsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.JobList
	JSON401      *externalRef0.Unauthorized
}

func ParseListSchedulerJobsResponse

func ParseListSchedulerJobsResponse(rsp *http.Response) (*ListSchedulerJobsResponse, error)

ParseListSchedulerJobsResponse parses an HTTP response from a ListSchedulerJobsWithResponse call

func (ListSchedulerJobsResponse) ContentType

func (r ListSchedulerJobsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSchedulerJobsResponse) Status

func (r ListSchedulerJobsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSchedulerJobsResponse) StatusCode

func (r ListSchedulerJobsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PollFeedParams

type PollFeedParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

PollFeedParams defines parameters for PollFeed.

type PollFeedResponse

type PollFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.FeedPollResult
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParsePollFeedResponse

func ParsePollFeedResponse(rsp *http.Response) (*PollFeedResponse, error)

ParsePollFeedResponse parses an HTTP response from a PollFeedWithResponse call

func (PollFeedResponse) ContentType

func (r PollFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PollFeedResponse) Status

func (r PollFeedResponse) Status() string

Status returns HTTPResponse.Status

func (PollFeedResponse) StatusCode

func (r PollFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SaveArticleJSONRequestBody

type SaveArticleJSONRequestBody = externalRef0.SaveArticleRequest

SaveArticleJSONRequestBody defines body for SaveArticle for application/json ContentType.

type SaveArticleRequest

type SaveArticleRequest = externalRef0.SaveArticleRequest

SaveArticleRequest defines model for SaveArticleRequest.

type SaveArticleResponse

type SaveArticleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Article
	JSON201      *externalRef0.Article
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
}

func ParseSaveArticleResponse

func ParseSaveArticleResponse(rsp *http.Response) (*SaveArticleResponse, error)

ParseSaveArticleResponse parses an HTTP response from a SaveArticleWithResponse call

func (SaveArticleResponse) ContentType

func (r SaveArticleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SaveArticleResponse) Status

func (r SaveArticleResponse) Status() string

Status returns HTTPResponse.Status

func (SaveArticleResponse) StatusCode

func (r SaveArticleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SourceType

type SourceType = externalRef0.SourceType

SourceType defines model for SourceType.

type TagCount

type TagCount = externalRef0.TagCount

TagCount defines model for TagCount.

type TriggerSchedulerJobResponse

type TriggerSchedulerJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *externalRef0.TriggerJobResult
	JSON401      *externalRef0.Unauthorized
	JSON403      *externalRef0.Forbidden
	JSON404      *externalRef0.NotFound
	JSON409      *externalRef0.Conflict
}

func ParseTriggerSchedulerJobResponse

func ParseTriggerSchedulerJobResponse(rsp *http.Response) (*TriggerSchedulerJobResponse, error)

ParseTriggerSchedulerJobResponse parses an HTTP response from a TriggerSchedulerJobWithResponse call

func (TriggerSchedulerJobResponse) ContentType

func (r TriggerSchedulerJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TriggerSchedulerJobResponse) Status

Status returns HTTPResponse.Status

func (TriggerSchedulerJobResponse) StatusCode

func (r TriggerSchedulerJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateArticleJSONRequestBody

type UpdateArticleJSONRequestBody = externalRef0.UpdateArticleRequest

UpdateArticleJSONRequestBody defines body for UpdateArticle for application/json ContentType.

type UpdateArticleRequest

type UpdateArticleRequest = externalRef0.UpdateArticleRequest

UpdateArticleRequest Only provided fields are updated.

type UpdateArticleResponse

type UpdateArticleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Article
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseUpdateArticleResponse

func ParseUpdateArticleResponse(rsp *http.Response) (*UpdateArticleResponse, error)

ParseUpdateArticleResponse parses an HTTP response from a UpdateArticleWithResponse call

func (UpdateArticleResponse) ContentType

func (r UpdateArticleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateArticleResponse) Status

func (r UpdateArticleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateArticleResponse) StatusCode

func (r UpdateArticleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateFeedEntryJSONRequestBody

type UpdateFeedEntryJSONRequestBody = externalRef0.UpdateFeedEntryRequest

UpdateFeedEntryJSONRequestBody defines body for UpdateFeedEntry for application/json ContentType.

type UpdateFeedEntryRequest

type UpdateFeedEntryRequest = externalRef0.UpdateFeedEntryRequest

UpdateFeedEntryRequest defines model for UpdateFeedEntryRequest.

type UpdateFeedEntryResponse

type UpdateFeedEntryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.FeedEntry
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseUpdateFeedEntryResponse

func ParseUpdateFeedEntryResponse(rsp *http.Response) (*UpdateFeedEntryResponse, error)

ParseUpdateFeedEntryResponse parses an HTTP response from a UpdateFeedEntryWithResponse call

func (UpdateFeedEntryResponse) ContentType

func (r UpdateFeedEntryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateFeedEntryResponse) Status

func (r UpdateFeedEntryResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFeedEntryResponse) StatusCode

func (r UpdateFeedEntryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateFeedJSONRequestBody

type UpdateFeedJSONRequestBody = externalRef0.UpdateFeedRequest

UpdateFeedJSONRequestBody defines body for UpdateFeed for application/json ContentType.

type UpdateFeedRequest

type UpdateFeedRequest = externalRef0.UpdateFeedRequest

UpdateFeedRequest defines model for UpdateFeedRequest.

type UpdateFeedResponse

type UpdateFeedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Feed
	JSON401      *externalRef0.Unauthorized
	JSON404      *externalRef0.NotFound
}

func ParseUpdateFeedResponse

func ParseUpdateFeedResponse(rsp *http.Response) (*UpdateFeedResponse, error)

ParseUpdateFeedResponse parses an HTTP response from a UpdateFeedWithResponse call

func (UpdateFeedResponse) ContentType

func (r UpdateFeedResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateFeedResponse) Status

func (r UpdateFeedResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFeedResponse) StatusCode

func (r UpdateFeedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSchedulerJobJSONRequestBody

type UpdateSchedulerJobJSONRequestBody = externalRef0.JobInput

UpdateSchedulerJobJSONRequestBody defines body for UpdateSchedulerJob for application/json ContentType.

type UpdateSchedulerJobResponse

type UpdateSchedulerJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *externalRef0.Job
	JSON400      *externalRef0.BadRequest
	JSON401      *externalRef0.Unauthorized
	JSON403      *externalRef0.Forbidden
	JSON404      *externalRef0.NotFound
}

func ParseUpdateSchedulerJobResponse

func ParseUpdateSchedulerJobResponse(rsp *http.Response) (*UpdateSchedulerJobResponse, error)

ParseUpdateSchedulerJobResponse parses an HTTP response from a UpdateSchedulerJobWithResponse call

func (UpdateSchedulerJobResponse) ContentType

func (r UpdateSchedulerJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateSchedulerJobResponse) Status

Status returns HTTPResponse.Status

func (UpdateSchedulerJobResponse) StatusCode

func (r UpdateSchedulerJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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