transport_type

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 transport type API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TransportTypeGet

func (a *Client) TransportTypeGet(params *TransportTypeGetParams, authInfo runtime.ClientAuthInfoWriter) (*TransportTypeGetOK, error)

TransportTypeGet bs e t a find transport type by ID

func (*Client) TransportTypeSearch

func (a *Client) TransportTypeSearch(params *TransportTypeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TransportTypeSearchOK, error)

TransportTypeSearch bs e t a search transport type

type ClientService

type ClientService interface {
	TransportTypeGet(params *TransportTypeGetParams, authInfo runtime.ClientAuthInfoWriter) (*TransportTypeGetOK, error)

	TransportTypeSearch(params *TransportTypeSearchParams, authInfo runtime.ClientAuthInfoWriter) (*TransportTypeSearchOK, 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 transport type API client.

type TransportTypeGetOK

type TransportTypeGetOK struct {
	Payload *models.ResponseWrapperTransportType
}

TransportTypeGetOK handles this case with default header values.

successful operation

func NewTransportTypeGetOK

func NewTransportTypeGetOK() *TransportTypeGetOK

NewTransportTypeGetOK creates a TransportTypeGetOK with default headers values

func (*TransportTypeGetOK) Error

func (o *TransportTypeGetOK) Error() string

func (*TransportTypeGetOK) GetPayload

type TransportTypeGetParams

type TransportTypeGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

TransportTypeGetParams contains all the parameters to send to the API endpoint for the transport type get operation typically these are written to a http.Request

func NewTransportTypeGetParams

func NewTransportTypeGetParams() *TransportTypeGetParams

NewTransportTypeGetParams creates a new TransportTypeGetParams object with the default values initialized.

func NewTransportTypeGetParamsWithContext

func NewTransportTypeGetParamsWithContext(ctx context.Context) *TransportTypeGetParams

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

func NewTransportTypeGetParamsWithHTTPClient

func NewTransportTypeGetParamsWithHTTPClient(client *http.Client) *TransportTypeGetParams

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

func NewTransportTypeGetParamsWithTimeout

func NewTransportTypeGetParamsWithTimeout(timeout time.Duration) *TransportTypeGetParams

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

func (*TransportTypeGetParams) SetContext

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

SetContext adds the context to the transport type get params

func (*TransportTypeGetParams) SetFields

func (o *TransportTypeGetParams) SetFields(fields *string)

SetFields adds the fields to the transport type get params

func (*TransportTypeGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the transport type get params

func (*TransportTypeGetParams) SetID

func (o *TransportTypeGetParams) SetID(id int32)

SetID adds the id to the transport type get params

func (*TransportTypeGetParams) SetTimeout

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

SetTimeout adds the timeout to the transport type get params

func (*TransportTypeGetParams) WithContext

WithContext adds the context to the transport type get params

func (*TransportTypeGetParams) WithFields

func (o *TransportTypeGetParams) WithFields(fields *string) *TransportTypeGetParams

WithFields adds the fields to the transport type get params

func (*TransportTypeGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the transport type get params

func (*TransportTypeGetParams) WithID

WithID adds the id to the transport type get params

func (*TransportTypeGetParams) WithTimeout

WithTimeout adds the timeout to the transport type get params

func (*TransportTypeGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TransportTypeGetReader

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

TransportTypeGetReader is a Reader for the TransportTypeGet structure.

func (*TransportTypeGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TransportTypeSearchOK

type TransportTypeSearchOK struct {
	Payload *models.ListResponseTransportType
}

TransportTypeSearchOK handles this case with default header values.

successful operation

func NewTransportTypeSearchOK

func NewTransportTypeSearchOK() *TransportTypeSearchOK

NewTransportTypeSearchOK creates a TransportTypeSearchOK with default headers values

func (*TransportTypeSearchOK) Error

func (o *TransportTypeSearchOK) Error() string

func (*TransportTypeSearchOK) GetPayload

type TransportTypeSearchParams

type TransportTypeSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Name
	  Containing

	*/
	Name *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*SupplierID
	  List of valid suppliers ids.

	*/
	SupplierID []int32

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

TransportTypeSearchParams contains all the parameters to send to the API endpoint for the transport type search operation typically these are written to a http.Request

func NewTransportTypeSearchParams

func NewTransportTypeSearchParams() *TransportTypeSearchParams

NewTransportTypeSearchParams creates a new TransportTypeSearchParams object with the default values initialized.

func NewTransportTypeSearchParamsWithContext

func NewTransportTypeSearchParamsWithContext(ctx context.Context) *TransportTypeSearchParams

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

func NewTransportTypeSearchParamsWithHTTPClient

func NewTransportTypeSearchParamsWithHTTPClient(client *http.Client) *TransportTypeSearchParams

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

func NewTransportTypeSearchParamsWithTimeout

func NewTransportTypeSearchParamsWithTimeout(timeout time.Duration) *TransportTypeSearchParams

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

func (*TransportTypeSearchParams) SetContext

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

SetContext adds the context to the transport type search params

func (*TransportTypeSearchParams) SetCount

func (o *TransportTypeSearchParams) SetCount(count *int64)

SetCount adds the count to the transport type search params

func (*TransportTypeSearchParams) SetFields

func (o *TransportTypeSearchParams) SetFields(fields *string)

SetFields adds the fields to the transport type search params

func (*TransportTypeSearchParams) SetFrom

func (o *TransportTypeSearchParams) SetFrom(from *int64)

SetFrom adds the from to the transport type search params

func (*TransportTypeSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the transport type search params

func (*TransportTypeSearchParams) SetName

func (o *TransportTypeSearchParams) SetName(name *string)

SetName adds the name to the transport type search params

func (*TransportTypeSearchParams) SetSorting

func (o *TransportTypeSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the transport type search params

func (*TransportTypeSearchParams) SetSupplierID

func (o *TransportTypeSearchParams) SetSupplierID(supplierID []int32)

SetSupplierID adds the supplierId to the transport type search params

func (*TransportTypeSearchParams) SetTimeout

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

SetTimeout adds the timeout to the transport type search params

func (*TransportTypeSearchParams) WithContext

WithContext adds the context to the transport type search params

func (*TransportTypeSearchParams) WithCount

WithCount adds the count to the transport type search params

func (*TransportTypeSearchParams) WithFields

WithFields adds the fields to the transport type search params

func (*TransportTypeSearchParams) WithFrom

WithFrom adds the from to the transport type search params

func (*TransportTypeSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the transport type search params

func (*TransportTypeSearchParams) WithName

WithName adds the name to the transport type search params

func (*TransportTypeSearchParams) WithSorting

WithSorting adds the sorting to the transport type search params

func (*TransportTypeSearchParams) WithSupplierID

func (o *TransportTypeSearchParams) WithSupplierID(supplierID []int32) *TransportTypeSearchParams

WithSupplierID adds the supplierID to the transport type search params

func (*TransportTypeSearchParams) WithTimeout

WithTimeout adds the timeout to the transport type search params

func (*TransportTypeSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TransportTypeSearchReader

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

TransportTypeSearchReader is a Reader for the TransportTypeSearch structure.

func (*TransportTypeSearchReader) ReadResponse

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