Documentation
¶
Overview ¶
Package management provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package management contains generated OpenAPI model and client bindings for selected management API operations.
Index ¶
- func NewDeleteOIDCSessionRequest(server string, userId string, token string) (*http.Request, error)
- func NewDeleteOIDCSessionsRequest(server string, userId string) (*http.Request, error)
- func NewEnqueueBruteForceRuleFlushRequest(server string, body EnqueueBruteForceRuleFlushJSONRequestBody) (*http.Request, error)
- func NewEnqueueBruteForceRuleFlushRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEnqueueUserCacheFlushRequest(server string, body EnqueueUserCacheFlushJSONRequestBody) (*http.Request, error)
- func NewEnqueueUserCacheFlushRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFlushBruteForceRuleRequest(server string, body FlushBruteForceRuleJSONRequestBody) (*http.Request, error)
- func NewFlushBruteForceRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFlushUserCacheRequest(server string, body FlushUserCacheJSONRequestBody) (*http.Request, error)
- func NewFlushUserCacheRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAsyncJobStatusRequest(server string, jobId string) (*http.Request, error)
- func NewGetOpenAPIJSONRequest(server string) (*http.Request, error)
- func NewGetOpenAPIYAMLRequest(server string) (*http.Request, error)
- func NewListBruteForceEntriesRequest(server string, params *ListBruteForceEntriesParams) (*http.Request, error)
- func NewListFilteredBruteForceEntriesRequest(server string, params *ListFilteredBruteForceEntriesParams, ...) (*http.Request, error)
- func NewListFilteredBruteForceEntriesRequestWithBody(server string, params *ListFilteredBruteForceEntriesParams, contentType string, ...) (*http.Request, error)
- func NewListOIDCSessionsRequest(server string, userId string) (*http.Request, error)
- type AsyncAccepted
- type AsyncAcceptedPayload
- type AsyncAcceptedPayloadStatus
- type AsyncAcceptedResult
- type AsyncJobStatusPayload
- type AsyncJobStatusPayloadStatus
- type AsyncJobStatusResult
- type BruteForceFilterRequest
- type BruteForceFlushPayload
- type BruteForceFlushRequest
- type BruteForceFlushResult
- type BruteForceListResult
- type CacheFlushPayload
- type CacheFlushRequest
- type CacheFlushResult
- type Client
- func (c *Client) DeleteOIDCSession(ctx context.Context, userId string, token string, ...) (*http.Response, error)
- func (c *Client) DeleteOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) EnqueueBruteForceRuleFlush(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EnqueueBruteForceRuleFlushWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EnqueueUserCacheFlush(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EnqueueUserCacheFlushWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FlushBruteForceRule(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FlushBruteForceRuleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FlushUserCache(ctx context.Context, body FlushUserCacheJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FlushUserCacheWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAsyncJobStatus(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenAPIYAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBruteForceEntries(ctx context.Context, params *ListBruteForceEntriesParams, ...) (*http.Response, error)
- func (c *Client) ListFilteredBruteForceEntries(ctx context.Context, params *ListFilteredBruteForceEntriesParams, ...) (*http.Response, error)
- func (c *Client) ListFilteredBruteForceEntriesWithBody(ctx context.Context, params *ListFilteredBruteForceEntriesParams, ...) (*http.Response, error)
- func (c *Client) ListOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteOIDCSessionWithResponse(ctx context.Context, userId string, token string, ...) (*DeleteOIDCSessionResponse, error)
- func (c *ClientWithResponses) DeleteOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteOIDCSessionsResponse, error)
- func (c *ClientWithResponses) EnqueueBruteForceRuleFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EnqueueBruteForceRuleFlushResponse, error)
- func (c *ClientWithResponses) EnqueueBruteForceRuleFlushWithResponse(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, ...) (*EnqueueBruteForceRuleFlushResponse, error)
- func (c *ClientWithResponses) EnqueueUserCacheFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EnqueueUserCacheFlushResponse, error)
- func (c *ClientWithResponses) EnqueueUserCacheFlushWithResponse(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, ...) (*EnqueueUserCacheFlushResponse, error)
- func (c *ClientWithResponses) FlushBruteForceRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FlushBruteForceRuleResponse, error)
- func (c *ClientWithResponses) FlushBruteForceRuleWithResponse(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, ...) (*FlushBruteForceRuleResponse, error)
- func (c *ClientWithResponses) FlushUserCacheWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FlushUserCacheResponse, error)
- func (c *ClientWithResponses) FlushUserCacheWithResponse(ctx context.Context, body FlushUserCacheJSONRequestBody, ...) (*FlushUserCacheResponse, error)
- func (c *ClientWithResponses) GetAsyncJobStatusWithResponse(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*GetAsyncJobStatusResponse, error)
- func (c *ClientWithResponses) GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error)
- func (c *ClientWithResponses) GetOpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIYAMLResponse, error)
- func (c *ClientWithResponses) ListBruteForceEntriesWithResponse(ctx context.Context, params *ListBruteForceEntriesParams, ...) (*ListBruteForceEntriesResponse, error)
- func (c *ClientWithResponses) ListFilteredBruteForceEntriesWithBodyWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, ...) (*ListFilteredBruteForceEntriesResponse, error)
- func (c *ClientWithResponses) ListFilteredBruteForceEntriesWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, ...) (*ListFilteredBruteForceEntriesResponse, error)
- func (c *ClientWithResponses) ListOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ListOIDCSessionsResponse, error)
- type ClientWithResponsesInterface
- type DeleteOIDCSessionResponse
- func (r DeleteOIDCSessionResponse) ContentType() string
- func (r DeleteOIDCSessionResponse) GetBody() []byte
- func (r DeleteOIDCSessionResponse) GetJSON400() *Error
- func (r DeleteOIDCSessionResponse) GetJSON401() *Unauthorized
- func (r DeleteOIDCSessionResponse) GetJSON403() *Forbidden
- func (r DeleteOIDCSessionResponse) GetJSON500() *Error
- func (r DeleteOIDCSessionResponse) Status() string
- func (r DeleteOIDCSessionResponse) StatusCode() int
- type DeleteOIDCSessionsResponse
- func (r DeleteOIDCSessionsResponse) ContentType() string
- func (r DeleteOIDCSessionsResponse) GetBody() []byte
- func (r DeleteOIDCSessionsResponse) GetJSON400() *Error
- func (r DeleteOIDCSessionsResponse) GetJSON401() *Unauthorized
- func (r DeleteOIDCSessionsResponse) GetJSON403() *Forbidden
- func (r DeleteOIDCSessionsResponse) GetJSON500() *Error
- func (r DeleteOIDCSessionsResponse) Status() string
- func (r DeleteOIDCSessionsResponse) StatusCode() int
- type EnqueueBruteForceRuleFlushJSONRequestBody
- type EnqueueBruteForceRuleFlushResponse
- func (r EnqueueBruteForceRuleFlushResponse) ContentType() string
- func (r EnqueueBruteForceRuleFlushResponse) GetBody() []byte
- func (r EnqueueBruteForceRuleFlushResponse) GetJSON202() *AsyncAccepted
- func (r EnqueueBruteForceRuleFlushResponse) GetJSON400() *JSONValidationError
- func (r EnqueueBruteForceRuleFlushResponse) GetJSON401() *Unauthorized
- func (r EnqueueBruteForceRuleFlushResponse) GetJSON403() *Forbidden
- func (r EnqueueBruteForceRuleFlushResponse) GetJSON500() *Error
- func (r EnqueueBruteForceRuleFlushResponse) Status() string
- func (r EnqueueBruteForceRuleFlushResponse) StatusCode() int
- type EnqueueUserCacheFlushJSONRequestBody
- type EnqueueUserCacheFlushResponse
- func (r EnqueueUserCacheFlushResponse) ContentType() string
- func (r EnqueueUserCacheFlushResponse) GetBody() []byte
- func (r EnqueueUserCacheFlushResponse) GetJSON202() *AsyncAccepted
- func (r EnqueueUserCacheFlushResponse) GetJSON400() *JSONValidationError
- func (r EnqueueUserCacheFlushResponse) GetJSON401() *Unauthorized
- func (r EnqueueUserCacheFlushResponse) GetJSON403() *Forbidden
- func (r EnqueueUserCacheFlushResponse) GetJSON500() *Error
- func (r EnqueueUserCacheFlushResponse) Status() string
- func (r EnqueueUserCacheFlushResponse) StatusCode() int
- type Error
- type ErrorResponse
- type FieldError
- type FieldErrorResponse
- type FlushBruteForceRuleJSONRequestBody
- type FlushBruteForceRuleResponse
- func (r FlushBruteForceRuleResponse) ContentType() string
- func (r FlushBruteForceRuleResponse) GetBody() []byte
- func (r FlushBruteForceRuleResponse) GetJSON200() *BruteForceFlushResult
- func (r FlushBruteForceRuleResponse) GetJSON400() *JSONValidationError
- func (r FlushBruteForceRuleResponse) GetJSON401() *Unauthorized
- func (r FlushBruteForceRuleResponse) GetJSON403() *Forbidden
- func (r FlushBruteForceRuleResponse) GetJSON500() *Error
- func (r FlushBruteForceRuleResponse) Status() string
- func (r FlushBruteForceRuleResponse) StatusCode() int
- type FlushUserCacheJSONRequestBody
- type FlushUserCacheResponse
- func (r FlushUserCacheResponse) ContentType() string
- func (r FlushUserCacheResponse) GetBody() []byte
- func (r FlushUserCacheResponse) GetJSON200() *CacheFlushResult
- func (r FlushUserCacheResponse) GetJSON400() *JSONValidationError
- func (r FlushUserCacheResponse) GetJSON401() *Unauthorized
- func (r FlushUserCacheResponse) GetJSON403() *Forbidden
- func (r FlushUserCacheResponse) GetJSON500() *Error
- func (r FlushUserCacheResponse) Status() string
- func (r FlushUserCacheResponse) StatusCode() int
- type Forbidden
- type GetAsyncJobStatusResponse
- func (r GetAsyncJobStatusResponse) ContentType() string
- func (r GetAsyncJobStatusResponse) GetBody() []byte
- func (r GetAsyncJobStatusResponse) GetJSON200() *AsyncJobStatusResult
- func (r GetAsyncJobStatusResponse) GetJSON401() *Unauthorized
- func (r GetAsyncJobStatusResponse) GetJSON404() *NotFound
- func (r GetAsyncJobStatusResponse) GetJSON500() *Error
- func (r GetAsyncJobStatusResponse) Status() string
- func (r GetAsyncJobStatusResponse) StatusCode() int
- type GetOpenAPIJSONResponse
- type GetOpenAPIYAMLResponse
- type HttpRequestDoer
- type JSONValidationError
- func (t JSONValidationError) AsErrorResponse() (ErrorResponse, error)
- func (t JSONValidationError) AsFieldErrorResponse() (FieldErrorResponse, error)
- func (t *JSONValidationError) FromErrorResponse(v ErrorResponse) error
- func (t *JSONValidationError) FromFieldErrorResponse(v FieldErrorResponse) error
- func (t JSONValidationError) MarshalJSON() ([]byte, error)
- func (t *JSONValidationError) MergeErrorResponse(v ErrorResponse) error
- func (t *JSONValidationError) MergeFieldErrorResponse(v FieldErrorResponse) error
- func (t *JSONValidationError) UnmarshalJSON(b []byte) error
- type ListBruteForceEntriesParams
- type ListBruteForceEntriesResponse
- func (r ListBruteForceEntriesResponse) ContentType() string
- func (r ListBruteForceEntriesResponse) GetBody() []byte
- func (r ListBruteForceEntriesResponse) GetJSON200() *BruteForceListResult
- func (r ListBruteForceEntriesResponse) GetJSON401() *Unauthorized
- func (r ListBruteForceEntriesResponse) GetJSON403() *Forbidden
- func (r ListBruteForceEntriesResponse) GetJSON500() *Error
- func (r ListBruteForceEntriesResponse) Status() string
- func (r ListBruteForceEntriesResponse) StatusCode() int
- type ListFilteredBruteForceEntriesJSONRequestBody
- type ListFilteredBruteForceEntriesParams
- type ListFilteredBruteForceEntriesResponse
- func (r ListFilteredBruteForceEntriesResponse) ContentType() string
- func (r ListFilteredBruteForceEntriesResponse) GetBody() []byte
- func (r ListFilteredBruteForceEntriesResponse) GetJSON200() *BruteForceListResult
- func (r ListFilteredBruteForceEntriesResponse) GetJSON400() *JSONValidationError
- func (r ListFilteredBruteForceEntriesResponse) GetJSON401() *Unauthorized
- func (r ListFilteredBruteForceEntriesResponse) GetJSON403() *Forbidden
- func (r ListFilteredBruteForceEntriesResponse) GetJSON500() *Error
- func (r ListFilteredBruteForceEntriesResponse) Status() string
- func (r ListFilteredBruteForceEntriesResponse) StatusCode() int
- type ListOIDCSessionsResponse
- func (r ListOIDCSessionsResponse) ContentType() string
- func (r ListOIDCSessionsResponse) GetBody() []byte
- func (r ListOIDCSessionsResponse) GetJSON200() *OIDCSessions
- func (r ListOIDCSessionsResponse) GetJSON400() *Error
- func (r ListOIDCSessionsResponse) GetJSON401() *Unauthorized
- func (r ListOIDCSessionsResponse) GetJSON403() *Forbidden
- func (r ListOIDCSessionsResponse) GetJSON500() *Error
- func (r ListOIDCSessionsResponse) Status() string
- func (r ListOIDCSessionsResponse) StatusCode() int
- type NotFound
- type OIDCSessionSummary
- type OIDCSessions
- type PageLimit
- type PageOffset
- type RequestEditorFn
- type ResultEnvelope
- type Unauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteOIDCSessionRequest ¶
NewDeleteOIDCSessionRequest constructs an http.Request for the DeleteOIDCSession method
func NewDeleteOIDCSessionsRequest ¶
NewDeleteOIDCSessionsRequest constructs an http.Request for the DeleteOIDCSessions method
func NewEnqueueBruteForceRuleFlushRequest ¶
func NewEnqueueBruteForceRuleFlushRequest(server string, body EnqueueBruteForceRuleFlushJSONRequestBody) (*http.Request, error)
NewEnqueueBruteForceRuleFlushRequest calls the generic EnqueueBruteForceRuleFlush builder with application/json body
func NewEnqueueBruteForceRuleFlushRequestWithBody ¶
func NewEnqueueBruteForceRuleFlushRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEnqueueBruteForceRuleFlushRequestWithBody constructs an http.Request for the EnqueueBruteForceRuleFlush method, with any body, and a specified content type
func NewEnqueueUserCacheFlushRequest ¶
func NewEnqueueUserCacheFlushRequest(server string, body EnqueueUserCacheFlushJSONRequestBody) (*http.Request, error)
NewEnqueueUserCacheFlushRequest calls the generic EnqueueUserCacheFlush builder with application/json body
func NewEnqueueUserCacheFlushRequestWithBody ¶
func NewEnqueueUserCacheFlushRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEnqueueUserCacheFlushRequestWithBody constructs an http.Request for the EnqueueUserCacheFlush method, with any body, and a specified content type
func NewFlushBruteForceRuleRequest ¶
func NewFlushBruteForceRuleRequest(server string, body FlushBruteForceRuleJSONRequestBody) (*http.Request, error)
NewFlushBruteForceRuleRequest calls the generic FlushBruteForceRule builder with application/json body
func NewFlushBruteForceRuleRequestWithBody ¶
func NewFlushBruteForceRuleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFlushBruteForceRuleRequestWithBody constructs an http.Request for the FlushBruteForceRule method, with any body, and a specified content type
func NewFlushUserCacheRequest ¶
func NewFlushUserCacheRequest(server string, body FlushUserCacheJSONRequestBody) (*http.Request, error)
NewFlushUserCacheRequest calls the generic FlushUserCache builder with application/json body
func NewFlushUserCacheRequestWithBody ¶
func NewFlushUserCacheRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFlushUserCacheRequestWithBody constructs an http.Request for the FlushUserCache method, with any body, and a specified content type
func NewGetAsyncJobStatusRequest ¶
NewGetAsyncJobStatusRequest constructs an http.Request for the GetAsyncJobStatus method
func NewGetOpenAPIJSONRequest ¶
NewGetOpenAPIJSONRequest constructs an http.Request for the GetOpenAPIJSON method
func NewGetOpenAPIYAMLRequest ¶
NewGetOpenAPIYAMLRequest constructs an http.Request for the GetOpenAPIYAML method
func NewListBruteForceEntriesRequest ¶
func NewListBruteForceEntriesRequest(server string, params *ListBruteForceEntriesParams) (*http.Request, error)
NewListBruteForceEntriesRequest constructs an http.Request for the ListBruteForceEntries method
func NewListFilteredBruteForceEntriesRequest ¶
func NewListFilteredBruteForceEntriesRequest(server string, params *ListFilteredBruteForceEntriesParams, body ListFilteredBruteForceEntriesJSONRequestBody) (*http.Request, error)
NewListFilteredBruteForceEntriesRequest calls the generic ListFilteredBruteForceEntries builder with application/json body
func NewListFilteredBruteForceEntriesRequestWithBody ¶
func NewListFilteredBruteForceEntriesRequestWithBody(server string, params *ListFilteredBruteForceEntriesParams, contentType string, body io.Reader) (*http.Request, error)
NewListFilteredBruteForceEntriesRequestWithBody constructs an http.Request for the ListFilteredBruteForceEntries method, with any body, and a specified content type
Types ¶
type AsyncAccepted ¶
type AsyncAccepted = AsyncAcceptedResult
AsyncAccepted defines model for AsyncAccepted.
type AsyncAcceptedPayload ¶
type AsyncAcceptedPayload struct {
JobId string `json:"jobId"`
// Status The initial state returned immediately after the job is accepted.
Status AsyncAcceptedPayloadStatus `json:"status"`
}
AsyncAcceptedPayload defines model for AsyncAcceptedPayload.
type AsyncAcceptedPayloadStatus ¶
type AsyncAcceptedPayloadStatus string
AsyncAcceptedPayloadStatus The initial state returned immediately after the job is accepted.
const (
AsyncAcceptedStatusQueued AsyncAcceptedPayloadStatus = "QUEUED"
)
Defines values for AsyncAcceptedPayloadStatus.
func (AsyncAcceptedPayloadStatus) Valid ¶
func (e AsyncAcceptedPayloadStatus) Valid() bool
Valid indicates whether the value is a known member of the AsyncAcceptedPayloadStatus enum.
type AsyncAcceptedResult ¶
type AsyncAcceptedResult struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result AsyncAcceptedPayload `json:"result"`
Session string `json:"session"`
}
AsyncAcceptedResult defines model for AsyncAcceptedResult.
type AsyncJobStatusPayload ¶
type AsyncJobStatusPayload struct {
CreatedAt *string `json:"createdAt,omitempty"`
Error *string `json:"error,omitempty"`
FinishedAt *string `json:"finishedAt,omitempty"`
JobId *string `json:"jobId,omitempty"`
ResultCount *string `json:"resultCount,omitempty"`
StartedAt *string `json:"startedAt,omitempty"`
// Status Current async job lifecycle state.
Status *AsyncJobStatusPayloadStatus `json:"status,omitempty"`
Type *string `json:"type,omitempty"`
}
AsyncJobStatusPayload defines model for AsyncJobStatusPayload.
type AsyncJobStatusPayloadStatus ¶
type AsyncJobStatusPayloadStatus string
AsyncJobStatusPayloadStatus Current async job lifecycle state.
const ( AsyncJobStatusDone AsyncJobStatusPayloadStatus = "DONE" AsyncJobStatusError AsyncJobStatusPayloadStatus = "ERROR" AsyncJobStatusInProgress AsyncJobStatusPayloadStatus = "INPROGRESS" AsyncJobStatusQueued AsyncJobStatusPayloadStatus = "QUEUED" )
Defines values for AsyncJobStatusPayloadStatus.
func (AsyncJobStatusPayloadStatus) Valid ¶
func (e AsyncJobStatusPayloadStatus) Valid() bool
Valid indicates whether the value is a known member of the AsyncJobStatusPayloadStatus enum.
type AsyncJobStatusResult ¶
type AsyncJobStatusResult struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result AsyncJobStatusPayload `json:"result"`
Session string `json:"session"`
}
AsyncJobStatusResult defines model for AsyncJobStatusResult.
type BruteForceFilterRequest ¶
type BruteForceFilterRequest struct {
Accounts *[]string `json:"accounts,omitempty"`
IpAddresses *[]string `json:"ip_addresses,omitempty"`
}
BruteForceFilterRequest defines model for BruteForceFilterRequest.
type BruteForceFlushPayload ¶
type BruteForceFlushPayload struct {
IpAddress *string `json:"ip_address,omitempty"`
OidcCid *string `json:"oidc_cid,omitempty"`
Protocol *string `json:"protocol,omitempty"`
RemovedKeys *[]string `json:"removed_keys,omitempty"`
RuleName *string `json:"rule_name,omitempty"`
Status *string `json:"status,omitempty"`
}
BruteForceFlushPayload defines model for BruteForceFlushPayload.
type BruteForceFlushRequest ¶
type BruteForceFlushRequest struct {
IpAddress string `json:"ip_address"`
OidcCid *string `json:"oidc_cid,omitempty"`
Protocol *string `json:"protocol,omitempty"`
RuleName string `json:"rule_name"`
}
BruteForceFlushRequest defines model for BruteForceFlushRequest.
type BruteForceFlushResult ¶
type BruteForceFlushResult struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result BruteForceFlushPayload `json:"result"`
Session string `json:"session"`
}
BruteForceFlushResult defines model for BruteForceFlushResult.
type BruteForceListResult ¶
type BruteForceListResult struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result []interface{} `json:"result"`
Session string `json:"session"`
}
BruteForceListResult defines model for BruteForceListResult.
type CacheFlushPayload ¶
type CacheFlushPayload struct {
RemovedKeys *[]string `json:"removed_keys,omitempty"`
Status *string `json:"status,omitempty"`
User *string `json:"user,omitempty"`
}
CacheFlushPayload defines model for CacheFlushPayload.
type CacheFlushRequest ¶
type CacheFlushRequest struct {
User string `json:"user"`
}
CacheFlushRequest defines model for CacheFlushRequest.
type CacheFlushResult ¶
type CacheFlushResult struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result CacheFlushPayload `json:"result"`
Session string `json:"session"`
}
CacheFlushResult defines model for CacheFlushResult.
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) DeleteOIDCSession ¶
func (c *Client) DeleteOIDCSession(ctx context.Context, userId string, token string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteOIDCSession Delete one OIDC session for a user.
Corresponds with DELETE /api/v1/oidc/sessions/{user_id}/{token} (the `DeleteOIDCSession` operationId).
func (*Client) DeleteOIDCSessions ¶
func (c *Client) DeleteOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteOIDCSessions Delete all OIDC sessions for a user.
Corresponds with DELETE /api/v1/oidc/sessions/{user_id} (the `DeleteOIDCSessions` operationId).
func (*Client) EnqueueBruteForceRuleFlush ¶
func (c *Client) EnqueueBruteForceRuleFlush(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
EnqueueBruteForceRuleFlush Enqueue an asynchronous brute-force rule flush.
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
func (*Client) EnqueueBruteForceRuleFlushWithBody ¶
func (c *Client) EnqueueBruteForceRuleFlushWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EnqueueBruteForceRuleFlushWithBody Enqueue an asynchronous brute-force rule flush.
Takes any type of body and a specified content type.
Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
func (*Client) EnqueueUserCacheFlush ¶
func (c *Client) EnqueueUserCacheFlush(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
EnqueueUserCacheFlush Enqueue an asynchronous user cache flush.
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
func (*Client) EnqueueUserCacheFlushWithBody ¶
func (c *Client) EnqueueUserCacheFlushWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EnqueueUserCacheFlushWithBody Enqueue an asynchronous user cache flush.
Takes any type of body and a specified content type.
Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
func (*Client) FlushBruteForceRule ¶
func (c *Client) FlushBruteForceRule(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
FlushBruteForceRule Flush brute-force data for a configured rule.
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
func (*Client) FlushBruteForceRuleWithBody ¶
func (c *Client) FlushBruteForceRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FlushBruteForceRuleWithBody Flush brute-force data for a configured rule.
Takes any type of body and a specified content type.
Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
func (*Client) FlushUserCache ¶
func (c *Client) FlushUserCache(ctx context.Context, body FlushUserCacheJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
FlushUserCache Flush authentication cache entries for a user.
Takes a body of the `application/json` content type.
Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
func (*Client) FlushUserCacheWithBody ¶
func (c *Client) FlushUserCacheWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FlushUserCacheWithBody Flush authentication cache entries for a user.
Takes any type of body and a specified content type.
Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
func (*Client) GetAsyncJobStatus ¶
func (c *Client) GetAsyncJobStatus(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAsyncJobStatus Get the status of an asynchronous backchannel job.
Corresponds with GET /api/v1/async/jobs/{jobId} (the `GetAsyncJobStatus` operationId).
func (*Client) GetOpenAPIJSON ¶
func (c *Client) GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOpenAPIJSON Get the OpenAPI document as JSON.
Corresponds with GET /api/v1/openapi.json (the `GetOpenAPIJSON` operationId).
func (*Client) GetOpenAPIYAML ¶
func (c *Client) GetOpenAPIYAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOpenAPIYAML Get the OpenAPI document as YAML.
Corresponds with GET /api/v1/openapi.yaml (the `GetOpenAPIYAML` operationId).
func (*Client) ListBruteForceEntries ¶
func (c *Client) ListBruteForceEntries(ctx context.Context, params *ListBruteForceEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListBruteForceEntries List active brute-force bans and blocked accounts.
Corresponds with GET /api/v1/bruteforce/list (the `ListBruteForceEntries` operationId).
func (*Client) ListFilteredBruteForceEntries ¶
func (c *Client) ListFilteredBruteForceEntries(ctx context.Context, params *ListFilteredBruteForceEntriesParams, body ListFilteredBruteForceEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ListFilteredBruteForceEntries List active brute-force data with optional account and IP filters.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
func (*Client) ListFilteredBruteForceEntriesWithBody ¶
func (c *Client) ListFilteredBruteForceEntriesWithBody(ctx context.Context, params *ListFilteredBruteForceEntriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListFilteredBruteForceEntriesWithBody List active brute-force data with optional account and IP filters.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
func (*Client) ListOIDCSessions ¶
func (c *Client) ListOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ListOIDCSessions List active OIDC sessions for a user.
Corresponds with GET /api/v1/oidc/sessions/{user_id} (the `ListOIDCSessions` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAsyncJobStatus Get the status of an asynchronous backchannel job.
//
// Corresponds with GET /api/v1/async/jobs/{jobId} (the `GetAsyncJobStatus` operationId).
GetAsyncJobStatus(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// FlushBruteForceRuleWithBody Flush brute-force data for a configured rule.
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
FlushBruteForceRuleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// FlushBruteForceRule Flush brute-force data for a configured rule.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
FlushBruteForceRule(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnqueueBruteForceRuleFlushWithBody Enqueue an asynchronous brute-force rule flush.
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
EnqueueBruteForceRuleFlushWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnqueueBruteForceRuleFlush Enqueue an asynchronous brute-force rule flush.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
EnqueueBruteForceRuleFlush(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBruteForceEntries List active brute-force bans and blocked accounts.
//
// Corresponds with GET /api/v1/bruteforce/list (the `ListBruteForceEntries` operationId).
ListBruteForceEntries(ctx context.Context, params *ListBruteForceEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFilteredBruteForceEntriesWithBody List active brute-force data with optional account and IP filters.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
ListFilteredBruteForceEntriesWithBody(ctx context.Context, params *ListFilteredBruteForceEntriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFilteredBruteForceEntries List active brute-force data with optional account and IP filters.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
ListFilteredBruteForceEntries(ctx context.Context, params *ListFilteredBruteForceEntriesParams, body ListFilteredBruteForceEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FlushUserCacheWithBody Flush authentication cache entries for a user.
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
FlushUserCacheWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// FlushUserCache Flush authentication cache entries for a user.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
FlushUserCache(ctx context.Context, body FlushUserCacheJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnqueueUserCacheFlushWithBody Enqueue an asynchronous user cache flush.
//
// Takes any type of body and a specified content type.
//
// Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
EnqueueUserCacheFlushWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnqueueUserCacheFlush Enqueue an asynchronous user cache flush.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
EnqueueUserCacheFlush(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteOIDCSessions Delete all OIDC sessions for a user.
//
// Corresponds with DELETE /api/v1/oidc/sessions/{user_id} (the `DeleteOIDCSessions` operationId).
DeleteOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOIDCSessions List active OIDC sessions for a user.
//
// Corresponds with GET /api/v1/oidc/sessions/{user_id} (the `ListOIDCSessions` operationId).
ListOIDCSessions(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteOIDCSession Delete one OIDC session for a user.
//
// Corresponds with DELETE /api/v1/oidc/sessions/{user_id}/{token} (the `DeleteOIDCSession` operationId).
DeleteOIDCSession(ctx context.Context, userId string, token string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOpenAPIJSON Get the OpenAPI document as JSON.
//
// Corresponds with GET /api/v1/openapi.json (the `GetOpenAPIJSON` operationId).
GetOpenAPIJSON(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOpenAPIYAML Get the OpenAPI document as YAML.
//
// Corresponds with GET /api/v1/openapi.yaml (the `GetOpenAPIYAML` operationId).
GetOpenAPIYAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteOIDCSessionWithResponse ¶
func (c *ClientWithResponses) DeleteOIDCSessionWithResponse(ctx context.Context, userId string, token string, reqEditors ...RequestEditorFn) (*DeleteOIDCSessionResponse, error)
DeleteOIDCSessionWithResponse Delete one OIDC session for a user.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/oidc/sessions/{user_id}/{token} (the `DeleteOIDCSession` operationId).
func (*ClientWithResponses) DeleteOIDCSessionsWithResponse ¶
func (c *ClientWithResponses) DeleteOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteOIDCSessionsResponse, error)
DeleteOIDCSessionsWithResponse Delete all OIDC sessions for a user.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/oidc/sessions/{user_id} (the `DeleteOIDCSessions` operationId).
func (*ClientWithResponses) EnqueueBruteForceRuleFlushWithBodyWithResponse ¶
func (c *ClientWithResponses) EnqueueBruteForceRuleFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueBruteForceRuleFlushResponse, error)
EnqueueBruteForceRuleFlushWithBodyWithResponse Enqueue an asynchronous brute-force rule flush.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
func (*ClientWithResponses) EnqueueBruteForceRuleFlushWithResponse ¶
func (c *ClientWithResponses) EnqueueBruteForceRuleFlushWithResponse(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueBruteForceRuleFlushResponse, error)
EnqueueBruteForceRuleFlushWithResponse Enqueue an asynchronous brute-force rule flush.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
func (*ClientWithResponses) EnqueueUserCacheFlushWithBodyWithResponse ¶
func (c *ClientWithResponses) EnqueueUserCacheFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueUserCacheFlushResponse, error)
EnqueueUserCacheFlushWithBodyWithResponse Enqueue an asynchronous user cache flush.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
func (*ClientWithResponses) EnqueueUserCacheFlushWithResponse ¶
func (c *ClientWithResponses) EnqueueUserCacheFlushWithResponse(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueUserCacheFlushResponse, error)
EnqueueUserCacheFlushWithResponse Enqueue an asynchronous user cache flush.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
func (*ClientWithResponses) FlushBruteForceRuleWithBodyWithResponse ¶
func (c *ClientWithResponses) FlushBruteForceRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FlushBruteForceRuleResponse, error)
FlushBruteForceRuleWithBodyWithResponse Flush brute-force data for a configured rule.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
func (*ClientWithResponses) FlushBruteForceRuleWithResponse ¶
func (c *ClientWithResponses) FlushBruteForceRuleWithResponse(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FlushBruteForceRuleResponse, error)
FlushBruteForceRuleWithResponse Flush brute-force data for a configured rule.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
func (*ClientWithResponses) FlushUserCacheWithBodyWithResponse ¶
func (c *ClientWithResponses) FlushUserCacheWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FlushUserCacheResponse, error)
FlushUserCacheWithBodyWithResponse Flush authentication cache entries for a user.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
func (*ClientWithResponses) FlushUserCacheWithResponse ¶
func (c *ClientWithResponses) FlushUserCacheWithResponse(ctx context.Context, body FlushUserCacheJSONRequestBody, reqEditors ...RequestEditorFn) (*FlushUserCacheResponse, error)
FlushUserCacheWithResponse Flush authentication cache entries for a user.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
func (*ClientWithResponses) GetAsyncJobStatusWithResponse ¶
func (c *ClientWithResponses) GetAsyncJobStatusWithResponse(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*GetAsyncJobStatusResponse, error)
GetAsyncJobStatusWithResponse Get the status of an asynchronous backchannel job.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/async/jobs/{jobId} (the `GetAsyncJobStatus` operationId).
func (*ClientWithResponses) GetOpenAPIJSONWithResponse ¶
func (c *ClientWithResponses) GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error)
GetOpenAPIJSONWithResponse Get the OpenAPI document as JSON.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/openapi.json (the `GetOpenAPIJSON` operationId).
func (*ClientWithResponses) GetOpenAPIYAMLWithResponse ¶
func (c *ClientWithResponses) GetOpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIYAMLResponse, error)
GetOpenAPIYAMLWithResponse Get the OpenAPI document as YAML.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/openapi.yaml (the `GetOpenAPIYAML` operationId).
func (*ClientWithResponses) ListBruteForceEntriesWithResponse ¶
func (c *ClientWithResponses) ListBruteForceEntriesWithResponse(ctx context.Context, params *ListBruteForceEntriesParams, reqEditors ...RequestEditorFn) (*ListBruteForceEntriesResponse, error)
ListBruteForceEntriesWithResponse List active brute-force bans and blocked accounts.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/bruteforce/list (the `ListBruteForceEntries` operationId).
func (*ClientWithResponses) ListFilteredBruteForceEntriesWithBodyWithResponse ¶
func (c *ClientWithResponses) ListFilteredBruteForceEntriesWithBodyWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListFilteredBruteForceEntriesResponse, error)
ListFilteredBruteForceEntriesWithBodyWithResponse List active brute-force data with optional account and IP filters.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
func (*ClientWithResponses) ListFilteredBruteForceEntriesWithResponse ¶
func (c *ClientWithResponses) ListFilteredBruteForceEntriesWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, body ListFilteredBruteForceEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListFilteredBruteForceEntriesResponse, error)
ListFilteredBruteForceEntriesWithResponse List active brute-force data with optional account and IP filters.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
func (*ClientWithResponses) ListOIDCSessionsWithResponse ¶
func (c *ClientWithResponses) ListOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ListOIDCSessionsResponse, error)
ListOIDCSessionsWithResponse List active OIDC sessions for a user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/oidc/sessions/{user_id} (the `ListOIDCSessions` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAsyncJobStatusWithResponse Get the status of an asynchronous backchannel job.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/async/jobs/{jobId} (the `GetAsyncJobStatus` operationId).
GetAsyncJobStatusWithResponse(ctx context.Context, jobId string, reqEditors ...RequestEditorFn) (*GetAsyncJobStatusResponse, error)
// FlushBruteForceRuleWithBodyWithResponse Flush brute-force data for a configured rule.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
FlushBruteForceRuleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FlushBruteForceRuleResponse, error)
// FlushBruteForceRuleWithResponse Flush brute-force data for a configured rule.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/bruteforce/flush (the `FlushBruteForceRule` operationId).
FlushBruteForceRuleWithResponse(ctx context.Context, body FlushBruteForceRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*FlushBruteForceRuleResponse, error)
// EnqueueBruteForceRuleFlushWithBodyWithResponse Enqueue an asynchronous brute-force rule flush.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
EnqueueBruteForceRuleFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueBruteForceRuleFlushResponse, error)
// EnqueueBruteForceRuleFlushWithResponse Enqueue an asynchronous brute-force rule flush.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/bruteforce/flush/async (the `EnqueueBruteForceRuleFlush` operationId).
EnqueueBruteForceRuleFlushWithResponse(ctx context.Context, body EnqueueBruteForceRuleFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueBruteForceRuleFlushResponse, error)
// ListBruteForceEntriesWithResponse List active brute-force bans and blocked accounts.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/bruteforce/list (the `ListBruteForceEntries` operationId).
ListBruteForceEntriesWithResponse(ctx context.Context, params *ListBruteForceEntriesParams, reqEditors ...RequestEditorFn) (*ListBruteForceEntriesResponse, error)
// ListFilteredBruteForceEntriesWithBodyWithResponse List active brute-force data with optional account and IP filters.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
ListFilteredBruteForceEntriesWithBodyWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListFilteredBruteForceEntriesResponse, error)
// ListFilteredBruteForceEntriesWithResponse List active brute-force data with optional account and IP filters.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/bruteforce/list (the `ListFilteredBruteForceEntries` operationId).
ListFilteredBruteForceEntriesWithResponse(ctx context.Context, params *ListFilteredBruteForceEntriesParams, body ListFilteredBruteForceEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListFilteredBruteForceEntriesResponse, error)
// FlushUserCacheWithBodyWithResponse Flush authentication cache entries for a user.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
FlushUserCacheWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FlushUserCacheResponse, error)
// FlushUserCacheWithResponse Flush authentication cache entries for a user.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/cache/flush (the `FlushUserCache` operationId).
FlushUserCacheWithResponse(ctx context.Context, body FlushUserCacheJSONRequestBody, reqEditors ...RequestEditorFn) (*FlushUserCacheResponse, error)
// EnqueueUserCacheFlushWithBodyWithResponse Enqueue an asynchronous user cache flush.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
EnqueueUserCacheFlushWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnqueueUserCacheFlushResponse, error)
// EnqueueUserCacheFlushWithResponse Enqueue an asynchronous user cache flush.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/cache/flush/async (the `EnqueueUserCacheFlush` operationId).
EnqueueUserCacheFlushWithResponse(ctx context.Context, body EnqueueUserCacheFlushJSONRequestBody, reqEditors ...RequestEditorFn) (*EnqueueUserCacheFlushResponse, error)
// DeleteOIDCSessionsWithResponse Delete all OIDC sessions for a user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/oidc/sessions/{user_id} (the `DeleteOIDCSessions` operationId).
DeleteOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteOIDCSessionsResponse, error)
// ListOIDCSessionsWithResponse List active OIDC sessions for a user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/oidc/sessions/{user_id} (the `ListOIDCSessions` operationId).
ListOIDCSessionsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*ListOIDCSessionsResponse, error)
// DeleteOIDCSessionWithResponse Delete one OIDC session for a user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/oidc/sessions/{user_id}/{token} (the `DeleteOIDCSession` operationId).
DeleteOIDCSessionWithResponse(ctx context.Context, userId string, token string, reqEditors ...RequestEditorFn) (*DeleteOIDCSessionResponse, error)
// GetOpenAPIJSONWithResponse Get the OpenAPI document as JSON.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/openapi.json (the `GetOpenAPIJSON` operationId).
GetOpenAPIJSONWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIJSONResponse, error)
// GetOpenAPIYAMLWithResponse Get the OpenAPI document as YAML.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/openapi.yaml (the `GetOpenAPIYAML` operationId).
GetOpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIYAMLResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteOIDCSessionResponse ¶
type DeleteOIDCSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseDeleteOIDCSessionResponse ¶
func ParseDeleteOIDCSessionResponse(rsp *http.Response) (*DeleteOIDCSessionResponse, error)
ParseDeleteOIDCSessionResponse parses an HTTP response from a DeleteOIDCSessionWithResponse call
func (DeleteOIDCSessionResponse) ContentType ¶
func (r DeleteOIDCSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteOIDCSessionResponse) GetBody ¶
func (r DeleteOIDCSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteOIDCSessionResponse) GetJSON400 ¶
func (r DeleteOIDCSessionResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteOIDCSessionResponse) GetJSON401 ¶
func (r DeleteOIDCSessionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteOIDCSessionResponse) GetJSON403 ¶
func (r DeleteOIDCSessionResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteOIDCSessionResponse) GetJSON500 ¶
func (r DeleteOIDCSessionResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteOIDCSessionResponse) Status ¶
func (r DeleteOIDCSessionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteOIDCSessionResponse) StatusCode ¶
func (r DeleteOIDCSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteOIDCSessionsResponse ¶
type DeleteOIDCSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseDeleteOIDCSessionsResponse ¶
func ParseDeleteOIDCSessionsResponse(rsp *http.Response) (*DeleteOIDCSessionsResponse, error)
ParseDeleteOIDCSessionsResponse parses an HTTP response from a DeleteOIDCSessionsWithResponse call
func (DeleteOIDCSessionsResponse) ContentType ¶
func (r DeleteOIDCSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteOIDCSessionsResponse) GetBody ¶
func (r DeleteOIDCSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteOIDCSessionsResponse) GetJSON400 ¶
func (r DeleteOIDCSessionsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteOIDCSessionsResponse) GetJSON401 ¶
func (r DeleteOIDCSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteOIDCSessionsResponse) GetJSON403 ¶
func (r DeleteOIDCSessionsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteOIDCSessionsResponse) GetJSON500 ¶
func (r DeleteOIDCSessionsResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteOIDCSessionsResponse) Status ¶
func (r DeleteOIDCSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteOIDCSessionsResponse) StatusCode ¶
func (r DeleteOIDCSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnqueueBruteForceRuleFlushJSONRequestBody ¶
type EnqueueBruteForceRuleFlushJSONRequestBody = BruteForceFlushRequest
EnqueueBruteForceRuleFlushJSONRequestBody defines body for EnqueueBruteForceRuleFlush for application/json ContentType.
type EnqueueBruteForceRuleFlushResponse ¶
type EnqueueBruteForceRuleFlushResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *AsyncAccepted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *JSONValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseEnqueueBruteForceRuleFlushResponse ¶
func ParseEnqueueBruteForceRuleFlushResponse(rsp *http.Response) (*EnqueueBruteForceRuleFlushResponse, error)
ParseEnqueueBruteForceRuleFlushResponse parses an HTTP response from a EnqueueBruteForceRuleFlushWithResponse call
func (EnqueueBruteForceRuleFlushResponse) ContentType ¶
func (r EnqueueBruteForceRuleFlushResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EnqueueBruteForceRuleFlushResponse) GetBody ¶
func (r EnqueueBruteForceRuleFlushResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EnqueueBruteForceRuleFlushResponse) GetJSON202 ¶
func (r EnqueueBruteForceRuleFlushResponse) GetJSON202() *AsyncAccepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (EnqueueBruteForceRuleFlushResponse) GetJSON400 ¶
func (r EnqueueBruteForceRuleFlushResponse) GetJSON400() *JSONValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (EnqueueBruteForceRuleFlushResponse) GetJSON401 ¶
func (r EnqueueBruteForceRuleFlushResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (EnqueueBruteForceRuleFlushResponse) GetJSON403 ¶
func (r EnqueueBruteForceRuleFlushResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (EnqueueBruteForceRuleFlushResponse) GetJSON500 ¶
func (r EnqueueBruteForceRuleFlushResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (EnqueueBruteForceRuleFlushResponse) Status ¶
func (r EnqueueBruteForceRuleFlushResponse) Status() string
Status returns HTTPResponse.Status
func (EnqueueBruteForceRuleFlushResponse) StatusCode ¶
func (r EnqueueBruteForceRuleFlushResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnqueueUserCacheFlushJSONRequestBody ¶
type EnqueueUserCacheFlushJSONRequestBody = CacheFlushRequest
EnqueueUserCacheFlushJSONRequestBody defines body for EnqueueUserCacheFlush for application/json ContentType.
type EnqueueUserCacheFlushResponse ¶
type EnqueueUserCacheFlushResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *AsyncAccepted
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *JSONValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseEnqueueUserCacheFlushResponse ¶
func ParseEnqueueUserCacheFlushResponse(rsp *http.Response) (*EnqueueUserCacheFlushResponse, error)
ParseEnqueueUserCacheFlushResponse parses an HTTP response from a EnqueueUserCacheFlushWithResponse call
func (EnqueueUserCacheFlushResponse) ContentType ¶
func (r EnqueueUserCacheFlushResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (EnqueueUserCacheFlushResponse) GetBody ¶
func (r EnqueueUserCacheFlushResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (EnqueueUserCacheFlushResponse) GetJSON202 ¶
func (r EnqueueUserCacheFlushResponse) GetJSON202() *AsyncAccepted
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (EnqueueUserCacheFlushResponse) GetJSON400 ¶
func (r EnqueueUserCacheFlushResponse) GetJSON400() *JSONValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (EnqueueUserCacheFlushResponse) GetJSON401 ¶
func (r EnqueueUserCacheFlushResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (EnqueueUserCacheFlushResponse) GetJSON403 ¶
func (r EnqueueUserCacheFlushResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (EnqueueUserCacheFlushResponse) GetJSON500 ¶
func (r EnqueueUserCacheFlushResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (EnqueueUserCacheFlushResponse) Status ¶
func (r EnqueueUserCacheFlushResponse) Status() string
Status returns HTTPResponse.Status
func (EnqueueUserCacheFlushResponse) StatusCode ¶
func (r EnqueueUserCacheFlushResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type FieldError ¶
type FieldError struct {
Field *string `json:"field,omitempty"`
Message *string `json:"message,omitempty"`
}
FieldError defines model for FieldError.
type FieldErrorResponse ¶
type FieldErrorResponse struct {
Errors []FieldError `json:"errors"`
}
FieldErrorResponse defines model for FieldErrorResponse.
type FlushBruteForceRuleJSONRequestBody ¶
type FlushBruteForceRuleJSONRequestBody = BruteForceFlushRequest
FlushBruteForceRuleJSONRequestBody defines body for FlushBruteForceRule for application/json ContentType.
type FlushBruteForceRuleResponse ¶
type FlushBruteForceRuleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BruteForceFlushResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *JSONValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseFlushBruteForceRuleResponse ¶
func ParseFlushBruteForceRuleResponse(rsp *http.Response) (*FlushBruteForceRuleResponse, error)
ParseFlushBruteForceRuleResponse parses an HTTP response from a FlushBruteForceRuleWithResponse call
func (FlushBruteForceRuleResponse) ContentType ¶
func (r FlushBruteForceRuleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FlushBruteForceRuleResponse) GetBody ¶
func (r FlushBruteForceRuleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (FlushBruteForceRuleResponse) GetJSON200 ¶
func (r FlushBruteForceRuleResponse) GetJSON200() *BruteForceFlushResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (FlushBruteForceRuleResponse) GetJSON400 ¶
func (r FlushBruteForceRuleResponse) GetJSON400() *JSONValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (FlushBruteForceRuleResponse) GetJSON401 ¶
func (r FlushBruteForceRuleResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (FlushBruteForceRuleResponse) GetJSON403 ¶
func (r FlushBruteForceRuleResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (FlushBruteForceRuleResponse) GetJSON500 ¶
func (r FlushBruteForceRuleResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (FlushBruteForceRuleResponse) Status ¶
func (r FlushBruteForceRuleResponse) Status() string
Status returns HTTPResponse.Status
func (FlushBruteForceRuleResponse) StatusCode ¶
func (r FlushBruteForceRuleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FlushUserCacheJSONRequestBody ¶
type FlushUserCacheJSONRequestBody = CacheFlushRequest
FlushUserCacheJSONRequestBody defines body for FlushUserCache for application/json ContentType.
type FlushUserCacheResponse ¶
type FlushUserCacheResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CacheFlushResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *JSONValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseFlushUserCacheResponse ¶
func ParseFlushUserCacheResponse(rsp *http.Response) (*FlushUserCacheResponse, error)
ParseFlushUserCacheResponse parses an HTTP response from a FlushUserCacheWithResponse call
func (FlushUserCacheResponse) ContentType ¶
func (r FlushUserCacheResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FlushUserCacheResponse) GetBody ¶
func (r FlushUserCacheResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (FlushUserCacheResponse) GetJSON200 ¶
func (r FlushUserCacheResponse) GetJSON200() *CacheFlushResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (FlushUserCacheResponse) GetJSON400 ¶
func (r FlushUserCacheResponse) GetJSON400() *JSONValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (FlushUserCacheResponse) GetJSON401 ¶
func (r FlushUserCacheResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (FlushUserCacheResponse) GetJSON403 ¶
func (r FlushUserCacheResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (FlushUserCacheResponse) GetJSON500 ¶
func (r FlushUserCacheResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (FlushUserCacheResponse) Status ¶
func (r FlushUserCacheResponse) Status() string
Status returns HTTPResponse.Status
func (FlushUserCacheResponse) StatusCode ¶
func (r FlushUserCacheResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAsyncJobStatusResponse ¶
type GetAsyncJobStatusResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AsyncJobStatusResult
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseGetAsyncJobStatusResponse ¶
func ParseGetAsyncJobStatusResponse(rsp *http.Response) (*GetAsyncJobStatusResponse, error)
ParseGetAsyncJobStatusResponse parses an HTTP response from a GetAsyncJobStatusWithResponse call
func (GetAsyncJobStatusResponse) ContentType ¶
func (r GetAsyncJobStatusResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAsyncJobStatusResponse) GetBody ¶
func (r GetAsyncJobStatusResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAsyncJobStatusResponse) GetJSON200 ¶
func (r GetAsyncJobStatusResponse) GetJSON200() *AsyncJobStatusResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAsyncJobStatusResponse) GetJSON401 ¶
func (r GetAsyncJobStatusResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAsyncJobStatusResponse) GetJSON404 ¶
func (r GetAsyncJobStatusResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetAsyncJobStatusResponse) GetJSON500 ¶
func (r GetAsyncJobStatusResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetAsyncJobStatusResponse) Status ¶
func (r GetAsyncJobStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetAsyncJobStatusResponse) StatusCode ¶
func (r GetAsyncJobStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOpenAPIJSONResponse ¶
type GetOpenAPIJSONResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *map[string]interface{}
}
func ParseGetOpenAPIJSONResponse ¶
func ParseGetOpenAPIJSONResponse(rsp *http.Response) (*GetOpenAPIJSONResponse, error)
ParseGetOpenAPIJSONResponse parses an HTTP response from a GetOpenAPIJSONWithResponse call
func (GetOpenAPIJSONResponse) ContentType ¶
func (r GetOpenAPIJSONResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOpenAPIJSONResponse) GetBody ¶
func (r GetOpenAPIJSONResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOpenAPIJSONResponse) GetJSON200 ¶
func (r GetOpenAPIJSONResponse) GetJSON200() *map[string]interface{}
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetOpenAPIJSONResponse) Status ¶
func (r GetOpenAPIJSONResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenAPIJSONResponse) StatusCode ¶
func (r GetOpenAPIJSONResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOpenAPIYAMLResponse ¶
type GetOpenAPIYAMLResponse struct {
Body []byte
HTTPResponse *http.Response
// YAML200 the response for an HTTP 200 `application/yaml` response
YAML200 *string
}
func ParseGetOpenAPIYAMLResponse ¶
func ParseGetOpenAPIYAMLResponse(rsp *http.Response) (*GetOpenAPIYAMLResponse, error)
ParseGetOpenAPIYAMLResponse parses an HTTP response from a GetOpenAPIYAMLWithResponse call
func (GetOpenAPIYAMLResponse) ContentType ¶
func (r GetOpenAPIYAMLResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOpenAPIYAMLResponse) GetBody ¶
func (r GetOpenAPIYAMLResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOpenAPIYAMLResponse) GetYAML200 ¶
func (r GetOpenAPIYAMLResponse) GetYAML200() *string
GetYAML200 returns the response for an HTTP 200 `application/yaml` response
func (GetOpenAPIYAMLResponse) Status ¶
func (r GetOpenAPIYAMLResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenAPIYAMLResponse) StatusCode ¶
func (r GetOpenAPIYAMLResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type JSONValidationError ¶
type JSONValidationError struct {
// contains filtered or unexported fields
}
JSONValidationError defines model for JSONValidationError.
func (JSONValidationError) AsErrorResponse ¶
func (t JSONValidationError) AsErrorResponse() (ErrorResponse, error)
AsErrorResponse returns the union data inside the JSONValidationError as a ErrorResponse
func (JSONValidationError) AsFieldErrorResponse ¶
func (t JSONValidationError) AsFieldErrorResponse() (FieldErrorResponse, error)
AsFieldErrorResponse returns the union data inside the JSONValidationError as a FieldErrorResponse
func (*JSONValidationError) FromErrorResponse ¶
func (t *JSONValidationError) FromErrorResponse(v ErrorResponse) error
FromErrorResponse overwrites any union data inside the JSONValidationError as the provided ErrorResponse
func (*JSONValidationError) FromFieldErrorResponse ¶
func (t *JSONValidationError) FromFieldErrorResponse(v FieldErrorResponse) error
FromFieldErrorResponse overwrites any union data inside the JSONValidationError as the provided FieldErrorResponse
func (JSONValidationError) MarshalJSON ¶
func (t JSONValidationError) MarshalJSON() ([]byte, error)
func (*JSONValidationError) MergeErrorResponse ¶
func (t *JSONValidationError) MergeErrorResponse(v ErrorResponse) error
MergeErrorResponse performs a merge with any union data inside the JSONValidationError, using the provided ErrorResponse
func (*JSONValidationError) MergeFieldErrorResponse ¶
func (t *JSONValidationError) MergeFieldErrorResponse(v FieldErrorResponse) error
MergeFieldErrorResponse performs a merge with any union data inside the JSONValidationError, using the provided FieldErrorResponse
func (*JSONValidationError) UnmarshalJSON ¶
func (t *JSONValidationError) UnmarshalJSON(b []byte) error
type ListBruteForceEntriesParams ¶
type ListBruteForceEntriesParams struct {
// Limit Maximum number of records to return per brute-force list section.
Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Zero-based offset for brute-force list paging.
Offset *PageOffset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListBruteForceEntriesParams defines parameters for ListBruteForceEntries.
type ListBruteForceEntriesResponse ¶
type ListBruteForceEntriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BruteForceListResult
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseListBruteForceEntriesResponse ¶
func ParseListBruteForceEntriesResponse(rsp *http.Response) (*ListBruteForceEntriesResponse, error)
ParseListBruteForceEntriesResponse parses an HTTP response from a ListBruteForceEntriesWithResponse call
func (ListBruteForceEntriesResponse) ContentType ¶
func (r ListBruteForceEntriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBruteForceEntriesResponse) GetBody ¶
func (r ListBruteForceEntriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListBruteForceEntriesResponse) GetJSON200 ¶
func (r ListBruteForceEntriesResponse) GetJSON200() *BruteForceListResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListBruteForceEntriesResponse) GetJSON401 ¶
func (r ListBruteForceEntriesResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListBruteForceEntriesResponse) GetJSON403 ¶
func (r ListBruteForceEntriesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListBruteForceEntriesResponse) GetJSON500 ¶
func (r ListBruteForceEntriesResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListBruteForceEntriesResponse) Status ¶
func (r ListBruteForceEntriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBruteForceEntriesResponse) StatusCode ¶
func (r ListBruteForceEntriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFilteredBruteForceEntriesJSONRequestBody ¶
type ListFilteredBruteForceEntriesJSONRequestBody = BruteForceFilterRequest
ListFilteredBruteForceEntriesJSONRequestBody defines body for ListFilteredBruteForceEntries for application/json ContentType.
type ListFilteredBruteForceEntriesParams ¶
type ListFilteredBruteForceEntriesParams struct {
// Limit Maximum number of records to return per brute-force list section.
Limit *PageLimit `form:"limit,omitempty" json:"limit,omitempty"`
// Offset Zero-based offset for brute-force list paging.
Offset *PageOffset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListFilteredBruteForceEntriesParams defines parameters for ListFilteredBruteForceEntries.
type ListFilteredBruteForceEntriesResponse ¶
type ListFilteredBruteForceEntriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BruteForceListResult
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *JSONValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseListFilteredBruteForceEntriesResponse ¶
func ParseListFilteredBruteForceEntriesResponse(rsp *http.Response) (*ListFilteredBruteForceEntriesResponse, error)
ParseListFilteredBruteForceEntriesResponse parses an HTTP response from a ListFilteredBruteForceEntriesWithResponse call
func (ListFilteredBruteForceEntriesResponse) ContentType ¶
func (r ListFilteredBruteForceEntriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListFilteredBruteForceEntriesResponse) GetBody ¶
func (r ListFilteredBruteForceEntriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListFilteredBruteForceEntriesResponse) GetJSON200 ¶
func (r ListFilteredBruteForceEntriesResponse) GetJSON200() *BruteForceListResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListFilteredBruteForceEntriesResponse) GetJSON400 ¶
func (r ListFilteredBruteForceEntriesResponse) GetJSON400() *JSONValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListFilteredBruteForceEntriesResponse) GetJSON401 ¶
func (r ListFilteredBruteForceEntriesResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListFilteredBruteForceEntriesResponse) GetJSON403 ¶
func (r ListFilteredBruteForceEntriesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListFilteredBruteForceEntriesResponse) GetJSON500 ¶
func (r ListFilteredBruteForceEntriesResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListFilteredBruteForceEntriesResponse) Status ¶
func (r ListFilteredBruteForceEntriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListFilteredBruteForceEntriesResponse) StatusCode ¶
func (r ListFilteredBruteForceEntriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOIDCSessionsResponse ¶
type ListOIDCSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OIDCSessions
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
func ParseListOIDCSessionsResponse ¶
func ParseListOIDCSessionsResponse(rsp *http.Response) (*ListOIDCSessionsResponse, error)
ParseListOIDCSessionsResponse parses an HTTP response from a ListOIDCSessionsWithResponse call
func (ListOIDCSessionsResponse) ContentType ¶
func (r ListOIDCSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOIDCSessionsResponse) GetBody ¶
func (r ListOIDCSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListOIDCSessionsResponse) GetJSON200 ¶
func (r ListOIDCSessionsResponse) GetJSON200() *OIDCSessions
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListOIDCSessionsResponse) GetJSON400 ¶
func (r ListOIDCSessionsResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListOIDCSessionsResponse) GetJSON401 ¶
func (r ListOIDCSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListOIDCSessionsResponse) GetJSON403 ¶
func (r ListOIDCSessionsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListOIDCSessionsResponse) GetJSON500 ¶
func (r ListOIDCSessionsResponse) GetJSON500() *Error
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListOIDCSessionsResponse) Status ¶
func (r ListOIDCSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListOIDCSessionsResponse) StatusCode ¶
func (r ListOIDCSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OIDCSessionSummary ¶
type OIDCSessionSummary struct {
AuthTime time.Time `json:"auth_time"`
ClientId string `json:"client_id"`
DisplayName *string `json:"display_name,omitempty"`
// Id Stable non-secret session identifier derived from the stored token.
Id string `json:"id"`
MfaCompleted *bool `json:"mfa_completed,omitempty"`
MfaMethod *string `json:"mfa_method,omitempty"`
RedirectUri *string `json:"redirect_uri,omitempty"`
Scopes *[]string `json:"scopes,omitempty"`
UserId string `json:"user_id"`
Username *string `json:"username,omitempty"`
}
OIDCSessionSummary defines model for OIDCSessionSummary.
type OIDCSessions ¶
type OIDCSessions struct {
Sessions []OIDCSessionSummary `json:"sessions"`
}
OIDCSessions defines model for OIDCSessions.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResultEnvelope ¶
type ResultEnvelope struct {
Object string `json:"object"`
Operation string `json:"operation"`
Result interface{} `json:"result"`
Session string `json:"session"`
}
ResultEnvelope defines model for ResultEnvelope.