Documentation
¶
Overview ¶
Package auth provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
- func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string, body LogoutJSONRequestBody) (*http.Request, error)
- func NewLogoutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRefreshRequest(server string, body RefreshJSONRequestBody) (*http.Request, error)
- func NewRefreshRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSignupRequest(server string, body SignupJSONRequestBody) (*http.Request, error)
- func NewSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUsersCreateRequest(server string, body UsersCreateJSONRequestBody) (*http.Request, error)
- func NewUsersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUsersDeleteRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
- func NewUsersGetRequest(server string, uuid openapi_types.UUID) (*http.Request, error)
- func NewUsersListRequest(server string, params *UsersListParams) (*http.Request, error)
- func NewUsersMeReadRequest(server string) (*http.Request, error)
- func NewUsersMeUpdateRequest(server string, body UsersMeUpdateJSONRequestBody) (*http.Request, error)
- func NewUsersMeUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUsersUpdateRequest(server string, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody) (*http.Request, error)
- func NewUsersUpdateRequestWithBody(server string, uuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Client
- func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LogoutWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Refresh(ctx context.Context, body RefreshJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RefreshWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Signup(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SignupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UsersCreate(ctx context.Context, body UsersCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UsersDelete(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UsersGet(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UsersList(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UsersMeRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UsersMeUpdate(ctx context.Context, body UsersMeUpdateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UsersMeUpdateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UsersUpdate(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UsersUpdateWithBody(ctx context.Context, uuid openapi_types.UUID, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error)
- func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
- func (c *ClientWithResponses) LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LogoutResponse, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
- func (c *ClientWithResponses) RefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshResponse, error)
- func (c *ClientWithResponses) RefreshWithResponse(ctx context.Context, body RefreshJSONRequestBody, ...) (*RefreshResponse, error)
- func (c *ClientWithResponses) SignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SignupResponse, error)
- func (c *ClientWithResponses) SignupWithResponse(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*SignupResponse, error)
- func (c *ClientWithResponses) UsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UsersCreateResponse, error)
- func (c *ClientWithResponses) UsersCreateWithResponse(ctx context.Context, body UsersCreateJSONRequestBody, ...) (*UsersCreateResponse, error)
- func (c *ClientWithResponses) UsersDeleteWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersDeleteResponse, error)
- func (c *ClientWithResponses) UsersGetWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersGetResponse, error)
- func (c *ClientWithResponses) UsersListWithResponse(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*UsersListResponse, error)
- func (c *ClientWithResponses) UsersMeReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsersMeReadResponse, error)
- func (c *ClientWithResponses) UsersMeUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UsersMeUpdateResponse, error)
- func (c *ClientWithResponses) UsersMeUpdateWithResponse(ctx context.Context, body UsersMeUpdateJSONRequestBody, ...) (*UsersMeUpdateResponse, error)
- func (c *ClientWithResponses) UsersUpdateWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, contentType string, ...) (*UsersUpdateResponse, error)
- func (c *ClientWithResponses) UsersUpdateWithResponse(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, ...) (*UsersUpdateResponse, error)
- type ClientWithResponsesInterface
- type CreateUserRequest
- type Error
- type HttpRequestDoer
- type LoginJSONRequestBody
- type LoginRequest
- type LoginResponse
- type LogoutJSONRequestBody
- type LogoutRequest
- type LogoutResponse
- type RefreshJSONRequestBody
- type RefreshRequest
- type RefreshResponse
- type RequestEditorFn
- type SignUpRequest
- type SignupJSONRequestBody
- type SignupResponse
- type Tokens
- type UnexpectedResponse
- type UpdateSelfRequest
- type UpdateUserRequest
- type User
- type UsersCreateJSONRequestBody
- type UsersCreateResponse
- func (r UsersCreateResponse) ContentType() string
- func (r UsersCreateResponse) GetBody() []byte
- func (r UsersCreateResponse) GetJSON201() *User
- func (r UsersCreateResponse) GetJSONDefault() *UnexpectedResponse
- func (r UsersCreateResponse) Status() string
- func (r UsersCreateResponse) StatusCode() int
- type UsersDeleteResponse
- type UsersGetResponse
- type UsersListParams
- type UsersListResponse
- type UsersMeReadResponse
- func (r UsersMeReadResponse) ContentType() string
- func (r UsersMeReadResponse) GetBody() []byte
- func (r UsersMeReadResponse) GetJSON200() *User
- func (r UsersMeReadResponse) GetJSONDefault() *UnexpectedResponse
- func (r UsersMeReadResponse) Status() string
- func (r UsersMeReadResponse) StatusCode() int
- type UsersMeUpdateJSONRequestBody
- type UsersMeUpdateResponse
- type UsersUpdateJSONRequestBody
- type UsersUpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func NewLoginRequest ¶
func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
NewLoginRequest calls the generic Login builder with application/json body
func NewLoginRequestWithBody ¶
func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLoginRequestWithBody constructs an http.Request for the Login method, with any body, and a specified content type
func NewLogoutRequest ¶
func NewLogoutRequest(server string, body LogoutJSONRequestBody) (*http.Request, error)
NewLogoutRequest calls the generic Logout builder with application/json body
func NewLogoutRequestWithBody ¶
func NewLogoutRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLogoutRequestWithBody constructs an http.Request for the Logout method, with any body, and a specified content type
func NewRefreshRequest ¶
func NewRefreshRequest(server string, body RefreshJSONRequestBody) (*http.Request, error)
NewRefreshRequest calls the generic Refresh builder with application/json body
func NewRefreshRequestWithBody ¶
func NewRefreshRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRefreshRequestWithBody constructs an http.Request for the Refresh method, with any body, and a specified content type
func NewSignupRequest ¶
func NewSignupRequest(server string, body SignupJSONRequestBody) (*http.Request, error)
NewSignupRequest calls the generic Signup builder with application/json body
func NewSignupRequestWithBody ¶
func NewSignupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSignupRequestWithBody constructs an http.Request for the Signup method, with any body, and a specified content type
func NewUsersCreateRequest ¶
func NewUsersCreateRequest(server string, body UsersCreateJSONRequestBody) (*http.Request, error)
NewUsersCreateRequest calls the generic UsersCreate builder with application/json body
func NewUsersCreateRequestWithBody ¶
func NewUsersCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUsersCreateRequestWithBody constructs an http.Request for the UsersCreate method, with any body, and a specified content type
func NewUsersDeleteRequest ¶
NewUsersDeleteRequest constructs an http.Request for the UsersDelete method
func NewUsersGetRequest ¶
NewUsersGetRequest constructs an http.Request for the UsersGet method
func NewUsersListRequest ¶
func NewUsersListRequest(server string, params *UsersListParams) (*http.Request, error)
NewUsersListRequest constructs an http.Request for the UsersList method
func NewUsersMeReadRequest ¶
NewUsersMeReadRequest constructs an http.Request for the UsersMeRead method
func NewUsersMeUpdateRequest ¶
func NewUsersMeUpdateRequest(server string, body UsersMeUpdateJSONRequestBody) (*http.Request, error)
NewUsersMeUpdateRequest calls the generic UsersMeUpdate builder with application/json body
func NewUsersMeUpdateRequestWithBody ¶
func NewUsersMeUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUsersMeUpdateRequestWithBody constructs an http.Request for the UsersMeUpdate method, with any body, and a specified content type
func NewUsersUpdateRequest ¶
func NewUsersUpdateRequest(server string, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody) (*http.Request, error)
NewUsersUpdateRequest calls the generic UsersUpdate builder with application/json body
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Login Login an existing user
Takes a body of the `application/json` content type.
Corresponds with POST /auth/login (the `Login` operationId).
func (*Client) LoginWithBody ¶
func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LoginWithBody Login an existing user
Takes any type of body and a specified content type.
Corresponds with POST /auth/login (the `Login` operationId).
func (*Client) Logout ¶
func (c *Client) Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Logout Invalidate user tokens
Takes a body of the `application/json` content type.
Corresponds with POST /auth/logout (the `Logout` operationId).
func (*Client) LogoutWithBody ¶
func (c *Client) LogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LogoutWithBody Invalidate user tokens
Takes any type of body and a specified content type.
Corresponds with POST /auth/logout (the `Logout` operationId).
func (*Client) Refresh ¶
func (c *Client) Refresh(ctx context.Context, body RefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Refresh Refresh user token
Takes a body of the `application/json` content type.
Corresponds with POST /auth/refresh (the `Refresh` operationId).
func (*Client) RefreshWithBody ¶
func (c *Client) RefreshWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshWithBody Refresh user token
Takes any type of body and a specified content type.
Corresponds with POST /auth/refresh (the `Refresh` operationId).
func (*Client) Signup ¶
func (c *Client) Signup(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
Signup Create a new user
Takes a body of the `application/json` content type.
Corresponds with POST /auth/signup (the `Signup` operationId).
func (*Client) SignupWithBody ¶
func (c *Client) SignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SignupWithBody Create a new user
Takes any type of body and a specified content type.
Corresponds with POST /auth/signup (the `Signup` operationId).
func (*Client) UsersCreate ¶
func (c *Client) UsersCreate(ctx context.Context, body UsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersCreate Create a new user
Takes a body of the `application/json` content type.
Corresponds with POST /users (the `UsersCreate` operationId).
func (*Client) UsersCreateWithBody ¶
func (c *Client) UsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersCreateWithBody Create a new user
Takes any type of body and a specified content type.
Corresponds with POST /users (the `UsersCreate` operationId).
func (*Client) UsersDelete ¶
func (c *Client) UsersDelete(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersDelete Delete user
Corresponds with DELETE /users/{uuid} (the `UsersDelete` operationId).
func (*Client) UsersGet ¶
func (c *Client) UsersGet(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersGet Get user by UUID
Corresponds with GET /users/{uuid} (the `UsersGet` operationId).
func (*Client) UsersList ¶
func (c *Client) UsersList(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersList List users
Corresponds with GET /users (the `UsersList` operationId).
func (*Client) UsersMeRead ¶
func (c *Client) UsersMeRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersMeRead Retrieve current user information
Corresponds with GET /users/me (the `UsersMeRead` operationId).
func (*Client) UsersMeUpdate ¶
func (c *Client) UsersMeUpdate(ctx context.Context, body UsersMeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersMeUpdate Update current user
Takes a body of the `application/json` content type.
Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
func (*Client) UsersMeUpdateWithBody ¶
func (c *Client) UsersMeUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersMeUpdateWithBody Update current user
Takes any type of body and a specified content type.
Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
func (*Client) UsersUpdate ¶
func (c *Client) UsersUpdate(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersUpdate Update user
Takes a body of the `application/json` content type.
Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
func (*Client) UsersUpdateWithBody ¶
func (c *Client) UsersUpdateWithBody(ctx context.Context, uuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UsersUpdateWithBody Update user
Takes any type of body and a specified content type.
Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
type ClientInterface ¶
type ClientInterface interface {
// LoginWithBody Login an existing user
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/login (the `Login` operationId).
LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Login Login an existing user
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/login (the `Login` operationId).
Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LogoutWithBody Invalidate user tokens
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/logout (the `Logout` operationId).
LogoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Logout Invalidate user tokens
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/logout (the `Logout` operationId).
Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshWithBody Refresh user token
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/refresh (the `Refresh` operationId).
RefreshWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Refresh Refresh user token
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/refresh (the `Refresh` operationId).
Refresh(ctx context.Context, body RefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SignupWithBody Create a new user
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /auth/signup (the `Signup` operationId).
SignupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// Signup Create a new user
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /auth/signup (the `Signup` operationId).
Signup(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersList List users
//
// Corresponds with GET /users (the `UsersList` operationId).
UsersList(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersCreateWithBody Create a new user
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /users (the `UsersCreate` operationId).
UsersCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersCreate Create a new user
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /users (the `UsersCreate` operationId).
UsersCreate(ctx context.Context, body UsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersMeRead Retrieve current user information
//
// Corresponds with GET /users/me (the `UsersMeRead` operationId).
UsersMeRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersMeUpdateWithBody Update current user
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
UsersMeUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersMeUpdate Update current user
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
UsersMeUpdate(ctx context.Context, body UsersMeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersDelete Delete user
//
// Corresponds with DELETE /users/{uuid} (the `UsersDelete` operationId).
UsersDelete(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersGet Get user by UUID
//
// Corresponds with GET /users/{uuid} (the `UsersGet` operationId).
UsersGet(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersUpdateWithBody Update user
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
UsersUpdateWithBody(ctx context.Context, uuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UsersUpdate Update user
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
UsersUpdate(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithBodyWithResponse Login an existing user
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/login (the `Login` operationId).
func (*ClientWithResponses) LoginWithResponse ¶
func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithResponse Login an existing user
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/login (the `Login` operationId).
func (*ClientWithResponses) LogoutWithBodyWithResponse ¶
func (c *ClientWithResponses) LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithBodyWithResponse Invalidate user tokens
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/logout (the `Logout` operationId).
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithResponse Invalidate user tokens
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/logout (the `Logout` operationId).
func (*ClientWithResponses) RefreshWithBodyWithResponse ¶
func (c *ClientWithResponses) RefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshResponse, error)
RefreshWithBodyWithResponse Refresh user token
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/refresh (the `Refresh` operationId).
func (*ClientWithResponses) RefreshWithResponse ¶
func (c *ClientWithResponses) RefreshWithResponse(ctx context.Context, body RefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshResponse, error)
RefreshWithResponse Refresh user token
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/refresh (the `Refresh` operationId).
func (*ClientWithResponses) SignupWithBodyWithResponse ¶
func (c *ClientWithResponses) SignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignupResponse, error)
SignupWithBodyWithResponse Create a new user
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/signup (the `Signup` operationId).
func (*ClientWithResponses) SignupWithResponse ¶
func (c *ClientWithResponses) SignupWithResponse(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*SignupResponse, error)
SignupWithResponse Create a new user
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /auth/signup (the `Signup` operationId).
func (*ClientWithResponses) UsersCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) UsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersCreateResponse, error)
UsersCreateWithBodyWithResponse Create a new user
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /users (the `UsersCreate` operationId).
func (*ClientWithResponses) UsersCreateWithResponse ¶
func (c *ClientWithResponses) UsersCreateWithResponse(ctx context.Context, body UsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersCreateResponse, error)
UsersCreateWithResponse Create a new user
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /users (the `UsersCreate` operationId).
func (*ClientWithResponses) UsersDeleteWithResponse ¶
func (c *ClientWithResponses) UsersDeleteWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersDeleteResponse, error)
UsersDeleteWithResponse Delete user
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /users/{uuid} (the `UsersDelete` operationId).
func (*ClientWithResponses) UsersGetWithResponse ¶
func (c *ClientWithResponses) UsersGetWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersGetResponse, error)
UsersGetWithResponse Get user by UUID
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users/{uuid} (the `UsersGet` operationId).
func (*ClientWithResponses) UsersListWithResponse ¶
func (c *ClientWithResponses) UsersListWithResponse(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*UsersListResponse, error)
UsersListWithResponse List users
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users (the `UsersList` operationId).
func (*ClientWithResponses) UsersMeReadWithResponse ¶
func (c *ClientWithResponses) UsersMeReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsersMeReadResponse, error)
UsersMeReadWithResponse Retrieve current user information
Returns a wrapper object for the known response body format(s).
Corresponds with GET /users/me (the `UsersMeRead` operationId).
func (*ClientWithResponses) UsersMeUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) UsersMeUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersMeUpdateResponse, error)
UsersMeUpdateWithBodyWithResponse Update current user
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
func (*ClientWithResponses) UsersMeUpdateWithResponse ¶
func (c *ClientWithResponses) UsersMeUpdateWithResponse(ctx context.Context, body UsersMeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersMeUpdateResponse, error)
UsersMeUpdateWithResponse Update current user
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
func (*ClientWithResponses) UsersUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) UsersUpdateWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUpdateResponse, error)
UsersUpdateWithBodyWithResponse Update user
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
func (*ClientWithResponses) UsersUpdateWithResponse ¶
func (c *ClientWithResponses) UsersUpdateWithResponse(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUpdateResponse, error)
UsersUpdateWithResponse Update user
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// LoginWithBodyWithResponse Login an existing user
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/login (the `Login` operationId).
LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LoginWithResponse Login an existing user
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/login (the `Login` operationId).
LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LogoutWithBodyWithResponse Invalidate user tokens
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/logout (the `Logout` operationId).
LogoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// LogoutWithResponse Invalidate user tokens
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/logout (the `Logout` operationId).
LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// RefreshWithBodyWithResponse Refresh user token
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/refresh (the `Refresh` operationId).
RefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshResponse, error)
// RefreshWithResponse Refresh user token
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/refresh (the `Refresh` operationId).
RefreshWithResponse(ctx context.Context, body RefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshResponse, error)
// SignupWithBodyWithResponse Create a new user
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/signup (the `Signup` operationId).
SignupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignupResponse, error)
// SignupWithResponse Create a new user
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /auth/signup (the `Signup` operationId).
SignupWithResponse(ctx context.Context, body SignupJSONRequestBody, reqEditors ...RequestEditorFn) (*SignupResponse, error)
// UsersListWithResponse List users
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users (the `UsersList` operationId).
UsersListWithResponse(ctx context.Context, params *UsersListParams, reqEditors ...RequestEditorFn) (*UsersListResponse, error)
// UsersCreateWithBodyWithResponse Create a new user
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users (the `UsersCreate` operationId).
UsersCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersCreateResponse, error)
// UsersCreateWithResponse Create a new user
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /users (the `UsersCreate` operationId).
UsersCreateWithResponse(ctx context.Context, body UsersCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersCreateResponse, error)
// UsersMeReadWithResponse Retrieve current user information
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users/me (the `UsersMeRead` operationId).
UsersMeReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*UsersMeReadResponse, error)
// UsersMeUpdateWithBodyWithResponse Update current user
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
UsersMeUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersMeUpdateResponse, error)
// UsersMeUpdateWithResponse Update current user
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/me (the `UsersMeUpdate` operationId).
UsersMeUpdateWithResponse(ctx context.Context, body UsersMeUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersMeUpdateResponse, error)
// UsersDeleteWithResponse Delete user
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /users/{uuid} (the `UsersDelete` operationId).
UsersDeleteWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersDeleteResponse, error)
// UsersGetWithResponse Get user by UUID
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /users/{uuid} (the `UsersGet` operationId).
UsersGetWithResponse(ctx context.Context, uuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*UsersGetResponse, error)
// UsersUpdateWithBodyWithResponse Update user
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
UsersUpdateWithBodyWithResponse(ctx context.Context, uuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersUpdateResponse, error)
// UsersUpdateWithResponse Update user
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /users/{uuid} (the `UsersUpdate` operationId).
UsersUpdateWithResponse(ctx context.Context, uuid openapi_types.UUID, body UsersUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersUpdateResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateUserRequest ¶
CreateUserRequest defines model for CreateUserRequest.
type Error ¶
type Error struct {
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail *string `json:"detail,omitempty"`
// Errors Optional list of additional error details.
Errors *[]map[string]interface{} `json:"errors,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance *string `json:"instance,omitempty"`
// Status The HTTP status code generated by the origin server.
Status int32 `json:"status"`
// Title A short, human-readable summary of the problem type.
Title string `json:"title"`
// Type A URI reference that identifies the problem type.
Type string `json:"type"`
}
Error defines model for Error.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequest ¶
LoginRequest defines model for LoginRequest.
type LoginResponse ¶
type LoginResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Tokens
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseLoginResponse ¶
func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)
ParseLoginResponse parses an HTTP response from a LoginWithResponse call
func (LoginResponse) ContentType ¶
func (r LoginResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LoginResponse) GetBody ¶
func (r LoginResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LoginResponse) GetJSON200 ¶
func (r LoginResponse) GetJSON200() *Tokens
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (LoginResponse) GetJSONDefault ¶
func (r LoginResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (LoginResponse) Status ¶
func (r LoginResponse) Status() string
Status returns HTTPResponse.Status
func (LoginResponse) StatusCode ¶
func (r LoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogoutJSONRequestBody ¶
type LogoutJSONRequestBody = LogoutRequest
LogoutJSONRequestBody defines body for Logout for application/json ContentType.
type LogoutRequest ¶
type LogoutRequest struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
LogoutRequest defines model for LogoutRequest.
type LogoutResponse ¶
type LogoutResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseLogoutResponse ¶
func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)
ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call
func (LogoutResponse) ContentType ¶
func (r LogoutResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LogoutResponse) GetBody ¶
func (r LogoutResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LogoutResponse) GetJSONDefault ¶
func (r LogoutResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (LogoutResponse) Status ¶
func (r LogoutResponse) Status() string
Status returns HTTPResponse.Status
func (LogoutResponse) StatusCode ¶
func (r LogoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefreshJSONRequestBody ¶
type RefreshJSONRequestBody = RefreshRequest
RefreshJSONRequestBody defines body for Refresh for application/json ContentType.
type RefreshRequest ¶
type RefreshRequest struct {
Token string `json:"token"`
}
RefreshRequest defines model for RefreshRequest.
type RefreshResponse ¶
type RefreshResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Tokens
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseRefreshResponse ¶
func ParseRefreshResponse(rsp *http.Response) (*RefreshResponse, error)
ParseRefreshResponse parses an HTTP response from a RefreshWithResponse call
func (RefreshResponse) ContentType ¶
func (r RefreshResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RefreshResponse) GetBody ¶
func (r RefreshResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RefreshResponse) GetJSON200 ¶
func (r RefreshResponse) GetJSON200() *Tokens
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RefreshResponse) GetJSONDefault ¶
func (r RefreshResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RefreshResponse) Status ¶
func (r RefreshResponse) Status() string
Status returns HTTPResponse.Status
func (RefreshResponse) StatusCode ¶
func (r RefreshResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SignUpRequest ¶
SignUpRequest defines model for SignUpRequest.
type SignupJSONRequestBody ¶
type SignupJSONRequestBody = SignUpRequest
SignupJSONRequestBody defines body for Signup for application/json ContentType.
type SignupResponse ¶
type SignupResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *User
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseSignupResponse ¶
func ParseSignupResponse(rsp *http.Response) (*SignupResponse, error)
ParseSignupResponse parses an HTTP response from a SignupWithResponse call
func (SignupResponse) ContentType ¶
func (r SignupResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SignupResponse) GetBody ¶
func (r SignupResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SignupResponse) GetJSON201 ¶
func (r SignupResponse) GetJSON201() *User
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (SignupResponse) GetJSONDefault ¶
func (r SignupResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SignupResponse) Status ¶
func (r SignupResponse) Status() string
Status returns HTTPResponse.Status
func (SignupResponse) StatusCode ¶
func (r SignupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Tokens ¶
type Tokens struct {
AccessToken *string `json:"access_token,omitempty"`
ExpiresIn *int `json:"expires_in,omitempty"`
RefreshToken *string `json:"refresh_token,omitempty"`
}
Tokens defines model for Tokens.
type UnexpectedResponse ¶
type UnexpectedResponse = Error
UnexpectedResponse defines model for UnexpectedResponse.
type UpdateSelfRequest ¶
type UpdateSelfRequest struct {
Email *string `json:"email,omitempty"`
Password *string `json:"password,omitempty"`
}
UpdateSelfRequest defines model for UpdateSelfRequest.
type UpdateUserRequest ¶
type UpdateUserRequest struct {
Email *string `json:"email,omitempty"`
Password *string `json:"password,omitempty"`
}
UpdateUserRequest defines model for UpdateUserRequest.
type User ¶
type User struct {
CreatedAt *string `json:"created_at,omitempty"`
Email *string `json:"email,omitempty"`
Permissions *[]string `json:"permissions,omitempty"`
Roles *[]string `json:"roles,omitempty"`
Uuid *string `json:"uuid,omitempty"`
}
User defines model for User.
type UsersCreateJSONRequestBody ¶
type UsersCreateJSONRequestBody = CreateUserRequest
UsersCreateJSONRequestBody defines body for UsersCreate for application/json ContentType.
type UsersCreateResponse ¶
type UsersCreateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *User
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersCreateResponse ¶
func ParseUsersCreateResponse(rsp *http.Response) (*UsersCreateResponse, error)
ParseUsersCreateResponse parses an HTTP response from a UsersCreateWithResponse call
func (UsersCreateResponse) ContentType ¶
func (r UsersCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersCreateResponse) GetBody ¶
func (r UsersCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersCreateResponse) GetJSON201 ¶
func (r UsersCreateResponse) GetJSON201() *User
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (UsersCreateResponse) GetJSONDefault ¶
func (r UsersCreateResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersCreateResponse) Status ¶
func (r UsersCreateResponse) Status() string
Status returns HTTPResponse.Status
func (UsersCreateResponse) StatusCode ¶
func (r UsersCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersDeleteResponse ¶
type UsersDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersDeleteResponse ¶
func ParseUsersDeleteResponse(rsp *http.Response) (*UsersDeleteResponse, error)
ParseUsersDeleteResponse parses an HTTP response from a UsersDeleteWithResponse call
func (UsersDeleteResponse) ContentType ¶
func (r UsersDeleteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersDeleteResponse) GetBody ¶
func (r UsersDeleteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersDeleteResponse) GetJSONDefault ¶
func (r UsersDeleteResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersDeleteResponse) Status ¶
func (r UsersDeleteResponse) Status() string
Status returns HTTPResponse.Status
func (UsersDeleteResponse) StatusCode ¶
func (r UsersDeleteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersGetResponse ¶
type UsersGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersGetResponse ¶
func ParseUsersGetResponse(rsp *http.Response) (*UsersGetResponse, error)
ParseUsersGetResponse parses an HTTP response from a UsersGetWithResponse call
func (UsersGetResponse) ContentType ¶
func (r UsersGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersGetResponse) GetBody ¶
func (r UsersGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersGetResponse) GetJSON200 ¶
func (r UsersGetResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UsersGetResponse) GetJSONDefault ¶
func (r UsersGetResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersGetResponse) Status ¶
func (r UsersGetResponse) Status() string
Status returns HTTPResponse.Status
func (UsersGetResponse) StatusCode ¶
func (r UsersGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersListParams ¶
type UsersListParams struct {
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}
UsersListParams defines parameters for UsersList.
type UsersListResponse ¶
type UsersListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *[]User
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersListResponse ¶
func ParseUsersListResponse(rsp *http.Response) (*UsersListResponse, error)
ParseUsersListResponse parses an HTTP response from a UsersListWithResponse call
func (UsersListResponse) ContentType ¶
func (r UsersListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersListResponse) GetBody ¶
func (r UsersListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersListResponse) GetJSON200 ¶
func (r UsersListResponse) GetJSON200() *[]User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UsersListResponse) GetJSONDefault ¶
func (r UsersListResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersListResponse) Status ¶
func (r UsersListResponse) Status() string
Status returns HTTPResponse.Status
func (UsersListResponse) StatusCode ¶
func (r UsersListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersMeReadResponse ¶
type UsersMeReadResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *User
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersMeReadResponse ¶
func ParseUsersMeReadResponse(rsp *http.Response) (*UsersMeReadResponse, error)
ParseUsersMeReadResponse parses an HTTP response from a UsersMeReadWithResponse call
func (UsersMeReadResponse) ContentType ¶
func (r UsersMeReadResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersMeReadResponse) GetBody ¶
func (r UsersMeReadResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersMeReadResponse) GetJSON200 ¶
func (r UsersMeReadResponse) GetJSON200() *User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UsersMeReadResponse) GetJSONDefault ¶
func (r UsersMeReadResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersMeReadResponse) Status ¶
func (r UsersMeReadResponse) Status() string
Status returns HTTPResponse.Status
func (UsersMeReadResponse) StatusCode ¶
func (r UsersMeReadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersMeUpdateJSONRequestBody ¶
type UsersMeUpdateJSONRequestBody = UpdateSelfRequest
UsersMeUpdateJSONRequestBody defines body for UsersMeUpdate for application/json ContentType.
type UsersMeUpdateResponse ¶
type UsersMeUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersMeUpdateResponse ¶
func ParseUsersMeUpdateResponse(rsp *http.Response) (*UsersMeUpdateResponse, error)
ParseUsersMeUpdateResponse parses an HTTP response from a UsersMeUpdateWithResponse call
func (UsersMeUpdateResponse) ContentType ¶
func (r UsersMeUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersMeUpdateResponse) GetBody ¶
func (r UsersMeUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersMeUpdateResponse) GetJSONDefault ¶
func (r UsersMeUpdateResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersMeUpdateResponse) Status ¶
func (r UsersMeUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (UsersMeUpdateResponse) StatusCode ¶
func (r UsersMeUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UsersUpdateJSONRequestBody ¶
type UsersUpdateJSONRequestBody = UpdateUserRequest
UsersUpdateJSONRequestBody defines body for UsersUpdate for application/json ContentType.
type UsersUpdateResponse ¶
type UsersUpdateResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *UnexpectedResponse
}
func ParseUsersUpdateResponse ¶
func ParseUsersUpdateResponse(rsp *http.Response) (*UsersUpdateResponse, error)
ParseUsersUpdateResponse parses an HTTP response from a UsersUpdateWithResponse call
func (UsersUpdateResponse) ContentType ¶
func (r UsersUpdateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UsersUpdateResponse) GetBody ¶
func (r UsersUpdateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UsersUpdateResponse) GetJSONDefault ¶
func (r UsersUpdateResponse) GetJSONDefault() *UnexpectedResponse
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UsersUpdateResponse) Status ¶
func (r UsersUpdateResponse) Status() string
Status returns HTTPResponse.Status
func (UsersUpdateResponse) StatusCode ¶
func (r UsersUpdateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode