publishers

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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) GetPublisherByID

func (a *Client) GetPublisherByID(params *GetPublisherByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPublisherByIDOK, error)

GetPublisherByID get publisher by Id API

func (*Client) GetPublishers

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

GetPublishers get publishers API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetPublisherByID(params *GetPublisherByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPublisherByIDOK, error)

	GetPublishers(params *GetPublishersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 GetPublisherByIDOK

type GetPublisherByIDOK struct {
	Payload *models.Publisher
}
GetPublisherByIDOK describes a response with status code 200, with default header values.

Success

func NewGetPublisherByIDOK

func NewGetPublisherByIDOK() *GetPublisherByIDOK

NewGetPublisherByIDOK creates a GetPublisherByIDOK with default headers values

func (*GetPublisherByIDOK) Error

func (o *GetPublisherByIDOK) Error() string

func (*GetPublisherByIDOK) GetPayload

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

type GetPublisherByIDParams

type GetPublisherByIDParams struct {

	// ID.
	//
	// Format: int32
	ID int32

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

GetPublisherByIDParams contains all the parameters to send to the API endpoint

for the get publisher by Id operation.

Typically these are written to a http.Request.

func NewGetPublisherByIDParams

func NewGetPublisherByIDParams() *GetPublisherByIDParams

NewGetPublisherByIDParams creates a new GetPublisherByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetPublisherByIDParamsWithContext

func NewGetPublisherByIDParamsWithContext(ctx context.Context) *GetPublisherByIDParams

NewGetPublisherByIDParamsWithContext creates a new GetPublisherByIDParams object with the ability to set a context for a request.

func NewGetPublisherByIDParamsWithHTTPClient

func NewGetPublisherByIDParamsWithHTTPClient(client *http.Client) *GetPublisherByIDParams

NewGetPublisherByIDParamsWithHTTPClient creates a new GetPublisherByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublisherByIDParamsWithTimeout

func NewGetPublisherByIDParamsWithTimeout(timeout time.Duration) *GetPublisherByIDParams

NewGetPublisherByIDParamsWithTimeout creates a new GetPublisherByIDParams object with the ability to set a timeout on a request.

func (*GetPublisherByIDParams) SetContext

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

SetContext adds the context to the get publisher by Id params

func (*GetPublisherByIDParams) SetDefaults

func (o *GetPublisherByIDParams) SetDefaults()

SetDefaults hydrates default values in the get publisher by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetPublisherByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get publisher by Id params

func (*GetPublisherByIDParams) SetID

func (o *GetPublisherByIDParams) SetID(id int32)

SetID adds the id to the get publisher by Id params

func (*GetPublisherByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get publisher by Id params

func (*GetPublisherByIDParams) WithContext

WithContext adds the context to the get publisher by Id params

func (*GetPublisherByIDParams) WithDefaults

WithDefaults hydrates default values in the get publisher by Id params (not the query body).

All values with no default are reset to their zero value.

func (*GetPublisherByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get publisher by Id params

func (*GetPublisherByIDParams) WithID

WithID adds the id to the get publisher by Id params

func (*GetPublisherByIDParams) WithTimeout

WithTimeout adds the timeout to the get publisher by Id params

func (*GetPublisherByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublisherByIDReader

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

GetPublisherByIDReader is a Reader for the GetPublisherByID structure.

func (*GetPublisherByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublishersOK

type GetPublishersOK struct {
	Payload *models.APICollectionOfPublisher
}
GetPublishersOK describes a response with status code 200, with default header values.

Success

func NewGetPublishersOK

func NewGetPublishersOK() *GetPublishersOK

NewGetPublishersOK creates a GetPublishersOK with default headers values

func (*GetPublishersOK) Error

func (o *GetPublishersOK) Error() string

func (*GetPublishersOK) GetPayload

type GetPublishersParams

type GetPublishersParams struct {

	// Names.
	Names []string

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	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

func NewGetPublishersParams() *GetPublishersParams

NewGetPublishersParams creates a new GetPublishersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetPublishersParamsWithContext

func NewGetPublishersParamsWithContext(ctx context.Context) *GetPublishersParams

NewGetPublishersParamsWithContext creates a new GetPublishersParams object with the ability to set a context for a request.

func NewGetPublishersParamsWithHTTPClient

func NewGetPublishersParamsWithHTTPClient(client *http.Client) *GetPublishersParams

NewGetPublishersParamsWithHTTPClient creates a new GetPublishersParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublishersParamsWithTimeout

func NewGetPublishersParamsWithTimeout(timeout time.Duration) *GetPublishersParams

NewGetPublishersParamsWithTimeout creates a new GetPublishersParams object with the ability to set a timeout on a request.

func (*GetPublishersParams) SetContext

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

SetContext adds the context to the get publishers params

func (*GetPublishersParams) SetDefaults

func (o *GetPublishersParams) SetDefaults()

SetDefaults hydrates default values in the get publishers params (not the query body).

All values with no default are reset to their zero value.

func (*GetPublishersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get publishers params

func (*GetPublishersParams) SetNames

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

SetNames adds the names to the get publishers params

func (*GetPublishersParams) SetPage

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

SetPage adds the page to the get publishers params

func (*GetPublishersParams) SetPageSize

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

SetPageSize adds the pageSize to the get publishers params

func (*GetPublishersParams) SetProgramType

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

SetProgramType adds the programType to the get publishers params

func (*GetPublishersParams) SetSearch

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

SetSearch adds the search to the get publishers params

func (*GetPublishersParams) SetTimeout

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

SetTimeout adds the timeout to the get publishers params

func (*GetPublishersParams) WithContext

WithContext adds the context to the get publishers params

func (*GetPublishersParams) WithDefaults

func (o *GetPublishersParams) WithDefaults() *GetPublishersParams

WithDefaults hydrates default values in the get publishers params (not the query body).

All values with no default are reset to their zero value.

func (*GetPublishersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get publishers params

func (*GetPublishersParams) WithNames

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

WithNames adds the names to the get publishers params

func (*GetPublishersParams) WithPage

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

WithPage adds the page to the get publishers params

func (*GetPublishersParams) WithPageSize

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

WithPageSize adds the pageSize to the get publishers params

func (*GetPublishersParams) WithProgramType

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

WithProgramType adds the programType to the get publishers params

func (*GetPublishersParams) WithSearch

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

WithSearch adds the search to the get publishers params

func (*GetPublishersParams) WithTimeout

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

WithTimeout adds the timeout to the get publishers params

func (*GetPublishersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPublishersReader

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

GetPublishersReader is a Reader for the GetPublishers structure.

func (*GetPublishersReader) ReadResponse

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