masterdata

package
v0.18.20 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT 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 masterdata API

func (*Client) GetMasterdata

func (a *Client) GetMasterdata(params *GetMasterdataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMasterdataOK, error)

GetMasterdata gets masterdata for given lookup criteria

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.15.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.9.1

type ClientService interface {
	GetMasterdata(params *GetMasterdataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMasterdataOK, 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 masterdata API client.

type GetMasterdataDefault

type GetMasterdataDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
GetMasterdataDefault describes a response with status code -1, with default header values.

Error

func NewGetMasterdataDefault

func NewGetMasterdataDefault(code int) *GetMasterdataDefault

NewGetMasterdataDefault creates a GetMasterdataDefault with default headers values

func (*GetMasterdataDefault) Code

func (o *GetMasterdataDefault) Code() int

Code gets the status code for the get masterdata default response

func (*GetMasterdataDefault) Error

func (o *GetMasterdataDefault) Error() string

func (*GetMasterdataDefault) GetPayload added in v0.9.1

type GetMasterdataNotFound

type GetMasterdataNotFound struct {
	Payload *httperrors.HTTPErrorResponse
}
GetMasterdataNotFound describes a response with status code 404, with default header values.

NotFound

func NewGetMasterdataNotFound

func NewGetMasterdataNotFound() *GetMasterdataNotFound

NewGetMasterdataNotFound creates a GetMasterdataNotFound with default headers values

func (*GetMasterdataNotFound) Error

func (o *GetMasterdataNotFound) Error() string

func (*GetMasterdataNotFound) GetPayload added in v0.9.1

type GetMasterdataOK

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

Ok

func NewGetMasterdataOK

func NewGetMasterdataOK() *GetMasterdataOK

NewGetMasterdataOK creates a GetMasterdataOK with default headers values

func (*GetMasterdataOK) Error

func (o *GetMasterdataOK) Error() string

func (*GetMasterdataOK) GetPayload added in v0.9.1

type GetMasterdataParams

type GetMasterdataParams struct {

	// Body.
	Body *models.V1MasterdataLookupRequest

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

GetMasterdataParams contains all the parameters to send to the API endpoint

for the get masterdata operation.

Typically these are written to a http.Request.

func NewGetMasterdataParams

func NewGetMasterdataParams() *GetMasterdataParams

NewGetMasterdataParams creates a new GetMasterdataParams 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 NewGetMasterdataParamsWithContext

func NewGetMasterdataParamsWithContext(ctx context.Context) *GetMasterdataParams

NewGetMasterdataParamsWithContext creates a new GetMasterdataParams object with the ability to set a context for a request.

func NewGetMasterdataParamsWithHTTPClient

func NewGetMasterdataParamsWithHTTPClient(client *http.Client) *GetMasterdataParams

NewGetMasterdataParamsWithHTTPClient creates a new GetMasterdataParams object with the ability to set a custom HTTPClient for a request.

func NewGetMasterdataParamsWithTimeout

func NewGetMasterdataParamsWithTimeout(timeout time.Duration) *GetMasterdataParams

NewGetMasterdataParamsWithTimeout creates a new GetMasterdataParams object with the ability to set a timeout on a request.

func (*GetMasterdataParams) SetBody

SetBody adds the body to the get masterdata params

func (*GetMasterdataParams) SetContext

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

SetContext adds the context to the get masterdata params

func (*GetMasterdataParams) SetDefaults added in v0.12.0

func (o *GetMasterdataParams) SetDefaults()

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

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

func (*GetMasterdataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get masterdata params

func (*GetMasterdataParams) SetTimeout

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

SetTimeout adds the timeout to the get masterdata params

func (*GetMasterdataParams) WithBody

WithBody adds the body to the get masterdata params

func (*GetMasterdataParams) WithContext

WithContext adds the context to the get masterdata params

func (*GetMasterdataParams) WithDefaults added in v0.12.0

func (o *GetMasterdataParams) WithDefaults() *GetMasterdataParams

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

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

func (*GetMasterdataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get masterdata params

func (*GetMasterdataParams) WithTimeout

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

WithTimeout adds the timeout to the get masterdata params

func (*GetMasterdataParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMasterdataReader

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

GetMasterdataReader is a Reader for the GetMasterdata structure.

func (*GetMasterdataReader) ReadResponse

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