global_settings

package
v0.0.0-...-51df98d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	Oauth2Scopes = "oauth2.Scopes"
)

Variables

This section is empty.

Functions

func NewArchiveRequest

func NewArchiveRequest(server string, id string) (*http.Request, error)

NewArchiveRequest generates requests for Archive

func NewCreateFilterRequest

func NewCreateFilterRequest(server string, body CreateFilterJSONRequestBody) (*http.Request, error)

NewCreateFilterRequest calls the generic CreateFilter builder with application/json body

func NewCreateFilterRequestWithBody

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

NewCreateFilterRequestWithBody generates requests for CreateFilter with any type of body

func NewCreateRequest

func NewCreateRequest(server string, body CreateJSONRequestBody) (*http.Request, error)

NewCreateRequest calls the generic Create builder with application/json body

func NewCreateRequestWithBody

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

NewCreateRequestWithBody generates requests for Create with any type of body

func NewDeleteFilterFromAllRequest

func NewDeleteFilterFromAllRequest(server string, id string) (*http.Request, error)

NewDeleteFilterFromAllRequest generates requests for DeleteFilterFromAll

func NewDeleteFilterRequest

func NewDeleteFilterRequest(server string, id string) (*http.Request, error)

NewDeleteFilterRequest generates requests for DeleteFilter

func NewFindAllRequest

func NewFindAllRequest(server string, body FindAllJSONRequestBody) (*http.Request, error)

NewFindAllRequest calls the generic FindAll builder with application/json body

func NewFindAllRequestWithBody

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

NewFindAllRequestWithBody generates requests for FindAll with any type of body

func NewFindFilterRequest

func NewFindFilterRequest(server string, body FindFilterJSONRequestBody) (*http.Request, error)

NewFindFilterRequest calls the generic FindFilter builder with application/json body

func NewFindFilterRequestWithBody

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

NewFindFilterRequestWithBody generates requests for FindFilter with any type of body

func NewFindRequest

func NewFindRequest(server string, params *FindParams) (*http.Request, error)

NewFindRequest generates requests for Find

func NewGetFilterRequest

func NewGetFilterRequest(server string, id string) (*http.Request, error)

NewGetFilterRequest generates requests for GetFilter

func NewGetPermissionsRequest

func NewGetPermissionsRequest(server string, id string) (*http.Request, error)

NewGetPermissionsRequest generates requests for GetPermissions

func NewGetRequest

func NewGetRequest(server string, id string) (*http.Request, error)

NewGetRequest generates requests for Get

func NewGrantPermissionRequest

func NewGrantPermissionRequest(server string, id string, userId string, body GrantPermissionJSONRequestBody) (*http.Request, error)

NewGrantPermissionRequest calls the generic GrantPermission builder with application/json body

func NewGrantPermissionRequestWithBody

func NewGrantPermissionRequestWithBody(server string, id string, userId string, contentType string, body io.Reader) (*http.Request, error)

NewGrantPermissionRequestWithBody generates requests for GrantPermission with any type of body

func NewRevokePermissionRequest

func NewRevokePermissionRequest(server string, id string, userId string) (*http.Request, error)

NewRevokePermissionRequest generates requests for RevokePermission

func NewUpdateFilterRequest

func NewUpdateFilterRequest(server string, id string, body UpdateFilterJSONRequestBody) (*http.Request, error)

NewUpdateFilterRequest calls the generic UpdateFilter builder with application/json body

func NewUpdateFilterRequestWithBody

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

NewUpdateFilterRequestWithBody generates requests for UpdateFilter with any type of body

func NewUpdatePublicFilterRequest

func NewUpdatePublicFilterRequest(server string, id string, body UpdatePublicFilterJSONRequestBody) (*http.Request, error)

NewUpdatePublicFilterRequest calls the generic UpdatePublicFilter builder with application/json body

func NewUpdatePublicFilterRequestWithBody

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

NewUpdatePublicFilterRequestWithBody generates requests for UpdatePublicFilter with any type of body

func NewUpdateRequest

func NewUpdateRequest(server string, id string, body UpdateJSONRequestBody) (*http.Request, error)

NewUpdateRequest calls the generic Update builder with application/json body

func NewUpdateRequestWithBody

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

NewUpdateRequestWithBody generates requests for Update with any type of body

Types

type ArchiveResponse

type ArchiveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseArchiveResponse

func ParseArchiveResponse(rsp *http.Response) (*ArchiveResponse, error)

ParseArchiveResponse parses an HTTP response from a ArchiveWithResponse call

func (ArchiveResponse) Status

func (r ArchiveResponse) Status() string

Status returns HTTPResponse.Status

func (ArchiveResponse) StatusCode

func (r ArchiveResponse) 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) Archive

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

func (*Client) Create

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

func (*Client) CreateFilter

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

func (*Client) CreateFilterWithBody

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

func (*Client) CreateWithBody

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

func (*Client) DeleteFilter

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

func (*Client) DeleteFilterFromAll

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

func (*Client) Find

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

func (*Client) FindAll

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

func (*Client) FindAllWithBody

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

func (*Client) FindFilter

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

func (*Client) FindFilterWithBody

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

func (*Client) Get

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

func (*Client) GetFilter

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

func (*Client) GetPermissions

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

func (*Client) GrantPermission

func (c *Client) GrantPermission(ctx context.Context, id string, userId string, body GrantPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GrantPermissionWithBody

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

func (*Client) RevokePermission

func (c *Client) RevokePermission(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, id string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFilter

func (c *Client) UpdateFilter(ctx context.Context, id string, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFilterWithBody

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

func (*Client) UpdatePublicFilter

func (c *Client) UpdatePublicFilter(ctx context.Context, id string, body UpdatePublicFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePublicFilterWithBody

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

func (*Client) UpdateWithBody

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

type ClientInterface

type ClientInterface interface {
	// Find request
	Find(ctx context.Context, params *FindParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWithBody request with any body
	CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Archive request
	Archive(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Get request
	Get(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWithBody request with any body
	UpdateWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Update(ctx context.Context, id string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFilterWithBody request with any body
	CreateFilterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateFilter(ctx context.Context, body CreateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFilterFromAll request
	DeleteFilterFromAll(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePublicFilterWithBody request with any body
	UpdatePublicFilterWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePublicFilter(ctx context.Context, id string, body UpdatePublicFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindFilterWithBody request with any body
	FindFilterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FindFilter(ctx context.Context, body FindFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FindAllWithBody request with any body
	FindAllWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FindAll(ctx context.Context, body FindAllJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFilter request
	DeleteFilter(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFilter request
	GetFilter(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFilterWithBody request with any body
	UpdateFilterWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFilter(ctx context.Context, id string, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPermissions request
	GetPermissions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokePermission request
	RevokePermission(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GrantPermissionWithBody request with any body
	GrantPermissionWithBody(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GrantPermission(ctx context.Context, id string, userId string, body GrantPermissionJSONRequestBody, 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) ArchiveWithResponse

func (c *ClientWithResponses) ArchiveWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error)

ArchiveWithResponse request returning *ArchiveResponse

func (*ClientWithResponses) CreateFilterWithBodyWithResponse

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

CreateFilterWithBodyWithResponse request with arbitrary body returning *CreateFilterResponse

func (*ClientWithResponses) CreateFilterWithResponse

func (c *ClientWithResponses) CreateFilterWithResponse(ctx context.Context, body CreateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilterResponse, error)

func (*ClientWithResponses) CreateWithBodyWithResponse

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

CreateWithBodyWithResponse request with arbitrary body returning *CreateResponse

func (*ClientWithResponses) CreateWithResponse

func (c *ClientWithResponses) CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

func (*ClientWithResponses) DeleteFilterFromAllWithResponse

func (c *ClientWithResponses) DeleteFilterFromAllWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFilterFromAllResponse, error)

DeleteFilterFromAllWithResponse request returning *DeleteFilterFromAllResponse

func (*ClientWithResponses) DeleteFilterWithResponse

func (c *ClientWithResponses) DeleteFilterWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFilterResponse, error)

DeleteFilterWithResponse request returning *DeleteFilterResponse

func (*ClientWithResponses) FindAllWithBodyWithResponse

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

FindAllWithBodyWithResponse request with arbitrary body returning *FindAllResponse

func (*ClientWithResponses) FindAllWithResponse

func (c *ClientWithResponses) FindAllWithResponse(ctx context.Context, body FindAllJSONRequestBody, reqEditors ...RequestEditorFn) (*FindAllResponse, error)

func (*ClientWithResponses) FindFilterWithBodyWithResponse

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

FindFilterWithBodyWithResponse request with arbitrary body returning *FindFilterResponse

func (*ClientWithResponses) FindFilterWithResponse

func (c *ClientWithResponses) FindFilterWithResponse(ctx context.Context, body FindFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*FindFilterResponse, error)

func (*ClientWithResponses) FindWithResponse

func (c *ClientWithResponses) FindWithResponse(ctx context.Context, params *FindParams, reqEditors ...RequestEditorFn) (*FindResponse, error)

FindWithResponse request returning *FindResponse

func (*ClientWithResponses) GetFilterWithResponse

func (c *ClientWithResponses) GetFilterWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFilterResponse, error)

GetFilterWithResponse request returning *GetFilterResponse

func (*ClientWithResponses) GetPermissionsWithResponse

func (c *ClientWithResponses) GetPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPermissionsResponse, error)

GetPermissionsWithResponse request returning *GetPermissionsResponse

func (*ClientWithResponses) GetWithResponse

func (c *ClientWithResponses) GetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetResponse, error)

GetWithResponse request returning *GetResponse

func (*ClientWithResponses) GrantPermissionWithBodyWithResponse

func (c *ClientWithResponses) GrantPermissionWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantPermissionResponse, error)

GrantPermissionWithBodyWithResponse request with arbitrary body returning *GrantPermissionResponse

func (*ClientWithResponses) GrantPermissionWithResponse

func (c *ClientWithResponses) GrantPermissionWithResponse(ctx context.Context, id string, userId string, body GrantPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantPermissionResponse, error)

func (*ClientWithResponses) RevokePermissionWithResponse

func (c *ClientWithResponses) RevokePermissionWithResponse(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*RevokePermissionResponse, error)

RevokePermissionWithResponse request returning *RevokePermissionResponse

func (*ClientWithResponses) UpdateFilterWithBodyWithResponse

func (c *ClientWithResponses) UpdateFilterWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error)

UpdateFilterWithBodyWithResponse request with arbitrary body returning *UpdateFilterResponse

func (*ClientWithResponses) UpdateFilterWithResponse

func (c *ClientWithResponses) UpdateFilterWithResponse(ctx context.Context, id string, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error)

func (*ClientWithResponses) UpdatePublicFilterWithBodyWithResponse

func (c *ClientWithResponses) UpdatePublicFilterWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePublicFilterResponse, error)

UpdatePublicFilterWithBodyWithResponse request with arbitrary body returning *UpdatePublicFilterResponse

func (*ClientWithResponses) UpdatePublicFilterWithResponse

func (c *ClientWithResponses) UpdatePublicFilterWithResponse(ctx context.Context, id string, body UpdatePublicFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePublicFilterResponse, error)

func (*ClientWithResponses) UpdateWithBodyWithResponse

func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse

func (*ClientWithResponses) UpdateWithResponse

func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, id string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// FindWithResponse request
	FindWithResponse(ctx context.Context, params *FindParams, reqEditors ...RequestEditorFn) (*FindResponse, error)

	// CreateWithBodyWithResponse request with any body
	CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	// ArchiveWithResponse request
	ArchiveWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error)

	// GetWithResponse request
	GetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetResponse, error)

	// UpdateWithBodyWithResponse request with any body
	UpdateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	UpdateWithResponse(ctx context.Context, id string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	// CreateFilterWithBodyWithResponse request with any body
	CreateFilterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFilterResponse, error)

	CreateFilterWithResponse(ctx context.Context, body CreateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilterResponse, error)

	// DeleteFilterFromAllWithResponse request
	DeleteFilterFromAllWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFilterFromAllResponse, error)

	// UpdatePublicFilterWithBodyWithResponse request with any body
	UpdatePublicFilterWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePublicFilterResponse, error)

	UpdatePublicFilterWithResponse(ctx context.Context, id string, body UpdatePublicFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePublicFilterResponse, error)

	// FindFilterWithBodyWithResponse request with any body
	FindFilterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindFilterResponse, error)

	FindFilterWithResponse(ctx context.Context, body FindFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*FindFilterResponse, error)

	// FindAllWithBodyWithResponse request with any body
	FindAllWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindAllResponse, error)

	FindAllWithResponse(ctx context.Context, body FindAllJSONRequestBody, reqEditors ...RequestEditorFn) (*FindAllResponse, error)

	// DeleteFilterWithResponse request
	DeleteFilterWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteFilterResponse, error)

	// GetFilterWithResponse request
	GetFilterWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFilterResponse, error)

	// UpdateFilterWithBodyWithResponse request with any body
	UpdateFilterWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error)

	UpdateFilterWithResponse(ctx context.Context, id string, body UpdateFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilterResponse, error)

	// GetPermissionsWithResponse request
	GetPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetPermissionsResponse, error)

	// RevokePermissionWithResponse request
	RevokePermissionWithResponse(ctx context.Context, id string, userId string, reqEditors ...RequestEditorFn) (*RevokePermissionResponse, error)

	// GrantPermissionWithBodyWithResponse request with any body
	GrantPermissionWithBodyWithResponse(ctx context.Context, id string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantPermissionResponse, error)

	GrantPermissionWithResponse(ctx context.Context, id string, userId string, body GrantPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantPermissionResponse, error)
}

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

type ContextRequestDto

type ContextRequestDto struct {
	Fallback *string `json:"fallback,omitempty"`
	Locale   string  `json:"locale"`
	Name     string  `json:"name"`
}

ContextRequestDto defines model for ContextRequestDto.

type ContextResponseDto

type ContextResponseDto struct {
	Archived   bool    `json:"archived"`
	Fallback   *string `json:"fallback,omitempty"`
	Id         string  `json:"id"`
	Initial    *bool   `json:"initial,omitempty"`
	InternalId string  `json:"internalId"`
	Locale     string  `json:"locale"`
	Name       string  `json:"name"`
}

ContextResponseDto defines model for ContextResponseDto.

type ContextResponseListDto

type ContextResponseListDto struct {
	Data []ContextResponseDto `json:"data"`
}

ContextResponseListDto defines model for ContextResponseListDto.

type CreateFilterJSONRequestBody

type CreateFilterJSONRequestBody = FilterCreateRequestDto

CreateFilterJSONRequestBody defines body for CreateFilter for application/json ContentType.

type CreateFilterResponse

type CreateFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Unit
	JSON400      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseCreateFilterResponse

func ParseCreateFilterResponse(rsp *http.Response) (*CreateFilterResponse, error)

ParseCreateFilterResponse parses an HTTP response from a CreateFilterWithResponse call

func (CreateFilterResponse) Status

func (r CreateFilterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateFilterResponse) StatusCode

func (r CreateFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJSONRequestBody

type CreateJSONRequestBody = ContextRequestDto

CreateJSONRequestBody defines body for Create for application/json ContentType.

type CreateResponse

type CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Unit
	JSON400      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseCreateResponse

func ParseCreateResponse(rsp *http.Response) (*CreateResponse, error)

ParseCreateResponse parses an HTTP response from a CreateWithResponse call

func (CreateResponse) Status

func (r CreateResponse) Status() string

Status returns HTTPResponse.Status

func (CreateResponse) StatusCode

func (r CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFilterFromAllResponse

type DeleteFilterFromAllResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseDeleteFilterFromAllResponse

func ParseDeleteFilterFromAllResponse(rsp *http.Response) (*DeleteFilterFromAllResponse, error)

ParseDeleteFilterFromAllResponse parses an HTTP response from a DeleteFilterFromAllWithResponse call

func (DeleteFilterFromAllResponse) Status

Status returns HTTPResponse.Status

func (DeleteFilterFromAllResponse) StatusCode

func (r DeleteFilterFromAllResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFilterResponse

type DeleteFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseDeleteFilterResponse

func ParseDeleteFilterResponse(rsp *http.Response) (*DeleteFilterResponse, error)

ParseDeleteFilterResponse parses an HTTP response from a DeleteFilterWithResponse call

func (DeleteFilterResponse) Status

func (r DeleteFilterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteFilterResponse) StatusCode

func (r DeleteFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorDetails

type ErrorDetails struct {
	Field         *string `json:"field,omitempty"`
	Message       *string `json:"message,omitempty"`
	RejectedValue *string `json:"rejectedValue,omitempty"`
}

ErrorDetails defines model for ErrorDetails.

type ErrorResponse

type ErrorResponse struct {
	Error        *string         `json:"error,omitempty"`
	ErrorDetails *[]ErrorDetails `json:"errorDetails,omitempty"`
	RequestId    *string         `json:"requestId,omitempty"`
	Status       *int32          `json:"status,omitempty"`
	Timestamp    *int64          `json:"timestamp,omitempty"`
}

ErrorResponse defines model for ErrorResponse.

type FilterCreateRequestDto

type FilterCreateRequestDto struct {
	Entity  string                            `json:"entity"`
	Filter  map[string]map[string]interface{} `json:"filter"`
	Name    string                            `json:"name"`
	Public  bool                              `json:"public"`
	Service string                            `json:"service"`
	Valid   *bool                             `json:"valid,omitempty"`
}

FilterCreateRequestDto defines model for FilterCreateRequestDto.

type FilterPermissionResponseDto

type FilterPermissionResponseDto struct {
	PermissionType FilterPermissionResponseDtoPermissionType `json:"permissionType"`
	UserId         string                                    `json:"userId"`
}

FilterPermissionResponseDto defines model for FilterPermissionResponseDto.

type FilterPermissionResponseDtoPermissionType

type FilterPermissionResponseDtoPermissionType string

FilterPermissionResponseDtoPermissionType defines model for FilterPermissionResponseDto.PermissionType.

const (
	FilterPermissionResponseDtoPermissionTypeREAD  FilterPermissionResponseDtoPermissionType = "READ"
	FilterPermissionResponseDtoPermissionTypeWRITE FilterPermissionResponseDtoPermissionType = "WRITE"
)

Defines values for FilterPermissionResponseDtoPermissionType.

type FilterPermissionResponseListDto

type FilterPermissionResponseListDto struct {
	Data []FilterPermissionResponseDto `json:"data"`
}

FilterPermissionResponseListDto defines model for FilterPermissionResponseListDto.

type FilterPermissionUpdateRequestDto

type FilterPermissionUpdateRequestDto struct {
	PermissionType FilterPermissionUpdateRequestDtoPermissionType `json:"permissionType"`
}

FilterPermissionUpdateRequestDto defines model for FilterPermissionUpdateRequestDto.

type FilterPermissionUpdateRequestDtoPermissionType

type FilterPermissionUpdateRequestDtoPermissionType string

FilterPermissionUpdateRequestDtoPermissionType defines model for FilterPermissionUpdateRequestDto.PermissionType.

const (
	FilterPermissionUpdateRequestDtoPermissionTypeREAD  FilterPermissionUpdateRequestDtoPermissionType = "READ"
	FilterPermissionUpdateRequestDtoPermissionTypeWRITE FilterPermissionUpdateRequestDtoPermissionType = "WRITE"
)

Defines values for FilterPermissionUpdateRequestDtoPermissionType.

type FilterResponseDto

type FilterResponseDto struct {
	Entity    string                            `json:"entity"`
	Filter    map[string]map[string]interface{} `json:"filter"`
	Id        string                            `json:"id"`
	Name      string                            `json:"name"`
	OwnerId   string                            `json:"ownerId"`
	Public    bool                              `json:"public"`
	Readonly  bool                              `json:"readonly"`
	Service   string                            `json:"service"`
	UpdatedAt int64                             `json:"updatedAt"`
	Valid     *bool                             `json:"valid,omitempty"`
}

FilterResponseDto defines model for FilterResponseDto.

type FilterResponseListDto

type FilterResponseListDto struct {
	Data []FilterResponseDto `json:"data"`
}

FilterResponseListDto defines model for FilterResponseListDto.

type FilterSearchRequest

type FilterSearchRequest struct {
	Entity   *string   `json:"entity,omitempty"`
	Ids      *[]string `json:"ids,omitempty"`
	Name     *string   `json:"name,omitempty"`
	OwnerId  *string   `json:"ownerId,omitempty"`
	Page     int32     `json:"page"`
	PageSize int32     `json:"pageSize"`
	Public   *bool     `json:"public,omitempty"`
	Service  *string   `json:"service,omitempty"`
}

FilterSearchRequest defines model for FilterSearchRequest.

type FilterUpdateRequestDto

type FilterUpdateRequestDto struct {
	Entity  string                             `json:"entity"`
	Filter  *map[string]map[string]interface{} `json:"filter,omitempty"`
	Name    string                             `json:"name"`
	Public  *bool                              `json:"public,omitempty"`
	Service string                             `json:"service"`
	Valid   *bool                              `json:"valid,omitempty"`
}

FilterUpdateRequestDto defines model for FilterUpdateRequestDto.

type FindAllJSONRequestBody

type FindAllJSONRequestBody = FilterSearchRequest

FindAllJSONRequestBody defines body for FindAll for application/json ContentType.

type FindAllResponse

type FindAllResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterResponseListDto
	JSON400      *ErrorResponse
}

func ParseFindAllResponse

func ParseFindAllResponse(rsp *http.Response) (*FindAllResponse, error)

ParseFindAllResponse parses an HTTP response from a FindAllWithResponse call

func (FindAllResponse) Status

func (r FindAllResponse) Status() string

Status returns HTTPResponse.Status

func (FindAllResponse) StatusCode

func (r FindAllResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindFilterJSONRequestBody

type FindFilterJSONRequestBody = FilterSearchRequest

FindFilterJSONRequestBody defines body for FindFilter for application/json ContentType.

type FindFilterResponse

type FindFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterResponseListDto
	JSON400      *ErrorResponse
}

func ParseFindFilterResponse

func ParseFindFilterResponse(rsp *http.Response) (*FindFilterResponse, error)

ParseFindFilterResponse parses an HTTP response from a FindFilterWithResponse call

func (FindFilterResponse) Status

func (r FindFilterResponse) Status() string

Status returns HTTPResponse.Status

func (FindFilterResponse) StatusCode

func (r FindFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindParams

type FindParams struct {
	ContextState *FindParamsContextState `form:"contextState,omitempty" json:"contextState,omitempty"`
}

FindParams defines parameters for Find.

type FindParamsContextState

type FindParamsContextState string

FindParamsContextState defines parameters for Find.

const (
	ACTIVE  FindParamsContextState = "ACTIVE"
	ARCHIVE FindParamsContextState = "ARCHIVE"
)

Defines values for FindParamsContextState.

type FindResponse

type FindResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ContextResponseListDto
	JSON400      *ErrorResponse
}

func ParseFindResponse

func ParseFindResponse(rsp *http.Response) (*FindResponse, error)

ParseFindResponse parses an HTTP response from a FindWithResponse call

func (FindResponse) Status

func (r FindResponse) Status() string

Status returns HTTPResponse.Status

func (FindResponse) StatusCode

func (r FindResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFilterResponse

type GetFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterResponseDto
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseGetFilterResponse

func ParseGetFilterResponse(rsp *http.Response) (*GetFilterResponse, error)

ParseGetFilterResponse parses an HTTP response from a GetFilterWithResponse call

func (GetFilterResponse) Status

func (r GetFilterResponse) Status() string

Status returns HTTPResponse.Status

func (GetFilterResponse) StatusCode

func (r GetFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPermissionsResponse

type GetPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterPermissionResponseListDto
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseGetPermissionsResponse

func ParseGetPermissionsResponse(rsp *http.Response) (*GetPermissionsResponse, error)

ParseGetPermissionsResponse parses an HTTP response from a GetPermissionsWithResponse call

func (GetPermissionsResponse) Status

func (r GetPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPermissionsResponse) StatusCode

func (r GetPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResponse

type GetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ContextResponseDto
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseGetResponse

func ParseGetResponse(rsp *http.Response) (*GetResponse, error)

ParseGetResponse parses an HTTP response from a GetWithResponse call

func (GetResponse) Status

func (r GetResponse) Status() string

Status returns HTTPResponse.Status

func (GetResponse) StatusCode

func (r GetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GrantPermissionJSONRequestBody

type GrantPermissionJSONRequestBody = FilterPermissionUpdateRequestDto

GrantPermissionJSONRequestBody defines body for GrantPermission for application/json ContentType.

type GrantPermissionResponse

type GrantPermissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseGrantPermissionResponse

func ParseGrantPermissionResponse(rsp *http.Response) (*GrantPermissionResponse, error)

ParseGrantPermissionResponse parses an HTTP response from a GrantPermissionWithResponse call

func (GrantPermissionResponse) Status

func (r GrantPermissionResponse) Status() string

Status returns HTTPResponse.Status

func (GrantPermissionResponse) StatusCode

func (r GrantPermissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RevokePermissionResponse

type RevokePermissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
}

func ParseRevokePermissionResponse

func ParseRevokePermissionResponse(rsp *http.Response) (*RevokePermissionResponse, error)

ParseRevokePermissionResponse parses an HTTP response from a RevokePermissionWithResponse call

func (RevokePermissionResponse) Status

func (r RevokePermissionResponse) Status() string

Status returns HTTPResponse.Status

func (RevokePermissionResponse) StatusCode

func (r RevokePermissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Unit

type Unit = map[string]interface{}

Unit defines model for Unit.

type UpdateFilterJSONRequestBody

type UpdateFilterJSONRequestBody = FilterUpdateRequestDto

UpdateFilterJSONRequestBody defines body for UpdateFilter for application/json ContentType.

type UpdateFilterResponse

type UpdateFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseUpdateFilterResponse

func ParseUpdateFilterResponse(rsp *http.Response) (*UpdateFilterResponse, error)

ParseUpdateFilterResponse parses an HTTP response from a UpdateFilterWithResponse call

func (UpdateFilterResponse) Status

func (r UpdateFilterResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFilterResponse) StatusCode

func (r UpdateFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateJSONRequestBody

type UpdateJSONRequestBody = ContextRequestDto

UpdateJSONRequestBody defines body for Update for application/json ContentType.

type UpdatePublicFilterJSONRequestBody

type UpdatePublicFilterJSONRequestBody = FilterUpdateRequestDto

UpdatePublicFilterJSONRequestBody defines body for UpdatePublicFilter for application/json ContentType.

type UpdatePublicFilterResponse

type UpdatePublicFilterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseUpdatePublicFilterResponse

func ParseUpdatePublicFilterResponse(rsp *http.Response) (*UpdatePublicFilterResponse, error)

ParseUpdatePublicFilterResponse parses an HTTP response from a UpdatePublicFilterWithResponse call

func (UpdatePublicFilterResponse) Status

Status returns HTTPResponse.Status

func (UpdatePublicFilterResponse) StatusCode

func (r UpdatePublicFilterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateResponse

type UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON204      *Unit
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParseUpdateResponse

func ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error)

ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call

func (UpdateResponse) Status

func (r UpdateResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateResponse) StatusCode

func (r UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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