programs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 programs API

func (*Client) GetPrograms

func (a *Client) GetPrograms(params *GetProgramsParams, authInfo runtime.ClientAuthInfoWriter) (*GetProgramsOK, error)

GetPrograms get programs API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetPrograms(params *GetProgramsParams, authInfo runtime.ClientAuthInfoWriter) (*GetProgramsOK, 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 programs API client.

type GetProgramsOK

type GetProgramsOK struct {
	Payload *models.APICollectionOfProgram
}

GetProgramsOK handles this case with default header values.

Success

func NewGetProgramsOK

func NewGetProgramsOK() *GetProgramsOK

NewGetProgramsOK creates a GetProgramsOK with default headers values

func (*GetProgramsOK) Error

func (o *GetProgramsOK) Error() string

func (*GetProgramsOK) GetPayload

func (o *GetProgramsOK) GetPayload() *models.APICollectionOfProgram

type GetProgramsParams

type GetProgramsParams struct {

	/*OrganizationID*/
	OrganizationID *int32
	/*Page*/
	Page *int32
	/*PageSize*/
	PageSize *int32
	/*ProgramType*/
	ProgramType *string
	/*PublisherID*/
	PublisherID *int32
	/*Search*/
	Search *string

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

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

func NewGetProgramsParams

func NewGetProgramsParams() *GetProgramsParams

NewGetProgramsParams creates a new GetProgramsParams object with the default values initialized.

func NewGetProgramsParamsWithContext

func NewGetProgramsParamsWithContext(ctx context.Context) *GetProgramsParams

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

func NewGetProgramsParamsWithHTTPClient

func NewGetProgramsParamsWithHTTPClient(client *http.Client) *GetProgramsParams

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

func NewGetProgramsParamsWithTimeout

func NewGetProgramsParamsWithTimeout(timeout time.Duration) *GetProgramsParams

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

func (*GetProgramsParams) SetContext

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

SetContext adds the context to the get programs params

func (*GetProgramsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get programs params

func (*GetProgramsParams) SetOrganizationID

func (o *GetProgramsParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get programs params

func (*GetProgramsParams) SetPage

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

SetPage adds the page to the get programs params

func (*GetProgramsParams) SetPageSize

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

SetPageSize adds the pageSize to the get programs params

func (*GetProgramsParams) SetProgramType

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

SetProgramType adds the programType to the get programs params

func (*GetProgramsParams) SetPublisherID

func (o *GetProgramsParams) SetPublisherID(publisherID *int32)

SetPublisherID adds the publisherId to the get programs params

func (*GetProgramsParams) SetSearch

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

SetSearch adds the search to the get programs params

func (*GetProgramsParams) SetTimeout

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

SetTimeout adds the timeout to the get programs params

func (*GetProgramsParams) WithContext

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

WithContext adds the context to the get programs params

func (*GetProgramsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get programs params

func (*GetProgramsParams) WithOrganizationID

func (o *GetProgramsParams) WithOrganizationID(organizationID *int32) *GetProgramsParams

WithOrganizationID adds the organizationID to the get programs params

func (*GetProgramsParams) WithPage

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

WithPage adds the page to the get programs params

func (*GetProgramsParams) WithPageSize

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

WithPageSize adds the pageSize to the get programs params

func (*GetProgramsParams) WithProgramType

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

WithProgramType adds the programType to the get programs params

func (*GetProgramsParams) WithPublisherID

func (o *GetProgramsParams) WithPublisherID(publisherID *int32) *GetProgramsParams

WithPublisherID adds the publisherID to the get programs params

func (*GetProgramsParams) WithSearch

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

WithSearch adds the search to the get programs params

func (*GetProgramsParams) WithTimeout

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

WithTimeout adds the timeout to the get programs params

func (*GetProgramsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProgramsReader

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

GetProgramsReader is a Reader for the GetPrograms structure.

func (*GetProgramsReader) ReadResponse

func (o *GetProgramsReader) 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