Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetInsurancePricesBadRequest
- type GetInsurancePricesEnhanceYourCalm
- type GetInsurancePricesGatewayTimeout
- type GetInsurancePricesInternalServerError
- type GetInsurancePricesNotModified
- type GetInsurancePricesOK
- type GetInsurancePricesOKBodyItems0
- type GetInsurancePricesOKBodyItems0LevelsItems0
- type GetInsurancePricesParams
- func NewGetInsurancePricesParams() *GetInsurancePricesParams
- func NewGetInsurancePricesParamsWithContext(ctx context.Context) *GetInsurancePricesParams
- func NewGetInsurancePricesParamsWithHTTPClient(client *http.Client) *GetInsurancePricesParams
- func NewGetInsurancePricesParamsWithTimeout(timeout time.Duration) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) SetAcceptLanguage(acceptLanguage *string)
- func (o *GetInsurancePricesParams) SetContext(ctx context.Context)
- func (o *GetInsurancePricesParams) SetDatasource(datasource *string)
- func (o *GetInsurancePricesParams) SetHTTPClient(client *http.Client)
- func (o *GetInsurancePricesParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetInsurancePricesParams) SetLanguage(language *string)
- func (o *GetInsurancePricesParams) SetTimeout(timeout time.Duration)
- func (o *GetInsurancePricesParams) WithAcceptLanguage(acceptLanguage *string) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithContext(ctx context.Context) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithDatasource(datasource *string) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithHTTPClient(client *http.Client) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithIfNoneMatch(ifNoneMatch *string) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithLanguage(language *string) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WithTimeout(timeout time.Duration) *GetInsurancePricesParams
- func (o *GetInsurancePricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInsurancePricesReader
- type GetInsurancePricesServiceUnavailable
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 insurance API
func (*Client) GetInsurancePrices ¶
func (a *Client) GetInsurancePrices(params *GetInsurancePricesParams) (*GetInsurancePricesOK, error)
GetInsurancePrices lists insurance levels Return available insurance levels for all ship types
---
This route is cached for up to 3600 seconds
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetInsurancePrices(params *GetInsurancePricesParams) (*GetInsurancePricesOK, 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 insurance API client.
type GetInsurancePricesBadRequest ¶
type GetInsurancePricesBadRequest struct {
Payload *esimodels.BadRequest
}
GetInsurancePricesBadRequest handles this case with default header values.
Bad request
func NewGetInsurancePricesBadRequest ¶
func NewGetInsurancePricesBadRequest() *GetInsurancePricesBadRequest
NewGetInsurancePricesBadRequest creates a GetInsurancePricesBadRequest with default headers values
func (*GetInsurancePricesBadRequest) Error ¶
func (o *GetInsurancePricesBadRequest) Error() string
func (*GetInsurancePricesBadRequest) GetPayload ¶
func (o *GetInsurancePricesBadRequest) GetPayload() *esimodels.BadRequest
type GetInsurancePricesEnhanceYourCalm ¶
type GetInsurancePricesEnhanceYourCalm struct {
Payload *esimodels.ErrorLimited
}
GetInsurancePricesEnhanceYourCalm handles this case with default header values.
Error limited
func NewGetInsurancePricesEnhanceYourCalm ¶
func NewGetInsurancePricesEnhanceYourCalm() *GetInsurancePricesEnhanceYourCalm
NewGetInsurancePricesEnhanceYourCalm creates a GetInsurancePricesEnhanceYourCalm with default headers values
func (*GetInsurancePricesEnhanceYourCalm) Error ¶
func (o *GetInsurancePricesEnhanceYourCalm) Error() string
func (*GetInsurancePricesEnhanceYourCalm) GetPayload ¶
func (o *GetInsurancePricesEnhanceYourCalm) GetPayload() *esimodels.ErrorLimited
type GetInsurancePricesGatewayTimeout ¶
type GetInsurancePricesGatewayTimeout struct {
Payload *esimodels.GatewayTimeout
}
GetInsurancePricesGatewayTimeout handles this case with default header values.
Gateway timeout
func NewGetInsurancePricesGatewayTimeout ¶
func NewGetInsurancePricesGatewayTimeout() *GetInsurancePricesGatewayTimeout
NewGetInsurancePricesGatewayTimeout creates a GetInsurancePricesGatewayTimeout with default headers values
func (*GetInsurancePricesGatewayTimeout) Error ¶
func (o *GetInsurancePricesGatewayTimeout) Error() string
func (*GetInsurancePricesGatewayTimeout) GetPayload ¶
func (o *GetInsurancePricesGatewayTimeout) GetPayload() *esimodels.GatewayTimeout
type GetInsurancePricesInternalServerError ¶
type GetInsurancePricesInternalServerError struct {
Payload *esimodels.InternalServerError
}
GetInsurancePricesInternalServerError handles this case with default header values.
Internal server error
func NewGetInsurancePricesInternalServerError ¶
func NewGetInsurancePricesInternalServerError() *GetInsurancePricesInternalServerError
NewGetInsurancePricesInternalServerError creates a GetInsurancePricesInternalServerError with default headers values
func (*GetInsurancePricesInternalServerError) Error ¶
func (o *GetInsurancePricesInternalServerError) Error() string
func (*GetInsurancePricesInternalServerError) GetPayload ¶
func (o *GetInsurancePricesInternalServerError) GetPayload() *esimodels.InternalServerError
type GetInsurancePricesNotModified ¶
type GetInsurancePricesNotModified struct { /*The caching mechanism used */ CacheControl string /*RFC7232 compliant entity tag */ ETag string /*RFC7231 formatted datetime string */ Expires string /*RFC7231 formatted datetime string */ LastModified string }
GetInsurancePricesNotModified handles this case with default header values.
Not modified
func NewGetInsurancePricesNotModified ¶
func NewGetInsurancePricesNotModified() *GetInsurancePricesNotModified
NewGetInsurancePricesNotModified creates a GetInsurancePricesNotModified with default headers values
func (*GetInsurancePricesNotModified) Error ¶
func (o *GetInsurancePricesNotModified) Error() string
type GetInsurancePricesOK ¶
type GetInsurancePricesOK struct { /*The caching mechanism used */ CacheControl string /*The language used in the response */ ContentLanguage string /*RFC7232 compliant entity tag */ ETag string /*RFC7231 formatted datetime string */ Expires string /*RFC7231 formatted datetime string */ LastModified string Payload []*GetInsurancePricesOKBodyItems0 }
GetInsurancePricesOK handles this case with default header values.
A list of insurance levels for all ship types
func NewGetInsurancePricesOK ¶
func NewGetInsurancePricesOK() *GetInsurancePricesOK
NewGetInsurancePricesOK creates a GetInsurancePricesOK with default headers values
func (*GetInsurancePricesOK) Error ¶
func (o *GetInsurancePricesOK) Error() string
func (*GetInsurancePricesOK) GetPayload ¶
func (o *GetInsurancePricesOK) GetPayload() []*GetInsurancePricesOKBodyItems0
type GetInsurancePricesOKBodyItems0 ¶
type GetInsurancePricesOKBodyItems0 struct { // get_insurance_prices_levels // // A list of a available insurance levels for this ship type // Required: true // Max Items: 6 Levels []*GetInsurancePricesOKBodyItems0LevelsItems0 `json:"levels"` // get_insurance_prices_type_id // // type_id integer // Required: true TypeID *int32 `json:"type_id"` }
GetInsurancePricesOKBodyItems0 get_insurance_prices_200_ok // // 200 ok object swagger:model GetInsurancePricesOKBodyItems0
func (*GetInsurancePricesOKBodyItems0) MarshalBinary ¶
func (o *GetInsurancePricesOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetInsurancePricesOKBodyItems0) UnmarshalBinary ¶
func (o *GetInsurancePricesOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetInsurancePricesOKBodyItems0LevelsItems0 ¶
type GetInsurancePricesOKBodyItems0LevelsItems0 struct { // get_insurance_prices_cost // // cost number // Required: true Cost *float32 `json:"cost"` // get_insurance_prices_name // // Localized insurance level // Required: true Name *string `json:"name"` // get_insurance_prices_payout // // payout number // Required: true Payout *float32 `json:"payout"` }
GetInsurancePricesOKBodyItems0LevelsItems0 get_insurance_prices_level // // level object swagger:model GetInsurancePricesOKBodyItems0LevelsItems0
func (*GetInsurancePricesOKBodyItems0LevelsItems0) MarshalBinary ¶
func (o *GetInsurancePricesOKBodyItems0LevelsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetInsurancePricesOKBodyItems0LevelsItems0) UnmarshalBinary ¶
func (o *GetInsurancePricesOKBodyItems0LevelsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetInsurancePricesParams ¶
type GetInsurancePricesParams struct { /*AcceptLanguage Language to use in the response */ AcceptLanguage *string /*IfNoneMatch ETag from a previous request. A 304 will be returned if this matches the current ETag */ IfNoneMatch *string /*Datasource The server name you would like data from */ Datasource *string /*Language Language to use in the response, takes precedence over Accept-Language */ Language *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetInsurancePricesParams contains all the parameters to send to the API endpoint for the get insurance prices operation typically these are written to a http.Request
func NewGetInsurancePricesParams ¶
func NewGetInsurancePricesParams() *GetInsurancePricesParams
NewGetInsurancePricesParams creates a new GetInsurancePricesParams object with the default values initialized.
func NewGetInsurancePricesParamsWithContext ¶
func NewGetInsurancePricesParamsWithContext(ctx context.Context) *GetInsurancePricesParams
NewGetInsurancePricesParamsWithContext creates a new GetInsurancePricesParams object with the default values initialized, and the ability to set a context for a request
func NewGetInsurancePricesParamsWithHTTPClient ¶
func NewGetInsurancePricesParamsWithHTTPClient(client *http.Client) *GetInsurancePricesParams
NewGetInsurancePricesParamsWithHTTPClient creates a new GetInsurancePricesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetInsurancePricesParamsWithTimeout ¶
func NewGetInsurancePricesParamsWithTimeout(timeout time.Duration) *GetInsurancePricesParams
NewGetInsurancePricesParamsWithTimeout creates a new GetInsurancePricesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetInsurancePricesParams) SetAcceptLanguage ¶
func (o *GetInsurancePricesParams) SetAcceptLanguage(acceptLanguage *string)
SetAcceptLanguage adds the acceptLanguage to the get insurance prices params
func (*GetInsurancePricesParams) SetContext ¶
func (o *GetInsurancePricesParams) SetContext(ctx context.Context)
SetContext adds the context to the get insurance prices params
func (*GetInsurancePricesParams) SetDatasource ¶
func (o *GetInsurancePricesParams) SetDatasource(datasource *string)
SetDatasource adds the datasource to the get insurance prices params
func (*GetInsurancePricesParams) SetHTTPClient ¶
func (o *GetInsurancePricesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get insurance prices params
func (*GetInsurancePricesParams) SetIfNoneMatch ¶
func (o *GetInsurancePricesParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get insurance prices params
func (*GetInsurancePricesParams) SetLanguage ¶
func (o *GetInsurancePricesParams) SetLanguage(language *string)
SetLanguage adds the language to the get insurance prices params
func (*GetInsurancePricesParams) SetTimeout ¶
func (o *GetInsurancePricesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get insurance prices params
func (*GetInsurancePricesParams) WithAcceptLanguage ¶
func (o *GetInsurancePricesParams) WithAcceptLanguage(acceptLanguage *string) *GetInsurancePricesParams
WithAcceptLanguage adds the acceptLanguage to the get insurance prices params
func (*GetInsurancePricesParams) WithContext ¶
func (o *GetInsurancePricesParams) WithContext(ctx context.Context) *GetInsurancePricesParams
WithContext adds the context to the get insurance prices params
func (*GetInsurancePricesParams) WithDatasource ¶
func (o *GetInsurancePricesParams) WithDatasource(datasource *string) *GetInsurancePricesParams
WithDatasource adds the datasource to the get insurance prices params
func (*GetInsurancePricesParams) WithHTTPClient ¶
func (o *GetInsurancePricesParams) WithHTTPClient(client *http.Client) *GetInsurancePricesParams
WithHTTPClient adds the HTTPClient to the get insurance prices params
func (*GetInsurancePricesParams) WithIfNoneMatch ¶
func (o *GetInsurancePricesParams) WithIfNoneMatch(ifNoneMatch *string) *GetInsurancePricesParams
WithIfNoneMatch adds the ifNoneMatch to the get insurance prices params
func (*GetInsurancePricesParams) WithLanguage ¶
func (o *GetInsurancePricesParams) WithLanguage(language *string) *GetInsurancePricesParams
WithLanguage adds the language to the get insurance prices params
func (*GetInsurancePricesParams) WithTimeout ¶
func (o *GetInsurancePricesParams) WithTimeout(timeout time.Duration) *GetInsurancePricesParams
WithTimeout adds the timeout to the get insurance prices params
func (*GetInsurancePricesParams) WriteToRequest ¶
func (o *GetInsurancePricesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetInsurancePricesReader ¶
type GetInsurancePricesReader struct {
// contains filtered or unexported fields
}
GetInsurancePricesReader is a Reader for the GetInsurancePrices structure.
func (*GetInsurancePricesReader) ReadResponse ¶
func (o *GetInsurancePricesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetInsurancePricesServiceUnavailable ¶
type GetInsurancePricesServiceUnavailable struct {
}GetInsurancePricesServiceUnavailable handles this case with default header values.
Service unavailable
func NewGetInsurancePricesServiceUnavailable ¶
func NewGetInsurancePricesServiceUnavailable() *GetInsurancePricesServiceUnavailable
NewGetInsurancePricesServiceUnavailable creates a GetInsurancePricesServiceUnavailable with default headers values
func (*GetInsurancePricesServiceUnavailable) Error ¶
func (o *GetInsurancePricesServiceUnavailable) Error() string
func (*GetInsurancePricesServiceUnavailable) GetPayload ¶
func (o *GetInsurancePricesServiceUnavailable) GetPayload() *esimodels.ServiceUnavailable