Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetMasterdataDefault
- func (o *GetMasterdataDefault) Code() int
- func (o *GetMasterdataDefault) Error() string
- func (o *GetMasterdataDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *GetMasterdataDefault) IsClientError() bool
- func (o *GetMasterdataDefault) IsCode(code int) bool
- func (o *GetMasterdataDefault) IsRedirect() bool
- func (o *GetMasterdataDefault) IsServerError() bool
- func (o *GetMasterdataDefault) IsSuccess() bool
- func (o *GetMasterdataDefault) String() string
- type GetMasterdataNotFound
- func (o *GetMasterdataNotFound) Error() string
- func (o *GetMasterdataNotFound) GetPayload() *httperrors.HTTPErrorResponse
- func (o *GetMasterdataNotFound) IsClientError() bool
- func (o *GetMasterdataNotFound) IsCode(code int) bool
- func (o *GetMasterdataNotFound) IsRedirect() bool
- func (o *GetMasterdataNotFound) IsServerError() bool
- func (o *GetMasterdataNotFound) IsSuccess() bool
- func (o *GetMasterdataNotFound) String() string
- type GetMasterdataOK
- func (o *GetMasterdataOK) Error() string
- func (o *GetMasterdataOK) GetPayload() *models.V1MasterdataLookupResponse
- func (o *GetMasterdataOK) IsClientError() bool
- func (o *GetMasterdataOK) IsCode(code int) bool
- func (o *GetMasterdataOK) IsRedirect() bool
- func (o *GetMasterdataOK) IsServerError() bool
- func (o *GetMasterdataOK) IsSuccess() bool
- func (o *GetMasterdataOK) String() string
- type GetMasterdataParams
- func (o *GetMasterdataParams) SetBody(body *models.V1MasterdataLookupRequest)
- func (o *GetMasterdataParams) SetContext(ctx context.Context)
- func (o *GetMasterdataParams) SetDefaults()
- func (o *GetMasterdataParams) SetHTTPClient(client *http.Client)
- func (o *GetMasterdataParams) SetTimeout(timeout time.Duration)
- func (o *GetMasterdataParams) WithBody(body *models.V1MasterdataLookupRequest) *GetMasterdataParams
- func (o *GetMasterdataParams) WithContext(ctx context.Context) *GetMasterdataParams
- func (o *GetMasterdataParams) WithDefaults() *GetMasterdataParams
- func (o *GetMasterdataParams) WithHTTPClient(client *http.Client) *GetMasterdataParams
- func (o *GetMasterdataParams) WithTimeout(timeout time.Duration) *GetMasterdataParams
- func (o *GetMasterdataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMasterdataReader
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
func (o *GetMasterdataDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*GetMasterdataDefault) IsClientError ¶ added in v0.19.0
func (o *GetMasterdataDefault) IsClientError() bool
IsClientError returns true when this get masterdata default response has a 4xx status code
func (*GetMasterdataDefault) IsCode ¶ added in v0.19.0
func (o *GetMasterdataDefault) IsCode(code int) bool
IsCode returns true when this get masterdata default response a status code equal to that given
func (*GetMasterdataDefault) IsRedirect ¶ added in v0.19.0
func (o *GetMasterdataDefault) IsRedirect() bool
IsRedirect returns true when this get masterdata default response has a 3xx status code
func (*GetMasterdataDefault) IsServerError ¶ added in v0.19.0
func (o *GetMasterdataDefault) IsServerError() bool
IsServerError returns true when this get masterdata default response has a 5xx status code
func (*GetMasterdataDefault) IsSuccess ¶ added in v0.19.0
func (o *GetMasterdataDefault) IsSuccess() bool
IsSuccess returns true when this get masterdata default response has a 2xx status code
func (*GetMasterdataDefault) String ¶ added in v0.19.0
func (o *GetMasterdataDefault) String() string
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
func (o *GetMasterdataNotFound) GetPayload() *httperrors.HTTPErrorResponse
func (*GetMasterdataNotFound) IsClientError ¶ added in v0.19.0
func (o *GetMasterdataNotFound) IsClientError() bool
IsClientError returns true when this get masterdata not found response has a 4xx status code
func (*GetMasterdataNotFound) IsCode ¶ added in v0.19.0
func (o *GetMasterdataNotFound) IsCode(code int) bool
IsCode returns true when this get masterdata not found response a status code equal to that given
func (*GetMasterdataNotFound) IsRedirect ¶ added in v0.19.0
func (o *GetMasterdataNotFound) IsRedirect() bool
IsRedirect returns true when this get masterdata not found response has a 3xx status code
func (*GetMasterdataNotFound) IsServerError ¶ added in v0.19.0
func (o *GetMasterdataNotFound) IsServerError() bool
IsServerError returns true when this get masterdata not found response has a 5xx status code
func (*GetMasterdataNotFound) IsSuccess ¶ added in v0.19.0
func (o *GetMasterdataNotFound) IsSuccess() bool
IsSuccess returns true when this get masterdata not found response has a 2xx status code
func (*GetMasterdataNotFound) String ¶ added in v0.19.0
func (o *GetMasterdataNotFound) String() string
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
func (o *GetMasterdataOK) GetPayload() *models.V1MasterdataLookupResponse
func (*GetMasterdataOK) IsClientError ¶ added in v0.19.0
func (o *GetMasterdataOK) IsClientError() bool
IsClientError returns true when this get masterdata o k response has a 4xx status code
func (*GetMasterdataOK) IsCode ¶ added in v0.19.0
func (o *GetMasterdataOK) IsCode(code int) bool
IsCode returns true when this get masterdata o k response a status code equal to that given
func (*GetMasterdataOK) IsRedirect ¶ added in v0.19.0
func (o *GetMasterdataOK) IsRedirect() bool
IsRedirect returns true when this get masterdata o k response has a 3xx status code
func (*GetMasterdataOK) IsServerError ¶ added in v0.19.0
func (o *GetMasterdataOK) IsServerError() bool
IsServerError returns true when this get masterdata o k response has a 5xx status code
func (*GetMasterdataOK) IsSuccess ¶ added in v0.19.0
func (o *GetMasterdataOK) IsSuccess() bool
IsSuccess returns true when this get masterdata o k response has a 2xx status code
func (*GetMasterdataOK) String ¶ added in v0.19.0
func (o *GetMasterdataOK) String() string
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 ¶
func (o *GetMasterdataParams) SetBody(body *models.V1MasterdataLookupRequest)
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 ¶
func (o *GetMasterdataParams) WithBody(body *models.V1MasterdataLookupRequest) *GetMasterdataParams
WithBody adds the body to the get masterdata params
func (*GetMasterdataParams) WithContext ¶
func (o *GetMasterdataParams) WithContext(ctx context.Context) *GetMasterdataParams
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.