publishers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for publishers API

func (*Client) GetByID

func (a *Client) GetByID(params *GetByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetByIDOK, error)

GetByID get by Id API

func (*Client) GetPublishers added in v1.1.0

func (a *Client) GetPublishers(params *GetPublishersParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublishersOK, error)

GetPublishers get publishers API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetByID(params *GetByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetByIDOK, error)

	GetPublishers(params *GetPublishersParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublishersOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new publishers API client.

type GetByIDOK

type GetByIDOK struct {
	Payload *models.Publisher
}

GetByIDOK handles this case with default header values.

Success

func NewGetByIDOK

func NewGetByIDOK() *GetByIDOK

NewGetByIDOK creates a GetByIDOK with default headers values

func (*GetByIDOK) Error

func (o *GetByIDOK) Error() string

func (*GetByIDOK) GetPayload

func (o *GetByIDOK) GetPayload() *models.Publisher

type GetByIDParams

type GetByIDParams struct {

	/*ID*/
	ID int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetByIDParams contains all the parameters to send to the API endpoint for the get by Id operation typically these are written to a http.Request

func NewGetByIDParams

func NewGetByIDParams() *GetByIDParams

NewGetByIDParams creates a new GetByIDParams object with the default values initialized.

func NewGetByIDParamsWithContext

func NewGetByIDParamsWithContext(ctx context.Context) *GetByIDParams

NewGetByIDParamsWithContext creates a new GetByIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetByIDParamsWithHTTPClient

func NewGetByIDParamsWithHTTPClient(client *http.Client) *GetByIDParams

NewGetByIDParamsWithHTTPClient creates a new GetByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetByIDParamsWithTimeout

func NewGetByIDParamsWithTimeout(timeout time.Duration) *GetByIDParams

NewGetByIDParamsWithTimeout creates a new GetByIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetByIDParams) SetContext

func (o *GetByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get by Id params

func (*GetByIDParams) SetHTTPClient

func (o *GetByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get by Id params

func (*GetByIDParams) SetID

func (o *GetByIDParams) SetID(id int32)

SetID adds the id to the get by Id params

func (*GetByIDParams) SetTimeout

func (o *GetByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get by Id params

func (*GetByIDParams) WithContext

func (o *GetByIDParams) WithContext(ctx context.Context) *GetByIDParams

WithContext adds the context to the get by Id params

func (*GetByIDParams) WithHTTPClient

func (o *GetByIDParams) WithHTTPClient(client *http.Client) *GetByIDParams

WithHTTPClient adds the HTTPClient to the get by Id params

func (*GetByIDParams) WithID

func (o *GetByIDParams) WithID(id int32) *GetByIDParams

WithID adds the id to the get by Id params

func (*GetByIDParams) WithTimeout

func (o *GetByIDParams) WithTimeout(timeout time.Duration) *GetByIDParams

WithTimeout adds the timeout to the get by Id params

func (*GetByIDParams) WriteToRequest

func (o *GetByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetByIDReader

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

GetByIDReader is a Reader for the GetByID structure.

func (*GetByIDReader) ReadResponse

func (o *GetByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPublishersOK added in v1.1.0

type GetPublishersOK struct {
	Payload *models.APICollectionOfPublisher
}

GetPublishersOK handles this case with default header values.

Success

func NewGetPublishersOK added in v1.1.0

func NewGetPublishersOK() *GetPublishersOK

NewGetPublishersOK creates a GetPublishersOK with default headers values

func (*GetPublishersOK) Error added in v1.1.0

func (o *GetPublishersOK) Error() string

func (*GetPublishersOK) GetPayload added in v1.1.0

type GetPublishersParams added in v1.1.0

type GetPublishersParams struct {

	/*Names*/
	Names []string
	/*Page*/
	Page *int32
	/*PageSize*/
	PageSize *int32
	/*ProgramType*/
	ProgramType *string
	/*Search*/
	Search *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublishersParams contains all the parameters to send to the API endpoint for the get publishers operation typically these are written to a http.Request

func NewGetPublishersParams added in v1.1.0

func NewGetPublishersParams() *GetPublishersParams

NewGetPublishersParams creates a new GetPublishersParams object with the default values initialized.

func NewGetPublishersParamsWithContext added in v1.1.0

func NewGetPublishersParamsWithContext(ctx context.Context) *GetPublishersParams

NewGetPublishersParamsWithContext creates a new GetPublishersParams object with the default values initialized, and the ability to set a context for a request

func NewGetPublishersParamsWithHTTPClient added in v1.1.0

func NewGetPublishersParamsWithHTTPClient(client *http.Client) *GetPublishersParams

NewGetPublishersParamsWithHTTPClient creates a new GetPublishersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPublishersParamsWithTimeout added in v1.1.0

func NewGetPublishersParamsWithTimeout(timeout time.Duration) *GetPublishersParams

NewGetPublishersParamsWithTimeout creates a new GetPublishersParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPublishersParams) SetContext added in v1.1.0

func (o *GetPublishersParams) SetContext(ctx context.Context)

SetContext adds the context to the get publishers params

func (*GetPublishersParams) SetHTTPClient added in v1.1.0

func (o *GetPublishersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get publishers params

func (*GetPublishersParams) SetNames added in v1.1.0

func (o *GetPublishersParams) SetNames(names []string)

SetNames adds the names to the get publishers params

func (*GetPublishersParams) SetPage added in v1.1.0

func (o *GetPublishersParams) SetPage(page *int32)

SetPage adds the page to the get publishers params

func (*GetPublishersParams) SetPageSize added in v1.1.0

func (o *GetPublishersParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get publishers params

func (*GetPublishersParams) SetProgramType added in v1.1.0

func (o *GetPublishersParams) SetProgramType(programType *string)

SetProgramType adds the programType to the get publishers params

func (*GetPublishersParams) SetSearch added in v1.1.0

func (o *GetPublishersParams) SetSearch(search *string)

SetSearch adds the search to the get publishers params

func (*GetPublishersParams) SetTimeout added in v1.1.0

func (o *GetPublishersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get publishers params

func (*GetPublishersParams) WithContext added in v1.1.0

WithContext adds the context to the get publishers params

func (*GetPublishersParams) WithHTTPClient added in v1.1.0

func (o *GetPublishersParams) WithHTTPClient(client *http.Client) *GetPublishersParams

WithHTTPClient adds the HTTPClient to the get publishers params

func (*GetPublishersParams) WithNames added in v1.1.0

func (o *GetPublishersParams) WithNames(names []string) *GetPublishersParams

WithNames adds the names to the get publishers params

func (*GetPublishersParams) WithPage added in v1.1.0

func (o *GetPublishersParams) WithPage(page *int32) *GetPublishersParams

WithPage adds the page to the get publishers params

func (*GetPublishersParams) WithPageSize added in v1.1.0

func (o *GetPublishersParams) WithPageSize(pageSize *int32) *GetPublishersParams

WithPageSize adds the pageSize to the get publishers params

func (*GetPublishersParams) WithProgramType added in v1.1.0

func (o *GetPublishersParams) WithProgramType(programType *string) *GetPublishersParams

WithProgramType adds the programType to the get publishers params

func (*GetPublishersParams) WithSearch added in v1.1.0

func (o *GetPublishersParams) WithSearch(search *string) *GetPublishersParams

WithSearch adds the search to the get publishers params

func (*GetPublishersParams) WithTimeout added in v1.1.0

func (o *GetPublishersParams) WithTimeout(timeout time.Duration) *GetPublishersParams

WithTimeout adds the timeout to the get publishers params

func (*GetPublishersParams) WriteToRequest added in v1.1.0

func (o *GetPublishersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPublishersReader added in v1.1.0

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

GetPublishersReader is a Reader for the GetPublishers structure.

func (*GetPublishersReader) ReadResponse added in v1.1.0

func (o *GetPublishersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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