servicekey

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 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 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

Code gets the status code for the post servicekey login bad request response

func (*PostServicekeyLoginBadRequest) Error

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

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

Code gets the status code for the post servicekey login internal server error response

func (*PostServicekeyLoginInternalServerError) Error

func (*PostServicekeyLoginInternalServerError) GetPayload

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

IsCode returns true when this post servicekey login internal server error response a status code equal to that given

func (*PostServicekeyLoginInternalServerError) IsRedirect

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

IsSuccess returns true when this post servicekey login internal server error response has a 2xx status code

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

WithContext adds the context to the post servicekey login params

func (*PostServicekeyLoginParams) WithDefaults

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

WithTimeout adds the timeout to the post servicekey login params

func (*PostServicekeyLoginParams) WriteToRequest

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 {
	Payload string
}

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

Code gets the status code for the post servicekey login unauthorized response

func (*PostServicekeyLoginUnauthorized) Error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL