Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PostServicekeyLoginBadRequest
- func (o *PostServicekeyLoginBadRequest) Code() int
- func (o *PostServicekeyLoginBadRequest) Error() string
- func (o *PostServicekeyLoginBadRequest) GetPayload() string
- func (o *PostServicekeyLoginBadRequest) IsClientError() bool
- func (o *PostServicekeyLoginBadRequest) IsCode(code int) bool
- func (o *PostServicekeyLoginBadRequest) IsRedirect() bool
- func (o *PostServicekeyLoginBadRequest) IsServerError() bool
- func (o *PostServicekeyLoginBadRequest) IsSuccess() bool
- func (o *PostServicekeyLoginBadRequest) String() string
- type PostServicekeyLoginInternalServerError
- func (o *PostServicekeyLoginInternalServerError) Code() int
- func (o *PostServicekeyLoginInternalServerError) Error() string
- func (o *PostServicekeyLoginInternalServerError) GetPayload() string
- func (o *PostServicekeyLoginInternalServerError) IsClientError() bool
- func (o *PostServicekeyLoginInternalServerError) IsCode(code int) bool
- func (o *PostServicekeyLoginInternalServerError) IsRedirect() bool
- func (o *PostServicekeyLoginInternalServerError) IsServerError() bool
- func (o *PostServicekeyLoginInternalServerError) IsSuccess() bool
- func (o *PostServicekeyLoginInternalServerError) String() string
- type PostServicekeyLoginOK
- func (o *PostServicekeyLoginOK) Code() int
- func (o *PostServicekeyLoginOK) Error() string
- func (o *PostServicekeyLoginOK) GetPayload() *models.ModelsServiceKeyLoginResponse
- func (o *PostServicekeyLoginOK) IsClientError() bool
- func (o *PostServicekeyLoginOK) IsCode(code int) bool
- func (o *PostServicekeyLoginOK) IsRedirect() bool
- func (o *PostServicekeyLoginOK) IsServerError() bool
- func (o *PostServicekeyLoginOK) IsSuccess() bool
- func (o *PostServicekeyLoginOK) String() string
- type PostServicekeyLoginParams
- func NewPostServicekeyLoginParams() *PostServicekeyLoginParams
- func NewPostServicekeyLoginParamsWithContext(ctx context.Context) *PostServicekeyLoginParams
- func NewPostServicekeyLoginParamsWithHTTPClient(client *http.Client) *PostServicekeyLoginParams
- func NewPostServicekeyLoginParamsWithTimeout(timeout time.Duration) *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) SetContext(ctx context.Context)
- func (o *PostServicekeyLoginParams) SetDefaults()
- func (o *PostServicekeyLoginParams) SetHTTPClient(client *http.Client)
- func (o *PostServicekeyLoginParams) SetServicekey(servicekey string)
- func (o *PostServicekeyLoginParams) SetTimeout(timeout time.Duration)
- func (o *PostServicekeyLoginParams) WithContext(ctx context.Context) *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) WithDefaults() *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) WithHTTPClient(client *http.Client) *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) WithServicekey(servicekey string) *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) WithTimeout(timeout time.Duration) *PostServicekeyLoginParams
- func (o *PostServicekeyLoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostServicekeyLoginReader
- type PostServicekeyLoginUnauthorized
- func (o *PostServicekeyLoginUnauthorized) Code() int
- func (o *PostServicekeyLoginUnauthorized) Error() string
- func (o *PostServicekeyLoginUnauthorized) GetPayload() string
- func (o *PostServicekeyLoginUnauthorized) IsClientError() bool
- func (o *PostServicekeyLoginUnauthorized) IsCode(code int) bool
- func (o *PostServicekeyLoginUnauthorized) IsRedirect() bool
- func (o *PostServicekeyLoginUnauthorized) IsServerError() bool
- func (o *PostServicekeyLoginUnauthorized) IsSuccess() bool
- func (o *PostServicekeyLoginUnauthorized) String() string
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 servicekey API
func (*Client) PostServicekeyLogin ¶
func (a *Client) PostServicekeyLogin(params *PostServicekeyLoginParams, opts ...ClientOption) (*PostServicekeyLoginOK, error)
PostServicekeyLogin services key login logs in a user with their service key
ServiceKeyLogin logs in a user with their Service Key
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 is the option for Client methods
type ClientService ¶
type ClientService interface { PostServicekeyLogin(params *PostServicekeyLoginParams, opts ...ClientOption) (*PostServicekeyLoginOK, 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 servicekey API client.
type PostServicekeyLoginBadRequest ¶
type PostServicekeyLoginBadRequest struct {
Payload string
}
PostServicekeyLoginBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostServicekeyLoginBadRequest ¶
func NewPostServicekeyLoginBadRequest() *PostServicekeyLoginBadRequest
NewPostServicekeyLoginBadRequest creates a PostServicekeyLoginBadRequest with default headers values
func (*PostServicekeyLoginBadRequest) Code ¶
func (o *PostServicekeyLoginBadRequest) Code() int
Code gets the status code for the post servicekey login bad request response
func (*PostServicekeyLoginBadRequest) Error ¶
func (o *PostServicekeyLoginBadRequest) Error() string
func (*PostServicekeyLoginBadRequest) GetPayload ¶
func (o *PostServicekeyLoginBadRequest) GetPayload() string
func (*PostServicekeyLoginBadRequest) IsClientError ¶
func (o *PostServicekeyLoginBadRequest) IsClientError() bool
IsClientError returns true when this post servicekey login bad request response has a 4xx status code
func (*PostServicekeyLoginBadRequest) IsCode ¶
func (o *PostServicekeyLoginBadRequest) IsCode(code int) bool
IsCode returns true when this post servicekey login bad request response a status code equal to that given
func (*PostServicekeyLoginBadRequest) IsRedirect ¶
func (o *PostServicekeyLoginBadRequest) IsRedirect() bool
IsRedirect returns true when this post servicekey login bad request response has a 3xx status code
func (*PostServicekeyLoginBadRequest) IsServerError ¶
func (o *PostServicekeyLoginBadRequest) IsServerError() bool
IsServerError returns true when this post servicekey login bad request response has a 5xx status code
func (*PostServicekeyLoginBadRequest) IsSuccess ¶
func (o *PostServicekeyLoginBadRequest) IsSuccess() bool
IsSuccess returns true when this post servicekey login bad request response has a 2xx status code
func (*PostServicekeyLoginBadRequest) String ¶
func (o *PostServicekeyLoginBadRequest) String() string
type PostServicekeyLoginInternalServerError ¶
type PostServicekeyLoginInternalServerError struct {
Payload string
}
PostServicekeyLoginInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostServicekeyLoginInternalServerError ¶
func NewPostServicekeyLoginInternalServerError() *PostServicekeyLoginInternalServerError
NewPostServicekeyLoginInternalServerError creates a PostServicekeyLoginInternalServerError with default headers values
func (*PostServicekeyLoginInternalServerError) Code ¶
func (o *PostServicekeyLoginInternalServerError) Code() int
Code gets the status code for the post servicekey login internal server error response
func (*PostServicekeyLoginInternalServerError) Error ¶
func (o *PostServicekeyLoginInternalServerError) Error() string
func (*PostServicekeyLoginInternalServerError) GetPayload ¶
func (o *PostServicekeyLoginInternalServerError) GetPayload() string
func (*PostServicekeyLoginInternalServerError) IsClientError ¶
func (o *PostServicekeyLoginInternalServerError) IsClientError() bool
IsClientError returns true when this post servicekey login internal server error response has a 4xx status code
func (*PostServicekeyLoginInternalServerError) IsCode ¶
func (o *PostServicekeyLoginInternalServerError) IsCode(code int) bool
IsCode returns true when this post servicekey login internal server error response a status code equal to that given
func (*PostServicekeyLoginInternalServerError) IsRedirect ¶
func (o *PostServicekeyLoginInternalServerError) IsRedirect() bool
IsRedirect returns true when this post servicekey login internal server error response has a 3xx status code
func (*PostServicekeyLoginInternalServerError) IsServerError ¶
func (o *PostServicekeyLoginInternalServerError) IsServerError() bool
IsServerError returns true when this post servicekey login internal server error response has a 5xx status code
func (*PostServicekeyLoginInternalServerError) IsSuccess ¶
func (o *PostServicekeyLoginInternalServerError) IsSuccess() bool
IsSuccess returns true when this post servicekey login internal server error response has a 2xx status code
func (*PostServicekeyLoginInternalServerError) String ¶
func (o *PostServicekeyLoginInternalServerError) String() string
type PostServicekeyLoginOK ¶
type PostServicekeyLoginOK struct {
Payload *models.ModelsServiceKeyLoginResponse
}
PostServicekeyLoginOK describes a response with status code 200, with default header values.
OK
func NewPostServicekeyLoginOK ¶
func NewPostServicekeyLoginOK() *PostServicekeyLoginOK
NewPostServicekeyLoginOK creates a PostServicekeyLoginOK with default headers values
func (*PostServicekeyLoginOK) Code ¶
func (o *PostServicekeyLoginOK) Code() int
Code gets the status code for the post servicekey login o k response
func (*PostServicekeyLoginOK) Error ¶
func (o *PostServicekeyLoginOK) Error() string
func (*PostServicekeyLoginOK) GetPayload ¶
func (o *PostServicekeyLoginOK) GetPayload() *models.ModelsServiceKeyLoginResponse
func (*PostServicekeyLoginOK) IsClientError ¶
func (o *PostServicekeyLoginOK) IsClientError() bool
IsClientError returns true when this post servicekey login o k response has a 4xx status code
func (*PostServicekeyLoginOK) IsCode ¶
func (o *PostServicekeyLoginOK) IsCode(code int) bool
IsCode returns true when this post servicekey login o k response a status code equal to that given
func (*PostServicekeyLoginOK) IsRedirect ¶
func (o *PostServicekeyLoginOK) IsRedirect() bool
IsRedirect returns true when this post servicekey login o k response has a 3xx status code
func (*PostServicekeyLoginOK) IsServerError ¶
func (o *PostServicekeyLoginOK) IsServerError() bool
IsServerError returns true when this post servicekey login o k response has a 5xx status code
func (*PostServicekeyLoginOK) IsSuccess ¶
func (o *PostServicekeyLoginOK) IsSuccess() bool
IsSuccess returns true when this post servicekey login o k response has a 2xx status code
func (*PostServicekeyLoginOK) String ¶
func (o *PostServicekeyLoginOK) String() string
type PostServicekeyLoginParams ¶
type PostServicekeyLoginParams struct { /* Servicekey. Service Key */ Servicekey string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostServicekeyLoginParams contains all the parameters to send to the API endpoint
for the post servicekey login operation. Typically these are written to a http.Request.
func NewPostServicekeyLoginParams ¶
func NewPostServicekeyLoginParams() *PostServicekeyLoginParams
NewPostServicekeyLoginParams creates a new PostServicekeyLoginParams 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 NewPostServicekeyLoginParamsWithContext ¶
func NewPostServicekeyLoginParamsWithContext(ctx context.Context) *PostServicekeyLoginParams
NewPostServicekeyLoginParamsWithContext creates a new PostServicekeyLoginParams object with the ability to set a context for a request.
func NewPostServicekeyLoginParamsWithHTTPClient ¶
func NewPostServicekeyLoginParamsWithHTTPClient(client *http.Client) *PostServicekeyLoginParams
NewPostServicekeyLoginParamsWithHTTPClient creates a new PostServicekeyLoginParams object with the ability to set a custom HTTPClient for a request.
func NewPostServicekeyLoginParamsWithTimeout ¶
func NewPostServicekeyLoginParamsWithTimeout(timeout time.Duration) *PostServicekeyLoginParams
NewPostServicekeyLoginParamsWithTimeout creates a new PostServicekeyLoginParams object with the ability to set a timeout on a request.
func (*PostServicekeyLoginParams) SetContext ¶
func (o *PostServicekeyLoginParams) SetContext(ctx context.Context)
SetContext adds the context to the post servicekey login params
func (*PostServicekeyLoginParams) SetDefaults ¶
func (o *PostServicekeyLoginParams) SetDefaults()
SetDefaults hydrates default values in the post servicekey login params (not the query body).
All values with no default are reset to their zero value.
func (*PostServicekeyLoginParams) SetHTTPClient ¶
func (o *PostServicekeyLoginParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post servicekey login params
func (*PostServicekeyLoginParams) SetServicekey ¶
func (o *PostServicekeyLoginParams) SetServicekey(servicekey string)
SetServicekey adds the servicekey to the post servicekey login params
func (*PostServicekeyLoginParams) SetTimeout ¶
func (o *PostServicekeyLoginParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post servicekey login params
func (*PostServicekeyLoginParams) WithContext ¶
func (o *PostServicekeyLoginParams) WithContext(ctx context.Context) *PostServicekeyLoginParams
WithContext adds the context to the post servicekey login params
func (*PostServicekeyLoginParams) WithDefaults ¶
func (o *PostServicekeyLoginParams) WithDefaults() *PostServicekeyLoginParams
WithDefaults hydrates default values in the post servicekey login params (not the query body).
All values with no default are reset to their zero value.
func (*PostServicekeyLoginParams) WithHTTPClient ¶
func (o *PostServicekeyLoginParams) WithHTTPClient(client *http.Client) *PostServicekeyLoginParams
WithHTTPClient adds the HTTPClient to the post servicekey login params
func (*PostServicekeyLoginParams) WithServicekey ¶
func (o *PostServicekeyLoginParams) WithServicekey(servicekey string) *PostServicekeyLoginParams
WithServicekey adds the servicekey to the post servicekey login params
func (*PostServicekeyLoginParams) WithTimeout ¶
func (o *PostServicekeyLoginParams) WithTimeout(timeout time.Duration) *PostServicekeyLoginParams
WithTimeout adds the timeout to the post servicekey login params
func (*PostServicekeyLoginParams) WriteToRequest ¶
func (o *PostServicekeyLoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostServicekeyLoginReader ¶
type PostServicekeyLoginReader struct {
// contains filtered or unexported fields
}
PostServicekeyLoginReader is a Reader for the PostServicekeyLogin structure.
func (*PostServicekeyLoginReader) ReadResponse ¶
func (o *PostServicekeyLoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostServicekeyLoginUnauthorized ¶
type PostServicekeyLoginUnauthorized struct {
}PostServicekeyLoginUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostServicekeyLoginUnauthorized ¶
func NewPostServicekeyLoginUnauthorized() *PostServicekeyLoginUnauthorized
NewPostServicekeyLoginUnauthorized creates a PostServicekeyLoginUnauthorized with default headers values
func (*PostServicekeyLoginUnauthorized) Code ¶
func (o *PostServicekeyLoginUnauthorized) Code() int
Code gets the status code for the post servicekey login unauthorized response
func (*PostServicekeyLoginUnauthorized) Error ¶
func (o *PostServicekeyLoginUnauthorized) Error() string
func (*PostServicekeyLoginUnauthorized) GetPayload ¶
func (o *PostServicekeyLoginUnauthorized) GetPayload() string
func (*PostServicekeyLoginUnauthorized) IsClientError ¶
func (o *PostServicekeyLoginUnauthorized) IsClientError() bool
IsClientError returns true when this post servicekey login unauthorized response has a 4xx status code
func (*PostServicekeyLoginUnauthorized) IsCode ¶
func (o *PostServicekeyLoginUnauthorized) IsCode(code int) bool
IsCode returns true when this post servicekey login unauthorized response a status code equal to that given
func (*PostServicekeyLoginUnauthorized) IsRedirect ¶
func (o *PostServicekeyLoginUnauthorized) IsRedirect() bool
IsRedirect returns true when this post servicekey login unauthorized response has a 3xx status code
func (*PostServicekeyLoginUnauthorized) IsServerError ¶
func (o *PostServicekeyLoginUnauthorized) IsServerError() bool
IsServerError returns true when this post servicekey login unauthorized response has a 5xx status code
func (*PostServicekeyLoginUnauthorized) IsSuccess ¶
func (o *PostServicekeyLoginUnauthorized) IsSuccess() bool
IsSuccess returns true when this post servicekey login unauthorized response has a 2xx status code
func (*PostServicekeyLoginUnauthorized) String ¶
func (o *PostServicekeyLoginUnauthorized) String() string