country

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 country API

func (*Client) CountryGet

func (a *Client) CountryGet(params *CountryGetParams, authInfo runtime.ClientAuthInfoWriter) (*CountryGetOK, error)

CountryGet gets country by ID

func (*Client) CountrySearch

func (a *Client) CountrySearch(params *CountrySearchParams, authInfo runtime.ClientAuthInfoWriter) (*CountrySearchOK, error)

CountrySearch finds countries corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CountryGet(params *CountryGetParams, authInfo runtime.ClientAuthInfoWriter) (*CountryGetOK, error)

	CountrySearch(params *CountrySearchParams, authInfo runtime.ClientAuthInfoWriter) (*CountrySearchOK, 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 country API client.

type CountryGetOK

type CountryGetOK struct {
	Payload *models.ResponseWrapperCountry
}

CountryGetOK handles this case with default header values.

successful operation

func NewCountryGetOK

func NewCountryGetOK() *CountryGetOK

NewCountryGetOK creates a CountryGetOK with default headers values

func (*CountryGetOK) Error

func (o *CountryGetOK) Error() string

func (*CountryGetOK) GetPayload

func (o *CountryGetOK) GetPayload() *models.ResponseWrapperCountry

type CountryGetParams

type CountryGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewCountryGetParams

func NewCountryGetParams() *CountryGetParams

NewCountryGetParams creates a new CountryGetParams object with the default values initialized.

func NewCountryGetParamsWithContext

func NewCountryGetParamsWithContext(ctx context.Context) *CountryGetParams

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

func NewCountryGetParamsWithHTTPClient

func NewCountryGetParamsWithHTTPClient(client *http.Client) *CountryGetParams

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

func NewCountryGetParamsWithTimeout

func NewCountryGetParamsWithTimeout(timeout time.Duration) *CountryGetParams

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

func (*CountryGetParams) SetContext

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

SetContext adds the context to the country get params

func (*CountryGetParams) SetFields

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

SetFields adds the fields to the country get params

func (*CountryGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the country get params

func (*CountryGetParams) SetID

func (o *CountryGetParams) SetID(id int32)

SetID adds the id to the country get params

func (*CountryGetParams) SetTimeout

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

SetTimeout adds the timeout to the country get params

func (*CountryGetParams) WithContext

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

WithContext adds the context to the country get params

func (*CountryGetParams) WithFields

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

WithFields adds the fields to the country get params

func (*CountryGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the country get params

func (*CountryGetParams) WithID

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

WithID adds the id to the country get params

func (*CountryGetParams) WithTimeout

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

WithTimeout adds the timeout to the country get params

func (*CountryGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CountryGetReader

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

CountryGetReader is a Reader for the CountryGet structure.

func (*CountryGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CountrySearchOK

type CountrySearchOK struct {
	Payload *models.ListResponseCountry
}

CountrySearchOK handles this case with default header values.

successful operation

func NewCountrySearchOK

func NewCountrySearchOK() *CountrySearchOK

NewCountrySearchOK creates a CountrySearchOK with default headers values

func (*CountrySearchOK) Error

func (o *CountrySearchOK) Error() string

func (*CountrySearchOK) GetPayload

func (o *CountrySearchOK) GetPayload() *models.ListResponseCountry

type CountrySearchParams

type CountrySearchParams struct {

	/*Code
	  List of IDs

	*/
	Code *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

CountrySearchParams contains all the parameters to send to the API endpoint for the country search operation typically these are written to a http.Request

func NewCountrySearchParams

func NewCountrySearchParams() *CountrySearchParams

NewCountrySearchParams creates a new CountrySearchParams object with the default values initialized.

func NewCountrySearchParamsWithContext

func NewCountrySearchParamsWithContext(ctx context.Context) *CountrySearchParams

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

func NewCountrySearchParamsWithHTTPClient

func NewCountrySearchParamsWithHTTPClient(client *http.Client) *CountrySearchParams

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

func NewCountrySearchParamsWithTimeout

func NewCountrySearchParamsWithTimeout(timeout time.Duration) *CountrySearchParams

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

func (*CountrySearchParams) SetCode

func (o *CountrySearchParams) SetCode(code *string)

SetCode adds the code to the country search params

func (*CountrySearchParams) SetContext

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

SetContext adds the context to the country search params

func (*CountrySearchParams) SetCount

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

SetCount adds the count to the country search params

func (*CountrySearchParams) SetFields

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

SetFields adds the fields to the country search params

func (*CountrySearchParams) SetFrom

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

SetFrom adds the from to the country search params

func (*CountrySearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the country search params

func (*CountrySearchParams) SetID

func (o *CountrySearchParams) SetID(id *string)

SetID adds the id to the country search params

func (*CountrySearchParams) SetSorting

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

SetSorting adds the sorting to the country search params

func (*CountrySearchParams) SetTimeout

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

SetTimeout adds the timeout to the country search params

func (*CountrySearchParams) WithCode

func (o *CountrySearchParams) WithCode(code *string) *CountrySearchParams

WithCode adds the code to the country search params

func (*CountrySearchParams) WithContext

WithContext adds the context to the country search params

func (*CountrySearchParams) WithCount

func (o *CountrySearchParams) WithCount(count *int64) *CountrySearchParams

WithCount adds the count to the country search params

func (*CountrySearchParams) WithFields

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

WithFields adds the fields to the country search params

func (*CountrySearchParams) WithFrom

func (o *CountrySearchParams) WithFrom(from *int64) *CountrySearchParams

WithFrom adds the from to the country search params

func (*CountrySearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the country search params

func (*CountrySearchParams) WithID

WithID adds the id to the country search params

func (*CountrySearchParams) WithSorting

func (o *CountrySearchParams) WithSorting(sorting *string) *CountrySearchParams

WithSorting adds the sorting to the country search params

func (*CountrySearchParams) WithTimeout

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

WithTimeout adds the timeout to the country search params

func (*CountrySearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CountrySearchReader

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

CountrySearchReader is a Reader for the CountrySearch structure.

func (*CountrySearchReader) ReadResponse

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