Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationXML(r *runtime.ClientOperation)
- func WithAcceptTextJSON(r *runtime.ClientOperation)
- func WithAcceptTextXML(r *runtime.ClientOperation)
- type Client
- func (a *Client) MiscGetCompanySearch(params *MiscGetCompanySearchParams, opts ...ClientOption) (*MiscGetCompanySearchOK, error)
- func (a *Client) MiscGetTranslation(params *MiscGetTranslationParams, opts ...ClientOption) (*MiscGetTranslationOK, error)
- func (a *Client) MiscGetTypeCodes(params *MiscGetTypeCodesParams, opts ...ClientOption) (*MiscGetTypeCodesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type MiscGetCompanySearchOK
- func (o *MiscGetCompanySearchOK) Code() int
- func (o *MiscGetCompanySearchOK) Error() string
- func (o *MiscGetCompanySearchOK) GetPayload() *model.CompanySearchResult
- func (o *MiscGetCompanySearchOK) IsClientError() bool
- func (o *MiscGetCompanySearchOK) IsCode(code int) bool
- func (o *MiscGetCompanySearchOK) IsRedirect() bool
- func (o *MiscGetCompanySearchOK) IsServerError() bool
- func (o *MiscGetCompanySearchOK) IsSuccess() bool
- func (o *MiscGetCompanySearchOK) String() string
- type MiscGetCompanySearchParams
- func NewMiscGetCompanySearchParams() *MiscGetCompanySearchParams
- func NewMiscGetCompanySearchParamsWithContext(ctx context.Context) *MiscGetCompanySearchParams
- func NewMiscGetCompanySearchParamsWithHTTPClient(client *http.Client) *MiscGetCompanySearchParams
- func NewMiscGetCompanySearchParamsWithTimeout(timeout time.Duration) *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) SetContext(ctx context.Context)
- func (o *MiscGetCompanySearchParams) SetDefaults()
- func (o *MiscGetCompanySearchParams) SetHTTPClient(client *http.Client)
- func (o *MiscGetCompanySearchParams) SetKeywords(keywords string)
- func (o *MiscGetCompanySearchParams) SetTimeout(timeout time.Duration)
- func (o *MiscGetCompanySearchParams) WithContext(ctx context.Context) *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) WithDefaults() *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) WithHTTPClient(client *http.Client) *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) WithKeywords(keywords string) *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) WithTimeout(timeout time.Duration) *MiscGetCompanySearchParams
- func (o *MiscGetCompanySearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MiscGetCompanySearchReader
- type MiscGetTranslationOK
- func (o *MiscGetTranslationOK) Code() int
- func (o *MiscGetTranslationOK) Error() string
- func (o *MiscGetTranslationOK) GetPayload() *model.TypeCodeResult
- func (o *MiscGetTranslationOK) IsClientError() bool
- func (o *MiscGetTranslationOK) IsCode(code int) bool
- func (o *MiscGetTranslationOK) IsRedirect() bool
- func (o *MiscGetTranslationOK) IsServerError() bool
- func (o *MiscGetTranslationOK) IsSuccess() bool
- func (o *MiscGetTranslationOK) String() string
- type MiscGetTranslationParams
- func NewMiscGetTranslationParams() *MiscGetTranslationParams
- func NewMiscGetTranslationParamsWithContext(ctx context.Context) *MiscGetTranslationParams
- func NewMiscGetTranslationParamsWithHTTPClient(client *http.Client) *MiscGetTranslationParams
- func NewMiscGetTranslationParamsWithTimeout(timeout time.Duration) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) SetContext(ctx context.Context)
- func (o *MiscGetTranslationParams) SetDefaults()
- func (o *MiscGetTranslationParams) SetHTTPClient(client *http.Client)
- func (o *MiscGetTranslationParams) SetKey(key string)
- func (o *MiscGetTranslationParams) SetLanguage(language string)
- func (o *MiscGetTranslationParams) SetTimeout(timeout time.Duration)
- func (o *MiscGetTranslationParams) SetTypeCodeType(typeCodeType string)
- func (o *MiscGetTranslationParams) WithContext(ctx context.Context) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithDefaults() *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithHTTPClient(client *http.Client) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithKey(key string) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithLanguage(language string) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithTimeout(timeout time.Duration) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WithTypeCodeType(typeCodeType string) *MiscGetTranslationParams
- func (o *MiscGetTranslationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MiscGetTranslationReader
- type MiscGetTypeCodesOK
- func (o *MiscGetTypeCodesOK) Code() int
- func (o *MiscGetTypeCodesOK) Error() string
- func (o *MiscGetTypeCodesOK) GetPayload() *model.TypeCodeResult
- func (o *MiscGetTypeCodesOK) IsClientError() bool
- func (o *MiscGetTypeCodesOK) IsCode(code int) bool
- func (o *MiscGetTypeCodesOK) IsRedirect() bool
- func (o *MiscGetTypeCodesOK) IsServerError() bool
- func (o *MiscGetTypeCodesOK) IsSuccess() bool
- func (o *MiscGetTypeCodesOK) String() string
- type MiscGetTypeCodesParams
- func NewMiscGetTypeCodesParams() *MiscGetTypeCodesParams
- func NewMiscGetTypeCodesParamsWithContext(ctx context.Context) *MiscGetTypeCodesParams
- func NewMiscGetTypeCodesParamsWithHTTPClient(client *http.Client) *MiscGetTypeCodesParams
- func NewMiscGetTypeCodesParamsWithTimeout(timeout time.Duration) *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) SetContext(ctx context.Context)
- func (o *MiscGetTypeCodesParams) SetDefaults()
- func (o *MiscGetTypeCodesParams) SetHTTPClient(client *http.Client)
- func (o *MiscGetTypeCodesParams) SetTimeout(timeout time.Duration)
- func (o *MiscGetTypeCodesParams) SetTypeCodeType(typeCodeType string)
- func (o *MiscGetTypeCodesParams) WithContext(ctx context.Context) *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) WithDefaults() *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) WithHTTPClient(client *http.Client) *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) WithTimeout(timeout time.Duration) *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) WithTypeCodeType(typeCodeType string) *MiscGetTypeCodesParams
- func (o *MiscGetTypeCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MiscGetTypeCodesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationXML ¶
func WithAcceptApplicationXML(r *runtime.ClientOperation)
WithAcceptApplicationXML sets the Accept header to "application/xml".
func WithAcceptTextJSON ¶
func WithAcceptTextJSON(r *runtime.ClientOperation)
WithAcceptTextJSON sets the Accept header to "text/json".
func WithAcceptTextXML ¶
func WithAcceptTextXML(r *runtime.ClientOperation)
WithAcceptTextXML sets the Accept header to "text/xml".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for misc API
func (*Client) MiscGetCompanySearch ¶
func (a *Client) MiscGetCompanySearch(params *MiscGetCompanySearchParams, opts ...ClientOption) (*MiscGetCompanySearchOK, error)
MiscGetCompanySearch misc get company search API
func (*Client) MiscGetTranslation ¶
func (a *Client) MiscGetTranslation(params *MiscGetTranslationParams, opts ...ClientOption) (*MiscGetTranslationOK, error)
MiscGetTranslation misc get translation API
func (*Client) MiscGetTypeCodes ¶
func (a *Client) MiscGetTypeCodes(params *MiscGetTypeCodesParams, opts ...ClientOption) (*MiscGetTypeCodesOK, error)
MiscGetTypeCodes misc get type codes API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface {
MiscGetCompanySearch(params *MiscGetCompanySearchParams, opts ...ClientOption) (*MiscGetCompanySearchOK, error)
MiscGetTranslation(params *MiscGetTranslationParams, opts ...ClientOption) (*MiscGetTranslationOK, error)
MiscGetTypeCodes(params *MiscGetTypeCodesParams, opts ...ClientOption) (*MiscGetTypeCodesOK, 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 misc API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new misc API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new misc API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type MiscGetCompanySearchOK ¶
type MiscGetCompanySearchOK struct {
Payload *model.CompanySearchResult
}
MiscGetCompanySearchOK describes a response with status code 200, with default header values.
Search a company based on any keyword
func NewMiscGetCompanySearchOK ¶
func NewMiscGetCompanySearchOK() *MiscGetCompanySearchOK
NewMiscGetCompanySearchOK creates a MiscGetCompanySearchOK with default headers values
func (*MiscGetCompanySearchOK) Code ¶
func (o *MiscGetCompanySearchOK) Code() int
Code gets the status code for the misc get company search o k response
func (*MiscGetCompanySearchOK) Error ¶
func (o *MiscGetCompanySearchOK) Error() string
func (*MiscGetCompanySearchOK) GetPayload ¶
func (o *MiscGetCompanySearchOK) GetPayload() *model.CompanySearchResult
func (*MiscGetCompanySearchOK) IsClientError ¶
func (o *MiscGetCompanySearchOK) IsClientError() bool
IsClientError returns true when this misc get company search o k response has a 4xx status code
func (*MiscGetCompanySearchOK) IsCode ¶
func (o *MiscGetCompanySearchOK) IsCode(code int) bool
IsCode returns true when this misc get company search o k response a status code equal to that given
func (*MiscGetCompanySearchOK) IsRedirect ¶
func (o *MiscGetCompanySearchOK) IsRedirect() bool
IsRedirect returns true when this misc get company search o k response has a 3xx status code
func (*MiscGetCompanySearchOK) IsServerError ¶
func (o *MiscGetCompanySearchOK) IsServerError() bool
IsServerError returns true when this misc get company search o k response has a 5xx status code
func (*MiscGetCompanySearchOK) IsSuccess ¶
func (o *MiscGetCompanySearchOK) IsSuccess() bool
IsSuccess returns true when this misc get company search o k response has a 2xx status code
func (*MiscGetCompanySearchOK) String ¶
func (o *MiscGetCompanySearchOK) String() string
type MiscGetCompanySearchParams ¶
type MiscGetCompanySearchParams struct {
// Keywords.
Keywords string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
MiscGetCompanySearchParams contains all the parameters to send to the API endpoint
for the misc get company search operation. Typically these are written to a http.Request.
func NewMiscGetCompanySearchParams ¶
func NewMiscGetCompanySearchParams() *MiscGetCompanySearchParams
NewMiscGetCompanySearchParams creates a new MiscGetCompanySearchParams 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 NewMiscGetCompanySearchParamsWithContext ¶
func NewMiscGetCompanySearchParamsWithContext(ctx context.Context) *MiscGetCompanySearchParams
NewMiscGetCompanySearchParamsWithContext creates a new MiscGetCompanySearchParams object with the ability to set a context for a request.
func NewMiscGetCompanySearchParamsWithHTTPClient ¶
func NewMiscGetCompanySearchParamsWithHTTPClient(client *http.Client) *MiscGetCompanySearchParams
NewMiscGetCompanySearchParamsWithHTTPClient creates a new MiscGetCompanySearchParams object with the ability to set a custom HTTPClient for a request.
func NewMiscGetCompanySearchParamsWithTimeout ¶
func NewMiscGetCompanySearchParamsWithTimeout(timeout time.Duration) *MiscGetCompanySearchParams
NewMiscGetCompanySearchParamsWithTimeout creates a new MiscGetCompanySearchParams object with the ability to set a timeout on a request.
func (*MiscGetCompanySearchParams) SetContext ¶
func (o *MiscGetCompanySearchParams) SetContext(ctx context.Context)
SetContext adds the context to the misc get company search params
func (*MiscGetCompanySearchParams) SetDefaults ¶
func (o *MiscGetCompanySearchParams) SetDefaults()
SetDefaults hydrates default values in the misc get company search params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetCompanySearchParams) SetHTTPClient ¶
func (o *MiscGetCompanySearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the misc get company search params
func (*MiscGetCompanySearchParams) SetKeywords ¶
func (o *MiscGetCompanySearchParams) SetKeywords(keywords string)
SetKeywords adds the keywords to the misc get company search params
func (*MiscGetCompanySearchParams) SetTimeout ¶
func (o *MiscGetCompanySearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the misc get company search params
func (*MiscGetCompanySearchParams) WithContext ¶
func (o *MiscGetCompanySearchParams) WithContext(ctx context.Context) *MiscGetCompanySearchParams
WithContext adds the context to the misc get company search params
func (*MiscGetCompanySearchParams) WithDefaults ¶
func (o *MiscGetCompanySearchParams) WithDefaults() *MiscGetCompanySearchParams
WithDefaults hydrates default values in the misc get company search params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetCompanySearchParams) WithHTTPClient ¶
func (o *MiscGetCompanySearchParams) WithHTTPClient(client *http.Client) *MiscGetCompanySearchParams
WithHTTPClient adds the HTTPClient to the misc get company search params
func (*MiscGetCompanySearchParams) WithKeywords ¶
func (o *MiscGetCompanySearchParams) WithKeywords(keywords string) *MiscGetCompanySearchParams
WithKeywords adds the keywords to the misc get company search params
func (*MiscGetCompanySearchParams) WithTimeout ¶
func (o *MiscGetCompanySearchParams) WithTimeout(timeout time.Duration) *MiscGetCompanySearchParams
WithTimeout adds the timeout to the misc get company search params
func (*MiscGetCompanySearchParams) WriteToRequest ¶
func (o *MiscGetCompanySearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MiscGetCompanySearchReader ¶
type MiscGetCompanySearchReader struct {
// contains filtered or unexported fields
}
MiscGetCompanySearchReader is a Reader for the MiscGetCompanySearch structure.
func (*MiscGetCompanySearchReader) ReadResponse ¶
func (o *MiscGetCompanySearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MiscGetTranslationOK ¶
type MiscGetTranslationOK struct {
Payload *model.TypeCodeResult
}
MiscGetTranslationOK describes a response with status code 200, with default header values.
Get a translation of a key of a typecode
func NewMiscGetTranslationOK ¶
func NewMiscGetTranslationOK() *MiscGetTranslationOK
NewMiscGetTranslationOK creates a MiscGetTranslationOK with default headers values
func (*MiscGetTranslationOK) Code ¶
func (o *MiscGetTranslationOK) Code() int
Code gets the status code for the misc get translation o k response
func (*MiscGetTranslationOK) Error ¶
func (o *MiscGetTranslationOK) Error() string
func (*MiscGetTranslationOK) GetPayload ¶
func (o *MiscGetTranslationOK) GetPayload() *model.TypeCodeResult
func (*MiscGetTranslationOK) IsClientError ¶
func (o *MiscGetTranslationOK) IsClientError() bool
IsClientError returns true when this misc get translation o k response has a 4xx status code
func (*MiscGetTranslationOK) IsCode ¶
func (o *MiscGetTranslationOK) IsCode(code int) bool
IsCode returns true when this misc get translation o k response a status code equal to that given
func (*MiscGetTranslationOK) IsRedirect ¶
func (o *MiscGetTranslationOK) IsRedirect() bool
IsRedirect returns true when this misc get translation o k response has a 3xx status code
func (*MiscGetTranslationOK) IsServerError ¶
func (o *MiscGetTranslationOK) IsServerError() bool
IsServerError returns true when this misc get translation o k response has a 5xx status code
func (*MiscGetTranslationOK) IsSuccess ¶
func (o *MiscGetTranslationOK) IsSuccess() bool
IsSuccess returns true when this misc get translation o k response has a 2xx status code
func (*MiscGetTranslationOK) String ¶
func (o *MiscGetTranslationOK) String() string
type MiscGetTranslationParams ¶
type MiscGetTranslationParams struct {
// TypeCodeType.
TypeCodeType string
// Key.
Key string
// Language.
Language string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
MiscGetTranslationParams contains all the parameters to send to the API endpoint
for the misc get translation operation. Typically these are written to a http.Request.
func NewMiscGetTranslationParams ¶
func NewMiscGetTranslationParams() *MiscGetTranslationParams
NewMiscGetTranslationParams creates a new MiscGetTranslationParams 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 NewMiscGetTranslationParamsWithContext ¶
func NewMiscGetTranslationParamsWithContext(ctx context.Context) *MiscGetTranslationParams
NewMiscGetTranslationParamsWithContext creates a new MiscGetTranslationParams object with the ability to set a context for a request.
func NewMiscGetTranslationParamsWithHTTPClient ¶
func NewMiscGetTranslationParamsWithHTTPClient(client *http.Client) *MiscGetTranslationParams
NewMiscGetTranslationParamsWithHTTPClient creates a new MiscGetTranslationParams object with the ability to set a custom HTTPClient for a request.
func NewMiscGetTranslationParamsWithTimeout ¶
func NewMiscGetTranslationParamsWithTimeout(timeout time.Duration) *MiscGetTranslationParams
NewMiscGetTranslationParamsWithTimeout creates a new MiscGetTranslationParams object with the ability to set a timeout on a request.
func (*MiscGetTranslationParams) SetContext ¶
func (o *MiscGetTranslationParams) SetContext(ctx context.Context)
SetContext adds the context to the misc get translation params
func (*MiscGetTranslationParams) SetDefaults ¶
func (o *MiscGetTranslationParams) SetDefaults()
SetDefaults hydrates default values in the misc get translation params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetTranslationParams) SetHTTPClient ¶
func (o *MiscGetTranslationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the misc get translation params
func (*MiscGetTranslationParams) SetKey ¶
func (o *MiscGetTranslationParams) SetKey(key string)
SetKey adds the key to the misc get translation params
func (*MiscGetTranslationParams) SetLanguage ¶
func (o *MiscGetTranslationParams) SetLanguage(language string)
SetLanguage adds the language to the misc get translation params
func (*MiscGetTranslationParams) SetTimeout ¶
func (o *MiscGetTranslationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the misc get translation params
func (*MiscGetTranslationParams) SetTypeCodeType ¶
func (o *MiscGetTranslationParams) SetTypeCodeType(typeCodeType string)
SetTypeCodeType adds the typeCodeType to the misc get translation params
func (*MiscGetTranslationParams) WithContext ¶
func (o *MiscGetTranslationParams) WithContext(ctx context.Context) *MiscGetTranslationParams
WithContext adds the context to the misc get translation params
func (*MiscGetTranslationParams) WithDefaults ¶
func (o *MiscGetTranslationParams) WithDefaults() *MiscGetTranslationParams
WithDefaults hydrates default values in the misc get translation params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetTranslationParams) WithHTTPClient ¶
func (o *MiscGetTranslationParams) WithHTTPClient(client *http.Client) *MiscGetTranslationParams
WithHTTPClient adds the HTTPClient to the misc get translation params
func (*MiscGetTranslationParams) WithKey ¶
func (o *MiscGetTranslationParams) WithKey(key string) *MiscGetTranslationParams
WithKey adds the key to the misc get translation params
func (*MiscGetTranslationParams) WithLanguage ¶
func (o *MiscGetTranslationParams) WithLanguage(language string) *MiscGetTranslationParams
WithLanguage adds the language to the misc get translation params
func (*MiscGetTranslationParams) WithTimeout ¶
func (o *MiscGetTranslationParams) WithTimeout(timeout time.Duration) *MiscGetTranslationParams
WithTimeout adds the timeout to the misc get translation params
func (*MiscGetTranslationParams) WithTypeCodeType ¶
func (o *MiscGetTranslationParams) WithTypeCodeType(typeCodeType string) *MiscGetTranslationParams
WithTypeCodeType adds the typeCodeType to the misc get translation params
func (*MiscGetTranslationParams) WriteToRequest ¶
func (o *MiscGetTranslationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MiscGetTranslationReader ¶
type MiscGetTranslationReader struct {
// contains filtered or unexported fields
}
MiscGetTranslationReader is a Reader for the MiscGetTranslation structure.
func (*MiscGetTranslationReader) ReadResponse ¶
func (o *MiscGetTranslationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MiscGetTypeCodesOK ¶
type MiscGetTypeCodesOK struct {
Payload *model.TypeCodeResult
}
MiscGetTypeCodesOK describes a response with status code 200, with default header values.
Get all translations of a TypeCode
func NewMiscGetTypeCodesOK ¶
func NewMiscGetTypeCodesOK() *MiscGetTypeCodesOK
NewMiscGetTypeCodesOK creates a MiscGetTypeCodesOK with default headers values
func (*MiscGetTypeCodesOK) Code ¶
func (o *MiscGetTypeCodesOK) Code() int
Code gets the status code for the misc get type codes o k response
func (*MiscGetTypeCodesOK) Error ¶
func (o *MiscGetTypeCodesOK) Error() string
func (*MiscGetTypeCodesOK) GetPayload ¶
func (o *MiscGetTypeCodesOK) GetPayload() *model.TypeCodeResult
func (*MiscGetTypeCodesOK) IsClientError ¶
func (o *MiscGetTypeCodesOK) IsClientError() bool
IsClientError returns true when this misc get type codes o k response has a 4xx status code
func (*MiscGetTypeCodesOK) IsCode ¶
func (o *MiscGetTypeCodesOK) IsCode(code int) bool
IsCode returns true when this misc get type codes o k response a status code equal to that given
func (*MiscGetTypeCodesOK) IsRedirect ¶
func (o *MiscGetTypeCodesOK) IsRedirect() bool
IsRedirect returns true when this misc get type codes o k response has a 3xx status code
func (*MiscGetTypeCodesOK) IsServerError ¶
func (o *MiscGetTypeCodesOK) IsServerError() bool
IsServerError returns true when this misc get type codes o k response has a 5xx status code
func (*MiscGetTypeCodesOK) IsSuccess ¶
func (o *MiscGetTypeCodesOK) IsSuccess() bool
IsSuccess returns true when this misc get type codes o k response has a 2xx status code
func (*MiscGetTypeCodesOK) String ¶
func (o *MiscGetTypeCodesOK) String() string
type MiscGetTypeCodesParams ¶
type MiscGetTypeCodesParams struct {
// TypeCodeType.
TypeCodeType string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
MiscGetTypeCodesParams contains all the parameters to send to the API endpoint
for the misc get type codes operation. Typically these are written to a http.Request.
func NewMiscGetTypeCodesParams ¶
func NewMiscGetTypeCodesParams() *MiscGetTypeCodesParams
NewMiscGetTypeCodesParams creates a new MiscGetTypeCodesParams 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 NewMiscGetTypeCodesParamsWithContext ¶
func NewMiscGetTypeCodesParamsWithContext(ctx context.Context) *MiscGetTypeCodesParams
NewMiscGetTypeCodesParamsWithContext creates a new MiscGetTypeCodesParams object with the ability to set a context for a request.
func NewMiscGetTypeCodesParamsWithHTTPClient ¶
func NewMiscGetTypeCodesParamsWithHTTPClient(client *http.Client) *MiscGetTypeCodesParams
NewMiscGetTypeCodesParamsWithHTTPClient creates a new MiscGetTypeCodesParams object with the ability to set a custom HTTPClient for a request.
func NewMiscGetTypeCodesParamsWithTimeout ¶
func NewMiscGetTypeCodesParamsWithTimeout(timeout time.Duration) *MiscGetTypeCodesParams
NewMiscGetTypeCodesParamsWithTimeout creates a new MiscGetTypeCodesParams object with the ability to set a timeout on a request.
func (*MiscGetTypeCodesParams) SetContext ¶
func (o *MiscGetTypeCodesParams) SetContext(ctx context.Context)
SetContext adds the context to the misc get type codes params
func (*MiscGetTypeCodesParams) SetDefaults ¶
func (o *MiscGetTypeCodesParams) SetDefaults()
SetDefaults hydrates default values in the misc get type codes params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetTypeCodesParams) SetHTTPClient ¶
func (o *MiscGetTypeCodesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the misc get type codes params
func (*MiscGetTypeCodesParams) SetTimeout ¶
func (o *MiscGetTypeCodesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the misc get type codes params
func (*MiscGetTypeCodesParams) SetTypeCodeType ¶
func (o *MiscGetTypeCodesParams) SetTypeCodeType(typeCodeType string)
SetTypeCodeType adds the typeCodeType to the misc get type codes params
func (*MiscGetTypeCodesParams) WithContext ¶
func (o *MiscGetTypeCodesParams) WithContext(ctx context.Context) *MiscGetTypeCodesParams
WithContext adds the context to the misc get type codes params
func (*MiscGetTypeCodesParams) WithDefaults ¶
func (o *MiscGetTypeCodesParams) WithDefaults() *MiscGetTypeCodesParams
WithDefaults hydrates default values in the misc get type codes params (not the query body).
All values with no default are reset to their zero value.
func (*MiscGetTypeCodesParams) WithHTTPClient ¶
func (o *MiscGetTypeCodesParams) WithHTTPClient(client *http.Client) *MiscGetTypeCodesParams
WithHTTPClient adds the HTTPClient to the misc get type codes params
func (*MiscGetTypeCodesParams) WithTimeout ¶
func (o *MiscGetTypeCodesParams) WithTimeout(timeout time.Duration) *MiscGetTypeCodesParams
WithTimeout adds the timeout to the misc get type codes params
func (*MiscGetTypeCodesParams) WithTypeCodeType ¶
func (o *MiscGetTypeCodesParams) WithTypeCodeType(typeCodeType string) *MiscGetTypeCodesParams
WithTypeCodeType adds the typeCodeType to the misc get type codes params
func (*MiscGetTypeCodesParams) WriteToRequest ¶
func (o *MiscGetTypeCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MiscGetTypeCodesReader ¶
type MiscGetTypeCodesReader struct {
// contains filtered or unexported fields
}
MiscGetTypeCodesReader is a Reader for the MiscGetTypeCodes structure.
func (*MiscGetTypeCodesReader) ReadResponse ¶
func (o *MiscGetTypeCodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.