client

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChangePasswordRequest

func NewChangePasswordRequest(server string, orgID Orgid, userID Userid, body ChangePasswordJSONRequestBody) (*http.Request, error)

NewChangePasswordRequest calls the generic ChangePassword builder with application/json body

func NewChangePasswordRequestWithBody

func NewChangePasswordRequestWithBody(server string, orgID Orgid, userID Userid, contentType string, body io.Reader) (*http.Request, error)

NewChangePasswordRequestWithBody constructs an http.Request for the ChangePassword method, with any body, and a specified content type

func NewCreateGroupRequest

func NewCreateGroupRequest(server string, orgID Orgid, body CreateGroupJSONRequestBody) (*http.Request, error)

NewCreateGroupRequest calls the generic CreateGroup builder with application/json body

func NewCreateGroupRequestWithBody

func NewCreateGroupRequestWithBody(server string, orgID Orgid, contentType string, body io.Reader) (*http.Request, error)

NewCreateGroupRequestWithBody constructs an http.Request for the CreateGroup method, with any body, and a specified content type

func NewCreateOrganisationRequest

func NewCreateOrganisationRequest(server string, body CreateOrganisationJSONRequestBody) (*http.Request, error)

NewCreateOrganisationRequest calls the generic CreateOrganisation builder with application/json body

func NewCreateOrganisationRequestWithBody

func NewCreateOrganisationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrganisationRequestWithBody constructs an http.Request for the CreateOrganisation method, with any body, and a specified content type

func NewCreateUserRequest

func NewCreateUserRequest(server string, orgID Orgid, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

func NewCreateUserRequestWithBody(server string, orgID Orgid, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type

func NewDeleteGroupRequest

func NewDeleteGroupRequest(server string, orgID Orgid, groupID Groupid) (*http.Request, error)

NewDeleteGroupRequest constructs an http.Request for the DeleteGroup method

func NewDeleteOrganisationRequest

func NewDeleteOrganisationRequest(server string, orgID Orgid) (*http.Request, error)

NewDeleteOrganisationRequest constructs an http.Request for the DeleteOrganisation method

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, orgID Orgid, userID Userid) (*http.Request, error)

NewDeleteUserRequest constructs an http.Request for the DeleteUser method

func NewGetGroupRequest

func NewGetGroupRequest(server string, orgID Orgid, groupID Groupid) (*http.Request, error)

NewGetGroupRequest constructs an http.Request for the GetGroup method

func NewGetMeRequest

func NewGetMeRequest(server string, orgID Orgid) (*http.Request, error)

NewGetMeRequest constructs an http.Request for the GetMe method

func NewGetOrganisationRequest

func NewGetOrganisationRequest(server string, orgID Orgid) (*http.Request, error)

NewGetOrganisationRequest constructs an http.Request for the GetOrganisation method

func NewGetUserGroupsRequest

func NewGetUserGroupsRequest(server string, orgID Orgid, userID Userid) (*http.Request, error)

NewGetUserGroupsRequest constructs an http.Request for the GetUserGroups method

func NewGetUserRequest

func NewGetUserRequest(server string, orgID Orgid, userID Userid) (*http.Request, error)

NewGetUserRequest constructs an http.Request for the GetUser method

func NewListGroupsRequest

func NewListGroupsRequest(server string, orgID Orgid) (*http.Request, error)

NewListGroupsRequest constructs an http.Request for the ListGroups method

func NewListOrganisationsRequest

func NewListOrganisationsRequest(server string) (*http.Request, error)

NewListOrganisationsRequest constructs an http.Request for the ListOrganisations method

func NewListUsersRequest

func NewListUsersRequest(server string, orgID Orgid) (*http.Request, error)

NewListUsersRequest constructs an http.Request for the ListUsers method

func NewLoginRequest

func NewLoginRequest(server string, orgID Orgid, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

func NewLoginRequestWithBody(server string, orgID Orgid, 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, orgID Orgid) (*http.Request, error)

NewLogoutRequest constructs an http.Request for the Logout method

func NewRefreshRequest

func NewRefreshRequest(server string, orgID Orgid) (*http.Request, error)

NewRefreshRequest constructs an http.Request for the Refresh method

func NewUpdateGroupRequest

func NewUpdateGroupRequest(server string, orgID Orgid, groupID Groupid, body UpdateGroupJSONRequestBody) (*http.Request, error)

NewUpdateGroupRequest calls the generic UpdateGroup builder with application/json body

func NewUpdateGroupRequestWithBody

func NewUpdateGroupRequestWithBody(server string, orgID Orgid, groupID Groupid, contentType string, body io.Reader) (*http.Request, error)

NewUpdateGroupRequestWithBody constructs an http.Request for the UpdateGroup method, with any body, and a specified content type

func NewUpdateOrganisationRequest

func NewUpdateOrganisationRequest(server string, orgID Orgid, body UpdateOrganisationJSONRequestBody) (*http.Request, error)

NewUpdateOrganisationRequest calls the generic UpdateOrganisation builder with application/json body

func NewUpdateOrganisationRequestWithBody

func NewUpdateOrganisationRequestWithBody(server string, orgID Orgid, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOrganisationRequestWithBody constructs an http.Request for the UpdateOrganisation method, with any body, and a specified content type

func NewUpdateUserGroupsRequest

func NewUpdateUserGroupsRequest(server string, orgID Orgid, userID Userid, body UpdateUserGroupsJSONRequestBody) (*http.Request, error)

NewUpdateUserGroupsRequest calls the generic UpdateUserGroups builder with application/json body

func NewUpdateUserGroupsRequestWithBody

func NewUpdateUserGroupsRequestWithBody(server string, orgID Orgid, userID Userid, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserGroupsRequestWithBody constructs an http.Request for the UpdateUserGroups method, with any body, and a specified content type

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, orgID Orgid, userID Userid, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

func NewUpdateUserRequestWithBody(server string, orgID Orgid, userID Userid, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserRequestWithBody constructs an http.Request for the UpdateUser method, with any body, and a specified content type

Types

type APIErrorResponse

type APIErrorResponse struct {
	Errors []string `json:"errors"`
}

APIErrorResponse defines model for APIErrorResponse.

type ChangePasswordJSONBody

type ChangePasswordJSONBody struct {
	OldPassword string `json:"oldPassword"`
	Password    string `json:"password"`
}

ChangePasswordJSONBody defines parameters for ChangePassword.

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody ChangePasswordJSONBody

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseChangePasswordResponse

func ParseChangePasswordResponse(rsp *http.Response) (*ChangePasswordResponse, error)

ParseChangePasswordResponse parses an HTTP response from a ChangePasswordWithResponse call

func (ChangePasswordResponse) ContentType

func (r ChangePasswordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangePasswordResponse) GetBody

func (r ChangePasswordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ChangePasswordResponse) GetJSON401

func (r ChangePasswordResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ChangePasswordResponse) GetJSON403

func (r ChangePasswordResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ChangePasswordResponse) GetJSON500

func (r ChangePasswordResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ChangePasswordResponse) Status

func (r ChangePasswordResponse) Status() string

Status returns HTTPResponse.Status

func (ChangePasswordResponse) StatusCode

func (r ChangePasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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) ChangePassword

func (c *Client) ChangePassword(ctx context.Context, orgID Orgid, userID Userid, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePassword performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request. Takes a body of the `application/json` content type.

func (*Client) ChangePasswordWithBody

func (c *Client) ChangePasswordWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePasswordWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request, with any type of body and a specified content type.

func (*Client) CreateGroup

func (c *Client) CreateGroup(ctx context.Context, orgID Orgid, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateGroup performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request. Takes a body of the `application/json` content type.

func (*Client) CreateGroupWithBody

func (c *Client) CreateGroupWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateGroupWithBody performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request, with any type of body and a specified content type.

func (*Client) CreateOrganisation

func (c *Client) CreateOrganisation(ctx context.Context, body CreateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrganisation performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request. Takes a body of the `application/json` content type.

func (*Client) CreateOrganisationWithBody

func (c *Client) CreateOrganisationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrganisationWithBody performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request, with any type of body and a specified content type.

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, orgID Orgid, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUser performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request. Takes a body of the `application/json` content type.

func (*Client) CreateUserWithBody

func (c *Client) CreateUserWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserWithBody performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request, with any type of body and a specified content type.

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteGroup performs a DELETE /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `DeleteGroup` operationId) request.

func (*Client) DeleteOrganisation

func (c *Client) DeleteOrganisation(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteOrganisation performs a DELETE /api/auth/basic/organisations/{orgID} (the `DeleteOrganisation` operationId) request.

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUser performs a DELETE /api/auth/basic/organisations/{orgID}/users/{userID} (the `DeleteUser` operationId) request.

func (*Client) GetGroup

func (c *Client) GetGroup(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*http.Response, error)

GetGroup performs a GET /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `GetGroup` operationId) request.

func (*Client) GetMe

func (c *Client) GetMe(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMe performs a GET /api/auth/basic/organisations/{orgID}/users/me (the `GetMe` operationId) request.

func (*Client) GetOrganisation

func (c *Client) GetOrganisation(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrganisation performs a GET /api/auth/basic/organisations/{orgID} (the `GetOrganisation` operationId) request.

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUser performs a GET /api/auth/basic/organisations/{orgID}/users/{userID} (the `GetUser` operationId) request.

func (*Client) GetUserGroups

func (c *Client) GetUserGroups(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserGroups performs a GET /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `GetUserGroups` operationId) request.

func (*Client) ListGroups

func (c *Client) ListGroups(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

ListGroups performs a GET /api/auth/basic/organisations/{orgID}/groups (the `ListGroups` operationId) request.

func (*Client) ListOrganisations

func (c *Client) ListOrganisations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrganisations performs a GET /api/auth/basic/organisations (the `ListOrganisations` operationId) request.

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUsers performs a GET /api/auth/basic/organisations/{orgID}/users (the `ListUsers` operationId) request.

func (*Client) Login

func (c *Client) Login(ctx context.Context, orgID Orgid, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Login performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request. Takes a body of the `application/json` content type.

func (*Client) LoginWithBody

func (c *Client) LoginWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LoginWithBody performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request, with any type of body and a specified content type.

func (*Client) Logout

func (c *Client) Logout(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

Logout performs a POST /api/auth/basic/organisations/{orgID}/logout (the `Logout` operationId) request.

func (*Client) Refresh

func (c *Client) Refresh(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

Refresh performs a POST /api/auth/basic/organisations/{orgID}/refresh (the `Refresh` operationId) request.

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(ctx context.Context, orgID Orgid, groupID Groupid, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateGroup performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request. Takes a body of the `application/json` content type.

func (*Client) UpdateGroupWithBody

func (c *Client) UpdateGroupWithBody(ctx context.Context, orgID Orgid, groupID Groupid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateGroupWithBody performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request, with any type of body and a specified content type.

func (*Client) UpdateOrganisation

func (c *Client) UpdateOrganisation(ctx context.Context, orgID Orgid, body UpdateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganisation performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request. Takes a body of the `application/json` content type.

func (*Client) UpdateOrganisationWithBody

func (c *Client) UpdateOrganisationWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganisationWithBody performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request, with any type of body and a specified content type.

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUser performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request. Takes a body of the `application/json` content type.

func (*Client) UpdateUserGroups

func (c *Client) UpdateUserGroups(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserGroups performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request. Takes a body of the `application/json` content type.

func (*Client) UpdateUserGroupsWithBody

func (c *Client) UpdateUserGroupsWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserGroupsWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request, with any type of body and a specified content type.

func (*Client) UpdateUserWithBody

func (c *Client) UpdateUserWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request, with any type of body and a specified content type.

type ClientInterface

type ClientInterface interface {

	// ListOrganisations performs a GET /api/auth/basic/organisations (the `ListOrganisations` operationId) request.
	ListOrganisations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrganisationWithBody performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request,
	// with any type of body and a specified content type.
	CreateOrganisationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrganisation performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request.
	// Takes a body of the `application/json` content type.
	CreateOrganisation(ctx context.Context, body CreateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOrganisation performs a DELETE /api/auth/basic/organisations/{orgID} (the `DeleteOrganisation` operationId) request.
	DeleteOrganisation(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganisation performs a GET /api/auth/basic/organisations/{orgID} (the `GetOrganisation` operationId) request.
	GetOrganisation(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganisationWithBody performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request,
	// with any type of body and a specified content type.
	UpdateOrganisationWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganisation performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request.
	// Takes a body of the `application/json` content type.
	UpdateOrganisation(ctx context.Context, orgID Orgid, body UpdateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListGroups performs a GET /api/auth/basic/organisations/{orgID}/groups (the `ListGroups` operationId) request.
	ListGroups(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateGroupWithBody performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request,
	// with any type of body and a specified content type.
	CreateGroupWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateGroup performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request.
	// Takes a body of the `application/json` content type.
	CreateGroup(ctx context.Context, orgID Orgid, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteGroup performs a DELETE /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `DeleteGroup` operationId) request.
	DeleteGroup(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetGroup performs a GET /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `GetGroup` operationId) request.
	GetGroup(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateGroupWithBody performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request,
	// with any type of body and a specified content type.
	UpdateGroupWithBody(ctx context.Context, orgID Orgid, groupID Groupid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateGroup performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request.
	// Takes a body of the `application/json` content type.
	UpdateGroup(ctx context.Context, orgID Orgid, groupID Groupid, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LoginWithBody performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request,
	// with any type of body and a specified content type.
	LoginWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Login performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request.
	// Takes a body of the `application/json` content type.
	Login(ctx context.Context, orgID Orgid, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout performs a POST /api/auth/basic/organisations/{orgID}/logout (the `Logout` operationId) request.
	Logout(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Refresh performs a POST /api/auth/basic/organisations/{orgID}/refresh (the `Refresh` operationId) request.
	Refresh(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers performs a GET /api/auth/basic/organisations/{orgID}/users (the `ListUsers` operationId) request.
	ListUsers(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserWithBody performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request,
	// with any type of body and a specified content type.
	CreateUserWithBody(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUser performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request.
	// Takes a body of the `application/json` content type.
	CreateUser(ctx context.Context, orgID Orgid, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMe performs a GET /api/auth/basic/organisations/{orgID}/users/me (the `GetMe` operationId) request.
	GetMe(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser performs a DELETE /api/auth/basic/organisations/{orgID}/users/{userID} (the `DeleteUser` operationId) request.
	DeleteUser(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUser performs a GET /api/auth/basic/organisations/{orgID}/users/{userID} (the `GetUser` operationId) request.
	GetUser(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request,
	// with any type of body and a specified content type.
	UpdateUserWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUser performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request.
	// Takes a body of the `application/json` content type.
	UpdateUser(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserGroups performs a GET /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `GetUserGroups` operationId) request.
	GetUserGroups(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserGroupsWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request,
	// with any type of body and a specified content type.
	UpdateUserGroupsWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserGroups performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request.
	// Takes a body of the `application/json` content type.
	UpdateUserGroups(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePasswordWithBody performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request,
	// with any type of body and a specified content type.
	ChangePasswordWithBody(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePassword performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request.
	// Takes a body of the `application/json` content type.
	ChangePassword(ctx context.Context, orgID Orgid, userID Userid, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) ChangePasswordWithBodyWithResponse

func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ChangePasswordWithResponse

func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, orgID Orgid, userID Userid, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateGroupWithBodyWithResponse

func (c *ClientWithResponses) CreateGroupWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)

CreateGroupWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateGroupWithResponse

func (c *ClientWithResponses) CreateGroupWithResponse(ctx context.Context, orgID Orgid, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)

CreateGroupWithResponse performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateOrganisationWithBodyWithResponse

func (c *ClientWithResponses) CreateOrganisationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganisationResponse, error)

CreateOrganisationWithBodyWithResponse performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateOrganisationWithResponse

func (c *ClientWithResponses) CreateOrganisationWithResponse(ctx context.Context, body CreateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganisationResponse, error)

CreateOrganisationWithResponse performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateUserWithBodyWithResponse

func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, orgID Orgid, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithResponse performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DeleteGroupWithResponse

func (c *ClientWithResponses) DeleteGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*DeleteGroupResponse, error)

DeleteGroupWithResponse performs a DELETE /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `DeleteGroup` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DeleteOrganisationWithResponse

func (c *ClientWithResponses) DeleteOrganisationWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*DeleteOrganisationResponse, error)

DeleteOrganisationWithResponse performs a DELETE /api/auth/basic/organisations/{orgID} (the `DeleteOrganisation` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse performs a DELETE /api/auth/basic/organisations/{orgID}/users/{userID} (the `DeleteUser` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetGroupWithResponse

func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)

GetGroupWithResponse performs a GET /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `GetGroup` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetMeWithResponse

func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*GetMeResponse, error)

GetMeWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/me (the `GetMe` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetOrganisationWithResponse

func (c *ClientWithResponses) GetOrganisationWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*GetOrganisationResponse, error)

GetOrganisationWithResponse performs a GET /api/auth/basic/organisations/{orgID} (the `GetOrganisation` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetUserGroupsWithResponse

func (c *ClientWithResponses) GetUserGroupsWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error)

GetUserGroupsWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `GetUserGroups` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) GetUserWithResponse

func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

GetUserWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/{userID} (the `GetUser` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListGroupsWithResponse

func (c *ClientWithResponses) ListGroupsWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)

ListGroupsWithResponse performs a GET /api/auth/basic/organisations/{orgID}/groups (the `ListGroups` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListOrganisationsWithResponse

func (c *ClientWithResponses) ListOrganisationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganisationsResponse, error)

ListOrganisationsWithResponse performs a GET /api/auth/basic/organisations (the `ListOrganisations` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

ListUsersWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users (the `ListUsers` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LoginWithBodyWithResponse

func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, orgID Orgid, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithResponse performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

LogoutWithResponse performs a POST /api/auth/basic/organisations/{orgID}/logout (the `Logout` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RefreshWithResponse

func (c *ClientWithResponses) RefreshWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*RefreshResponse, error)

RefreshWithResponse performs a POST /api/auth/basic/organisations/{orgID}/refresh (the `Refresh` operationId) request.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateGroupWithBodyWithResponse

func (c *ClientWithResponses) UpdateGroupWithBodyWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)

UpdateGroupWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateGroupWithResponse

func (c *ClientWithResponses) UpdateGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)

UpdateGroupWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateOrganisationWithBodyWithResponse

func (c *ClientWithResponses) UpdateOrganisationWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganisationResponse, error)

UpdateOrganisationWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateOrganisationWithResponse

func (c *ClientWithResponses) UpdateOrganisationWithResponse(ctx context.Context, orgID Orgid, body UpdateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganisationResponse, error)

UpdateOrganisationWithResponse performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateUserGroupsWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserGroupsWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserGroupsResponse, error)

UpdateUserGroupsWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateUserGroupsWithResponse

func (c *ClientWithResponses) UpdateUserGroupsWithResponse(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserGroupsResponse, error)

UpdateUserGroupsWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request, with any type of body and a specified content type.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListOrganisationsWithResponse performs a GET /api/auth/basic/organisations (the `ListOrganisations` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListOrganisationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganisationsResponse, error)

	// CreateOrganisationWithBodyWithResponse performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	CreateOrganisationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganisationResponse, error)

	// CreateOrganisationWithResponse performs a POST /api/auth/basic/organisations (the `CreateOrganisation` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	CreateOrganisationWithResponse(ctx context.Context, body CreateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganisationResponse, error)

	// DeleteOrganisationWithResponse performs a DELETE /api/auth/basic/organisations/{orgID} (the `DeleteOrganisation` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteOrganisationWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*DeleteOrganisationResponse, error)

	// GetOrganisationWithResponse performs a GET /api/auth/basic/organisations/{orgID} (the `GetOrganisation` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetOrganisationWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*GetOrganisationResponse, error)

	// UpdateOrganisationWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	UpdateOrganisationWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganisationResponse, error)

	// UpdateOrganisationWithResponse performs a PUT /api/auth/basic/organisations/{orgID} (the `UpdateOrganisation` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	UpdateOrganisationWithResponse(ctx context.Context, orgID Orgid, body UpdateOrganisationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganisationResponse, error)

	// ListGroupsWithResponse performs a GET /api/auth/basic/organisations/{orgID}/groups (the `ListGroups` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListGroupsWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*ListGroupsResponse, error)

	// CreateGroupWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	CreateGroupWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)

	// CreateGroupWithResponse performs a POST /api/auth/basic/organisations/{orgID}/groups (the `CreateGroup` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	CreateGroupWithResponse(ctx context.Context, orgID Orgid, body CreateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGroupResponse, error)

	// DeleteGroupWithResponse performs a DELETE /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `DeleteGroup` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*DeleteGroupResponse, error)

	// GetGroupWithResponse performs a GET /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `GetGroup` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, reqEditors ...RequestEditorFn) (*GetGroupResponse, error)

	// UpdateGroupWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	UpdateGroupWithBodyWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)

	// UpdateGroupWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/groups/{groupID} (the `UpdateGroup` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	UpdateGroupWithResponse(ctx context.Context, orgID Orgid, groupID Groupid, body UpdateGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupResponse, error)

	// LoginWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	LoginWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LoginWithResponse performs a POST /api/auth/basic/organisations/{orgID}/login (the `Login` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	LoginWithResponse(ctx context.Context, orgID Orgid, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LogoutWithResponse performs a POST /api/auth/basic/organisations/{orgID}/logout (the `Logout` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	LogoutWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// RefreshWithResponse performs a POST /api/auth/basic/organisations/{orgID}/refresh (the `Refresh` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	RefreshWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*RefreshResponse, error)

	// ListUsersWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users (the `ListUsers` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	ListUsersWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

	// CreateUserWithBodyWithResponse performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	CreateUserWithBodyWithResponse(ctx context.Context, orgID Orgid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// CreateUserWithResponse performs a POST /api/auth/basic/organisations/{orgID}/users (the `CreateUser` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	CreateUserWithResponse(ctx context.Context, orgID Orgid, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// GetMeWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/me (the `GetMe` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetMeWithResponse(ctx context.Context, orgID Orgid, reqEditors ...RequestEditorFn) (*GetMeResponse, error)

	// DeleteUserWithResponse performs a DELETE /api/auth/basic/organisations/{orgID}/users/{userID} (the `DeleteUser` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	DeleteUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// GetUserWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/{userID} (the `GetUser` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

	// UpdateUserWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	UpdateUserWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// UpdateUserWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID} (the `UpdateUser` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	UpdateUserWithResponse(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// GetUserGroupsWithResponse performs a GET /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `GetUserGroups` operationId) request.
	//
	// Returns a wrapper object for the known response body format(s).
	GetUserGroupsWithResponse(ctx context.Context, orgID Orgid, userID Userid, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error)

	// UpdateUserGroupsWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	UpdateUserGroupsWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserGroupsResponse, error)

	// UpdateUserGroupsWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/groups (the `UpdateUserGroups` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	UpdateUserGroupsWithResponse(ctx context.Context, orgID Orgid, userID Userid, body UpdateUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserGroupsResponse, error)

	// ChangePasswordWithBodyWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request,
	// with any type of body and a specified content type.
	//
	// Returns a wrapper object for the known response body format(s).
	ChangePasswordWithBodyWithResponse(ctx context.Context, orgID Orgid, userID Userid, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

	// ChangePasswordWithResponse performs a PUT /api/auth/basic/organisations/{orgID}/users/{userID}/password (the `ChangePassword` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	ChangePasswordWithResponse(ctx context.Context, orgID Orgid, userID Userid, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateGroupJSONBody

type CreateGroupJSONBody struct {
	Name string `json:"name"`
}

CreateGroupJSONBody defines parameters for CreateGroup.

type CreateGroupJSONRequestBody

type CreateGroupJSONRequestBody CreateGroupJSONBody

CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType.

type CreateGroupRequest

type CreateGroupRequest struct {
	Name string `json:"name"`
}

CreateGroupRequest defines model for CreateGroupRequest.

type CreateGroupResponse

type CreateGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Group
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseCreateGroupResponse

func ParseCreateGroupResponse(rsp *http.Response) (*CreateGroupResponse, error)

ParseCreateGroupResponse parses an HTTP response from a CreateGroupWithResponse call

func (CreateGroupResponse) ContentType

func (r CreateGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateGroupResponse) GetBody

func (r CreateGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateGroupResponse) GetJSON201

func (r CreateGroupResponse) GetJSON201() *Group

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateGroupResponse) GetJSON400

func (r CreateGroupResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateGroupResponse) GetJSON401

func (r CreateGroupResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateGroupResponse) GetJSON403

func (r CreateGroupResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateGroupResponse) GetJSON409

func (r CreateGroupResponse) GetJSON409() *APIErrorResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateGroupResponse) GetJSON500

func (r CreateGroupResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateGroupResponse) Status

func (r CreateGroupResponse) Status() string

Status returns HTTPResponse.Status

func (CreateGroupResponse) StatusCode

func (r CreateGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrganisationJSONBody

type CreateOrganisationJSONBody struct {
	Name string `json:"name"`
}

CreateOrganisationJSONBody defines parameters for CreateOrganisation.

type CreateOrganisationJSONRequestBody

type CreateOrganisationJSONRequestBody CreateOrganisationJSONBody

CreateOrganisationJSONRequestBody defines body for CreateOrganisation for application/json ContentType.

type CreateOrganisationRequest

type CreateOrganisationRequest struct {
	Name string `json:"name"`
}

CreateOrganisationRequest defines model for CreateOrganisationRequest.

type CreateOrganisationResponse

type CreateOrganisationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *struct {
		AdminPassword string `json:"adminPassword"`
		AdminUserId   int64  `json:"adminUserId"`
		AdminUsername string `json:"adminUsername"`
		Id            int64  `json:"id"`
		Name          string `json:"name"`
	}
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseCreateOrganisationResponse

func ParseCreateOrganisationResponse(rsp *http.Response) (*CreateOrganisationResponse, error)

ParseCreateOrganisationResponse parses an HTTP response from a CreateOrganisationWithResponse call

func (CreateOrganisationResponse) ContentType

func (r CreateOrganisationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateOrganisationResponse) GetBody

func (r CreateOrganisationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateOrganisationResponse) GetJSON201

func (r CreateOrganisationResponse) GetJSON201() *struct {
	AdminPassword string `json:"adminPassword"`
	AdminUserId   int64  `json:"adminUserId"`
	AdminUsername string `json:"adminUsername"`
	Id            int64  `json:"id"`
	Name          string `json:"name"`
}

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateOrganisationResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateOrganisationResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateOrganisationResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateOrganisationResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateOrganisationResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateOrganisationResponse) Status

Status returns HTTPResponse.Status

func (CreateOrganisationResponse) StatusCode

func (r CreateOrganisationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserJSONBody

type CreateUserJSONBody struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

CreateUserJSONBody defines parameters for CreateUser.

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody CreateUserJSONBody

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserRequest

type CreateUserRequest struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

CreateUserRequest defines model for CreateUserRequest.

type CreateUserResponse

type CreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseCreateUserResponse

func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)

ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserResponse) ContentType

func (r CreateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateUserResponse) GetBody

func (r CreateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserResponse) GetJSON201

func (r CreateUserResponse) GetJSON201() *User

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateUserResponse) GetJSON400

func (r CreateUserResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateUserResponse) GetJSON401

func (r CreateUserResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateUserResponse) GetJSON403

func (r CreateUserResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateUserResponse) GetJSON409

func (r CreateUserResponse) GetJSON409() *APIErrorResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateUserResponse) GetJSON500

func (r CreateUserResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CreateUserResponse) Status

func (r CreateUserResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserResponse) StatusCode

func (r CreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteGroupResponse

type DeleteGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseDeleteGroupResponse

func ParseDeleteGroupResponse(rsp *http.Response) (*DeleteGroupResponse, error)

ParseDeleteGroupResponse parses an HTTP response from a DeleteGroupWithResponse call

func (DeleteGroupResponse) ContentType

func (r DeleteGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteGroupResponse) GetBody

func (r DeleteGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteGroupResponse) GetJSON401

func (r DeleteGroupResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteGroupResponse) GetJSON403

func (r DeleteGroupResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteGroupResponse) GetJSON500

func (r DeleteGroupResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteGroupResponse) Status

func (r DeleteGroupResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteGroupResponse) StatusCode

func (r DeleteGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOrganisationResponse

type DeleteOrganisationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseDeleteOrganisationResponse

func ParseDeleteOrganisationResponse(rsp *http.Response) (*DeleteOrganisationResponse, error)

ParseDeleteOrganisationResponse parses an HTTP response from a DeleteOrganisationWithResponse call

func (DeleteOrganisationResponse) ContentType

func (r DeleteOrganisationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteOrganisationResponse) GetBody

func (r DeleteOrganisationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteOrganisationResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteOrganisationResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteOrganisationResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteOrganisationResponse) Status

Status returns HTTPResponse.Status

func (DeleteOrganisationResponse) StatusCode

func (r DeleteOrganisationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) ContentType

func (r DeleteUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserResponse) GetBody

func (r DeleteUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserResponse) GetJSON401

func (r DeleteUserResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteUserResponse) GetJSON403

func (r DeleteUserResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteUserResponse) GetJSON500

func (r DeleteUserResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetGroupResponse

type GetGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Group
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseGetGroupResponse

func ParseGetGroupResponse(rsp *http.Response) (*GetGroupResponse, error)

ParseGetGroupResponse parses an HTTP response from a GetGroupWithResponse call

func (GetGroupResponse) ContentType

func (r GetGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetGroupResponse) GetBody

func (r GetGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetGroupResponse) GetJSON200

func (r GetGroupResponse) GetJSON200() *Group

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetGroupResponse) GetJSON401

func (r GetGroupResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetGroupResponse) GetJSON403

func (r GetGroupResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetGroupResponse) GetJSON500

func (r GetGroupResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetGroupResponse) Status

func (r GetGroupResponse) Status() string

Status returns HTTPResponse.Status

func (GetGroupResponse) StatusCode

func (r GetGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMeResponse

type GetMeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseGetMeResponse

func ParseGetMeResponse(rsp *http.Response) (*GetMeResponse, error)

ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call

func (GetMeResponse) ContentType

func (r GetMeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMeResponse) GetBody

func (r GetMeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMeResponse) GetJSON200

func (r GetMeResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMeResponse) GetJSON401

func (r GetMeResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMeResponse) GetJSON500

func (r GetMeResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetMeResponse) Status

func (r GetMeResponse) Status() string

Status returns HTTPResponse.Status

func (GetMeResponse) StatusCode

func (r GetMeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganisationResponse

type GetOrganisationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organisation
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseGetOrganisationResponse

func ParseGetOrganisationResponse(rsp *http.Response) (*GetOrganisationResponse, error)

ParseGetOrganisationResponse parses an HTTP response from a GetOrganisationWithResponse call

func (GetOrganisationResponse) ContentType

func (r GetOrganisationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrganisationResponse) GetBody

func (r GetOrganisationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrganisationResponse) GetJSON200

func (r GetOrganisationResponse) GetJSON200() *Organisation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrganisationResponse) GetJSON401

func (r GetOrganisationResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetOrganisationResponse) GetJSON403

func (r GetOrganisationResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetOrganisationResponse) GetJSON500

func (r GetOrganisationResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetOrganisationResponse) Status

func (r GetOrganisationResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrganisationResponse) StatusCode

func (r GetOrganisationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserGroupsResponse

type GetUserGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserGroups
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseGetUserGroupsResponse

func ParseGetUserGroupsResponse(rsp *http.Response) (*GetUserGroupsResponse, error)

ParseGetUserGroupsResponse parses an HTTP response from a GetUserGroupsWithResponse call

func (GetUserGroupsResponse) ContentType

func (r GetUserGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserGroupsResponse) GetBody

func (r GetUserGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserGroupsResponse) GetJSON200

func (r GetUserGroupsResponse) GetJSON200() *UserGroups

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserGroupsResponse) GetJSON401

func (r GetUserGroupsResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUserGroupsResponse) GetJSON403

func (r GetUserGroupsResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetUserGroupsResponse) GetJSON500

func (r GetUserGroupsResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetUserGroupsResponse) Status

func (r GetUserGroupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserGroupsResponse) StatusCode

func (r GetUserGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResponse

type GetUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseGetUserResponse

func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)

ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call

func (GetUserResponse) ContentType

func (r GetUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserResponse) GetBody

func (r GetUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserResponse) GetJSON200

func (r GetUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserResponse) GetJSON401

func (r GetUserResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUserResponse) GetJSON403

func (r GetUserResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetUserResponse) GetJSON500

func (r GetUserResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetUserResponse) Status

func (r GetUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResponse) StatusCode

func (r GetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Group

type Group struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

Group defines model for Group.

type Groupid

type Groupid = int64

Groupid defines model for groupid.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListGroupsResponse

type ListGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Group
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseListGroupsResponse

func ParseListGroupsResponse(rsp *http.Response) (*ListGroupsResponse, error)

ParseListGroupsResponse parses an HTTP response from a ListGroupsWithResponse call

func (ListGroupsResponse) ContentType

func (r ListGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListGroupsResponse) GetBody

func (r ListGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListGroupsResponse) GetJSON200

func (r ListGroupsResponse) GetJSON200() *[]Group

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListGroupsResponse) GetJSON401

func (r ListGroupsResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListGroupsResponse) GetJSON403

func (r ListGroupsResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListGroupsResponse) GetJSON500

func (r ListGroupsResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListGroupsResponse) Status

func (r ListGroupsResponse) Status() string

Status returns HTTPResponse.Status

func (ListGroupsResponse) StatusCode

func (r ListGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganisationsResponse

type ListOrganisationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]Organisation
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseListOrganisationsResponse

func ParseListOrganisationsResponse(rsp *http.Response) (*ListOrganisationsResponse, error)

ParseListOrganisationsResponse parses an HTTP response from a ListOrganisationsWithResponse call

func (ListOrganisationsResponse) ContentType

func (r ListOrganisationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrganisationsResponse) GetBody

func (r ListOrganisationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrganisationsResponse) GetJSON200

func (r ListOrganisationsResponse) GetJSON200() *[]Organisation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrganisationsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrganisationsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListOrganisationsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListOrganisationsResponse) Status

func (r ListOrganisationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrganisationsResponse) StatusCode

func (r ListOrganisationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersResponse

type ListUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseListUsersResponse

func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)

ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResponse) ContentType

func (r ListUsersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUsersResponse) GetBody

func (r ListUsersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUsersResponse) GetJSON200

func (r ListUsersResponse) GetJSON200() *[]User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUsersResponse) GetJSON401

func (r ListUsersResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListUsersResponse) GetJSON403

func (r ListUsersResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListUsersResponse) GetJSON500

func (r ListUsersResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ListUsersResponse) Status

func (r ListUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersResponse) StatusCode

func (r ListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginJSONBody

type LoginJSONBody struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *LoginResponse204Headers
}

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) GetJSON400

func (r LoginResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LoginResponse) GetJSON401

func (r LoginResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LoginResponse) GetJSON500

func (r LoginResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `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 LoginResponse204Headers

type LoginResponse204Headers struct {
	SetCookie *string
}

LoginResponse204Headers the declared response headers of an HTTP 204 response for Login

type LoginUserRequest

type LoginUserRequest struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

LoginUserRequest defines model for LoginUserRequest.

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *LogoutResponse204Headers
}

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) GetJSON401

func (r LogoutResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LogoutResponse) GetJSON500

func (r LogoutResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `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 LogoutResponse204Headers

type LogoutResponse204Headers struct {
	SetCookie *string
}

LogoutResponse204Headers the declared response headers of an HTTP 204 response for Logout

type Organisation

type Organisation struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

Organisation defines model for Organisation.

type Orgid

type Orgid = int64

Orgid defines model for orgid.

type RefreshResponse

type RefreshResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *RefreshResponse204Headers
}

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) GetJSON400

func (r RefreshResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (RefreshResponse) GetJSON401

func (r RefreshResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RefreshResponse) GetJSON500

func (r RefreshResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `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 RefreshResponse204Headers

type RefreshResponse204Headers struct {
	SetCookie *string
}

RefreshResponse204Headers the declared response headers of an HTTP 204 response for Refresh

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateGroupJSONRequestBody

type UpdateGroupJSONRequestBody = Group

UpdateGroupJSONRequestBody defines body for UpdateGroup for application/json ContentType.

type UpdateGroupResponse

type UpdateGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Group
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseUpdateGroupResponse

func ParseUpdateGroupResponse(rsp *http.Response) (*UpdateGroupResponse, error)

ParseUpdateGroupResponse parses an HTTP response from a UpdateGroupWithResponse call

func (UpdateGroupResponse) ContentType

func (r UpdateGroupResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateGroupResponse) GetBody

func (r UpdateGroupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateGroupResponse) GetJSON200

func (r UpdateGroupResponse) GetJSON200() *Group

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateGroupResponse) GetJSON400

func (r UpdateGroupResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateGroupResponse) GetJSON401

func (r UpdateGroupResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateGroupResponse) GetJSON403

func (r UpdateGroupResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateGroupResponse) GetJSON409

func (r UpdateGroupResponse) GetJSON409() *APIErrorResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateGroupResponse) GetJSON500

func (r UpdateGroupResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateGroupResponse) Status

func (r UpdateGroupResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateGroupResponse) StatusCode

func (r UpdateGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOrganisationJSONRequestBody

type UpdateOrganisationJSONRequestBody = Organisation

UpdateOrganisationJSONRequestBody defines body for UpdateOrganisation for application/json ContentType.

type UpdateOrganisationResponse

type UpdateOrganisationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organisation
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseUpdateOrganisationResponse

func ParseUpdateOrganisationResponse(rsp *http.Response) (*UpdateOrganisationResponse, error)

ParseUpdateOrganisationResponse parses an HTTP response from a UpdateOrganisationWithResponse call

func (UpdateOrganisationResponse) ContentType

func (r UpdateOrganisationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOrganisationResponse) GetBody

func (r UpdateOrganisationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOrganisationResponse) GetJSON200

func (r UpdateOrganisationResponse) GetJSON200() *Organisation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOrganisationResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateOrganisationResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateOrganisationResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateOrganisationResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateOrganisationResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateOrganisationResponse) Status

Status returns HTTPResponse.Status

func (UpdateOrganisationResponse) StatusCode

func (r UpdateOrganisationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserGroupsJSONRequestBody

type UpdateUserGroupsJSONRequestBody = UserGroups

UpdateUserGroupsJSONRequestBody defines body for UpdateUserGroups for application/json ContentType.

type UpdateUserGroupsResponse

type UpdateUserGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserGroups
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseUpdateUserGroupsResponse

func ParseUpdateUserGroupsResponse(rsp *http.Response) (*UpdateUserGroupsResponse, error)

ParseUpdateUserGroupsResponse parses an HTTP response from a UpdateUserGroupsWithResponse call

func (UpdateUserGroupsResponse) ContentType

func (r UpdateUserGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateUserGroupsResponse) GetBody

func (r UpdateUserGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateUserGroupsResponse) GetJSON200

func (r UpdateUserGroupsResponse) GetJSON200() *UserGroups

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateUserGroupsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateUserGroupsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateUserGroupsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateUserGroupsResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateUserGroupsResponse) Status

func (r UpdateUserGroupsResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserGroupsResponse) StatusCode

func (r UpdateUserGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = User

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *APIErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *APIErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *APIErrorResponse
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *APIErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *APIErrorResponse
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) ContentType

func (r UpdateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateUserResponse) GetBody

func (r UpdateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateUserResponse) GetJSON200

func (r UpdateUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateUserResponse) GetJSON400

func (r UpdateUserResponse) GetJSON400() *APIErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateUserResponse) GetJSON401

func (r UpdateUserResponse) GetJSON401() *APIErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateUserResponse) GetJSON403

func (r UpdateUserResponse) GetJSON403() *APIErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateUserResponse) GetJSON409

func (r UpdateUserResponse) GetJSON409() *APIErrorResponse

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateUserResponse) GetJSON500

func (r UpdateUserResponse) GetJSON500() *APIErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	Groups *UserGroups `json:"groups,omitempty"`
	Id     int64       `json:"id"`
	Name   string      `json:"name"`
}

User defines model for User.

type UserGroups

type UserGroups = []Group

UserGroups defines model for UserGroups.

type Userid

type Userid = int64

Userid defines model for userid.

Jump to

Keyboard shortcuts

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