httpapi

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

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

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

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

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

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "apiKeyAuth.Scopes"
	CookieAuthScopes = "cookieAuth.Scopes"
)
View Source
const APIKeyAuthScope = "apiKeyAuth"
View Source
const APIKeyHeaderName = "X-API-Key"
View Source
const CookieAuthScope = "cookieAuth"

Security scopes

View Source
const DevicePairEndpoint = "/api/v1/device-pair"
View Source
const HeartbeatEndpoint = "/api/v1/heartbeat"
View Source
const LoginEndpoint = "/api/v1/auth/login"

Endpoints

View Source
const SessionCookieName = "__Host-wdc_session"

Headers

View Source
const VerifyIPEndpoint = "/api/policy-engine/verify-ip"
View Source
const XRealIP = "X-Real-IP"

Variables

This section is empty.

Functions

func ClientIPFromContext

func ClientIPFromContext(ctx context.Context) (string, bool)

ClientIPFromContext extracts the client IP address from the context.

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewAddAddressRequest added in v0.4.0

func NewAddAddressRequest(server string, deviceId ID, body AddAddressJSONRequestBody) (*http.Request, error)

NewAddAddressRequest calls the generic AddAddress builder with application/json body

func NewAddAddressRequestWithBody added in v0.4.0

func NewAddAddressRequestWithBody(server string, deviceId ID, contentType string, body io.Reader) (*http.Request, error)

NewAddAddressRequestWithBody generates requests for AddAddress with any type of body

func NewChangePasswordRequest added in v0.4.0

func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)

NewChangePasswordRequest calls the generic ChangePassword builder with application/json body

func NewChangePasswordRequestWithBody added in v0.4.0

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

NewChangePasswordRequestWithBody generates requests for ChangePassword with any type of body

func NewClaimPairingRequest added in v0.4.0

func NewClaimPairingRequest(server string, body ClaimPairingJSONRequestBody) (*http.Request, error)

NewClaimPairingRequest calls the generic ClaimPairing builder with application/json body

func NewClaimPairingRequestWithBody added in v0.4.0

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

NewClaimPairingRequestWithBody generates requests for ClaimPairing with any type of body

func NewCreateDevicePairingRequest added in v0.4.0

func NewCreateDevicePairingRequest(server string, id ID, body CreateDevicePairingJSONRequestBody) (*http.Request, error)

NewCreateDevicePairingRequest calls the generic CreateDevicePairing builder with application/json body

func NewCreateDevicePairingRequestWithBody added in v0.4.0

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

NewCreateDevicePairingRequestWithBody generates requests for CreateDevicePairing with any type of body

func NewCreateDeviceRequest added in v0.4.0

func NewCreateDeviceRequest(server string, body CreateDeviceJSONRequestBody) (*http.Request, error)

NewCreateDeviceRequest calls the generic CreateDevice builder with application/json body

func NewCreateDeviceRequestWithBody added in v0.4.0

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

NewCreateDeviceRequestWithBody generates requests for CreateDevice with any type of body

func NewCreateNetworkPolicyRequest added in v0.4.0

func NewCreateNetworkPolicyRequest(server string, body CreateNetworkPolicyJSONRequestBody) (*http.Request, error)

NewCreateNetworkPolicyRequest calls the generic CreateNetworkPolicy builder with application/json body

func NewCreateNetworkPolicyRequestWithBody added in v0.4.0

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

NewCreateNetworkPolicyRequestWithBody generates requests for CreateNetworkPolicy with any type of body

func NewCreateUserRequest added in v0.4.0

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

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody added in v0.4.0

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

NewCreateUserRequestWithBody generates requests for CreateUser with any type of body

func NewDeleteDeviceAPIKeyRequest added in v0.4.0

func NewDeleteDeviceAPIKeyRequest(server string, deviceId ID) (*http.Request, error)

NewDeleteDeviceAPIKeyRequest generates requests for DeleteDeviceAPIKey

func NewDeleteDevicePairingRequest added in v0.4.0

func NewDeleteDevicePairingRequest(server string, id ID, pairingId ID) (*http.Request, error)

NewDeleteDevicePairingRequest generates requests for DeleteDevicePairing

func NewDeleteDeviceRequest added in v0.4.0

func NewDeleteDeviceRequest(server string, deviceId ID) (*http.Request, error)

NewDeleteDeviceRequest generates requests for DeleteDevice

func NewDeleteNetworkPolicyRequest added in v0.4.0

func NewDeleteNetworkPolicyRequest(server string, policyId ID) (*http.Request, error)

NewDeleteNetworkPolicyRequest generates requests for DeleteNetworkPolicy

func NewDeleteUserRequest added in v0.4.0

func NewDeleteUserRequest(server string, userId ID) (*http.Request, error)

NewDeleteUserRequest generates requests for DeleteUser

func NewDemoteUserRequest added in v0.4.0

func NewDemoteUserRequest(server string, userId ID) (*http.Request, error)

NewDemoteUserRequest generates requests for DemoteUser

func NewDeviceHeartbeatByAPIKeyRequest added in v0.4.0

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

NewDeviceHeartbeatByAPIKeyRequest generates requests for DeviceHeartbeatByAPIKey

func NewDeviceHeartbeatRequest added in v0.4.0

func NewDeviceHeartbeatRequest(server string, deviceId ID) (*http.Request, error)

NewDeviceHeartbeatRequest generates requests for DeviceHeartbeat

func NewDisableAddressRequest added in v0.4.0

func NewDisableAddressRequest(server string, deviceId ID, addressId ID) (*http.Request, error)

NewDisableAddressRequest generates requests for DisableAddress

func NewDisableDeviceAddressLeaseRuleRequest added in v0.4.0

func NewDisableDeviceAddressLeaseRuleRequest(server string, deviceId ID) (*http.Request, error)

NewDisableDeviceAddressLeaseRuleRequest generates requests for DisableDeviceAddressLeaseRule

func NewDisableDeviceRequest added in v0.4.0

func NewDisableDeviceRequest(server string, deviceId ID) (*http.Request, error)

NewDisableDeviceRequest generates requests for DisableDevice

func NewDisableMaxActiveAddressesRuleRequest added in v0.4.0

func NewDisableMaxActiveAddressesRuleRequest(server string, deviceId ID) (*http.Request, error)

NewDisableMaxActiveAddressesRuleRequest generates requests for DisableMaxActiveAddressesRule

func NewEnableDeviceRequest added in v0.4.0

func NewEnableDeviceRequest(server string, deviceId ID) (*http.Request, error)

NewEnableDeviceRequest generates requests for EnableDevice

func NewGetAccessLogByCountryRequest added in v0.4.0

func NewGetAccessLogByCountryRequest(server string, params *GetAccessLogByCountryParams) (*http.Request, error)

NewGetAccessLogByCountryRequest generates requests for GetAccessLogByCountry

func NewGetAccessLogRequest added in v0.4.0

func NewGetAccessLogRequest(server string, params *GetAccessLogParams) (*http.Request, error)

NewGetAccessLogRequest generates requests for GetAccessLog

func NewGetAddressHistoryRequest added in v0.4.0

func NewGetAddressHistoryRequest(server string, params *GetAddressHistoryParams) (*http.Request, error)

NewGetAddressHistoryRequest generates requests for GetAddressHistory

func NewGetCurrentUserRequest added in v0.4.0

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

NewGetCurrentUserRequest generates requests for GetCurrentUser

func NewGetDashboardAttributionSplitRequest added in v0.4.0

func NewGetDashboardAttributionSplitRequest(server string, params *GetDashboardAttributionSplitParams) (*http.Request, error)

NewGetDashboardAttributionSplitRequest generates requests for GetDashboardAttributionSplit

func NewGetDashboardPostureRequest added in v0.4.0

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

NewGetDashboardPostureRequest generates requests for GetDashboardPosture

func NewGetDashboardServicesRequest added in v0.4.0

func NewGetDashboardServicesRequest(server string, params *GetDashboardServicesParams) (*http.Request, error)

NewGetDashboardServicesRequest generates requests for GetDashboardServices

func NewGetDashboardStatsRequest added in v0.4.0

func NewGetDashboardStatsRequest(server string, params *GetDashboardStatsParams) (*http.Request, error)

NewGetDashboardStatsRequest generates requests for GetDashboardStats

func NewGetDashboardTopDeniedIpsRequest added in v0.4.0

func NewGetDashboardTopDeniedIpsRequest(server string, params *GetDashboardTopDeniedIpsParams) (*http.Request, error)

NewGetDashboardTopDeniedIpsRequest generates requests for GetDashboardTopDeniedIps

func NewGetDashboardTrafficRequest added in v0.4.0

func NewGetDashboardTrafficRequest(server string, params *GetDashboardTrafficParams) (*http.Request, error)

NewGetDashboardTrafficRequest generates requests for GetDashboardTraffic

func NewGetDeviceAddressLeaseRuleRequest added in v0.4.0

func NewGetDeviceAddressLeaseRuleRequest(server string, deviceId ID) (*http.Request, error)

NewGetDeviceAddressLeaseRuleRequest generates requests for GetDeviceAddressLeaseRule

func NewGetDeviceAddressesRequest added in v0.4.0

func NewGetDeviceAddressesRequest(server string, deviceId ID) (*http.Request, error)

NewGetDeviceAddressesRequest generates requests for GetDeviceAddresses

func NewGetDevicePairingRequest added in v0.4.0

func NewGetDevicePairingRequest(server string, id ID, pairingId ID) (*http.Request, error)

NewGetDevicePairingRequest generates requests for GetDevicePairing

func NewGetDevicesRequest added in v0.4.0

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

NewGetDevicesRequest generates requests for GetDevices

func NewGetMaxActiveAddressesRuleRequest added in v0.4.0

func NewGetMaxActiveAddressesRuleRequest(server string, deviceId ID) (*http.Request, error)

NewGetMaxActiveAddressesRuleRequest generates requests for GetMaxActiveAddressesRule

func NewGetNetworkPolicyRequest added in v0.4.0

func NewGetNetworkPolicyRequest(server string, policyId ID) (*http.Request, error)

NewGetNetworkPolicyRequest generates requests for GetNetworkPolicy

func NewGetPolicyUserMapRequest added in v0.4.0

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

NewGetPolicyUserMapRequest generates requests for GetPolicyUserMap

func NewGetUserAccessDetailRequest added in v0.4.0

func NewGetUserAccessDetailRequest(server string, userId ID) (*http.Request, error)

NewGetUserAccessDetailRequest generates requests for GetUserAccessDetail

func NewIgnoreSuggestionRequest added in v0.4.0

func NewIgnoreSuggestionRequest(server string, body IgnoreSuggestionJSONRequestBody) (*http.Request, error)

NewIgnoreSuggestionRequest calls the generic IgnoreSuggestion builder with application/json body

func NewIgnoreSuggestionRequestWithBody added in v0.4.0

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

NewIgnoreSuggestionRequestWithBody generates requests for IgnoreSuggestion with any type of body

func NewListDevicePairingsRequest added in v0.4.0

func NewListDevicePairingsRequest(server string, id ID, params *ListDevicePairingsParams) (*http.Request, error)

NewListDevicePairingsRequest generates requests for ListDevicePairings

func NewListHostGroupsRequest added in v0.4.0

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

NewListHostGroupsRequest generates requests for ListHostGroups

func NewListHostSuggestionsRequest added in v0.4.0

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

NewListHostSuggestionsRequest generates requests for ListHostSuggestions

func NewListHostsRequest added in v0.4.0

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

NewListHostsRequest generates requests for ListHosts

func NewListNetworkPoliciesRequest added in v0.4.0

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

NewListNetworkPoliciesRequest generates requests for ListNetworkPolicies

func NewListUsersRequest added in v0.4.0

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

NewListUsersRequest generates requests for ListUsers

func NewListUsersWithAccessRequest added in v0.4.0

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

NewListUsersWithAccessRequest generates requests for ListUsersWithAccess

func NewLoginRequest added in v0.4.0

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

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody added in v0.4.0

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

NewLoginRequestWithBody generates requests for Login with any type of body

func NewLogoutRequest added in v0.4.0

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

NewLogoutRequest generates requests for Logout

func NewPromoteUserRequest added in v0.4.0

func NewPromoteUserRequest(server string, userId ID, body PromoteUserJSONRequestBody) (*http.Request, error)

NewPromoteUserRequest calls the generic PromoteUser builder with application/json body

func NewPromoteUserRequestWithBody added in v0.4.0

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

NewPromoteUserRequestWithBody generates requests for PromoteUser with any type of body

func NewPutDeviceAddressLeaseRuleRequest added in v0.4.0

func NewPutDeviceAddressLeaseRuleRequest(server string, deviceId ID, body PutDeviceAddressLeaseRuleJSONRequestBody) (*http.Request, error)

NewPutDeviceAddressLeaseRuleRequest calls the generic PutDeviceAddressLeaseRule builder with application/json body

func NewPutDeviceAddressLeaseRuleRequestWithBody added in v0.4.0

func NewPutDeviceAddressLeaseRuleRequestWithBody(server string, deviceId ID, contentType string, body io.Reader) (*http.Request, error)

NewPutDeviceAddressLeaseRuleRequestWithBody generates requests for PutDeviceAddressLeaseRule with any type of body

func NewPutMaxActiveAddressesRuleRequest added in v0.4.0

func NewPutMaxActiveAddressesRuleRequest(server string, deviceId ID, body PutMaxActiveAddressesRuleJSONRequestBody) (*http.Request, error)

NewPutMaxActiveAddressesRuleRequest calls the generic PutMaxActiveAddressesRule builder with application/json body

func NewPutMaxActiveAddressesRuleRequestWithBody added in v0.4.0

func NewPutMaxActiveAddressesRuleRequestWithBody(server string, deviceId ID, contentType string, body io.Reader) (*http.Request, error)

NewPutMaxActiveAddressesRuleRequestWithBody generates requests for PutMaxActiveAddressesRule with any type of body

func NewReconcileHostGroupsRequest added in v0.4.0

func NewReconcileHostGroupsRequest(server string, body ReconcileHostGroupsJSONRequestBody) (*http.Request, error)

NewReconcileHostGroupsRequest calls the generic ReconcileHostGroups builder with application/json body

func NewReconcileHostGroupsRequestWithBody added in v0.4.0

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

NewReconcileHostGroupsRequestWithBody generates requests for ReconcileHostGroups with any type of body

func NewReconcileHostsRequest added in v0.4.0

func NewReconcileHostsRequest(server string, body ReconcileHostsJSONRequestBody) (*http.Request, error)

NewReconcileHostsRequest calls the generic ReconcileHosts builder with application/json body

func NewReconcileHostsRequestWithBody added in v0.4.0

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

NewReconcileHostsRequestWithBody generates requests for ReconcileHosts with any type of body

func NewRegenerateDeviceAPIKeyRequest added in v0.4.0

func NewRegenerateDeviceAPIKeyRequest(server string, deviceId ID) (*http.Request, error)

NewRegenerateDeviceAPIKeyRequest generates requests for RegenerateDeviceAPIKey

func NewSetUserAccessRequest added in v0.4.0

func NewSetUserAccessRequest(server string, userId ID, body SetUserAccessJSONRequestBody) (*http.Request, error)

NewSetUserAccessRequest calls the generic SetUserAccess builder with application/json body

func NewSetUserAccessRequestWithBody added in v0.4.0

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

NewSetUserAccessRequestWithBody generates requests for SetUserAccess with any type of body

func NewSimulatePolicyAccessRequest added in v0.4.0

func NewSimulatePolicyAccessRequest(server string, params *SimulatePolicyAccessParams) (*http.Request, error)

NewSimulatePolicyAccessRequest generates requests for SimulatePolicyAccess

func NewUnignoreSuggestionRequest added in v0.4.0

func NewUnignoreSuggestionRequest(server string, fqdn string) (*http.Request, error)

NewUnignoreSuggestionRequest generates requests for UnignoreSuggestion

func NewUpdateDeviceRequest added in v0.4.0

func NewUpdateDeviceRequest(server string, deviceId ID, body UpdateDeviceJSONRequestBody) (*http.Request, error)

NewUpdateDeviceRequest calls the generic UpdateDevice builder with application/json body

func NewUpdateDeviceRequestWithBody added in v0.4.0

func NewUpdateDeviceRequestWithBody(server string, deviceId ID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDeviceRequestWithBody generates requests for UpdateDevice with any type of body

func NewUpdateMeRequest added in v0.4.0

func NewUpdateMeRequest(server string, body UpdateMeJSONRequestBody) (*http.Request, error)

NewUpdateMeRequest calls the generic UpdateMe builder with application/json body

func NewUpdateMeRequestWithBody added in v0.4.0

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

NewUpdateMeRequestWithBody generates requests for UpdateMe with any type of body

func NewUpdateNetworkPolicyAccessRequest added in v0.4.0

func NewUpdateNetworkPolicyAccessRequest(server string, policyId ID, body UpdateNetworkPolicyAccessJSONRequestBody) (*http.Request, error)

NewUpdateNetworkPolicyAccessRequest calls the generic UpdateNetworkPolicyAccess builder with application/json body

func NewUpdateNetworkPolicyAccessRequestWithBody added in v0.4.0

func NewUpdateNetworkPolicyAccessRequestWithBody(server string, policyId ID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNetworkPolicyAccessRequestWithBody generates requests for UpdateNetworkPolicyAccess with any type of body

func NewUpdateNetworkPolicyRequest added in v0.4.0

func NewUpdateNetworkPolicyRequest(server string, policyId ID, body UpdateNetworkPolicyJSONRequestBody) (*http.Request, error)

NewUpdateNetworkPolicyRequest calls the generic UpdateNetworkPolicy builder with application/json body

func NewUpdateNetworkPolicyRequestWithBody added in v0.4.0

func NewUpdateNetworkPolicyRequestWithBody(server string, policyId ID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNetworkPolicyRequestWithBody generates requests for UpdateNetworkPolicy with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func WithClientIP

func WithClientIP(ctx context.Context, ip string) context.Context

WithClientIP returns a new context with the client IP address stored in it.

Types

type AccessLogContributor added in v0.4.0

type AccessLogContributor struct {
	AddressId  *ID     `json:"address_id,omitempty"`
	DeviceId   *ID     `json:"device_id,omitempty"`
	DeviceName *string `json:"device_name,omitempty"`
	UserId     *ID     `json:"user_id,omitempty"`
	UserName   *string `json:"user_name,omitempty"`
}

AccessLogContributor One device/user/address that the request's client IP resolved to. A single IP (shared router/home network) can resolve to several, so each entry carries a list.

type AccessLogCountryStats

type AccessLogCountryStats struct {
	Allowed       int     `json:"allowed"`
	ContinentCode *string `json:"continent_code,omitempty"`
	CountryCode   string  `json:"country_code"`
	CountryName   *string `json:"country_name,omitempty"`
	Denied        int     `json:"denied"`
	Total         int     `json:"total"`
}

AccessLogCountryStats defines model for AccessLogCountryStats.

type AccessLogFilterOperator added in v0.4.0

type AccessLogFilterOperator string

AccessLogFilterOperator Filter operator for a value column. Supplied as the sibling `{field}_op` query param; defaults to `in` when omitted. Allowed operators vary per column.

const (
	Contains    AccessLogFilterOperator = "contains"
	In          AccessLogFilterOperator = "in"
	IsNull      AccessLogFilterOperator = "is_null"
	NotContains AccessLogFilterOperator = "not_contains"
	NotIn       AccessLogFilterOperator = "not_in"
	NotNull     AccessLogFilterOperator = "not_null"
)

Defines values for AccessLogFilterOperator.

type AccessLogResponse

type AccessLogResponse struct {
	// NextCursor Opaque, server-issued pagination token. Pass it back verbatim as the `cursor` param to fetch the next page. Null when there are no more rows. Encodes the active sort, so it is only valid for the sort it was issued under.
	NextCursor *string        `json:"next_cursor"`
	Rows       []AccessLogRow `json:"rows"`

	// Total Total rows matching the current filters (excludes cursor, useful for "N results" UI)
	Total int `json:"total"`
}

AccessLogResponse defines model for AccessLogResponse.

type AccessLogRow

type AccessLogRow struct {
	// Asn Autonomous System Number
	Asn *int `json:"asn,omitempty"`

	// AsnOrg e.g. "Cloudflare, Inc."
	AsnOrg *string `json:"asn_org,omitempty"`

	// ClientIp IPv4 or IPv6 address
	ClientIp IPAddress `json:"client_ip"`

	// ContinentCode e.g. "EU"
	ContinentCode *string `json:"continent_code,omitempty"`

	// ContributorCount Denormalized count of contributor rows (device×address×user tuples). The coarse "is this ambiguous?" signal; > 1 means the IP resolved to several.
	ContributorCount int `json:"contributor_count"`

	// Contributors All devices/users/addresses this request's client IP resolved to. Empty when no device matched (e.g. a denied request from an unknown IP).
	Contributors []AccessLogContributor `json:"contributors"`

	// CountryCode ISO 3166-1 alpha-2, e.g. "DE"
	CountryCode *string `json:"country_code,omitempty"`

	// CountryName e.g. "Germany"
	CountryName *string           `json:"country_name,omitempty"`
	CreatedAt   UTCTime           `json:"created_at"`
	DenyReason  *PolicyDenyReason `json:"deny_reason"`

	// DurationUs Request processing duration in microseconds
	DurationUs *int64              `json:"duration_us,omitempty"`
	Headers    map[string][]string `json:"headers"`
	HttpMethod *string             `json:"http_method,omitempty"`
	Id         ID                  `json:"id"`

	// NetworkPolicyId ID of the network policy that authorized this request, when the match was via CIDR containment rather than a device address. Null for device-matched or denied requests.
	NetworkPolicyId *ID `json:"network_policy_id"`

	// NetworkPolicyName Display name of the matching network policy at log time.
	NetworkPolicyName *string `json:"network_policy_name"`
	Outcome           bool    `json:"outcome"`
	TargetHost        *string `json:"target_host,omitempty"`
	TargetUri         *string `json:"target_uri,omitempty"`
	XffChain          *string `json:"xff_chain,omitempty"`
}

AccessLogRow defines model for AccessLogRow.

type AddAddress200JSONResponse

type AddAddress200JSONResponse Address

func (AddAddress200JSONResponse) VisitAddAddressResponse

func (response AddAddress200JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddress201JSONResponse

type AddAddress201JSONResponse Address

func (AddAddress201JSONResponse) VisitAddAddressResponse

func (response AddAddress201JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddress400JSONResponse

type AddAddress400JSONResponse ErrorResponse

func (AddAddress400JSONResponse) VisitAddAddressResponse

func (response AddAddress400JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddress404JSONResponse

type AddAddress404JSONResponse ErrorResponse

func (AddAddress404JSONResponse) VisitAddAddressResponse

func (response AddAddress404JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddress409JSONResponse added in v0.4.0

type AddAddress409JSONResponse ErrorResponse

func (AddAddress409JSONResponse) VisitAddAddressResponse added in v0.4.0

func (response AddAddress409JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddress500JSONResponse

type AddAddress500JSONResponse ErrorResponse

func (AddAddress500JSONResponse) VisitAddAddressResponse

func (response AddAddress500JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error

type AddAddressJSONRequestBody

type AddAddressJSONRequestBody = AddAddressRequest

AddAddressJSONRequestBody defines body for AddAddress for application/json ContentType.

type AddAddressRequest

type AddAddressRequest struct {
	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`
}

AddAddressRequest defines model for AddAddressRequest.

type AddAddressRequestObject

type AddAddressRequestObject struct {
	DeviceId ID `json:"device_id"`
	Body     *AddAddressJSONRequestBody
}

type AddAddressResponseObject

type AddAddressResponseObject interface {
	VisitAddAddressResponse(w http.ResponseWriter) error
}

type AddAddressTestClientResponse added in v0.4.0

type AddAddressTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Address
	JSON201      *Address
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseAddAddressTestClientResponse added in v0.4.0

func ParseAddAddressTestClientResponse(rsp *http.Response) (*AddAddressTestClientResponse, error)

ParseAddAddressTestClientResponse parses an HTTP response from a AddAddressWithResponse call

func (AddAddressTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (AddAddressTestClientResponse) StatusCode added in v0.4.0

func (r AddAddressTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Address

type Address struct {
	CreatedAt UTCTime `json:"created_at"`
	DeviceId  ID      `json:"device_id"`

	// ExpiresAt UTC timestamp when this address will auto-expire, if an auto-expiry rule is enabled for the device. Null if no expiry is scheduled.
	ExpiresAt *UTCTime `json:"expires_at"`

	// Geo GeoIP metadata resolved on read for this address's IP. Null when the IP is unresolvable or GeoIP enrichment is disabled.
	Geo *GeoInfo `json:"geo"`
	Id  ID       `json:"id"`

	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`

	// IsEnabled The latest state of this address, enabled or disabled
	IsEnabled bool `json:"is_enabled"`

	// Source What triggered an address state change
	Source AddressEventSource `json:"source"`

	// UpdatedAt Last time it was enabled or disabled
	UpdatedAt UTCTime `json:"updated_at"`
}

Address defines model for Address.

type AddressEventSource added in v0.3.0

type AddressEventSource string

AddressEventSource What triggered an address state change

const (
	Expiry        AddressEventSource = "expiry"
	Heartbeat     AddressEventSource = "heartbeat"
	LimitExceeded AddressEventSource = "limit_exceeded"
	Manual        AddressEventSource = "manual"
)

Defines values for AddressEventSource.

type AddressHistoryBucket

type AddressHistoryBucket struct {
	// ActiveCount Count of addresses whose last event in this bucket was enabled (active at end of period)
	ActiveCount int `json:"active_count"`

	// EventCount Total address events in this time bucket
	EventCount int `json:"event_count"`

	// GapCount Count of addresses that had at least one expiry event in this bucket
	GapCount  int     `json:"gap_count"`
	Timestamp UTCTime `json:"timestamp"`
}

AddressHistoryBucket defines model for AddressHistoryBucket.

type AddressHistoryEvent

type AddressHistoryEvent struct {
	DeviceId ID `json:"device_id"`

	// DeviceName Name of the device
	DeviceName string `json:"device_name"`

	// Geo GeoIP metadata resolved on read for this event's IP. Null when the IP is unresolvable or GeoIP enrichment is disabled.
	Geo *GeoInfo `json:"geo"`
	Id  ID       `json:"id"`

	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`

	// IpChanged Whether the IP differs from the previous address event for this device. False for the first event in the queried range.
	IpChanged bool `json:"ip_changed"`

	// IsEnabled Whether the address was enabled or disabled
	IsEnabled bool `json:"is_enabled"`

	// IsRefresh Whether this event repeats the previous one for this device with no change in IP or enabled state (a pure heartbeat refresh).
	IsRefresh bool `json:"is_refresh"`

	// Source What triggered an address state change
	Source AddressEventSource `json:"source"`

	// TimeGapSeconds Seconds since the previous address event for this device, across all of its addresses. Null when there is no prior event in the queried range.
	TimeGapSeconds *int64  `json:"time_gap_seconds"`
	Timestamp      UTCTime `json:"timestamp"`

	// TtlSeconds The device's configured address-lease TTL in seconds, if an auto-expiry rule is enabled for the device. Null otherwise.
	TtlSeconds *int64 `json:"ttl_seconds"`
}

AddressHistoryEvent defines model for AddressHistoryEvent.

type AddressHistoryResponse

type AddressHistoryResponse struct {
	Buckets    []AddressHistoryBucket `json:"buckets"`
	Events     []AddressHistoryEvent  `json:"events"`
	NextCursor *ID                    `json:"next_cursor"`

	// TotalEvents Total number of events matching the filters (for pagination)
	TotalEvents int `json:"total_events"`
}

AddressHistoryResponse defines model for AddressHistoryResponse.

type AuthRequest

type AuthRequest struct {
	Password Password `json:"password"`

	// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
	Username Username `json:"username"`
}

AuthRequest defines model for AuthRequest.

type ChangePassword204Response

type ChangePassword204Response struct {
}

func (ChangePassword204Response) VisitChangePasswordResponse

func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePassword400JSONResponse

type ChangePassword400JSONResponse ErrorResponse

func (ChangePassword400JSONResponse) VisitChangePasswordResponse

func (response ChangePassword400JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePassword401JSONResponse

type ChangePassword401JSONResponse ErrorResponse

func (ChangePassword401JSONResponse) VisitChangePasswordResponse

func (response ChangePassword401JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePassword500JSONResponse

type ChangePassword500JSONResponse ErrorResponse

func (ChangePassword500JSONResponse) VisitChangePasswordResponse

func (response ChangePassword500JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody = ChangePasswordRequest

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordRequest

type ChangePasswordRequest struct {
	CurrentPassword string `json:"current_password"`
	Password        string `json:"password"`
}

ChangePasswordRequest defines model for ChangePasswordRequest.

type ChangePasswordRequestObject

type ChangePasswordRequestObject struct {
	Body *ChangePasswordJSONRequestBody
}

type ChangePasswordResponseObject

type ChangePasswordResponseObject interface {
	VisitChangePasswordResponse(w http.ResponseWriter) error
}

type ChangePasswordTestClientResponse added in v0.4.0

type ChangePasswordTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangePasswordTestClientResponse added in v0.4.0

func ParseChangePasswordTestClientResponse(rsp *http.Response) (*ChangePasswordTestClientResponse, error)

ParseChangePasswordTestClientResponse parses an HTTP response from a ChangePasswordWithResponse call

func (ChangePasswordTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ChangePasswordTestClientResponse) StatusCode added in v0.4.0

func (r ChangePasswordTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type ClaimPairing200JSONResponse added in v0.4.0

type ClaimPairing200JSONResponse ClaimPairingResponse

func (ClaimPairing200JSONResponse) VisitClaimPairingResponse added in v0.4.0

func (response ClaimPairing200JSONResponse) VisitClaimPairingResponse(w http.ResponseWriter) error

type ClaimPairing404JSONResponse added in v0.4.0

type ClaimPairing404JSONResponse ErrorResponse

func (ClaimPairing404JSONResponse) VisitClaimPairingResponse added in v0.4.0

func (response ClaimPairing404JSONResponse) VisitClaimPairingResponse(w http.ResponseWriter) error

type ClaimPairing500JSONResponse added in v0.4.0

type ClaimPairing500JSONResponse ErrorResponse

func (ClaimPairing500JSONResponse) VisitClaimPairingResponse added in v0.4.0

func (response ClaimPairing500JSONResponse) VisitClaimPairingResponse(w http.ResponseWriter) error

type ClaimPairingJSONRequestBody added in v0.4.0

type ClaimPairingJSONRequestBody = ClaimPairingRequest

ClaimPairingJSONRequestBody defines body for ClaimPairing for application/json ContentType.

type ClaimPairingRequest added in v0.4.0

type ClaimPairingRequest struct {
	// Code The full pairing code as received (not decoded).
	Code string `json:"code"`
}

ClaimPairingRequest defines model for ClaimPairingRequest.

type ClaimPairingRequestObject added in v0.4.0

type ClaimPairingRequestObject struct {
	Body *ClaimPairingJSONRequestBody
}

type ClaimPairingResponse added in v0.4.0

type ClaimPairingResponse struct {
	// ApiKey Plaintext device API key — one time only.
	ApiKey              string `json:"api_key"`
	AppBiometricEnabled bool   `json:"app_biometric_enabled"`
	AppSettingsLocked   bool   `json:"app_settings_locked"`
	IntervalSeconds     int    `json:"interval_seconds"`
	ServerUrl           string `json:"server_url"`
}

ClaimPairingResponse defines model for ClaimPairingResponse.

type ClaimPairingResponseObject added in v0.4.0

type ClaimPairingResponseObject interface {
	VisitClaimPairingResponse(w http.ResponseWriter) error
}

type ClaimPairingTestClientResponse added in v0.4.0

type ClaimPairingTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClaimPairingResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseClaimPairingTestClientResponse added in v0.4.0

func ParseClaimPairingTestClientResponse(rsp *http.Response) (*ClaimPairingTestClientResponse, error)

ParseClaimPairingTestClientResponse parses an HTTP response from a ClaimPairingWithResponse call

func (ClaimPairingTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ClaimPairingTestClientResponse) StatusCode added in v0.4.0

func (r ClaimPairingTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client added in v0.4.0

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 added in v0.4.0

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddAddress added in v0.4.0

func (c *Client) AddAddress(ctx context.Context, deviceId ID, body AddAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddAddressWithBody added in v0.4.0

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

func (*Client) ChangePassword added in v0.4.0

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

func (*Client) ChangePasswordWithBody added in v0.4.0

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

func (*Client) ClaimPairing added in v0.4.0

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

func (*Client) ClaimPairingWithBody added in v0.4.0

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

func (*Client) CreateDevice added in v0.4.0

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

func (*Client) CreateDevicePairing added in v0.4.0

func (c *Client) CreateDevicePairing(ctx context.Context, id ID, body CreateDevicePairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDevicePairingWithBody added in v0.4.0

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

func (*Client) CreateDeviceWithBody added in v0.4.0

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

func (*Client) CreateNetworkPolicy added in v0.4.0

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

func (*Client) CreateNetworkPolicyWithBody added in v0.4.0

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

func (*Client) CreateUser added in v0.4.0

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

func (*Client) CreateUserWithBody added in v0.4.0

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

func (*Client) DeleteDevice added in v0.4.0

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

func (*Client) DeleteDeviceAPIKey added in v0.4.0

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

func (*Client) DeleteDevicePairing added in v0.4.0

func (c *Client) DeleteDevicePairing(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteNetworkPolicy added in v0.4.0

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

func (*Client) DeleteUser added in v0.4.0

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

func (*Client) DemoteUser added in v0.4.0

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

func (*Client) DeviceHeartbeat added in v0.4.0

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

func (*Client) DeviceHeartbeatByAPIKey added in v0.4.0

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

func (*Client) DisableAddress added in v0.4.0

func (c *Client) DisableAddress(ctx context.Context, deviceId ID, addressId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DisableDevice added in v0.4.0

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

func (*Client) DisableDeviceAddressLeaseRule added in v0.4.0

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

func (*Client) DisableMaxActiveAddressesRule added in v0.4.0

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

func (*Client) EnableDevice added in v0.4.0

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

func (*Client) GetAccessLog added in v0.4.0

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

func (*Client) GetAccessLogByCountry added in v0.4.0

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

func (*Client) GetAddressHistory added in v0.4.0

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

func (*Client) GetCurrentUser added in v0.4.0

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

func (*Client) GetDashboardAttributionSplit added in v0.4.0

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

func (*Client) GetDashboardPosture added in v0.4.0

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

func (*Client) GetDashboardServices added in v0.4.0

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

func (*Client) GetDashboardStats added in v0.4.0

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

func (*Client) GetDashboardTopDeniedIps added in v0.4.0

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

func (*Client) GetDashboardTraffic added in v0.4.0

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

func (*Client) GetDeviceAddressLeaseRule added in v0.4.0

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

func (*Client) GetDeviceAddresses added in v0.4.0

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

func (*Client) GetDevicePairing added in v0.4.0

func (c *Client) GetDevicePairing(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDevices added in v0.4.0

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

func (*Client) GetMaxActiveAddressesRule added in v0.4.0

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

func (*Client) GetNetworkPolicy added in v0.4.0

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

func (*Client) GetPolicyUserMap added in v0.4.0

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

func (*Client) GetUserAccessDetail added in v0.4.0

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

func (*Client) IgnoreSuggestion added in v0.4.0

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

func (*Client) IgnoreSuggestionWithBody added in v0.4.0

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

func (*Client) ListDevicePairings added in v0.4.0

func (c *Client) ListDevicePairings(ctx context.Context, id ID, params *ListDevicePairingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListHostGroups added in v0.4.0

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

func (*Client) ListHostSuggestions added in v0.4.0

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

func (*Client) ListHosts added in v0.4.0

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

func (*Client) ListNetworkPolicies added in v0.4.0

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

func (*Client) ListUsers added in v0.4.0

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

func (*Client) ListUsersWithAccess added in v0.4.0

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

func (*Client) Login added in v0.4.0

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

func (*Client) LoginWithBody added in v0.4.0

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

func (*Client) Logout added in v0.4.0

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

func (*Client) PromoteUser added in v0.4.0

func (c *Client) PromoteUser(ctx context.Context, userId ID, body PromoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PromoteUserWithBody added in v0.4.0

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

func (*Client) PutDeviceAddressLeaseRule added in v0.4.0

func (c *Client) PutDeviceAddressLeaseRule(ctx context.Context, deviceId ID, body PutDeviceAddressLeaseRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutDeviceAddressLeaseRuleWithBody added in v0.4.0

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

func (*Client) PutMaxActiveAddressesRule added in v0.4.0

func (c *Client) PutMaxActiveAddressesRule(ctx context.Context, deviceId ID, body PutMaxActiveAddressesRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutMaxActiveAddressesRuleWithBody added in v0.4.0

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

func (*Client) ReconcileHostGroups added in v0.4.0

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

func (*Client) ReconcileHostGroupsWithBody added in v0.4.0

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

func (*Client) ReconcileHosts added in v0.4.0

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

func (*Client) ReconcileHostsWithBody added in v0.4.0

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

func (*Client) RegenerateDeviceAPIKey added in v0.4.0

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

func (*Client) SetUserAccess added in v0.4.0

func (c *Client) SetUserAccess(ctx context.Context, userId ID, body SetUserAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetUserAccessWithBody added in v0.4.0

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

func (*Client) SimulatePolicyAccess added in v0.4.0

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

func (*Client) UnignoreSuggestion added in v0.4.0

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

func (*Client) UpdateDevice added in v0.4.0

func (c *Client) UpdateDevice(ctx context.Context, deviceId ID, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateDeviceWithBody added in v0.4.0

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

func (*Client) UpdateMe added in v0.4.0

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

func (*Client) UpdateMeWithBody added in v0.4.0

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

func (*Client) UpdateNetworkPolicy added in v0.4.0

func (c *Client) UpdateNetworkPolicy(ctx context.Context, policyId ID, body UpdateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNetworkPolicyAccess added in v0.4.0

func (c *Client) UpdateNetworkPolicyAccess(ctx context.Context, policyId ID, body UpdateNetworkPolicyAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateNetworkPolicyAccessWithBody added in v0.4.0

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

func (*Client) UpdateNetworkPolicyWithBody added in v0.4.0

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

type ClientInterface added in v0.4.0

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

	// GetAccessLogByCountry request
	GetAccessLogByCountry(ctx context.Context, params *GetAccessLogByCountryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAddressHistory request
	GetAddressHistory(ctx context.Context, params *GetAddressHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListHostGroups request
	ListHostGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ReconcileHostGroups(ctx context.Context, body ReconcileHostGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListHostSuggestions request
	ListHostSuggestions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	IgnoreSuggestion(ctx context.Context, body IgnoreSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// ListHosts request
	ListHosts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ReconcileHosts(ctx context.Context, body ReconcileHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListNetworkPolicies request
	ListNetworkPolicies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateNetworkPolicy(ctx context.Context, body CreateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteNetworkPolicy request
	DeleteNetworkPolicy(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNetworkPolicy request
	GetNetworkPolicy(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateNetworkPolicy(ctx context.Context, policyId ID, body UpdateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateNetworkPolicyAccess(ctx context.Context, policyId ID, body UpdateNetworkPolicyAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsersWithAccess request
	ListUsersWithAccess(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserAccessDetail request
	GetUserAccessDetail(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SetUserAccess(ctx context.Context, userId ID, body SetUserAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPolicyUserMap request
	GetPolicyUserMap(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SimulatePolicyAccess request
	SimulatePolicyAccess(ctx context.Context, params *SimulatePolicyAccessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers request
	ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser request
	DeleteUser(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DemoteUser request
	DemoteUser(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PromoteUser(ctx context.Context, userId ID, body PromoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout request
	Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentUser request
	GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardAttributionSplit request
	GetDashboardAttributionSplit(ctx context.Context, params *GetDashboardAttributionSplitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardPosture request
	GetDashboardPosture(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardServices request
	GetDashboardServices(ctx context.Context, params *GetDashboardServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardStats request
	GetDashboardStats(ctx context.Context, params *GetDashboardStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardTopDeniedIps request
	GetDashboardTopDeniedIps(ctx context.Context, params *GetDashboardTopDeniedIpsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDashboardTraffic request
	GetDashboardTraffic(ctx context.Context, params *GetDashboardTrafficParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ClaimPairing(ctx context.Context, body ClaimPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDevices request
	GetDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateDevice(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDevice request
	DeleteDevice(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateDevice(ctx context.Context, deviceId ID, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDeviceAddresses request
	GetDeviceAddresses(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AddAddress(ctx context.Context, deviceId ID, body AddAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableAddress request
	DisableAddress(ctx context.Context, deviceId ID, addressId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDeviceAPIKey request
	DeleteDeviceAPIKey(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegenerateDeviceAPIKey request
	RegenerateDeviceAPIKey(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableDevice request
	DisableDevice(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnableDevice request
	EnableDevice(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeviceHeartbeat request
	DeviceHeartbeat(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableDeviceAddressLeaseRule request
	DisableDeviceAddressLeaseRule(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDeviceAddressLeaseRule request
	GetDeviceAddressLeaseRule(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PutDeviceAddressLeaseRule(ctx context.Context, deviceId ID, body PutDeviceAddressLeaseRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DisableMaxActiveAddressesRule request
	DisableMaxActiveAddressesRule(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMaxActiveAddressesRule request
	GetMaxActiveAddressesRule(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PutMaxActiveAddressesRule(ctx context.Context, deviceId ID, body PutMaxActiveAddressesRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDevicePairings request
	ListDevicePairings(ctx context.Context, id ID, params *ListDevicePairingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateDevicePairing(ctx context.Context, id ID, body CreateDevicePairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDevicePairing request
	DeleteDevicePairing(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDevicePairing request
	GetDevicePairing(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeviceHeartbeatByAPIKey request
	DeviceHeartbeatByAPIKey(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateMe(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption added in v0.4.0

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL added in v0.4.0

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient added in v0.4.0

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 added in v0.4.0

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 added in v0.4.0

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses added in v0.4.0

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AddAddressWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) AddAddressWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAddressTestClientResponse, error)

AddAddressWithBodyWithResponse request with arbitrary body returning *AddAddressTestClientResponse

func (*ClientWithResponses) AddAddressWithResponse added in v0.4.0

func (c *ClientWithResponses) AddAddressWithResponse(ctx context.Context, deviceId ID, body AddAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*AddAddressTestClientResponse, error)

func (*ClientWithResponses) ChangePasswordWithBodyWithResponse added in v0.4.0

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

ChangePasswordWithBodyWithResponse request with arbitrary body returning *ChangePasswordTestClientResponse

func (*ClientWithResponses) ChangePasswordWithResponse added in v0.4.0

func (*ClientWithResponses) ClaimPairingWithBodyWithResponse added in v0.4.0

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

ClaimPairingWithBodyWithResponse request with arbitrary body returning *ClaimPairingTestClientResponse

func (*ClientWithResponses) ClaimPairingWithResponse added in v0.4.0

func (*ClientWithResponses) CreateDevicePairingWithBodyWithResponse added in v0.4.0

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

CreateDevicePairingWithBodyWithResponse request with arbitrary body returning *CreateDevicePairingTestClientResponse

func (*ClientWithResponses) CreateDevicePairingWithResponse added in v0.4.0

func (c *ClientWithResponses) CreateDevicePairingWithResponse(ctx context.Context, id ID, body CreateDevicePairingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDevicePairingTestClientResponse, error)

func (*ClientWithResponses) CreateDeviceWithBodyWithResponse added in v0.4.0

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

CreateDeviceWithBodyWithResponse request with arbitrary body returning *CreateDeviceTestClientResponse

func (*ClientWithResponses) CreateDeviceWithResponse added in v0.4.0

func (*ClientWithResponses) CreateNetworkPolicyWithBodyWithResponse added in v0.4.0

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

CreateNetworkPolicyWithBodyWithResponse request with arbitrary body returning *CreateNetworkPolicyTestClientResponse

func (*ClientWithResponses) CreateNetworkPolicyWithResponse added in v0.4.0

func (*ClientWithResponses) CreateUserWithBodyWithResponse added in v0.4.0

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

CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserTestClientResponse

func (*ClientWithResponses) CreateUserWithResponse added in v0.4.0

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

func (*ClientWithResponses) DeleteDeviceAPIKeyWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteDeviceAPIKeyWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeleteDeviceAPIKeyTestClientResponse, error)

DeleteDeviceAPIKeyWithResponse request returning *DeleteDeviceAPIKeyTestClientResponse

func (*ClientWithResponses) DeleteDevicePairingWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteDevicePairingWithResponse(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*DeleteDevicePairingTestClientResponse, error)

DeleteDevicePairingWithResponse request returning *DeleteDevicePairingTestClientResponse

func (*ClientWithResponses) DeleteDeviceWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeleteDeviceTestClientResponse, error)

DeleteDeviceWithResponse request returning *DeleteDeviceTestClientResponse

func (*ClientWithResponses) DeleteNetworkPolicyWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteNetworkPolicyWithResponse(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*DeleteNetworkPolicyTestClientResponse, error)

DeleteNetworkPolicyWithResponse request returning *DeleteNetworkPolicyTestClientResponse

func (*ClientWithResponses) DeleteUserWithResponse added in v0.4.0

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*DeleteUserTestClientResponse, error)

DeleteUserWithResponse request returning *DeleteUserTestClientResponse

func (*ClientWithResponses) DemoteUserWithResponse added in v0.4.0

func (c *ClientWithResponses) DemoteUserWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*DemoteUserTestClientResponse, error)

DemoteUserWithResponse request returning *DemoteUserTestClientResponse

func (*ClientWithResponses) DeviceHeartbeatByAPIKeyWithResponse added in v0.4.0

func (c *ClientWithResponses) DeviceHeartbeatByAPIKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeviceHeartbeatByAPIKeyTestClientResponse, error)

DeviceHeartbeatByAPIKeyWithResponse request returning *DeviceHeartbeatByAPIKeyTestClientResponse

func (*ClientWithResponses) DeviceHeartbeatWithResponse added in v0.4.0

func (c *ClientWithResponses) DeviceHeartbeatWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeviceHeartbeatTestClientResponse, error)

DeviceHeartbeatWithResponse request returning *DeviceHeartbeatTestClientResponse

func (*ClientWithResponses) DisableAddressWithResponse added in v0.4.0

func (c *ClientWithResponses) DisableAddressWithResponse(ctx context.Context, deviceId ID, addressId ID, reqEditors ...RequestEditorFn) (*DisableAddressTestClientResponse, error)

DisableAddressWithResponse request returning *DisableAddressTestClientResponse

func (*ClientWithResponses) DisableDeviceAddressLeaseRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) DisableDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableDeviceAddressLeaseRuleTestClientResponse, error)

DisableDeviceAddressLeaseRuleWithResponse request returning *DisableDeviceAddressLeaseRuleTestClientResponse

func (*ClientWithResponses) DisableDeviceWithResponse added in v0.4.0

func (c *ClientWithResponses) DisableDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableDeviceTestClientResponse, error)

DisableDeviceWithResponse request returning *DisableDeviceTestClientResponse

func (*ClientWithResponses) DisableMaxActiveAddressesRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) DisableMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableMaxActiveAddressesRuleTestClientResponse, error)

DisableMaxActiveAddressesRuleWithResponse request returning *DisableMaxActiveAddressesRuleTestClientResponse

func (*ClientWithResponses) EnableDeviceWithResponse added in v0.4.0

func (c *ClientWithResponses) EnableDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*EnableDeviceTestClientResponse, error)

EnableDeviceWithResponse request returning *EnableDeviceTestClientResponse

func (*ClientWithResponses) GetAccessLogByCountryWithResponse added in v0.4.0

func (c *ClientWithResponses) GetAccessLogByCountryWithResponse(ctx context.Context, params *GetAccessLogByCountryParams, reqEditors ...RequestEditorFn) (*GetAccessLogByCountryTestClientResponse, error)

GetAccessLogByCountryWithResponse request returning *GetAccessLogByCountryTestClientResponse

func (*ClientWithResponses) GetAccessLogWithResponse added in v0.4.0

func (c *ClientWithResponses) GetAccessLogWithResponse(ctx context.Context, params *GetAccessLogParams, reqEditors ...RequestEditorFn) (*GetAccessLogTestClientResponse, error)

GetAccessLogWithResponse request returning *GetAccessLogTestClientResponse

func (*ClientWithResponses) GetAddressHistoryWithResponse added in v0.4.0

func (c *ClientWithResponses) GetAddressHistoryWithResponse(ctx context.Context, params *GetAddressHistoryParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryTestClientResponse, error)

GetAddressHistoryWithResponse request returning *GetAddressHistoryTestClientResponse

func (*ClientWithResponses) GetCurrentUserWithResponse added in v0.4.0

func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserTestClientResponse, error)

GetCurrentUserWithResponse request returning *GetCurrentUserTestClientResponse

func (*ClientWithResponses) GetDashboardAttributionSplitWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardAttributionSplitWithResponse(ctx context.Context, params *GetDashboardAttributionSplitParams, reqEditors ...RequestEditorFn) (*GetDashboardAttributionSplitTestClientResponse, error)

GetDashboardAttributionSplitWithResponse request returning *GetDashboardAttributionSplitTestClientResponse

func (*ClientWithResponses) GetDashboardPostureWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardPostureWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDashboardPostureTestClientResponse, error)

GetDashboardPostureWithResponse request returning *GetDashboardPostureTestClientResponse

func (*ClientWithResponses) GetDashboardServicesWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardServicesWithResponse(ctx context.Context, params *GetDashboardServicesParams, reqEditors ...RequestEditorFn) (*GetDashboardServicesTestClientResponse, error)

GetDashboardServicesWithResponse request returning *GetDashboardServicesTestClientResponse

func (*ClientWithResponses) GetDashboardStatsWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardStatsWithResponse(ctx context.Context, params *GetDashboardStatsParams, reqEditors ...RequestEditorFn) (*GetDashboardStatsTestClientResponse, error)

GetDashboardStatsWithResponse request returning *GetDashboardStatsTestClientResponse

func (*ClientWithResponses) GetDashboardTopDeniedIpsWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardTopDeniedIpsWithResponse(ctx context.Context, params *GetDashboardTopDeniedIpsParams, reqEditors ...RequestEditorFn) (*GetDashboardTopDeniedIpsTestClientResponse, error)

GetDashboardTopDeniedIpsWithResponse request returning *GetDashboardTopDeniedIpsTestClientResponse

func (*ClientWithResponses) GetDashboardTrafficWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDashboardTrafficWithResponse(ctx context.Context, params *GetDashboardTrafficParams, reqEditors ...RequestEditorFn) (*GetDashboardTrafficTestClientResponse, error)

GetDashboardTrafficWithResponse request returning *GetDashboardTrafficTestClientResponse

func (*ClientWithResponses) GetDeviceAddressLeaseRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetDeviceAddressLeaseRuleTestClientResponse, error)

GetDeviceAddressLeaseRuleWithResponse request returning *GetDeviceAddressLeaseRuleTestClientResponse

func (*ClientWithResponses) GetDeviceAddressesWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDeviceAddressesWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetDeviceAddressesTestClientResponse, error)

GetDeviceAddressesWithResponse request returning *GetDeviceAddressesTestClientResponse

func (*ClientWithResponses) GetDevicePairingWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDevicePairingWithResponse(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*GetDevicePairingTestClientResponse, error)

GetDevicePairingWithResponse request returning *GetDevicePairingTestClientResponse

func (*ClientWithResponses) GetDevicesWithResponse added in v0.4.0

func (c *ClientWithResponses) GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesTestClientResponse, error)

GetDevicesWithResponse request returning *GetDevicesTestClientResponse

func (*ClientWithResponses) GetMaxActiveAddressesRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) GetMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetMaxActiveAddressesRuleTestClientResponse, error)

GetMaxActiveAddressesRuleWithResponse request returning *GetMaxActiveAddressesRuleTestClientResponse

func (*ClientWithResponses) GetNetworkPolicyWithResponse added in v0.4.0

func (c *ClientWithResponses) GetNetworkPolicyWithResponse(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*GetNetworkPolicyTestClientResponse, error)

GetNetworkPolicyWithResponse request returning *GetNetworkPolicyTestClientResponse

func (*ClientWithResponses) GetPolicyUserMapWithResponse added in v0.4.0

func (c *ClientWithResponses) GetPolicyUserMapWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPolicyUserMapTestClientResponse, error)

GetPolicyUserMapWithResponse request returning *GetPolicyUserMapTestClientResponse

func (*ClientWithResponses) GetUserAccessDetailWithResponse added in v0.4.0

func (c *ClientWithResponses) GetUserAccessDetailWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*GetUserAccessDetailTestClientResponse, error)

GetUserAccessDetailWithResponse request returning *GetUserAccessDetailTestClientResponse

func (*ClientWithResponses) IgnoreSuggestionWithBodyWithResponse added in v0.4.0

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

IgnoreSuggestionWithBodyWithResponse request with arbitrary body returning *IgnoreSuggestionTestClientResponse

func (*ClientWithResponses) IgnoreSuggestionWithResponse added in v0.4.0

func (*ClientWithResponses) ListDevicePairingsWithResponse added in v0.4.0

func (c *ClientWithResponses) ListDevicePairingsWithResponse(ctx context.Context, id ID, params *ListDevicePairingsParams, reqEditors ...RequestEditorFn) (*ListDevicePairingsTestClientResponse, error)

ListDevicePairingsWithResponse request returning *ListDevicePairingsTestClientResponse

func (*ClientWithResponses) ListHostGroupsWithResponse added in v0.4.0

func (c *ClientWithResponses) ListHostGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostGroupsTestClientResponse, error)

ListHostGroupsWithResponse request returning *ListHostGroupsTestClientResponse

func (*ClientWithResponses) ListHostSuggestionsWithResponse added in v0.4.0

func (c *ClientWithResponses) ListHostSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostSuggestionsTestClientResponse, error)

ListHostSuggestionsWithResponse request returning *ListHostSuggestionsTestClientResponse

func (*ClientWithResponses) ListHostsWithResponse added in v0.4.0

func (c *ClientWithResponses) ListHostsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostsTestClientResponse, error)

ListHostsWithResponse request returning *ListHostsTestClientResponse

func (*ClientWithResponses) ListNetworkPoliciesWithResponse added in v0.4.0

func (c *ClientWithResponses) ListNetworkPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNetworkPoliciesTestClientResponse, error)

ListNetworkPoliciesWithResponse request returning *ListNetworkPoliciesTestClientResponse

func (*ClientWithResponses) ListUsersWithAccessWithResponse added in v0.4.0

func (c *ClientWithResponses) ListUsersWithAccessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersWithAccessTestClientResponse, error)

ListUsersWithAccessWithResponse request returning *ListUsersWithAccessTestClientResponse

func (*ClientWithResponses) ListUsersWithResponse added in v0.4.0

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersTestClientResponse, error)

ListUsersWithResponse request returning *ListUsersTestClientResponse

func (*ClientWithResponses) LoginWithBodyWithResponse added in v0.4.0

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

LoginWithBodyWithResponse request with arbitrary body returning *LoginTestClientResponse

func (*ClientWithResponses) LoginWithResponse added in v0.4.0

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

func (*ClientWithResponses) LogoutWithResponse added in v0.4.0

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutTestClientResponse, error)

LogoutWithResponse request returning *LogoutTestClientResponse

func (*ClientWithResponses) PromoteUserWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) PromoteUserWithBodyWithResponse(ctx context.Context, userId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteUserTestClientResponse, error)

PromoteUserWithBodyWithResponse request with arbitrary body returning *PromoteUserTestClientResponse

func (*ClientWithResponses) PromoteUserWithResponse added in v0.4.0

func (c *ClientWithResponses) PromoteUserWithResponse(ctx context.Context, userId ID, body PromoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteUserTestClientResponse, error)

func (*ClientWithResponses) PutDeviceAddressLeaseRuleWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) PutDeviceAddressLeaseRuleWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeviceAddressLeaseRuleTestClientResponse, error)

PutDeviceAddressLeaseRuleWithBodyWithResponse request with arbitrary body returning *PutDeviceAddressLeaseRuleTestClientResponse

func (*ClientWithResponses) PutDeviceAddressLeaseRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) PutDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, body PutDeviceAddressLeaseRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeviceAddressLeaseRuleTestClientResponse, error)

func (*ClientWithResponses) PutMaxActiveAddressesRuleWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) PutMaxActiveAddressesRuleWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutMaxActiveAddressesRuleTestClientResponse, error)

PutMaxActiveAddressesRuleWithBodyWithResponse request with arbitrary body returning *PutMaxActiveAddressesRuleTestClientResponse

func (*ClientWithResponses) PutMaxActiveAddressesRuleWithResponse added in v0.4.0

func (c *ClientWithResponses) PutMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, body PutMaxActiveAddressesRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutMaxActiveAddressesRuleTestClientResponse, error)

func (*ClientWithResponses) ReconcileHostGroupsWithBodyWithResponse added in v0.4.0

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

ReconcileHostGroupsWithBodyWithResponse request with arbitrary body returning *ReconcileHostGroupsTestClientResponse

func (*ClientWithResponses) ReconcileHostGroupsWithResponse added in v0.4.0

func (*ClientWithResponses) ReconcileHostsWithBodyWithResponse added in v0.4.0

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

ReconcileHostsWithBodyWithResponse request with arbitrary body returning *ReconcileHostsTestClientResponse

func (*ClientWithResponses) ReconcileHostsWithResponse added in v0.4.0

func (*ClientWithResponses) RegenerateDeviceAPIKeyWithResponse added in v0.4.0

func (c *ClientWithResponses) RegenerateDeviceAPIKeyWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*RegenerateDeviceAPIKeyTestClientResponse, error)

RegenerateDeviceAPIKeyWithResponse request returning *RegenerateDeviceAPIKeyTestClientResponse

func (*ClientWithResponses) SetUserAccessWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) SetUserAccessWithBodyWithResponse(ctx context.Context, userId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUserAccessTestClientResponse, error)

SetUserAccessWithBodyWithResponse request with arbitrary body returning *SetUserAccessTestClientResponse

func (*ClientWithResponses) SetUserAccessWithResponse added in v0.4.0

func (c *ClientWithResponses) SetUserAccessWithResponse(ctx context.Context, userId ID, body SetUserAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUserAccessTestClientResponse, error)

func (*ClientWithResponses) SimulatePolicyAccessWithResponse added in v0.4.0

func (c *ClientWithResponses) SimulatePolicyAccessWithResponse(ctx context.Context, params *SimulatePolicyAccessParams, reqEditors ...RequestEditorFn) (*SimulatePolicyAccessTestClientResponse, error)

SimulatePolicyAccessWithResponse request returning *SimulatePolicyAccessTestClientResponse

func (*ClientWithResponses) UnignoreSuggestionWithResponse added in v0.4.0

func (c *ClientWithResponses) UnignoreSuggestionWithResponse(ctx context.Context, fqdn string, reqEditors ...RequestEditorFn) (*UnignoreSuggestionTestClientResponse, error)

UnignoreSuggestionWithResponse request returning *UnignoreSuggestionTestClientResponse

func (*ClientWithResponses) UpdateDeviceWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeviceTestClientResponse, error)

UpdateDeviceWithBodyWithResponse request with arbitrary body returning *UpdateDeviceTestClientResponse

func (*ClientWithResponses) UpdateDeviceWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateDeviceWithResponse(ctx context.Context, deviceId ID, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeviceTestClientResponse, error)

func (*ClientWithResponses) UpdateMeWithBodyWithResponse added in v0.4.0

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

UpdateMeWithBodyWithResponse request with arbitrary body returning *UpdateMeTestClientResponse

func (*ClientWithResponses) UpdateMeWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeTestClientResponse, error)

func (*ClientWithResponses) UpdateNetworkPolicyAccessWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateNetworkPolicyAccessWithBodyWithResponse(ctx context.Context, policyId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyAccessTestClientResponse, error)

UpdateNetworkPolicyAccessWithBodyWithResponse request with arbitrary body returning *UpdateNetworkPolicyAccessTestClientResponse

func (*ClientWithResponses) UpdateNetworkPolicyAccessWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateNetworkPolicyAccessWithResponse(ctx context.Context, policyId ID, body UpdateNetworkPolicyAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyAccessTestClientResponse, error)

func (*ClientWithResponses) UpdateNetworkPolicyWithBodyWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateNetworkPolicyWithBodyWithResponse(ctx context.Context, policyId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyTestClientResponse, error)

UpdateNetworkPolicyWithBodyWithResponse request with arbitrary body returning *UpdateNetworkPolicyTestClientResponse

func (*ClientWithResponses) UpdateNetworkPolicyWithResponse added in v0.4.0

func (c *ClientWithResponses) UpdateNetworkPolicyWithResponse(ctx context.Context, policyId ID, body UpdateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyTestClientResponse, error)

type ClientWithResponsesInterface added in v0.4.0

type ClientWithResponsesInterface interface {
	// GetAccessLogWithResponse request
	GetAccessLogWithResponse(ctx context.Context, params *GetAccessLogParams, reqEditors ...RequestEditorFn) (*GetAccessLogTestClientResponse, error)

	// GetAccessLogByCountryWithResponse request
	GetAccessLogByCountryWithResponse(ctx context.Context, params *GetAccessLogByCountryParams, reqEditors ...RequestEditorFn) (*GetAccessLogByCountryTestClientResponse, error)

	// GetAddressHistoryWithResponse request
	GetAddressHistoryWithResponse(ctx context.Context, params *GetAddressHistoryParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryTestClientResponse, error)

	// ListHostGroupsWithResponse request
	ListHostGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostGroupsTestClientResponse, error)

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

	ReconcileHostGroupsWithResponse(ctx context.Context, body ReconcileHostGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconcileHostGroupsTestClientResponse, error)

	// ListHostSuggestionsWithResponse request
	ListHostSuggestionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostSuggestionsTestClientResponse, error)

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

	IgnoreSuggestionWithResponse(ctx context.Context, body IgnoreSuggestionJSONRequestBody, reqEditors ...RequestEditorFn) (*IgnoreSuggestionTestClientResponse, error)

	// UnignoreSuggestionWithResponse request
	UnignoreSuggestionWithResponse(ctx context.Context, fqdn string, reqEditors ...RequestEditorFn) (*UnignoreSuggestionTestClientResponse, error)

	// ListHostsWithResponse request
	ListHostsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListHostsTestClientResponse, error)

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

	ReconcileHostsWithResponse(ctx context.Context, body ReconcileHostsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconcileHostsTestClientResponse, error)

	// ListNetworkPoliciesWithResponse request
	ListNetworkPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNetworkPoliciesTestClientResponse, error)

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

	CreateNetworkPolicyWithResponse(ctx context.Context, body CreateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetworkPolicyTestClientResponse, error)

	// DeleteNetworkPolicyWithResponse request
	DeleteNetworkPolicyWithResponse(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*DeleteNetworkPolicyTestClientResponse, error)

	// GetNetworkPolicyWithResponse request
	GetNetworkPolicyWithResponse(ctx context.Context, policyId ID, reqEditors ...RequestEditorFn) (*GetNetworkPolicyTestClientResponse, error)

	// UpdateNetworkPolicyWithBodyWithResponse request with any body
	UpdateNetworkPolicyWithBodyWithResponse(ctx context.Context, policyId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyTestClientResponse, error)

	UpdateNetworkPolicyWithResponse(ctx context.Context, policyId ID, body UpdateNetworkPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyTestClientResponse, error)

	// UpdateNetworkPolicyAccessWithBodyWithResponse request with any body
	UpdateNetworkPolicyAccessWithBodyWithResponse(ctx context.Context, policyId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyAccessTestClientResponse, error)

	UpdateNetworkPolicyAccessWithResponse(ctx context.Context, policyId ID, body UpdateNetworkPolicyAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkPolicyAccessTestClientResponse, error)

	// ListUsersWithAccessWithResponse request
	ListUsersWithAccessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersWithAccessTestClientResponse, error)

	// GetUserAccessDetailWithResponse request
	GetUserAccessDetailWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*GetUserAccessDetailTestClientResponse, error)

	// SetUserAccessWithBodyWithResponse request with any body
	SetUserAccessWithBodyWithResponse(ctx context.Context, userId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUserAccessTestClientResponse, error)

	SetUserAccessWithResponse(ctx context.Context, userId ID, body SetUserAccessJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUserAccessTestClientResponse, error)

	// GetPolicyUserMapWithResponse request
	GetPolicyUserMapWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPolicyUserMapTestClientResponse, error)

	// SimulatePolicyAccessWithResponse request
	SimulatePolicyAccessWithResponse(ctx context.Context, params *SimulatePolicyAccessParams, reqEditors ...RequestEditorFn) (*SimulatePolicyAccessTestClientResponse, error)

	// ListUsersWithResponse request
	ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersTestClientResponse, error)

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

	CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserTestClientResponse, error)

	// DeleteUserWithResponse request
	DeleteUserWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*DeleteUserTestClientResponse, error)

	// DemoteUserWithResponse request
	DemoteUserWithResponse(ctx context.Context, userId ID, reqEditors ...RequestEditorFn) (*DemoteUserTestClientResponse, error)

	// PromoteUserWithBodyWithResponse request with any body
	PromoteUserWithBodyWithResponse(ctx context.Context, userId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteUserTestClientResponse, error)

	PromoteUserWithResponse(ctx context.Context, userId ID, body PromoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteUserTestClientResponse, error)

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

	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginTestClientResponse, error)

	// LogoutWithResponse request
	LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutTestClientResponse, error)

	// GetCurrentUserWithResponse request
	GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserTestClientResponse, error)

	// GetDashboardAttributionSplitWithResponse request
	GetDashboardAttributionSplitWithResponse(ctx context.Context, params *GetDashboardAttributionSplitParams, reqEditors ...RequestEditorFn) (*GetDashboardAttributionSplitTestClientResponse, error)

	// GetDashboardPostureWithResponse request
	GetDashboardPostureWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDashboardPostureTestClientResponse, error)

	// GetDashboardServicesWithResponse request
	GetDashboardServicesWithResponse(ctx context.Context, params *GetDashboardServicesParams, reqEditors ...RequestEditorFn) (*GetDashboardServicesTestClientResponse, error)

	// GetDashboardStatsWithResponse request
	GetDashboardStatsWithResponse(ctx context.Context, params *GetDashboardStatsParams, reqEditors ...RequestEditorFn) (*GetDashboardStatsTestClientResponse, error)

	// GetDashboardTopDeniedIpsWithResponse request
	GetDashboardTopDeniedIpsWithResponse(ctx context.Context, params *GetDashboardTopDeniedIpsParams, reqEditors ...RequestEditorFn) (*GetDashboardTopDeniedIpsTestClientResponse, error)

	// GetDashboardTrafficWithResponse request
	GetDashboardTrafficWithResponse(ctx context.Context, params *GetDashboardTrafficParams, reqEditors ...RequestEditorFn) (*GetDashboardTrafficTestClientResponse, error)

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

	ClaimPairingWithResponse(ctx context.Context, body ClaimPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimPairingTestClientResponse, error)

	// GetDevicesWithResponse request
	GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesTestClientResponse, error)

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

	CreateDeviceWithResponse(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeviceTestClientResponse, error)

	// DeleteDeviceWithResponse request
	DeleteDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeleteDeviceTestClientResponse, error)

	// UpdateDeviceWithBodyWithResponse request with any body
	UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeviceTestClientResponse, error)

	UpdateDeviceWithResponse(ctx context.Context, deviceId ID, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeviceTestClientResponse, error)

	// GetDeviceAddressesWithResponse request
	GetDeviceAddressesWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetDeviceAddressesTestClientResponse, error)

	// AddAddressWithBodyWithResponse request with any body
	AddAddressWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAddressTestClientResponse, error)

	AddAddressWithResponse(ctx context.Context, deviceId ID, body AddAddressJSONRequestBody, reqEditors ...RequestEditorFn) (*AddAddressTestClientResponse, error)

	// DisableAddressWithResponse request
	DisableAddressWithResponse(ctx context.Context, deviceId ID, addressId ID, reqEditors ...RequestEditorFn) (*DisableAddressTestClientResponse, error)

	// DeleteDeviceAPIKeyWithResponse request
	DeleteDeviceAPIKeyWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeleteDeviceAPIKeyTestClientResponse, error)

	// RegenerateDeviceAPIKeyWithResponse request
	RegenerateDeviceAPIKeyWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*RegenerateDeviceAPIKeyTestClientResponse, error)

	// DisableDeviceWithResponse request
	DisableDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableDeviceTestClientResponse, error)

	// EnableDeviceWithResponse request
	EnableDeviceWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*EnableDeviceTestClientResponse, error)

	// DeviceHeartbeatWithResponse request
	DeviceHeartbeatWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DeviceHeartbeatTestClientResponse, error)

	// DisableDeviceAddressLeaseRuleWithResponse request
	DisableDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableDeviceAddressLeaseRuleTestClientResponse, error)

	// GetDeviceAddressLeaseRuleWithResponse request
	GetDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetDeviceAddressLeaseRuleTestClientResponse, error)

	// PutDeviceAddressLeaseRuleWithBodyWithResponse request with any body
	PutDeviceAddressLeaseRuleWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDeviceAddressLeaseRuleTestClientResponse, error)

	PutDeviceAddressLeaseRuleWithResponse(ctx context.Context, deviceId ID, body PutDeviceAddressLeaseRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutDeviceAddressLeaseRuleTestClientResponse, error)

	// DisableMaxActiveAddressesRuleWithResponse request
	DisableMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*DisableMaxActiveAddressesRuleTestClientResponse, error)

	// GetMaxActiveAddressesRuleWithResponse request
	GetMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, reqEditors ...RequestEditorFn) (*GetMaxActiveAddressesRuleTestClientResponse, error)

	// PutMaxActiveAddressesRuleWithBodyWithResponse request with any body
	PutMaxActiveAddressesRuleWithBodyWithResponse(ctx context.Context, deviceId ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutMaxActiveAddressesRuleTestClientResponse, error)

	PutMaxActiveAddressesRuleWithResponse(ctx context.Context, deviceId ID, body PutMaxActiveAddressesRuleJSONRequestBody, reqEditors ...RequestEditorFn) (*PutMaxActiveAddressesRuleTestClientResponse, error)

	// ListDevicePairingsWithResponse request
	ListDevicePairingsWithResponse(ctx context.Context, id ID, params *ListDevicePairingsParams, reqEditors ...RequestEditorFn) (*ListDevicePairingsTestClientResponse, error)

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

	CreateDevicePairingWithResponse(ctx context.Context, id ID, body CreateDevicePairingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDevicePairingTestClientResponse, error)

	// DeleteDevicePairingWithResponse request
	DeleteDevicePairingWithResponse(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*DeleteDevicePairingTestClientResponse, error)

	// GetDevicePairingWithResponse request
	GetDevicePairingWithResponse(ctx context.Context, id ID, pairingId ID, reqEditors ...RequestEditorFn) (*GetDevicePairingTestClientResponse, error)

	// DeviceHeartbeatByAPIKeyWithResponse request
	DeviceHeartbeatByAPIKeyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeviceHeartbeatByAPIKeyTestClientResponse, error)

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

	UpdateMeWithResponse(ctx context.Context, body UpdateMeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMeTestClientResponse, error)

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

	ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordTestClientResponse, error)
}

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

type ContextKey

type ContextKey string

type CreateDevice201JSONResponse

type CreateDevice201JSONResponse CreateDeviceResult

func (CreateDevice201JSONResponse) VisitCreateDeviceResponse

func (response CreateDevice201JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error

type CreateDevice400JSONResponse

type CreateDevice400JSONResponse ErrorResponse

func (CreateDevice400JSONResponse) VisitCreateDeviceResponse

func (response CreateDevice400JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error

type CreateDevice409JSONResponse

type CreateDevice409JSONResponse ErrorResponse

func (CreateDevice409JSONResponse) VisitCreateDeviceResponse

func (response CreateDevice409JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error

type CreateDevice500JSONResponse

type CreateDevice500JSONResponse ErrorResponse

func (CreateDevice500JSONResponse) VisitCreateDeviceResponse

func (response CreateDevice500JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error

type CreateDeviceJSONRequestBody

type CreateDeviceJSONRequestBody = CreateDeviceRequest

CreateDeviceJSONRequestBody defines body for CreateDevice for application/json ContentType.

type CreateDevicePairing201JSONResponse added in v0.4.0

type CreateDevicePairing201JSONResponse DevicePairing

func (CreateDevicePairing201JSONResponse) VisitCreateDevicePairingResponse added in v0.4.0

func (response CreateDevicePairing201JSONResponse) VisitCreateDevicePairingResponse(w http.ResponseWriter) error

type CreateDevicePairing400JSONResponse added in v0.4.0

type CreateDevicePairing400JSONResponse ErrorResponse

func (CreateDevicePairing400JSONResponse) VisitCreateDevicePairingResponse added in v0.4.0

func (response CreateDevicePairing400JSONResponse) VisitCreateDevicePairingResponse(w http.ResponseWriter) error

type CreateDevicePairing401Response added in v0.4.0

type CreateDevicePairing401Response struct {
}

func (CreateDevicePairing401Response) VisitCreateDevicePairingResponse added in v0.4.0

func (response CreateDevicePairing401Response) VisitCreateDevicePairingResponse(w http.ResponseWriter) error

type CreateDevicePairing403Response added in v0.4.0

type CreateDevicePairing403Response struct {
}

func (CreateDevicePairing403Response) VisitCreateDevicePairingResponse added in v0.4.0

func (response CreateDevicePairing403Response) VisitCreateDevicePairingResponse(w http.ResponseWriter) error

type CreateDevicePairing500JSONResponse added in v0.4.0

type CreateDevicePairing500JSONResponse ErrorResponse

func (CreateDevicePairing500JSONResponse) VisitCreateDevicePairingResponse added in v0.4.0

func (response CreateDevicePairing500JSONResponse) VisitCreateDevicePairingResponse(w http.ResponseWriter) error

type CreateDevicePairingJSONRequestBody added in v0.4.0

type CreateDevicePairingJSONRequestBody = CreatePairingRequest

CreateDevicePairingJSONRequestBody defines body for CreateDevicePairing for application/json ContentType.

type CreateDevicePairingRequestObject added in v0.4.0

type CreateDevicePairingRequestObject struct {
	Id   ID `json:"id"`
	Body *CreateDevicePairingJSONRequestBody
}

type CreateDevicePairingResponseObject added in v0.4.0

type CreateDevicePairingResponseObject interface {
	VisitCreateDevicePairingResponse(w http.ResponseWriter) error
}

type CreateDevicePairingTestClientResponse added in v0.4.0

type CreateDevicePairingTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *DevicePairing
	JSON400      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateDevicePairingTestClientResponse added in v0.4.0

func ParseCreateDevicePairingTestClientResponse(rsp *http.Response) (*CreateDevicePairingTestClientResponse, error)

ParseCreateDevicePairingTestClientResponse parses an HTTP response from a CreateDevicePairingWithResponse call

func (CreateDevicePairingTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (CreateDevicePairingTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type CreateDeviceRequest

type CreateDeviceRequest struct {
	// Description Free-form note about the device.
	Description NullableString `json:"description"`

	// GenerateApiKey When true, an API key is minted in the same transaction and returned once in the response. Use for the "API key" credential choice; pairing-code devices are created without a key (the key is minted on claim).
	GenerateApiKey *bool `json:"generate_api_key,omitempty"`

	// Icon Tabler icon name override (e.g. "IconRouter").
	Icon NullableString `json:"icon"`

	// Name User-friendly name for the device
	Name string `json:"name"`

	// OwnerId Admin only. Owner to assign the device to. Ignored for regular users (always assigned to self). When omitted by an admin, defaults to the calling admin's own ID.
	OwnerId *int `json:"owner_id"`
}

CreateDeviceRequest defines model for CreateDeviceRequest.

type CreateDeviceRequestObject

type CreateDeviceRequestObject struct {
	Body *CreateDeviceJSONRequestBody
}

type CreateDeviceResponseObject

type CreateDeviceResponseObject interface {
	VisitCreateDeviceResponse(w http.ResponseWriter) error
}

type CreateDeviceResult added in v0.4.0

type CreateDeviceResult struct {
	// ApiKey The raw device API key. Present once, only when generate_api_key was set; cannot be retrieved again.
	ApiKey *string `json:"api_key"`
	Device Device  `json:"device"`
}

CreateDeviceResult defines model for CreateDeviceResult.

type CreateDeviceTestClientResponse added in v0.4.0

type CreateDeviceTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateDeviceResult
	JSON400      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateDeviceTestClientResponse added in v0.4.0

func ParseCreateDeviceTestClientResponse(rsp *http.Response) (*CreateDeviceTestClientResponse, error)

ParseCreateDeviceTestClientResponse parses an HTTP response from a CreateDeviceWithResponse call

func (CreateDeviceTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (CreateDeviceTestClientResponse) StatusCode added in v0.4.0

func (r CreateDeviceTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateNetworkPolicy201JSONResponse added in v0.4.0

type CreateNetworkPolicy201JSONResponse NetworkPolicyDetail

func (CreateNetworkPolicy201JSONResponse) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy201JSONResponse) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicy400JSONResponse added in v0.4.0

type CreateNetworkPolicy400JSONResponse ErrorResponse

func (CreateNetworkPolicy400JSONResponse) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy400JSONResponse) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicy401JSONResponse added in v0.4.0

type CreateNetworkPolicy401JSONResponse ErrorResponse

func (CreateNetworkPolicy401JSONResponse) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy401JSONResponse) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicy403Response added in v0.4.0

type CreateNetworkPolicy403Response struct {
}

func (CreateNetworkPolicy403Response) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy403Response) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicy409JSONResponse added in v0.4.0

type CreateNetworkPolicy409JSONResponse ErrorResponse

func (CreateNetworkPolicy409JSONResponse) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy409JSONResponse) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicy500JSONResponse added in v0.4.0

type CreateNetworkPolicy500JSONResponse ErrorResponse

func (CreateNetworkPolicy500JSONResponse) VisitCreateNetworkPolicyResponse added in v0.4.0

func (response CreateNetworkPolicy500JSONResponse) VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error

type CreateNetworkPolicyJSONRequestBody added in v0.4.0

type CreateNetworkPolicyJSONRequestBody = CreateNetworkPolicyRequest

CreateNetworkPolicyJSONRequestBody defines body for CreateNetworkPolicy for application/json ContentType.

type CreateNetworkPolicyRequest added in v0.4.0

type CreateNetworkPolicyRequest struct {
	// Cidr CIDR notation. Host bits are zeroed automatically by the server.
	Cidr        string  `json:"cidr"`
	Description *string `json:"description"`
	Name        string  `json:"name"`
}

CreateNetworkPolicyRequest defines model for CreateNetworkPolicyRequest.

type CreateNetworkPolicyRequestObject added in v0.4.0

type CreateNetworkPolicyRequestObject struct {
	Body *CreateNetworkPolicyJSONRequestBody
}

type CreateNetworkPolicyResponseObject added in v0.4.0

type CreateNetworkPolicyResponseObject interface {
	VisitCreateNetworkPolicyResponse(w http.ResponseWriter) error
}

type CreateNetworkPolicyTestClientResponse added in v0.4.0

type CreateNetworkPolicyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *NetworkPolicyDetail
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateNetworkPolicyTestClientResponse added in v0.4.0

func ParseCreateNetworkPolicyTestClientResponse(rsp *http.Response) (*CreateNetworkPolicyTestClientResponse, error)

ParseCreateNetworkPolicyTestClientResponse parses an HTTP response from a CreateNetworkPolicyWithResponse call

func (CreateNetworkPolicyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (CreateNetworkPolicyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type CreatePairingRequest added in v0.4.0

type CreatePairingRequest struct {
	AppBiometricEnabled *bool                              `json:"app_biometric_enabled,omitempty"`
	AppSettingsLocked   *bool                              `json:"app_settings_locked,omitempty"`
	ExpiresInHours      CreatePairingRequestExpiresInHours `json:"expires_in_hours"`
	HeartbeatServerUrl  string                             `json:"heartbeat_server_url"`
	IntervalSeconds     int                                `json:"interval_seconds"`
}

CreatePairingRequest defines model for CreatePairingRequest.

type CreatePairingRequestExpiresInHours added in v0.4.0

type CreatePairingRequestExpiresInHours int

CreatePairingRequestExpiresInHours defines model for CreatePairingRequest.ExpiresInHours.

Defines values for CreatePairingRequestExpiresInHours.

type CreateUser201JSONResponse

type CreateUser201JSONResponse User

func (CreateUser201JSONResponse) VisitCreateUserResponse

func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser400JSONResponse

type CreateUser400JSONResponse ErrorResponse

func (CreateUser400JSONResponse) VisitCreateUserResponse

func (response CreateUser400JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser401JSONResponse

type CreateUser401JSONResponse ErrorResponse

func (CreateUser401JSONResponse) VisitCreateUserResponse

func (response CreateUser401JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser403Response

type CreateUser403Response struct {
}

func (CreateUser403Response) VisitCreateUserResponse

func (response CreateUser403Response) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser409JSONResponse

type CreateUser409JSONResponse ErrorResponse

func (CreateUser409JSONResponse) VisitCreateUserResponse

func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser500JSONResponse

type CreateUser500JSONResponse ErrorResponse

func (CreateUser500JSONResponse) VisitCreateUserResponse

func (response CreateUser500JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = CreateUserRequest

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserRequest

type CreateUserRequest struct {
	// DisplayName User's public name. Unicode allowed.
	DisplayName DisplayName          `json:"display_name"`
	Email       *openapi_types.Email `json:"email"`

	// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
	Username Username `json:"username"`
}

CreateUserRequest defines model for CreateUserRequest.

type CreateUserRequestObject

type CreateUserRequestObject struct {
	Body *CreateUserJSONRequestBody
}

type CreateUserResponseObject

type CreateUserResponseObject interface {
	VisitCreateUserResponse(w http.ResponseWriter) error
}

type CreateUserTestClientResponse added in v0.4.0

type CreateUserTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *User
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateUserTestClientResponse added in v0.4.0

func ParseCreateUserTestClientResponse(rsp *http.Response) (*CreateUserTestClientResponse, error)

ParseCreateUserTestClientResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (CreateUserTestClientResponse) StatusCode added in v0.4.0

func (r CreateUserTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DashboardAttributionCount added in v0.4.0

type DashboardAttributionCount struct {
	AllowCount int64 `json:"allow_count"`
	DenyCount  int64 `json:"deny_count"`

	// EntityId Entity ID (network policy, user, or device, per the requested kind), or null when the entity has since been deleted (its traffic is still reported under the retained entity_name).
	EntityId   *ID    `json:"entity_id"`
	EntityName string `json:"entity_name"`
}

DashboardAttributionCount defines model for DashboardAttributionCount.

type DashboardAttributionSplitResponse added in v0.4.0

type DashboardAttributionSplitResponse struct {
	Entities []DashboardAttributionCount `json:"entities"`
}

DashboardAttributionSplitResponse defines model for DashboardAttributionSplitResponse.

type DashboardDenyByReason added in v0.4.0

type DashboardDenyByReason struct {
	// HostNotAllowed Denials of a known IP reaching a host it is not granted — a configured user blocked.
	HostNotAllowed int64 `json:"host_not_allowed"`

	// IpNotRegistered Denials from IPs with no registered device — unknown IPs (internet noise).
	IpNotRegistered int64 `json:"ip_not_registered"`

	// Other Denials with any other or unrecorded reason, so the split reconciles to deny_count.
	Other int64 `json:"other"`
}

DashboardDenyByReason Denied requests split by reason. The three buckets partition deny_count: ip_not_registered + host_not_allowed + other always equals deny_count.

type DashboardPosture added in v0.4.0

type DashboardPosture struct {
	// KnownHostCount Distinct known hosts across all user allowlists.
	KnownHostCount  int                             `json:"known_host_count"`
	NetworkPolicies DashboardPostureNetworkPolicies `json:"network_policies"`

	// PendingSuggestionCount Unknown hosts receiving real traffic that are neither registered nor ignored.
	PendingSuggestionCount int `json:"pending_suggestion_count"`

	// SharedIpCount IPs shared by two or more users (intersection-trimming precondition).
	SharedIpCount int `json:"shared_ip_count"`

	// Users User counts bucketed by their effective policy status.
	Users DashboardPostureUsers `json:"users"`
}

DashboardPosture Current-state posture counts for the dashboard landing page. Every field is a live database read of the same tables the policy cache is built from, so the counts reflect the current source-of-truth state.

type DashboardPostureNetworkPolicies added in v0.4.0

type DashboardPostureNetworkPolicies struct {
	// BypassHostCheck Enabled network policies that bypass the host check (reach every host).
	BypassHostCheck int `json:"bypass_host_check"`

	// Enabled Number of enabled network policies.
	Enabled int `json:"enabled"`
}

DashboardPostureNetworkPolicies defines model for DashboardPostureNetworkPolicies.

type DashboardPostureUsers added in v0.4.0

type DashboardPostureUsers struct {
	// Bypass Users who bypass the host allowlist and can reach every host.
	Bypass int `json:"bypass"`

	// LiveNoHostAccess Users with live IPs but no host grants — every request from their assigned IPs is denied. A true lockout signal.
	LiveNoHostAccess int `json:"live_no_host_access"`

	// LiveWithAccess Users with at least one enabled (live) IP and at least one host grant.
	LiveWithAccess int `json:"live_with_access"`

	// NoAccess Users with neither live IPs nor host grants.
	NoAccess int `json:"no_access"`

	// NoLiveIps Users with host grants but no live IPs (never ran the client).
	NoLiveIps int `json:"no_live_ips"`
}

DashboardPostureUsers User counts bucketed by their effective policy status.

type DashboardServiceCount

type DashboardServiceCount struct {
	AllowCount int64  `json:"allow_count"`
	DenyCount  int64  `json:"deny_count"`
	Host       string `json:"host"`
}

DashboardServiceCount defines model for DashboardServiceCount.

type DashboardServicesResponse

type DashboardServicesResponse struct {
	Services []DashboardServiceCount `json:"services"`
}

DashboardServicesResponse defines model for DashboardServicesResponse.

type DashboardStats

type DashboardStats struct {
	AllowCount int64 `json:"allow_count"`

	// AvgDurationUs Average request processing duration in microseconds over the time window
	AvgDurationUs int64 `json:"avg_duration_us"`

	// DenyByReason Denied requests split by reason. The three buckets partition deny_count: ip_not_registered + host_not_allowed + other always equals deny_count.
	DenyByReason  DashboardDenyByReason `json:"deny_by_reason"`
	DenyCount     int64                 `json:"deny_count"`
	TotalRequests int64                 `json:"total_requests"`
	UniqueIps     int64                 `json:"unique_ips"`
}

DashboardStats defines model for DashboardStats.

type DashboardTopDeniedIp

type DashboardTopDeniedIp struct {
	Count int64 `json:"count"`

	// Geo GeoIP metadata resolved on read for this IP. Null when the IP is unresolvable or GeoIP enrichment is disabled.
	Geo *GeoInfo `json:"geo"`

	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`
}

DashboardTopDeniedIp defines model for DashboardTopDeniedIp.

type DashboardTopDeniedIpsResponse

type DashboardTopDeniedIpsResponse struct {
	Ips []DashboardTopDeniedIp `json:"ips"`
}

DashboardTopDeniedIpsResponse defines model for DashboardTopDeniedIpsResponse.

type DashboardTrafficBucket

type DashboardTrafficBucket struct {
	AllowCount int64   `json:"allow_count"`
	DenyCount  int64   `json:"deny_count"`
	Timestamp  UTCTime `json:"timestamp"`
}

DashboardTrafficBucket defines model for DashboardTrafficBucket.

type DashboardTrafficResponse

type DashboardTrafficResponse struct {
	Buckets []DashboardTrafficBucket `json:"buckets"`
}

DashboardTrafficResponse defines model for DashboardTrafficResponse.

type DeleteDevice204Response

type DeleteDevice204Response struct {
}

func (DeleteDevice204Response) VisitDeleteDeviceResponse

func (response DeleteDevice204Response) VisitDeleteDeviceResponse(w http.ResponseWriter) error

type DeleteDevice404JSONResponse

type DeleteDevice404JSONResponse ErrorResponse

func (DeleteDevice404JSONResponse) VisitDeleteDeviceResponse

func (response DeleteDevice404JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error

type DeleteDevice500JSONResponse

type DeleteDevice500JSONResponse ErrorResponse

func (DeleteDevice500JSONResponse) VisitDeleteDeviceResponse

func (response DeleteDevice500JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error

type DeleteDeviceAPIKey204Response added in v0.3.0

type DeleteDeviceAPIKey204Response struct {
}

func (DeleteDeviceAPIKey204Response) VisitDeleteDeviceAPIKeyResponse added in v0.3.0

func (response DeleteDeviceAPIKey204Response) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error

type DeleteDeviceAPIKey404JSONResponse added in v0.3.0

type DeleteDeviceAPIKey404JSONResponse ErrorResponse

func (DeleteDeviceAPIKey404JSONResponse) VisitDeleteDeviceAPIKeyResponse added in v0.3.0

func (response DeleteDeviceAPIKey404JSONResponse) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error

type DeleteDeviceAPIKey500JSONResponse added in v0.3.0

type DeleteDeviceAPIKey500JSONResponse ErrorResponse

func (DeleteDeviceAPIKey500JSONResponse) VisitDeleteDeviceAPIKeyResponse added in v0.3.0

func (response DeleteDeviceAPIKey500JSONResponse) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error

type DeleteDeviceAPIKeyRequestObject added in v0.3.0

type DeleteDeviceAPIKeyRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DeleteDeviceAPIKeyResponseObject added in v0.3.0

type DeleteDeviceAPIKeyResponseObject interface {
	VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error
}

type DeleteDeviceAPIKeyTestClientResponse added in v0.4.0

type DeleteDeviceAPIKeyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteDeviceAPIKeyTestClientResponse added in v0.4.0

func ParseDeleteDeviceAPIKeyTestClientResponse(rsp *http.Response) (*DeleteDeviceAPIKeyTestClientResponse, error)

ParseDeleteDeviceAPIKeyTestClientResponse parses an HTTP response from a DeleteDeviceAPIKeyWithResponse call

func (DeleteDeviceAPIKeyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteDeviceAPIKeyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DeleteDevicePairing204Response added in v0.4.0

type DeleteDevicePairing204Response struct {
}

func (DeleteDevicePairing204Response) VisitDeleteDevicePairingResponse added in v0.4.0

func (response DeleteDevicePairing204Response) VisitDeleteDevicePairingResponse(w http.ResponseWriter) error

type DeleteDevicePairing401Response added in v0.4.0

type DeleteDevicePairing401Response struct {
}

func (DeleteDevicePairing401Response) VisitDeleteDevicePairingResponse added in v0.4.0

func (response DeleteDevicePairing401Response) VisitDeleteDevicePairingResponse(w http.ResponseWriter) error

type DeleteDevicePairing403Response added in v0.4.0

type DeleteDevicePairing403Response struct {
}

func (DeleteDevicePairing403Response) VisitDeleteDevicePairingResponse added in v0.4.0

func (response DeleteDevicePairing403Response) VisitDeleteDevicePairingResponse(w http.ResponseWriter) error

type DeleteDevicePairing404JSONResponse added in v0.4.0

type DeleteDevicePairing404JSONResponse ErrorResponse

func (DeleteDevicePairing404JSONResponse) VisitDeleteDevicePairingResponse added in v0.4.0

func (response DeleteDevicePairing404JSONResponse) VisitDeleteDevicePairingResponse(w http.ResponseWriter) error

type DeleteDevicePairing500JSONResponse added in v0.4.0

type DeleteDevicePairing500JSONResponse ErrorResponse

func (DeleteDevicePairing500JSONResponse) VisitDeleteDevicePairingResponse added in v0.4.0

func (response DeleteDevicePairing500JSONResponse) VisitDeleteDevicePairingResponse(w http.ResponseWriter) error

type DeleteDevicePairingRequestObject added in v0.4.0

type DeleteDevicePairingRequestObject struct {
	Id        ID `json:"id"`
	PairingId ID `json:"pairingId"`
}

type DeleteDevicePairingResponseObject added in v0.4.0

type DeleteDevicePairingResponseObject interface {
	VisitDeleteDevicePairingResponse(w http.ResponseWriter) error
}

type DeleteDevicePairingTestClientResponse added in v0.4.0

type DeleteDevicePairingTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteDevicePairingTestClientResponse added in v0.4.0

func ParseDeleteDevicePairingTestClientResponse(rsp *http.Response) (*DeleteDevicePairingTestClientResponse, error)

ParseDeleteDevicePairingTestClientResponse parses an HTTP response from a DeleteDevicePairingWithResponse call

func (DeleteDevicePairingTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteDevicePairingTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DeleteDeviceRequestObject

type DeleteDeviceRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DeleteDeviceResponseObject

type DeleteDeviceResponseObject interface {
	VisitDeleteDeviceResponse(w http.ResponseWriter) error
}

type DeleteDeviceTestClientResponse added in v0.4.0

type DeleteDeviceTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteDeviceTestClientResponse added in v0.4.0

func ParseDeleteDeviceTestClientResponse(rsp *http.Response) (*DeleteDeviceTestClientResponse, error)

ParseDeleteDeviceTestClientResponse parses an HTTP response from a DeleteDeviceWithResponse call

func (DeleteDeviceTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteDeviceTestClientResponse) StatusCode added in v0.4.0

func (r DeleteDeviceTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteNetworkPolicy204Response added in v0.4.0

type DeleteNetworkPolicy204Response struct {
}

func (DeleteNetworkPolicy204Response) VisitDeleteNetworkPolicyResponse added in v0.4.0

func (response DeleteNetworkPolicy204Response) VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error

type DeleteNetworkPolicy401JSONResponse added in v0.4.0

type DeleteNetworkPolicy401JSONResponse ErrorResponse

func (DeleteNetworkPolicy401JSONResponse) VisitDeleteNetworkPolicyResponse added in v0.4.0

func (response DeleteNetworkPolicy401JSONResponse) VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error

type DeleteNetworkPolicy403Response added in v0.4.0

type DeleteNetworkPolicy403Response struct {
}

func (DeleteNetworkPolicy403Response) VisitDeleteNetworkPolicyResponse added in v0.4.0

func (response DeleteNetworkPolicy403Response) VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error

type DeleteNetworkPolicy404JSONResponse added in v0.4.0

type DeleteNetworkPolicy404JSONResponse ErrorResponse

func (DeleteNetworkPolicy404JSONResponse) VisitDeleteNetworkPolicyResponse added in v0.4.0

func (response DeleteNetworkPolicy404JSONResponse) VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error

type DeleteNetworkPolicy500JSONResponse added in v0.4.0

type DeleteNetworkPolicy500JSONResponse ErrorResponse

func (DeleteNetworkPolicy500JSONResponse) VisitDeleteNetworkPolicyResponse added in v0.4.0

func (response DeleteNetworkPolicy500JSONResponse) VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error

type DeleteNetworkPolicyRequestObject added in v0.4.0

type DeleteNetworkPolicyRequestObject struct {
	PolicyId ID `json:"policy_id"`
}

type DeleteNetworkPolicyResponseObject added in v0.4.0

type DeleteNetworkPolicyResponseObject interface {
	VisitDeleteNetworkPolicyResponse(w http.ResponseWriter) error
}

type DeleteNetworkPolicyTestClientResponse added in v0.4.0

type DeleteNetworkPolicyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteNetworkPolicyTestClientResponse added in v0.4.0

func ParseDeleteNetworkPolicyTestClientResponse(rsp *http.Response) (*DeleteNetworkPolicyTestClientResponse, error)

ParseDeleteNetworkPolicyTestClientResponse parses an HTTP response from a DeleteNetworkPolicyWithResponse call

func (DeleteNetworkPolicyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteNetworkPolicyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DeleteUser204Response

type DeleteUser204Response struct {
}

func (DeleteUser204Response) VisitDeleteUserResponse

func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser401JSONResponse

type DeleteUser401JSONResponse ErrorResponse

func (DeleteUser401JSONResponse) VisitDeleteUserResponse

func (response DeleteUser401JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser403JSONResponse

type DeleteUser403JSONResponse ErrorResponse

func (DeleteUser403JSONResponse) VisitDeleteUserResponse

func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser404JSONResponse

type DeleteUser404JSONResponse ErrorResponse

func (DeleteUser404JSONResponse) VisitDeleteUserResponse

func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser500JSONResponse

type DeleteUser500JSONResponse ErrorResponse

func (DeleteUser500JSONResponse) VisitDeleteUserResponse

func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject

type DeleteUserRequestObject struct {
	UserId ID `json:"user_id"`
}

type DeleteUserResponseObject

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type DeleteUserTestClientResponse added in v0.4.0

type DeleteUserTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteUserTestClientResponse added in v0.4.0

func ParseDeleteUserTestClientResponse(rsp *http.Response) (*DeleteUserTestClientResponse, error)

ParseDeleteUserTestClientResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeleteUserTestClientResponse) StatusCode added in v0.4.0

func (r DeleteUserTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DemoteUser200JSONResponse

type DemoteUser200JSONResponse User

func (DemoteUser200JSONResponse) VisitDemoteUserResponse

func (response DemoteUser200JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error

type DemoteUser401JSONResponse

type DemoteUser401JSONResponse ErrorResponse

func (DemoteUser401JSONResponse) VisitDemoteUserResponse

func (response DemoteUser401JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error

type DemoteUser403JSONResponse

type DemoteUser403JSONResponse ErrorResponse

func (DemoteUser403JSONResponse) VisitDemoteUserResponse

func (response DemoteUser403JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error

type DemoteUser404JSONResponse

type DemoteUser404JSONResponse ErrorResponse

func (DemoteUser404JSONResponse) VisitDemoteUserResponse

func (response DemoteUser404JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error

type DemoteUser500JSONResponse

type DemoteUser500JSONResponse ErrorResponse

func (DemoteUser500JSONResponse) VisitDemoteUserResponse

func (response DemoteUser500JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error

type DemoteUserRequestObject

type DemoteUserRequestObject struct {
	UserId ID `json:"user_id"`
}

type DemoteUserResponseObject

type DemoteUserResponseObject interface {
	VisitDemoteUserResponse(w http.ResponseWriter) error
}

type DemoteUserTestClientResponse added in v0.4.0

type DemoteUserTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDemoteUserTestClientResponse added in v0.4.0

func ParseDemoteUserTestClientResponse(rsp *http.Response) (*DemoteUserTestClientResponse, error)

ParseDemoteUserTestClientResponse parses an HTTP response from a DemoteUserWithResponse call

func (DemoteUserTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DemoteUserTestClientResponse) StatusCode added in v0.4.0

func (r DemoteUserTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Device

type Device struct {
	// ApiKeyPrefix Prefix of the device API key (for display only). Null if no API key has been generated yet.
	ApiKeyPrefix *string `json:"api_key_prefix"`
	CreatedAt    UTCTime `json:"created_at"`

	// Description Free-form note about the device.
	Description *string `json:"description"`

	// DisabledAt When the device was disabled, or null if active. A disabled device has all its addresses disabled and cannot enable/refresh addresses until it is re-enabled. Its API key is kept.
	DisabledAt *UTCTime `json:"disabled_at"`

	// Icon Tabler icon name override (e.g. "IconRouter").
	Icon *string `json:"icon"`
	Id   ID      `json:"id"`

	// LastSeenAt Most recent address activity for this device (heartbeat or manual update).
	LastSeenAt *UTCTime `json:"last_seen_at"`

	// LiveAddressCount Number of currently enabled addresses for this device.
	LiveAddressCount *int `json:"live_address_count,omitempty"`

	// Name User-friendly name for the device
	Name    string `json:"name"`
	OwnerId ID     `json:"owner_id"`

	// OwnerName Display name of the owning user (for display only).
	OwnerName *string `json:"owner_name,omitempty"`

	// UpdatedAt Last time the device profile was modified.
	UpdatedAt UTCTime `json:"updated_at"`
}

Device defines model for Device.

type DeviceAPIKeyResponse added in v0.3.0

type DeviceAPIKeyResponse struct {
	// ApiKey Secret key for the device.
	ApiKey string `json:"api_key"`
	Device Device `json:"device"`
}

DeviceAPIKeyResponse defines model for DeviceAPIKeyResponse.

type DeviceAddressLeaseRule

type DeviceAddressLeaseRule struct {
	CreatedAt *UTCTime `json:"created_at,omitempty"`
	DeviceId  ID       `json:"device_id"`

	// Enabled Whether the lease rule is active
	Enabled bool `json:"enabled"`
	Id      *ID  `json:"id,omitempty"`

	// TtlSeconds Seconds after which an enabled device address lease expires; absent when disabled and never configured
	TtlSeconds *int     `json:"ttl_seconds,omitempty"`
	UpdatedAt  *UTCTime `json:"updated_at,omitempty"`
}

DeviceAddressLeaseRule defines model for DeviceAddressLeaseRule.

type DeviceHeartbeat200JSONResponse

type DeviceHeartbeat200JSONResponse Address

func (DeviceHeartbeat200JSONResponse) VisitDeviceHeartbeatResponse

func (response DeviceHeartbeat200JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeat201JSONResponse

type DeviceHeartbeat201JSONResponse Address

func (DeviceHeartbeat201JSONResponse) VisitDeviceHeartbeatResponse

func (response DeviceHeartbeat201JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeat400JSONResponse

type DeviceHeartbeat400JSONResponse ErrorResponse

func (DeviceHeartbeat400JSONResponse) VisitDeviceHeartbeatResponse

func (response DeviceHeartbeat400JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeat404JSONResponse

type DeviceHeartbeat404JSONResponse ErrorResponse

func (DeviceHeartbeat404JSONResponse) VisitDeviceHeartbeatResponse

func (response DeviceHeartbeat404JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeat409JSONResponse added in v0.4.0

type DeviceHeartbeat409JSONResponse ErrorResponse

func (DeviceHeartbeat409JSONResponse) VisitDeviceHeartbeatResponse added in v0.4.0

func (response DeviceHeartbeat409JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeat500JSONResponse

type DeviceHeartbeat500JSONResponse ErrorResponse

func (DeviceHeartbeat500JSONResponse) VisitDeviceHeartbeatResponse

func (response DeviceHeartbeat500JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey200JSONResponse

type DeviceHeartbeatByAPIKey200JSONResponse Address

func (DeviceHeartbeatByAPIKey200JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse

func (response DeviceHeartbeatByAPIKey200JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey201JSONResponse

type DeviceHeartbeatByAPIKey201JSONResponse Address

func (DeviceHeartbeatByAPIKey201JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse

func (response DeviceHeartbeatByAPIKey201JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey400JSONResponse

type DeviceHeartbeatByAPIKey400JSONResponse ErrorResponse

func (DeviceHeartbeatByAPIKey400JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse

func (response DeviceHeartbeatByAPIKey400JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey404JSONResponse

type DeviceHeartbeatByAPIKey404JSONResponse ErrorResponse

func (DeviceHeartbeatByAPIKey404JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse

func (response DeviceHeartbeatByAPIKey404JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey409JSONResponse added in v0.4.0

type DeviceHeartbeatByAPIKey409JSONResponse ErrorResponse

func (DeviceHeartbeatByAPIKey409JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse added in v0.4.0

func (response DeviceHeartbeatByAPIKey409JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKey500JSONResponse

type DeviceHeartbeatByAPIKey500JSONResponse ErrorResponse

func (DeviceHeartbeatByAPIKey500JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse

func (response DeviceHeartbeatByAPIKey500JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error

type DeviceHeartbeatByAPIKeyRequestObject

type DeviceHeartbeatByAPIKeyRequestObject struct {
}

type DeviceHeartbeatByAPIKeyResponseObject

type DeviceHeartbeatByAPIKeyResponseObject interface {
	VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
}

type DeviceHeartbeatByAPIKeyTestClientResponse added in v0.4.0

type DeviceHeartbeatByAPIKeyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Address
	JSON201      *Address
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeviceHeartbeatByAPIKeyTestClientResponse added in v0.4.0

func ParseDeviceHeartbeatByAPIKeyTestClientResponse(rsp *http.Response) (*DeviceHeartbeatByAPIKeyTestClientResponse, error)

ParseDeviceHeartbeatByAPIKeyTestClientResponse parses an HTTP response from a DeviceHeartbeatByAPIKeyWithResponse call

func (DeviceHeartbeatByAPIKeyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeviceHeartbeatByAPIKeyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DeviceHeartbeatRequestObject

type DeviceHeartbeatRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DeviceHeartbeatResponseObject

type DeviceHeartbeatResponseObject interface {
	VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
}

type DeviceHeartbeatTestClientResponse added in v0.4.0

type DeviceHeartbeatTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Address
	JSON201      *Address
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeviceHeartbeatTestClientResponse added in v0.4.0

func ParseDeviceHeartbeatTestClientResponse(rsp *http.Response) (*DeviceHeartbeatTestClientResponse, error)

ParseDeviceHeartbeatTestClientResponse parses an HTTP response from a DeviceHeartbeatWithResponse call

func (DeviceHeartbeatTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DeviceHeartbeatTestClientResponse) StatusCode added in v0.4.0

func (r DeviceHeartbeatTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeviceListEntry added in v0.4.0

type DeviceListEntry struct {
	// ApiKeyPrefix First characters of the API key (display only).
	ApiKeyPrefix *string `json:"api_key_prefix"`

	// CreatedAt When the device was created.
	CreatedAt UTCTime `json:"created_at"`

	// Icon Tabler icon name override.
	Icon *string `json:"icon"`
	Id   ID      `json:"id"`

	// LastSeenAt Most recent address heartbeat for this device.
	LastSeenAt       *UTCTime              `json:"last_seen_at"`
	LiveAddressCount int                   `json:"live_address_count"`
	Name             string                `json:"name"`
	Pairing          *DevicePairingSummary `json:"pairing"`
	Rules            []DeviceRuleSummary   `json:"rules"`

	// State Derived lifecycle state of a device. healthy: has at least one live address. stale: no live addresses. disabled: all addresses disabled and address enable/refresh blocked until re-enabled; API key kept. pending-claim / expired-claim: awaiting or failed device pairing (future feature).
	State DeviceState `json:"state"`
}

DeviceListEntry defines model for DeviceListEntry.

type DeviceListItem added in v0.4.0

type DeviceListItem struct {
	// ApiKeyPrefix Non-null when an API key is configured; the full key is never returned.
	ApiKeyPrefix     *string `json:"api_key_prefix"`
	Icon             *string `json:"icon"`
	Id               ID      `json:"id"`
	LiveAddressCount int     `json:"live_address_count"`
	Name             string  `json:"name"`
}

DeviceListItem Device summary shown on user access detail.

type DeviceListOwner added in v0.4.0

type DeviceListOwner struct {
	BypassHostCheck bool   `json:"bypass_host_check"`
	DeviceCount     int    `json:"device_count"`
	DisplayName     string `json:"display_name"`

	// HostGroups Host groups the owner belongs to. Always returned; frontend hides them when bypass_host_check is true.
	HostGroups []GroupSummary `json:"host_groups"`
	Id         ID             `json:"id"`

	// LiveAddressCount Aggregate count of live addresses across all owner's devices.
	LiveAddressCount int `json:"live_address_count"`

	// Role The user's role. User role cannot login. Only superadmin can manage users.
	Role     UserRole `json:"role"`
	Username string   `json:"username"`
}

DeviceListOwner defines model for DeviceListOwner.

type DeviceOwnerGroup added in v0.4.0

type DeviceOwnerGroup struct {
	Devices []DeviceListEntry `json:"devices"`
	Owner   DeviceListOwner   `json:"owner"`
}

DeviceOwnerGroup defines model for DeviceOwnerGroup.

type DevicePairing added in v0.4.0

type DevicePairing struct {
	AppBiometricEnabled bool    `json:"app_biometric_enabled"`
	AppSettingsLocked   bool    `json:"app_settings_locked"`
	CreatedAt           UTCTime `json:"created_at"`
	DeviceId            ID      `json:"device_id"`
	ExpiresAt           UTCTime `json:"expires_at"`
	HeartbeatServerUrl  string  `json:"heartbeat_server_url"`
	Id                  ID      `json:"id"`
	IntervalSeconds     int     `json:"interval_seconds"`

	// PairingCode The pairing code delivered to the app. Always present; status is the single-use guard.
	PairingCode string `json:"pairing_code"`

	// Status Lifecycle state of a device pairing. pending: issued and not yet redeemed (expires_at in the future). expired: issued but the expiry window passed before it was claimed (derived, never stored). used: successfully redeemed by the heartbeat app. invalidated: explicitly cancelled by an administrator. replaced: superseded when a new pairing was issued for the same device.
	Status DevicePairingStatus `json:"status"`

	// UpdatedAt When the status last changed (equals created_at for pending pairings).
	UpdatedAt UTCTime `json:"updated_at"`
}

DevicePairing defines model for DevicePairing.

type DevicePairingStatus added in v0.4.0

type DevicePairingStatus string

DevicePairingStatus Lifecycle state of a device pairing. pending: issued and not yet redeemed (expires_at in the future). expired: issued but the expiry window passed before it was claimed (derived, never stored). used: successfully redeemed by the heartbeat app. invalidated: explicitly cancelled by an administrator. replaced: superseded when a new pairing was issued for the same device.

const (
	DevicePairingStatusExpired     DevicePairingStatus = "expired"
	DevicePairingStatusInvalidated DevicePairingStatus = "invalidated"
	DevicePairingStatusPending     DevicePairingStatus = "pending"
	DevicePairingStatusReplaced    DevicePairingStatus = "replaced"
	DevicePairingStatusUsed        DevicePairingStatus = "used"
)

Defines values for DevicePairingStatus.

type DevicePairingSummary added in v0.4.0

type DevicePairingSummary struct {
	// ExpiresAt When the pairing code expires (or expired).
	ExpiresAt UTCTime `json:"expires_at"`

	// Status Lifecycle state of a device pairing. pending: issued and not yet redeemed (expires_at in the future). expired: issued but the expiry window passed before it was claimed (derived, never stored). used: successfully redeemed by the heartbeat app. invalidated: explicitly cancelled by an administrator. replaced: superseded when a new pairing was issued for the same device.
	Status DevicePairingStatus `json:"status"`

	// UpdatedAt When the status last changed.
	UpdatedAt UTCTime `json:"updated_at"`
}

DevicePairingSummary defines model for DevicePairingSummary.

type DeviceRuleSummary added in v0.4.0

type DeviceRuleSummary struct {
	Enabled bool `json:"enabled"`

	// Limit Maximum allowed live-address count. Present for max_active rules.
	Limit *int `json:"limit"`

	// TtlSeconds TTL in seconds. Present for auto_expiry rules.
	TtlSeconds *int                  `json:"ttl_seconds"`
	Type       DeviceRuleSummaryType `json:"type"`
}

DeviceRuleSummary defines model for DeviceRuleSummary.

type DeviceRuleSummaryType added in v0.4.0

type DeviceRuleSummaryType string

DeviceRuleSummaryType defines model for DeviceRuleSummary.Type.

const (
	AutoExpiry DeviceRuleSummaryType = "auto_expiry"
	MaxActive  DeviceRuleSummaryType = "max_active"
)

Defines values for DeviceRuleSummaryType.

type DeviceState added in v0.4.0

type DeviceState string

DeviceState Derived lifecycle state of a device. healthy: has at least one live address. stale: no live addresses. disabled: all addresses disabled and address enable/refresh blocked until re-enabled; API key kept. pending-claim / expired-claim: awaiting or failed device pairing (future feature).

const (
	Disabled     DeviceState = "disabled"
	ExpiredClaim DeviceState = "expired-claim"
	Healthy      DeviceState = "healthy"
	PendingClaim DeviceState = "pending-claim"
	Stale        DeviceState = "stale"
)

Defines values for DeviceState.

type DisableAddress200JSONResponse

type DisableAddress200JSONResponse Address

func (DisableAddress200JSONResponse) VisitDisableAddressResponse

func (response DisableAddress200JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error

type DisableAddress400JSONResponse

type DisableAddress400JSONResponse ErrorResponse

func (DisableAddress400JSONResponse) VisitDisableAddressResponse

func (response DisableAddress400JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error

type DisableAddress404JSONResponse

type DisableAddress404JSONResponse ErrorResponse

func (DisableAddress404JSONResponse) VisitDisableAddressResponse

func (response DisableAddress404JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error

type DisableAddress500JSONResponse

type DisableAddress500JSONResponse ErrorResponse

func (DisableAddress500JSONResponse) VisitDisableAddressResponse

func (response DisableAddress500JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error

type DisableAddressRequestObject

type DisableAddressRequestObject struct {
	DeviceId  ID `json:"device_id"`
	AddressId ID `json:"address_id"`
}

type DisableAddressResponseObject

type DisableAddressResponseObject interface {
	VisitDisableAddressResponse(w http.ResponseWriter) error
}

type DisableAddressTestClientResponse added in v0.4.0

type DisableAddressTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Address
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDisableAddressTestClientResponse added in v0.4.0

func ParseDisableAddressTestClientResponse(rsp *http.Response) (*DisableAddressTestClientResponse, error)

ParseDisableAddressTestClientResponse parses an HTTP response from a DisableAddressWithResponse call

func (DisableAddressTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DisableAddressTestClientResponse) StatusCode added in v0.4.0

func (r DisableAddressTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableDevice200JSONResponse added in v0.4.0

type DisableDevice200JSONResponse Device

func (DisableDevice200JSONResponse) VisitDisableDeviceResponse added in v0.4.0

func (response DisableDevice200JSONResponse) VisitDisableDeviceResponse(w http.ResponseWriter) error

type DisableDevice404JSONResponse added in v0.4.0

type DisableDevice404JSONResponse ErrorResponse

func (DisableDevice404JSONResponse) VisitDisableDeviceResponse added in v0.4.0

func (response DisableDevice404JSONResponse) VisitDisableDeviceResponse(w http.ResponseWriter) error

type DisableDevice500JSONResponse added in v0.4.0

type DisableDevice500JSONResponse ErrorResponse

func (DisableDevice500JSONResponse) VisitDisableDeviceResponse added in v0.4.0

func (response DisableDevice500JSONResponse) VisitDisableDeviceResponse(w http.ResponseWriter) error

type DisableDeviceAddressLeaseRule204Response

type DisableDeviceAddressLeaseRule204Response struct {
}

func (DisableDeviceAddressLeaseRule204Response) VisitDisableDeviceAddressLeaseRuleResponse

func (response DisableDeviceAddressLeaseRule204Response) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type DisableDeviceAddressLeaseRule404JSONResponse

type DisableDeviceAddressLeaseRule404JSONResponse ErrorResponse

func (DisableDeviceAddressLeaseRule404JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse

func (response DisableDeviceAddressLeaseRule404JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type DisableDeviceAddressLeaseRule500JSONResponse

type DisableDeviceAddressLeaseRule500JSONResponse ErrorResponse

func (DisableDeviceAddressLeaseRule500JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse

func (response DisableDeviceAddressLeaseRule500JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type DisableDeviceAddressLeaseRuleRequestObject

type DisableDeviceAddressLeaseRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DisableDeviceAddressLeaseRuleResponseObject

type DisableDeviceAddressLeaseRuleResponseObject interface {
	VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}

type DisableDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

type DisableDeviceAddressLeaseRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDisableDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

func ParseDisableDeviceAddressLeaseRuleTestClientResponse(rsp *http.Response) (*DisableDeviceAddressLeaseRuleTestClientResponse, error)

ParseDisableDeviceAddressLeaseRuleTestClientResponse parses an HTTP response from a DisableDeviceAddressLeaseRuleWithResponse call

func (DisableDeviceAddressLeaseRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DisableDeviceAddressLeaseRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DisableDeviceRequestObject added in v0.4.0

type DisableDeviceRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DisableDeviceResponseObject added in v0.4.0

type DisableDeviceResponseObject interface {
	VisitDisableDeviceResponse(w http.ResponseWriter) error
}

type DisableDeviceTestClientResponse added in v0.4.0

type DisableDeviceTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Device
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDisableDeviceTestClientResponse added in v0.4.0

func ParseDisableDeviceTestClientResponse(rsp *http.Response) (*DisableDeviceTestClientResponse, error)

ParseDisableDeviceTestClientResponse parses an HTTP response from a DisableDeviceWithResponse call

func (DisableDeviceTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DisableDeviceTestClientResponse) StatusCode added in v0.4.0

func (r DisableDeviceTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableMaxActiveAddressesRule204Response added in v0.2.0

type DisableMaxActiveAddressesRule204Response struct {
}

func (DisableMaxActiveAddressesRule204Response) VisitDisableMaxActiveAddressesRuleResponse added in v0.2.0

func (response DisableMaxActiveAddressesRule204Response) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type DisableMaxActiveAddressesRule404JSONResponse added in v0.2.0

type DisableMaxActiveAddressesRule404JSONResponse ErrorResponse

func (DisableMaxActiveAddressesRule404JSONResponse) VisitDisableMaxActiveAddressesRuleResponse added in v0.2.0

func (response DisableMaxActiveAddressesRule404JSONResponse) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type DisableMaxActiveAddressesRule500JSONResponse added in v0.2.0

type DisableMaxActiveAddressesRule500JSONResponse ErrorResponse

func (DisableMaxActiveAddressesRule500JSONResponse) VisitDisableMaxActiveAddressesRuleResponse added in v0.2.0

func (response DisableMaxActiveAddressesRule500JSONResponse) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type DisableMaxActiveAddressesRuleRequestObject added in v0.2.0

type DisableMaxActiveAddressesRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type DisableMaxActiveAddressesRuleResponseObject added in v0.2.0

type DisableMaxActiveAddressesRuleResponseObject interface {
	VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}

type DisableMaxActiveAddressesRuleTestClientResponse added in v0.4.0

type DisableMaxActiveAddressesRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDisableMaxActiveAddressesRuleTestClientResponse added in v0.4.0

func ParseDisableMaxActiveAddressesRuleTestClientResponse(rsp *http.Response) (*DisableMaxActiveAddressesRuleTestClientResponse, error)

ParseDisableMaxActiveAddressesRuleTestClientResponse parses an HTTP response from a DisableMaxActiveAddressesRuleWithResponse call

func (DisableMaxActiveAddressesRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (DisableMaxActiveAddressesRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type DisplayName

type DisplayName = string

DisplayName User's public name. Unicode allowed.

type EnableDevice200JSONResponse added in v0.4.0

type EnableDevice200JSONResponse Device

func (EnableDevice200JSONResponse) VisitEnableDeviceResponse added in v0.4.0

func (response EnableDevice200JSONResponse) VisitEnableDeviceResponse(w http.ResponseWriter) error

type EnableDevice404JSONResponse added in v0.4.0

type EnableDevice404JSONResponse ErrorResponse

func (EnableDevice404JSONResponse) VisitEnableDeviceResponse added in v0.4.0

func (response EnableDevice404JSONResponse) VisitEnableDeviceResponse(w http.ResponseWriter) error

type EnableDevice500JSONResponse added in v0.4.0

type EnableDevice500JSONResponse ErrorResponse

func (EnableDevice500JSONResponse) VisitEnableDeviceResponse added in v0.4.0

func (response EnableDevice500JSONResponse) VisitEnableDeviceResponse(w http.ResponseWriter) error

type EnableDeviceRequestObject added in v0.4.0

type EnableDeviceRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type EnableDeviceResponseObject added in v0.4.0

type EnableDeviceResponseObject interface {
	VisitEnableDeviceResponse(w http.ResponseWriter) error
}

type EnableDeviceTestClientResponse added in v0.4.0

type EnableDeviceTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Device
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseEnableDeviceTestClientResponse added in v0.4.0

func ParseEnableDeviceTestClientResponse(rsp *http.Response) (*EnableDeviceTestClientResponse, error)

ParseEnableDeviceTestClientResponse parses an HTTP response from a EnableDeviceWithResponse call

func (EnableDeviceTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (EnableDeviceTestClientResponse) StatusCode added in v0.4.0

func (r EnableDeviceTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorResponse

type ErrorResponse struct {
	Error *string `json:"error,omitempty"`
}

ErrorResponse defines model for ErrorResponse.

type GeoInfo added in v0.4.0

type GeoInfo struct {
	// Asn Autonomous System Number, e.g. 13335.
	Asn *int64 `json:"asn,omitempty"`

	// AsnOrg Autonomous System organization, e.g. "Cloudflare, Inc.".
	AsnOrg *string `json:"asn_org,omitempty"`

	// ContinentCode Continent code, e.g. "EU".
	ContinentCode *string `json:"continent_code,omitempty"`

	// CountryCode ISO 3166-1 alpha-2 country code, e.g. "DE".
	CountryCode *string `json:"country_code,omitempty"`

	// CountryName Country name in English, e.g. "Germany".
	CountryName *string `json:"country_name,omitempty"`
}

GeoInfo GeoIP-derived metadata for an IP, resolved on read. Every field is optional: individual fields are absent when the database has no value for that IP, and the whole object is absent (null) when the IP is unresolvable (private range, unknown) or GeoIP enrichment is disabled.

type GetAccessLog200JSONResponse

type GetAccessLog200JSONResponse AccessLogResponse

func (GetAccessLog200JSONResponse) VisitGetAccessLogResponse

func (response GetAccessLog200JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error

type GetAccessLog400JSONResponse added in v0.4.0

type GetAccessLog400JSONResponse ErrorResponse

func (GetAccessLog400JSONResponse) VisitGetAccessLogResponse added in v0.4.0

func (response GetAccessLog400JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error

type GetAccessLog401JSONResponse

type GetAccessLog401JSONResponse ErrorResponse

func (GetAccessLog401JSONResponse) VisitGetAccessLogResponse

func (response GetAccessLog401JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error

type GetAccessLog403JSONResponse

type GetAccessLog403JSONResponse ErrorResponse

func (GetAccessLog403JSONResponse) VisitGetAccessLogResponse

func (response GetAccessLog403JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error

type GetAccessLog500JSONResponse

type GetAccessLog500JSONResponse ErrorResponse

func (GetAccessLog500JSONResponse) VisitGetAccessLogResponse

func (response GetAccessLog500JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error

type GetAccessLogByCountry200JSONResponse

type GetAccessLogByCountry200JSONResponse []AccessLogCountryStats

func (GetAccessLogByCountry200JSONResponse) VisitGetAccessLogByCountryResponse

func (response GetAccessLogByCountry200JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error

type GetAccessLogByCountry401JSONResponse

type GetAccessLogByCountry401JSONResponse ErrorResponse

func (GetAccessLogByCountry401JSONResponse) VisitGetAccessLogByCountryResponse

func (response GetAccessLogByCountry401JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error

type GetAccessLogByCountry403JSONResponse

type GetAccessLogByCountry403JSONResponse ErrorResponse

func (GetAccessLogByCountry403JSONResponse) VisitGetAccessLogByCountryResponse

func (response GetAccessLogByCountry403JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error

type GetAccessLogByCountry500JSONResponse

type GetAccessLogByCountry500JSONResponse ErrorResponse

func (GetAccessLogByCountry500JSONResponse) VisitGetAccessLogByCountryResponse

func (response GetAccessLogByCountry500JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error

type GetAccessLogByCountryParams

type GetAccessLogByCountryParams struct {
	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetAccessLogByCountryParams defines parameters for GetAccessLogByCountry.

type GetAccessLogByCountryRequestObject

type GetAccessLogByCountryRequestObject struct {
	Params GetAccessLogByCountryParams
}

type GetAccessLogByCountryResponseObject

type GetAccessLogByCountryResponseObject interface {
	VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
}

type GetAccessLogByCountryTestClientResponse added in v0.4.0

type GetAccessLogByCountryTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]AccessLogCountryStats
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAccessLogByCountryTestClientResponse added in v0.4.0

func ParseGetAccessLogByCountryTestClientResponse(rsp *http.Response) (*GetAccessLogByCountryTestClientResponse, error)

ParseGetAccessLogByCountryTestClientResponse parses an HTTP response from a GetAccessLogByCountryWithResponse call

func (GetAccessLogByCountryTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetAccessLogByCountryTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetAccessLogParams

type GetAccessLogParams struct {
	// ClientIp Client IP filter values (operators in, not_in, contains, not_contains).
	ClientIp   *[]string                `form:"client_ip,omitempty" json:"client_ip,omitempty"`
	ClientIpOp *AccessLogFilterOperator `form:"client_ip_op,omitempty" json:"client_ip_op,omitempty"`

	// TargetHost Target host filter values (in, not_in, contains, not_contains, is_null, not_null).
	TargetHost   *[]string                `form:"target_host,omitempty" json:"target_host,omitempty"`
	TargetHostOp *AccessLogFilterOperator `form:"target_host_op,omitempty" json:"target_host_op,omitempty"`

	// TargetUri Target URI filter values (in, not_in, contains, not_contains, is_null, not_null).
	TargetUri   *[]string                `form:"target_uri,omitempty" json:"target_uri,omitempty"`
	TargetUriOp *AccessLogFilterOperator `form:"target_uri_op,omitempty" json:"target_uri_op,omitempty"`

	// HttpMethod HTTP method filter values (in, not_in).
	HttpMethod   *[]string                `form:"http_method,omitempty" json:"http_method,omitempty"`
	HttpMethodOp *AccessLogFilterOperator `form:"http_method_op,omitempty" json:"http_method_op,omitempty"`

	// DenyReason Deny reason filter values (in, not_in, is_null, not_null).
	DenyReason   *[]PolicyDenyReason      `form:"deny_reason,omitempty" json:"deny_reason,omitempty"`
	DenyReasonOp *AccessLogFilterOperator `form:"deny_reason_op,omitempty" json:"deny_reason_op,omitempty"`

	// CountryCode ISO 3166-1 alpha-2 country codes (in, not_in, is_null, not_null). is_null = no GeoIP row.
	CountryCode   *[]string                `form:"country_code,omitempty" json:"country_code,omitempty"`
	CountryCodeOp *AccessLogFilterOperator `form:"country_code_op,omitempty" json:"country_code_op,omitempty"`

	// ContinentCode Continent codes e.g. "EU" (in, not_in, is_null, not_null).
	ContinentCode   *[]string                `form:"continent_code,omitempty" json:"continent_code,omitempty"`
	ContinentCodeOp *AccessLogFilterOperator `form:"continent_code_op,omitempty" json:"continent_code_op,omitempty"`

	// DeviceId Device IDs that contributed to the request (in, not_in, is_null, not_null).
	DeviceId   *[]ID                    `form:"device_id,omitempty" json:"device_id,omitempty"`
	DeviceIdOp *AccessLogFilterOperator `form:"device_id_op,omitempty" json:"device_id_op,omitempty"`

	// UserId Owning user IDs of contributing devices (in, not_in).
	UserId   *[]ID                    `form:"user_id,omitempty" json:"user_id,omitempty"`
	UserIdOp *AccessLogFilterOperator `form:"user_id_op,omitempty" json:"user_id_op,omitempty"`

	// NetworkPolicyId Authorizing network policy IDs (in, not_in, is_null, not_null).
	NetworkPolicyId   *[]ID                    `form:"network_policy_id,omitempty" json:"network_policy_id,omitempty"`
	NetworkPolicyIdOp *AccessLogFilterOperator `form:"network_policy_id_op,omitempty" json:"network_policy_id_op,omitempty"`

	// Outcome Filter by allow (true) / deny (false).
	Outcome *bool `form:"outcome,omitempty" json:"outcome,omitempty"`

	// Ambiguous When true, return only entries whose IP resolved to more than one contributor.
	Ambiguous *bool `form:"ambiguous,omitempty" json:"ambiguous,omitempty"`

	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// Sort Sort column (default created_at). Join-derived columns (e.g. country) are not sortable.
	Sort *GetAccessLogParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Order Sort direction (default desc).
	Order *GetAccessLogParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Limit Page size (default 50, max 200)
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque pagination token from a previous response's next_cursor. Pass it back verbatim; do not construct it. Encodes the active sort.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAccessLogParams defines parameters for GetAccessLog.

type GetAccessLogParamsOrder added in v0.4.0

type GetAccessLogParamsOrder string

GetAccessLogParamsOrder defines parameters for GetAccessLog.

const (
	Asc  GetAccessLogParamsOrder = "asc"
	Desc GetAccessLogParamsOrder = "desc"
)

Defines values for GetAccessLogParamsOrder.

type GetAccessLogParamsSort added in v0.4.0

type GetAccessLogParamsSort string

GetAccessLogParamsSort defines parameters for GetAccessLog.

const (
	ClientIp   GetAccessLogParamsSort = "client_ip"
	CreatedAt  GetAccessLogParamsSort = "created_at"
	DenyReason GetAccessLogParamsSort = "deny_reason"
	DurationUs GetAccessLogParamsSort = "duration_us"
	HttpMethod GetAccessLogParamsSort = "http_method"
	Outcome    GetAccessLogParamsSort = "outcome"
	TargetHost GetAccessLogParamsSort = "target_host"
)

Defines values for GetAccessLogParamsSort.

type GetAccessLogRequestObject

type GetAccessLogRequestObject struct {
	Params GetAccessLogParams
}

type GetAccessLogResponseObject

type GetAccessLogResponseObject interface {
	VisitGetAccessLogResponse(w http.ResponseWriter) error
}

type GetAccessLogTestClientResponse added in v0.4.0

type GetAccessLogTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccessLogResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAccessLogTestClientResponse added in v0.4.0

func ParseGetAccessLogTestClientResponse(rsp *http.Response) (*GetAccessLogTestClientResponse, error)

ParseGetAccessLogTestClientResponse parses an HTTP response from a GetAccessLogWithResponse call

func (GetAccessLogTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetAccessLogTestClientResponse) StatusCode added in v0.4.0

func (r GetAccessLogTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAddressHistory200JSONResponse

type GetAddressHistory200JSONResponse AddressHistoryResponse

func (GetAddressHistory200JSONResponse) VisitGetAddressHistoryResponse

func (response GetAddressHistory200JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error

type GetAddressHistory400JSONResponse

type GetAddressHistory400JSONResponse ErrorResponse

func (GetAddressHistory400JSONResponse) VisitGetAddressHistoryResponse

func (response GetAddressHistory400JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error

type GetAddressHistory403JSONResponse added in v0.3.0

type GetAddressHistory403JSONResponse ErrorResponse

func (GetAddressHistory403JSONResponse) VisitGetAddressHistoryResponse added in v0.3.0

func (response GetAddressHistory403JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error

type GetAddressHistory500JSONResponse

type GetAddressHistory500JSONResponse ErrorResponse

func (GetAddressHistory500JSONResponse) VisitGetAddressHistoryResponse

func (response GetAddressHistory500JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error

type GetAddressHistoryParams

type GetAddressHistoryParams struct {
	// DeviceId Filter by device ID(s). Empty means all devices.
	DeviceId *[]ID `form:"device_id,omitempty" json:"device_id,omitempty"`

	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// Granularity Time bucket granularity (default hour)
	Granularity *GetAddressHistoryParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"`

	// Source Filter events by source
	Source *AddressEventSource `form:"source,omitempty" json:"source,omitempty"`

	// IsEnabled Filter events by enabled/disabled state
	IsEnabled *bool `form:"is_enabled,omitempty" json:"is_enabled,omitempty"`

	// Ip Filter events by IP address (substring match)
	Ip *string `form:"ip,omitempty" json:"ip,omitempty"`

	// Limit Maximum number of events to return (default 50, max 200)
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// BeforeId Cursor for pagination — return events with id < before_id
	BeforeId *int64 `form:"before_id,omitempty" json:"before_id,omitempty"`

	// IncludeAll When false (default), returns only state-change events (created, enabled, disabled). When true, includes all events including repeated heartbeat refreshes.
	IncludeAll *bool `form:"include_all,omitempty" json:"include_all,omitempty"`
}

GetAddressHistoryParams defines parameters for GetAddressHistory.

type GetAddressHistoryParamsGranularity

type GetAddressHistoryParamsGranularity string

GetAddressHistoryParamsGranularity defines parameters for GetAddressHistory.

Defines values for GetAddressHistoryParamsGranularity.

type GetAddressHistoryRequestObject

type GetAddressHistoryRequestObject struct {
	Params GetAddressHistoryParams
}

type GetAddressHistoryResponseObject

type GetAddressHistoryResponseObject interface {
	VisitGetAddressHistoryResponse(w http.ResponseWriter) error
}

type GetAddressHistoryTestClientResponse added in v0.4.0

type GetAddressHistoryTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AddressHistoryResponse
	JSON400      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAddressHistoryTestClientResponse added in v0.4.0

func ParseGetAddressHistoryTestClientResponse(rsp *http.Response) (*GetAddressHistoryTestClientResponse, error)

ParseGetAddressHistoryTestClientResponse parses an HTTP response from a GetAddressHistoryWithResponse call

func (GetAddressHistoryTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetAddressHistoryTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetCurrentUser200JSONResponse

type GetCurrentUser200JSONResponse User

func (GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse

func (response GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUser401JSONResponse

type GetCurrentUser401JSONResponse ErrorResponse

func (GetCurrentUser401JSONResponse) VisitGetCurrentUserResponse

func (response GetCurrentUser401JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUser500JSONResponse

type GetCurrentUser500JSONResponse ErrorResponse

func (GetCurrentUser500JSONResponse) VisitGetCurrentUserResponse

func (response GetCurrentUser500JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error

type GetCurrentUserRequestObject

type GetCurrentUserRequestObject struct {
}

type GetCurrentUserResponseObject

type GetCurrentUserResponseObject interface {
	VisitGetCurrentUserResponse(w http.ResponseWriter) error
}

type GetCurrentUserTestClientResponse added in v0.4.0

type GetCurrentUserTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetCurrentUserTestClientResponse added in v0.4.0

func ParseGetCurrentUserTestClientResponse(rsp *http.Response) (*GetCurrentUserTestClientResponse, error)

ParseGetCurrentUserTestClientResponse parses an HTTP response from a GetCurrentUserWithResponse call

func (GetCurrentUserTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetCurrentUserTestClientResponse) StatusCode added in v0.4.0

func (r GetCurrentUserTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDashboardAttributionSplit200JSONResponse added in v0.4.0

type GetDashboardAttributionSplit200JSONResponse DashboardAttributionSplitResponse

func (GetDashboardAttributionSplit200JSONResponse) VisitGetDashboardAttributionSplitResponse added in v0.4.0

func (response GetDashboardAttributionSplit200JSONResponse) VisitGetDashboardAttributionSplitResponse(w http.ResponseWriter) error

type GetDashboardAttributionSplit401JSONResponse added in v0.4.0

type GetDashboardAttributionSplit401JSONResponse ErrorResponse

func (GetDashboardAttributionSplit401JSONResponse) VisitGetDashboardAttributionSplitResponse added in v0.4.0

func (response GetDashboardAttributionSplit401JSONResponse) VisitGetDashboardAttributionSplitResponse(w http.ResponseWriter) error

type GetDashboardAttributionSplit403JSONResponse added in v0.4.0

type GetDashboardAttributionSplit403JSONResponse ErrorResponse

func (GetDashboardAttributionSplit403JSONResponse) VisitGetDashboardAttributionSplitResponse added in v0.4.0

func (response GetDashboardAttributionSplit403JSONResponse) VisitGetDashboardAttributionSplitResponse(w http.ResponseWriter) error

type GetDashboardAttributionSplit500JSONResponse added in v0.4.0

type GetDashboardAttributionSplit500JSONResponse ErrorResponse

func (GetDashboardAttributionSplit500JSONResponse) VisitGetDashboardAttributionSplitResponse added in v0.4.0

func (response GetDashboardAttributionSplit500JSONResponse) VisitGetDashboardAttributionSplitResponse(w http.ResponseWriter) error

type GetDashboardAttributionSplitParams added in v0.4.0

type GetDashboardAttributionSplitParams struct {
	// Kind Which entity to group attribution by.
	Kind GetDashboardAttributionSplitParamsKind `form:"kind" json:"kind"`

	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetDashboardAttributionSplitParams defines parameters for GetDashboardAttributionSplit.

type GetDashboardAttributionSplitParamsKind added in v0.4.0

type GetDashboardAttributionSplitParamsKind string

GetDashboardAttributionSplitParamsKind defines parameters for GetDashboardAttributionSplit.

const (
	GetDashboardAttributionSplitParamsKindDevice GetDashboardAttributionSplitParamsKind = "device"
	GetDashboardAttributionSplitParamsKindPolicy GetDashboardAttributionSplitParamsKind = "policy"
	GetDashboardAttributionSplitParamsKindUser   GetDashboardAttributionSplitParamsKind = "user"
)

Defines values for GetDashboardAttributionSplitParamsKind.

type GetDashboardAttributionSplitRequestObject added in v0.4.0

type GetDashboardAttributionSplitRequestObject struct {
	Params GetDashboardAttributionSplitParams
}

type GetDashboardAttributionSplitResponseObject added in v0.4.0

type GetDashboardAttributionSplitResponseObject interface {
	VisitGetDashboardAttributionSplitResponse(w http.ResponseWriter) error
}

type GetDashboardAttributionSplitTestClientResponse added in v0.4.0

type GetDashboardAttributionSplitTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardAttributionSplitResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardAttributionSplitTestClientResponse added in v0.4.0

func ParseGetDashboardAttributionSplitTestClientResponse(rsp *http.Response) (*GetDashboardAttributionSplitTestClientResponse, error)

ParseGetDashboardAttributionSplitTestClientResponse parses an HTTP response from a GetDashboardAttributionSplitWithResponse call

func (GetDashboardAttributionSplitTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardAttributionSplitTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDashboardPosture200JSONResponse added in v0.4.0

type GetDashboardPosture200JSONResponse DashboardPosture

func (GetDashboardPosture200JSONResponse) VisitGetDashboardPostureResponse added in v0.4.0

func (response GetDashboardPosture200JSONResponse) VisitGetDashboardPostureResponse(w http.ResponseWriter) error

type GetDashboardPosture401JSONResponse added in v0.4.0

type GetDashboardPosture401JSONResponse ErrorResponse

func (GetDashboardPosture401JSONResponse) VisitGetDashboardPostureResponse added in v0.4.0

func (response GetDashboardPosture401JSONResponse) VisitGetDashboardPostureResponse(w http.ResponseWriter) error

type GetDashboardPosture403JSONResponse added in v0.4.0

type GetDashboardPosture403JSONResponse ErrorResponse

func (GetDashboardPosture403JSONResponse) VisitGetDashboardPostureResponse added in v0.4.0

func (response GetDashboardPosture403JSONResponse) VisitGetDashboardPostureResponse(w http.ResponseWriter) error

type GetDashboardPosture500JSONResponse added in v0.4.0

type GetDashboardPosture500JSONResponse ErrorResponse

func (GetDashboardPosture500JSONResponse) VisitGetDashboardPostureResponse added in v0.4.0

func (response GetDashboardPosture500JSONResponse) VisitGetDashboardPostureResponse(w http.ResponseWriter) error

type GetDashboardPostureRequestObject added in v0.4.0

type GetDashboardPostureRequestObject struct {
}

type GetDashboardPostureResponseObject added in v0.4.0

type GetDashboardPostureResponseObject interface {
	VisitGetDashboardPostureResponse(w http.ResponseWriter) error
}

type GetDashboardPostureTestClientResponse added in v0.4.0

type GetDashboardPostureTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardPosture
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardPostureTestClientResponse added in v0.4.0

func ParseGetDashboardPostureTestClientResponse(rsp *http.Response) (*GetDashboardPostureTestClientResponse, error)

ParseGetDashboardPostureTestClientResponse parses an HTTP response from a GetDashboardPostureWithResponse call

func (GetDashboardPostureTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardPostureTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDashboardServices200JSONResponse

type GetDashboardServices200JSONResponse DashboardServicesResponse

func (GetDashboardServices200JSONResponse) VisitGetDashboardServicesResponse

func (response GetDashboardServices200JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error

type GetDashboardServices401JSONResponse

type GetDashboardServices401JSONResponse ErrorResponse

func (GetDashboardServices401JSONResponse) VisitGetDashboardServicesResponse

func (response GetDashboardServices401JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error

type GetDashboardServices403JSONResponse added in v0.3.0

type GetDashboardServices403JSONResponse ErrorResponse

func (GetDashboardServices403JSONResponse) VisitGetDashboardServicesResponse added in v0.3.0

func (response GetDashboardServices403JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error

type GetDashboardServices500JSONResponse

type GetDashboardServices500JSONResponse ErrorResponse

func (GetDashboardServices500JSONResponse) VisitGetDashboardServicesResponse

func (response GetDashboardServices500JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error

type GetDashboardServicesParams

type GetDashboardServicesParams struct {
	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetDashboardServicesParams defines parameters for GetDashboardServices.

type GetDashboardServicesRequestObject

type GetDashboardServicesRequestObject struct {
	Params GetDashboardServicesParams
}

type GetDashboardServicesResponseObject

type GetDashboardServicesResponseObject interface {
	VisitGetDashboardServicesResponse(w http.ResponseWriter) error
}

type GetDashboardServicesTestClientResponse added in v0.4.0

type GetDashboardServicesTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardServicesResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardServicesTestClientResponse added in v0.4.0

func ParseGetDashboardServicesTestClientResponse(rsp *http.Response) (*GetDashboardServicesTestClientResponse, error)

ParseGetDashboardServicesTestClientResponse parses an HTTP response from a GetDashboardServicesWithResponse call

func (GetDashboardServicesTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardServicesTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDashboardStats200JSONResponse

type GetDashboardStats200JSONResponse DashboardStats

func (GetDashboardStats200JSONResponse) VisitGetDashboardStatsResponse

func (response GetDashboardStats200JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error

type GetDashboardStats401JSONResponse

type GetDashboardStats401JSONResponse ErrorResponse

func (GetDashboardStats401JSONResponse) VisitGetDashboardStatsResponse

func (response GetDashboardStats401JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error

type GetDashboardStats403JSONResponse added in v0.3.0

type GetDashboardStats403JSONResponse ErrorResponse

func (GetDashboardStats403JSONResponse) VisitGetDashboardStatsResponse added in v0.3.0

func (response GetDashboardStats403JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error

type GetDashboardStats500JSONResponse

type GetDashboardStats500JSONResponse ErrorResponse

func (GetDashboardStats500JSONResponse) VisitGetDashboardStatsResponse

func (response GetDashboardStats500JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error

type GetDashboardStatsParams

type GetDashboardStatsParams struct {
	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetDashboardStatsParams defines parameters for GetDashboardStats.

type GetDashboardStatsRequestObject

type GetDashboardStatsRequestObject struct {
	Params GetDashboardStatsParams
}

type GetDashboardStatsResponseObject

type GetDashboardStatsResponseObject interface {
	VisitGetDashboardStatsResponse(w http.ResponseWriter) error
}

type GetDashboardStatsTestClientResponse added in v0.4.0

type GetDashboardStatsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardStats
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardStatsTestClientResponse added in v0.4.0

func ParseGetDashboardStatsTestClientResponse(rsp *http.Response) (*GetDashboardStatsTestClientResponse, error)

ParseGetDashboardStatsTestClientResponse parses an HTTP response from a GetDashboardStatsWithResponse call

func (GetDashboardStatsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardStatsTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDashboardTopDeniedIps200JSONResponse

type GetDashboardTopDeniedIps200JSONResponse DashboardTopDeniedIpsResponse

func (GetDashboardTopDeniedIps200JSONResponse) VisitGetDashboardTopDeniedIpsResponse

func (response GetDashboardTopDeniedIps200JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error

type GetDashboardTopDeniedIps401JSONResponse

type GetDashboardTopDeniedIps401JSONResponse ErrorResponse

func (GetDashboardTopDeniedIps401JSONResponse) VisitGetDashboardTopDeniedIpsResponse

func (response GetDashboardTopDeniedIps401JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error

type GetDashboardTopDeniedIps403JSONResponse added in v0.3.0

type GetDashboardTopDeniedIps403JSONResponse ErrorResponse

func (GetDashboardTopDeniedIps403JSONResponse) VisitGetDashboardTopDeniedIpsResponse added in v0.3.0

func (response GetDashboardTopDeniedIps403JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error

type GetDashboardTopDeniedIps500JSONResponse

type GetDashboardTopDeniedIps500JSONResponse ErrorResponse

func (GetDashboardTopDeniedIps500JSONResponse) VisitGetDashboardTopDeniedIpsResponse

func (response GetDashboardTopDeniedIps500JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error

type GetDashboardTopDeniedIpsParams

type GetDashboardTopDeniedIpsParams struct {
	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`

	// Limit Maximum number of IPs to return (default 10, max 100)
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetDashboardTopDeniedIpsParams defines parameters for GetDashboardTopDeniedIps.

type GetDashboardTopDeniedIpsRequestObject

type GetDashboardTopDeniedIpsRequestObject struct {
	Params GetDashboardTopDeniedIpsParams
}

type GetDashboardTopDeniedIpsResponseObject

type GetDashboardTopDeniedIpsResponseObject interface {
	VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
}

type GetDashboardTopDeniedIpsTestClientResponse added in v0.4.0

type GetDashboardTopDeniedIpsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardTopDeniedIpsResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardTopDeniedIpsTestClientResponse added in v0.4.0

func ParseGetDashboardTopDeniedIpsTestClientResponse(rsp *http.Response) (*GetDashboardTopDeniedIpsTestClientResponse, error)

ParseGetDashboardTopDeniedIpsTestClientResponse parses an HTTP response from a GetDashboardTopDeniedIpsWithResponse call

func (GetDashboardTopDeniedIpsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardTopDeniedIpsTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDashboardTraffic200JSONResponse

type GetDashboardTraffic200JSONResponse DashboardTrafficResponse

func (GetDashboardTraffic200JSONResponse) VisitGetDashboardTrafficResponse

func (response GetDashboardTraffic200JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error

type GetDashboardTraffic401JSONResponse

type GetDashboardTraffic401JSONResponse ErrorResponse

func (GetDashboardTraffic401JSONResponse) VisitGetDashboardTrafficResponse

func (response GetDashboardTraffic401JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error

type GetDashboardTraffic403JSONResponse added in v0.3.0

type GetDashboardTraffic403JSONResponse ErrorResponse

func (GetDashboardTraffic403JSONResponse) VisitGetDashboardTrafficResponse added in v0.3.0

func (response GetDashboardTraffic403JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error

type GetDashboardTraffic500JSONResponse

type GetDashboardTraffic500JSONResponse ErrorResponse

func (GetDashboardTraffic500JSONResponse) VisitGetDashboardTrafficResponse

func (response GetDashboardTraffic500JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error

type GetDashboardTrafficParams

type GetDashboardTrafficParams struct {
	// From RFC3339 start of time window (default 24h ago)
	From *time.Time `form:"from,omitempty" json:"from,omitempty"`

	// To RFC3339 end of time window (default now)
	To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}

GetDashboardTrafficParams defines parameters for GetDashboardTraffic.

type GetDashboardTrafficRequestObject

type GetDashboardTrafficRequestObject struct {
	Params GetDashboardTrafficParams
}

type GetDashboardTrafficResponseObject

type GetDashboardTrafficResponseObject interface {
	VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
}

type GetDashboardTrafficTestClientResponse added in v0.4.0

type GetDashboardTrafficTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DashboardTrafficResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDashboardTrafficTestClientResponse added in v0.4.0

func ParseGetDashboardTrafficTestClientResponse(rsp *http.Response) (*GetDashboardTrafficTestClientResponse, error)

ParseGetDashboardTrafficTestClientResponse parses an HTTP response from a GetDashboardTrafficWithResponse call

func (GetDashboardTrafficTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDashboardTrafficTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDeviceAddressLeaseRule200JSONResponse

type GetDeviceAddressLeaseRule200JSONResponse DeviceAddressLeaseRule

func (GetDeviceAddressLeaseRule200JSONResponse) VisitGetDeviceAddressLeaseRuleResponse

func (response GetDeviceAddressLeaseRule200JSONResponse) VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type GetDeviceAddressLeaseRule500JSONResponse

type GetDeviceAddressLeaseRule500JSONResponse ErrorResponse

func (GetDeviceAddressLeaseRule500JSONResponse) VisitGetDeviceAddressLeaseRuleResponse

func (response GetDeviceAddressLeaseRule500JSONResponse) VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type GetDeviceAddressLeaseRuleRequestObject

type GetDeviceAddressLeaseRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type GetDeviceAddressLeaseRuleResponseObject

type GetDeviceAddressLeaseRuleResponseObject interface {
	VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}

type GetDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

type GetDeviceAddressLeaseRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeviceAddressLeaseRule
	JSON500      *ErrorResponse
}

func ParseGetDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

func ParseGetDeviceAddressLeaseRuleTestClientResponse(rsp *http.Response) (*GetDeviceAddressLeaseRuleTestClientResponse, error)

ParseGetDeviceAddressLeaseRuleTestClientResponse parses an HTTP response from a GetDeviceAddressLeaseRuleWithResponse call

func (GetDeviceAddressLeaseRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDeviceAddressLeaseRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDeviceAddresses200JSONResponse

type GetDeviceAddresses200JSONResponse []Address

func (GetDeviceAddresses200JSONResponse) VisitGetDeviceAddressesResponse

func (response GetDeviceAddresses200JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error

type GetDeviceAddresses400JSONResponse

type GetDeviceAddresses400JSONResponse ErrorResponse

func (GetDeviceAddresses400JSONResponse) VisitGetDeviceAddressesResponse

func (response GetDeviceAddresses400JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error

type GetDeviceAddresses404JSONResponse

type GetDeviceAddresses404JSONResponse ErrorResponse

func (GetDeviceAddresses404JSONResponse) VisitGetDeviceAddressesResponse

func (response GetDeviceAddresses404JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error

type GetDeviceAddresses500JSONResponse

type GetDeviceAddresses500JSONResponse ErrorResponse

func (GetDeviceAddresses500JSONResponse) VisitGetDeviceAddressesResponse

func (response GetDeviceAddresses500JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error

type GetDeviceAddressesRequestObject

type GetDeviceAddressesRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type GetDeviceAddressesResponseObject

type GetDeviceAddressesResponseObject interface {
	VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
}

type GetDeviceAddressesTestClientResponse added in v0.4.0

type GetDeviceAddressesTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Address
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDeviceAddressesTestClientResponse added in v0.4.0

func ParseGetDeviceAddressesTestClientResponse(rsp *http.Response) (*GetDeviceAddressesTestClientResponse, error)

ParseGetDeviceAddressesTestClientResponse parses an HTTP response from a GetDeviceAddressesWithResponse call

func (GetDeviceAddressesTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDeviceAddressesTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetDevicePairing200JSONResponse added in v0.4.0

type GetDevicePairing200JSONResponse DevicePairing

func (GetDevicePairing200JSONResponse) VisitGetDevicePairingResponse added in v0.4.0

func (response GetDevicePairing200JSONResponse) VisitGetDevicePairingResponse(w http.ResponseWriter) error

type GetDevicePairing401Response added in v0.4.0

type GetDevicePairing401Response struct {
}

func (GetDevicePairing401Response) VisitGetDevicePairingResponse added in v0.4.0

func (response GetDevicePairing401Response) VisitGetDevicePairingResponse(w http.ResponseWriter) error

type GetDevicePairing403Response added in v0.4.0

type GetDevicePairing403Response struct {
}

func (GetDevicePairing403Response) VisitGetDevicePairingResponse added in v0.4.0

func (response GetDevicePairing403Response) VisitGetDevicePairingResponse(w http.ResponseWriter) error

type GetDevicePairing404JSONResponse added in v0.4.0

type GetDevicePairing404JSONResponse ErrorResponse

func (GetDevicePairing404JSONResponse) VisitGetDevicePairingResponse added in v0.4.0

func (response GetDevicePairing404JSONResponse) VisitGetDevicePairingResponse(w http.ResponseWriter) error

type GetDevicePairing500JSONResponse added in v0.4.0

type GetDevicePairing500JSONResponse ErrorResponse

func (GetDevicePairing500JSONResponse) VisitGetDevicePairingResponse added in v0.4.0

func (response GetDevicePairing500JSONResponse) VisitGetDevicePairingResponse(w http.ResponseWriter) error

type GetDevicePairingRequestObject added in v0.4.0

type GetDevicePairingRequestObject struct {
	Id        ID `json:"id"`
	PairingId ID `json:"pairingId"`
}

type GetDevicePairingResponseObject added in v0.4.0

type GetDevicePairingResponseObject interface {
	VisitGetDevicePairingResponse(w http.ResponseWriter) error
}

type GetDevicePairingTestClientResponse added in v0.4.0

type GetDevicePairingTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DevicePairing
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetDevicePairingTestClientResponse added in v0.4.0

func ParseGetDevicePairingTestClientResponse(rsp *http.Response) (*GetDevicePairingTestClientResponse, error)

ParseGetDevicePairingTestClientResponse parses an HTTP response from a GetDevicePairingWithResponse call

func (GetDevicePairingTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDevicePairingTestClientResponse) StatusCode added in v0.4.0

func (r GetDevicePairingTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDevices200JSONResponse

type GetDevices200JSONResponse []DeviceOwnerGroup

func (GetDevices200JSONResponse) VisitGetDevicesResponse

func (response GetDevices200JSONResponse) VisitGetDevicesResponse(w http.ResponseWriter) error

type GetDevices500JSONResponse

type GetDevices500JSONResponse ErrorResponse

func (GetDevices500JSONResponse) VisitGetDevicesResponse

func (response GetDevices500JSONResponse) VisitGetDevicesResponse(w http.ResponseWriter) error

type GetDevicesRequestObject

type GetDevicesRequestObject struct {
}

type GetDevicesResponseObject

type GetDevicesResponseObject interface {
	VisitGetDevicesResponse(w http.ResponseWriter) error
}

type GetDevicesTestClientResponse added in v0.4.0

type GetDevicesTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DeviceOwnerGroup
	JSON500      *ErrorResponse
}

func ParseGetDevicesTestClientResponse added in v0.4.0

func ParseGetDevicesTestClientResponse(rsp *http.Response) (*GetDevicesTestClientResponse, error)

ParseGetDevicesTestClientResponse parses an HTTP response from a GetDevicesWithResponse call

func (GetDevicesTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetDevicesTestClientResponse) StatusCode added in v0.4.0

func (r GetDevicesTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMaxActiveAddressesRule200JSONResponse added in v0.2.0

type GetMaxActiveAddressesRule200JSONResponse MaxActiveAddressesRule

func (GetMaxActiveAddressesRule200JSONResponse) VisitGetMaxActiveAddressesRuleResponse added in v0.2.0

func (response GetMaxActiveAddressesRule200JSONResponse) VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type GetMaxActiveAddressesRule500JSONResponse added in v0.2.0

type GetMaxActiveAddressesRule500JSONResponse ErrorResponse

func (GetMaxActiveAddressesRule500JSONResponse) VisitGetMaxActiveAddressesRuleResponse added in v0.2.0

func (response GetMaxActiveAddressesRule500JSONResponse) VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type GetMaxActiveAddressesRuleRequestObject added in v0.2.0

type GetMaxActiveAddressesRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type GetMaxActiveAddressesRuleResponseObject added in v0.2.0

type GetMaxActiveAddressesRuleResponseObject interface {
	VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}

type GetMaxActiveAddressesRuleTestClientResponse added in v0.4.0

type GetMaxActiveAddressesRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MaxActiveAddressesRule
	JSON500      *ErrorResponse
}

func ParseGetMaxActiveAddressesRuleTestClientResponse added in v0.4.0

func ParseGetMaxActiveAddressesRuleTestClientResponse(rsp *http.Response) (*GetMaxActiveAddressesRuleTestClientResponse, error)

ParseGetMaxActiveAddressesRuleTestClientResponse parses an HTTP response from a GetMaxActiveAddressesRuleWithResponse call

func (GetMaxActiveAddressesRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetMaxActiveAddressesRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GetNetworkPolicy200JSONResponse added in v0.4.0

type GetNetworkPolicy200JSONResponse NetworkPolicyDetail

func (GetNetworkPolicy200JSONResponse) VisitGetNetworkPolicyResponse added in v0.4.0

func (response GetNetworkPolicy200JSONResponse) VisitGetNetworkPolicyResponse(w http.ResponseWriter) error

type GetNetworkPolicy401JSONResponse added in v0.4.0

type GetNetworkPolicy401JSONResponse ErrorResponse

func (GetNetworkPolicy401JSONResponse) VisitGetNetworkPolicyResponse added in v0.4.0

func (response GetNetworkPolicy401JSONResponse) VisitGetNetworkPolicyResponse(w http.ResponseWriter) error

type GetNetworkPolicy403Response added in v0.4.0

type GetNetworkPolicy403Response struct {
}

func (GetNetworkPolicy403Response) VisitGetNetworkPolicyResponse added in v0.4.0

func (response GetNetworkPolicy403Response) VisitGetNetworkPolicyResponse(w http.ResponseWriter) error

type GetNetworkPolicy404JSONResponse added in v0.4.0

type GetNetworkPolicy404JSONResponse ErrorResponse

func (GetNetworkPolicy404JSONResponse) VisitGetNetworkPolicyResponse added in v0.4.0

func (response GetNetworkPolicy404JSONResponse) VisitGetNetworkPolicyResponse(w http.ResponseWriter) error

type GetNetworkPolicy500JSONResponse added in v0.4.0

type GetNetworkPolicy500JSONResponse ErrorResponse

func (GetNetworkPolicy500JSONResponse) VisitGetNetworkPolicyResponse added in v0.4.0

func (response GetNetworkPolicy500JSONResponse) VisitGetNetworkPolicyResponse(w http.ResponseWriter) error

type GetNetworkPolicyRequestObject added in v0.4.0

type GetNetworkPolicyRequestObject struct {
	PolicyId ID `json:"policy_id"`
}

type GetNetworkPolicyResponseObject added in v0.4.0

type GetNetworkPolicyResponseObject interface {
	VisitGetNetworkPolicyResponse(w http.ResponseWriter) error
}

type GetNetworkPolicyTestClientResponse added in v0.4.0

type GetNetworkPolicyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NetworkPolicyDetail
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetNetworkPolicyTestClientResponse added in v0.4.0

func ParseGetNetworkPolicyTestClientResponse(rsp *http.Response) (*GetNetworkPolicyTestClientResponse, error)

ParseGetNetworkPolicyTestClientResponse parses an HTTP response from a GetNetworkPolicyWithResponse call

func (GetNetworkPolicyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetNetworkPolicyTestClientResponse) StatusCode added in v0.4.0

func (r GetNetworkPolicyTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPolicyUserMap200JSONResponse added in v0.3.0

type GetPolicyUserMap200JSONResponse PolicyUserMapAudit

func (GetPolicyUserMap200JSONResponse) VisitGetPolicyUserMapResponse added in v0.3.0

func (response GetPolicyUserMap200JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error

type GetPolicyUserMap401JSONResponse added in v0.3.0

type GetPolicyUserMap401JSONResponse ErrorResponse

func (GetPolicyUserMap401JSONResponse) VisitGetPolicyUserMapResponse added in v0.3.0

func (response GetPolicyUserMap401JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error

type GetPolicyUserMap403Response added in v0.3.0

type GetPolicyUserMap403Response struct {
}

func (GetPolicyUserMap403Response) VisitGetPolicyUserMapResponse added in v0.3.0

func (response GetPolicyUserMap403Response) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error

type GetPolicyUserMap500JSONResponse added in v0.3.0

type GetPolicyUserMap500JSONResponse ErrorResponse

func (GetPolicyUserMap500JSONResponse) VisitGetPolicyUserMapResponse added in v0.3.0

func (response GetPolicyUserMap500JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error

type GetPolicyUserMapRequestObject added in v0.3.0

type GetPolicyUserMapRequestObject struct {
}

type GetPolicyUserMapResponseObject added in v0.3.0

type GetPolicyUserMapResponseObject interface {
	VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
}

type GetPolicyUserMapTestClientResponse added in v0.4.0

type GetPolicyUserMapTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PolicyUserMapAudit
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetPolicyUserMapTestClientResponse added in v0.4.0

func ParseGetPolicyUserMapTestClientResponse(rsp *http.Response) (*GetPolicyUserMapTestClientResponse, error)

ParseGetPolicyUserMapTestClientResponse parses an HTTP response from a GetPolicyUserMapWithResponse call

func (GetPolicyUserMapTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetPolicyUserMapTestClientResponse) StatusCode added in v0.4.0

func (r GetPolicyUserMapTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserAccessDetail200JSONResponse added in v0.4.0

type GetUserAccessDetail200JSONResponse UserAccessDetail

func (GetUserAccessDetail200JSONResponse) VisitGetUserAccessDetailResponse added in v0.4.0

func (response GetUserAccessDetail200JSONResponse) VisitGetUserAccessDetailResponse(w http.ResponseWriter) error

type GetUserAccessDetail401JSONResponse added in v0.4.0

type GetUserAccessDetail401JSONResponse ErrorResponse

func (GetUserAccessDetail401JSONResponse) VisitGetUserAccessDetailResponse added in v0.4.0

func (response GetUserAccessDetail401JSONResponse) VisitGetUserAccessDetailResponse(w http.ResponseWriter) error

type GetUserAccessDetail403Response added in v0.4.0

type GetUserAccessDetail403Response struct {
}

func (GetUserAccessDetail403Response) VisitGetUserAccessDetailResponse added in v0.4.0

func (response GetUserAccessDetail403Response) VisitGetUserAccessDetailResponse(w http.ResponseWriter) error

type GetUserAccessDetail404JSONResponse added in v0.4.0

type GetUserAccessDetail404JSONResponse ErrorResponse

func (GetUserAccessDetail404JSONResponse) VisitGetUserAccessDetailResponse added in v0.4.0

func (response GetUserAccessDetail404JSONResponse) VisitGetUserAccessDetailResponse(w http.ResponseWriter) error

type GetUserAccessDetail500JSONResponse added in v0.4.0

type GetUserAccessDetail500JSONResponse ErrorResponse

func (GetUserAccessDetail500JSONResponse) VisitGetUserAccessDetailResponse added in v0.4.0

func (response GetUserAccessDetail500JSONResponse) VisitGetUserAccessDetailResponse(w http.ResponseWriter) error

type GetUserAccessDetailRequestObject added in v0.4.0

type GetUserAccessDetailRequestObject struct {
	UserId ID `json:"user_id"`
}

type GetUserAccessDetailResponseObject added in v0.4.0

type GetUserAccessDetailResponseObject interface {
	VisitGetUserAccessDetailResponse(w http.ResponseWriter) error
}

type GetUserAccessDetailTestClientResponse added in v0.4.0

type GetUserAccessDetailTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserAccessDetail
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetUserAccessDetailTestClientResponse added in v0.4.0

func ParseGetUserAccessDetailTestClientResponse(rsp *http.Response) (*GetUserAccessDetailTestClientResponse, error)

ParseGetUserAccessDetailTestClientResponse parses an HTTP response from a GetUserAccessDetailWithResponse call

func (GetUserAccessDetailTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (GetUserAccessDetailTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type GroupDetail added in v0.4.0

type GroupDetail struct {
	// Color CSS hex color for the group badge.
	Color       string        `json:"color"`
	CreatedAt   UTCTime       `json:"created_at"`
	Description *string       `json:"description"`
	Hosts       []HostSummary `json:"hosts"`

	// Icon Icon key (e.g. "database", "film").
	Icon string `json:"icon"`
	Id   ID     `json:"id"`
	Name string `json:"name"`

	// NetworkPolicies Network policies with access to this group (read-only, managed via subjects).
	NetworkPolicies []NetworkPolicyRef `json:"network_policies"`

	// UpdatedAt Last time the device profile was modified.
	UpdatedAt UTCTime `json:"updated_at"`
}

GroupDetail Full group representation returned by GET.

type GroupDetailWithUsers added in v0.4.0

type GroupDetailWithUsers struct {
	// Color CSS hex color for the group badge.
	Color       string        `json:"color"`
	CreatedAt   UTCTime       `json:"created_at"`
	Description *string       `json:"description"`
	Hosts       []HostSummary `json:"hosts"`

	// Icon Icon key (e.g. "database", "film").
	Icon string `json:"icon"`
	Id   ID     `json:"id"`
	Name string `json:"name"`

	// NetworkPolicies Network policies with access to this group (read-only, managed via subjects).
	NetworkPolicies []NetworkPolicyRef `json:"network_policies"`

	// UpdatedAt Last time the device profile was modified.
	UpdatedAt UTCTime `json:"updated_at"`

	// Users Users with access to this group (read-only, managed via subjects).
	Users *[]UserSummary `json:"users,omitempty"`
}

GroupDetailWithUsers defines model for GroupDetailWithUsers.

type GroupListResponse added in v0.4.0

type GroupListResponse struct {
	Groups []GroupDetailWithUsers `json:"groups"`
}

GroupListResponse defines model for GroupListResponse.

type GroupSummary added in v0.4.0

type GroupSummary struct {
	Color string `json:"color"`
	Icon  string `json:"icon"`
	Id    ID     `json:"id"`
	Name  string `json:"name"`
}

GroupSummary Group display reference used in host list rows (renders group pills).

type GroupWrite added in v0.4.0

type GroupWrite struct {
	Color       string  `json:"color"`
	Description *string `json:"description"`
	HostIds     []ID    `json:"host_ids"`
	Icon        string  `json:"icon"`
	Id          *ID     `json:"id"`
	Name        string  `json:"name"`
}

GroupWrite Group write payload for reconcile. Omit id (or set null) to create; include id to update. The host_ids array defines the complete desired membership after the call.

type Host added in v0.4.0

type Host struct {
	CreatedAt UTCTime `json:"created_at"`
	Fqdn      string  `json:"fqdn"`

	// Groups Group memberships. Empty array means unassigned.
	Groups []GroupSummary `json:"groups"`
	Id     ID             `json:"id"`
}

Host Host record with group memberships.

type HostInput added in v0.4.0

type HostInput struct {
	Fqdn string `json:"fqdn"`

	// GroupIds Group memberships by ID. Empty array means unassigned.
	GroupIds []ID `json:"group_ids"`
	Id       *ID  `json:"id"`
}

HostInput Host entry in a reconcile request. Omit id to create a new host.

type HostListResponse added in v0.4.0

type HostListResponse struct {
	Hosts []Host `json:"hosts"`
}

HostListResponse defines model for HostListResponse.

type HostSuggestion added in v0.3.0

type HostSuggestion struct {
	AllowedHits int     `json:"allowed_hits"`
	DeniedHits  int     `json:"denied_hits"`
	FirstSeen   UTCTime `json:"first_seen"`
	Fqdn        string  `json:"fqdn"`
}

HostSuggestion defines model for HostSuggestion.

type HostSuggestionsPage added in v0.3.0

type HostSuggestionsPage struct {
	Ignored     []IgnoredHostSuggestion `json:"ignored"`
	Suggestions []HostSuggestion        `json:"suggestions"`
}

HostSuggestionsPage defines model for HostSuggestionsPage.

type HostSummary added in v0.4.0

type HostSummary struct {
	Fqdn string `json:"fqdn"`
	Id   ID     `json:"id"`
}

HostSummary Minimal host reference embedded in group responses.

type HttpRequestDoer added in v0.4.0

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ID

type ID = int64

ID defines model for ID.

type IPAddress

type IPAddress = string

IPAddress IPv4 or IPv6 address

type IgnoreSuggestion201JSONResponse added in v0.3.0

type IgnoreSuggestion201JSONResponse IgnoredHostSuggestion

func (IgnoreSuggestion201JSONResponse) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion201JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestion400JSONResponse added in v0.3.0

type IgnoreSuggestion400JSONResponse ErrorResponse

func (IgnoreSuggestion400JSONResponse) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion400JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestion401JSONResponse added in v0.3.0

type IgnoreSuggestion401JSONResponse ErrorResponse

func (IgnoreSuggestion401JSONResponse) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion401JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestion403Response added in v0.3.0

type IgnoreSuggestion403Response struct {
}

func (IgnoreSuggestion403Response) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion403Response) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestion409JSONResponse added in v0.3.0

type IgnoreSuggestion409JSONResponse ErrorResponse

func (IgnoreSuggestion409JSONResponse) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion409JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestion500JSONResponse added in v0.3.0

type IgnoreSuggestion500JSONResponse ErrorResponse

func (IgnoreSuggestion500JSONResponse) VisitIgnoreSuggestionResponse added in v0.3.0

func (response IgnoreSuggestion500JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error

type IgnoreSuggestionJSONRequestBody added in v0.3.0

type IgnoreSuggestionJSONRequestBody = IgnoreSuggestionRequest

IgnoreSuggestionJSONRequestBody defines body for IgnoreSuggestion for application/json ContentType.

type IgnoreSuggestionRequest added in v0.3.0

type IgnoreSuggestionRequest struct {
	// Fqdn FQDN to add to the ignore list.
	Fqdn string `json:"fqdn"`
}

IgnoreSuggestionRequest defines model for IgnoreSuggestionRequest.

type IgnoreSuggestionRequestObject added in v0.3.0

type IgnoreSuggestionRequestObject struct {
	Body *IgnoreSuggestionJSONRequestBody
}

type IgnoreSuggestionResponseObject added in v0.3.0

type IgnoreSuggestionResponseObject interface {
	VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
}

type IgnoreSuggestionTestClientResponse added in v0.4.0

type IgnoreSuggestionTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *IgnoredHostSuggestion
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseIgnoreSuggestionTestClientResponse added in v0.4.0

func ParseIgnoreSuggestionTestClientResponse(rsp *http.Response) (*IgnoreSuggestionTestClientResponse, error)

ParseIgnoreSuggestionTestClientResponse parses an HTTP response from a IgnoreSuggestionWithResponse call

func (IgnoreSuggestionTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (IgnoreSuggestionTestClientResponse) StatusCode added in v0.4.0

func (r IgnoreSuggestionTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type IgnoredHostSuggestion added in v0.3.0

type IgnoredHostSuggestion struct {
	CreatedAt UTCTime `json:"created_at"`
	Fqdn      string  `json:"fqdn"`
	Id        ID      `json:"id"`
}

IgnoredHostSuggestion defines model for IgnoredHostSuggestion.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type ListDevicePairings200JSONResponse added in v0.4.0

type ListDevicePairings200JSONResponse []DevicePairing

func (ListDevicePairings200JSONResponse) VisitListDevicePairingsResponse added in v0.4.0

func (response ListDevicePairings200JSONResponse) VisitListDevicePairingsResponse(w http.ResponseWriter) error

type ListDevicePairings401Response added in v0.4.0

type ListDevicePairings401Response struct {
}

func (ListDevicePairings401Response) VisitListDevicePairingsResponse added in v0.4.0

func (response ListDevicePairings401Response) VisitListDevicePairingsResponse(w http.ResponseWriter) error

type ListDevicePairings403Response added in v0.4.0

type ListDevicePairings403Response struct {
}

func (ListDevicePairings403Response) VisitListDevicePairingsResponse added in v0.4.0

func (response ListDevicePairings403Response) VisitListDevicePairingsResponse(w http.ResponseWriter) error

type ListDevicePairings500JSONResponse added in v0.4.0

type ListDevicePairings500JSONResponse ErrorResponse

func (ListDevicePairings500JSONResponse) VisitListDevicePairingsResponse added in v0.4.0

func (response ListDevicePairings500JSONResponse) VisitListDevicePairingsResponse(w http.ResponseWriter) error

type ListDevicePairingsParams added in v0.4.0

type ListDevicePairingsParams struct {
	Status *ListDevicePairingsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}

ListDevicePairingsParams defines parameters for ListDevicePairings.

type ListDevicePairingsParamsStatus added in v0.4.0

type ListDevicePairingsParamsStatus string

ListDevicePairingsParamsStatus defines parameters for ListDevicePairings.

const (
	ListDevicePairingsParamsStatusAll     ListDevicePairingsParamsStatus = "all"
	ListDevicePairingsParamsStatusPending ListDevicePairingsParamsStatus = "pending"
)

Defines values for ListDevicePairingsParamsStatus.

type ListDevicePairingsRequestObject added in v0.4.0

type ListDevicePairingsRequestObject struct {
	Id     ID `json:"id"`
	Params ListDevicePairingsParams
}

type ListDevicePairingsResponseObject added in v0.4.0

type ListDevicePairingsResponseObject interface {
	VisitListDevicePairingsResponse(w http.ResponseWriter) error
}

type ListDevicePairingsTestClientResponse added in v0.4.0

type ListDevicePairingsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DevicePairing
	JSON500      *ErrorResponse
}

func ParseListDevicePairingsTestClientResponse added in v0.4.0

func ParseListDevicePairingsTestClientResponse(rsp *http.Response) (*ListDevicePairingsTestClientResponse, error)

ParseListDevicePairingsTestClientResponse parses an HTTP response from a ListDevicePairingsWithResponse call

func (ListDevicePairingsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListDevicePairingsTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type ListHostGroups200JSONResponse added in v0.3.0

type ListHostGroups200JSONResponse GroupListResponse

func (ListHostGroups200JSONResponse) VisitListHostGroupsResponse added in v0.3.0

func (response ListHostGroups200JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error

type ListHostGroups401JSONResponse added in v0.3.0

type ListHostGroups401JSONResponse ErrorResponse

func (ListHostGroups401JSONResponse) VisitListHostGroupsResponse added in v0.3.0

func (response ListHostGroups401JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error

type ListHostGroups403Response added in v0.3.0

type ListHostGroups403Response struct {
}

func (ListHostGroups403Response) VisitListHostGroupsResponse added in v0.3.0

func (response ListHostGroups403Response) VisitListHostGroupsResponse(w http.ResponseWriter) error

type ListHostGroups500JSONResponse added in v0.3.0

type ListHostGroups500JSONResponse ErrorResponse

func (ListHostGroups500JSONResponse) VisitListHostGroupsResponse added in v0.3.0

func (response ListHostGroups500JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error

type ListHostGroupsRequestObject added in v0.3.0

type ListHostGroupsRequestObject struct {
}

type ListHostGroupsResponseObject added in v0.3.0

type ListHostGroupsResponseObject interface {
	VisitListHostGroupsResponse(w http.ResponseWriter) error
}

type ListHostGroupsTestClientResponse added in v0.4.0

type ListHostGroupsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GroupListResponse
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListHostGroupsTestClientResponse added in v0.4.0

func ParseListHostGroupsTestClientResponse(rsp *http.Response) (*ListHostGroupsTestClientResponse, error)

ParseListHostGroupsTestClientResponse parses an HTTP response from a ListHostGroupsWithResponse call

func (ListHostGroupsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListHostGroupsTestClientResponse) StatusCode added in v0.4.0

func (r ListHostGroupsTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListHostSuggestions200JSONResponse added in v0.3.0

type ListHostSuggestions200JSONResponse HostSuggestionsPage

func (ListHostSuggestions200JSONResponse) VisitListHostSuggestionsResponse added in v0.3.0

func (response ListHostSuggestions200JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error

type ListHostSuggestions401JSONResponse added in v0.3.0

type ListHostSuggestions401JSONResponse ErrorResponse

func (ListHostSuggestions401JSONResponse) VisitListHostSuggestionsResponse added in v0.3.0

func (response ListHostSuggestions401JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error

type ListHostSuggestions403Response added in v0.3.0

type ListHostSuggestions403Response struct {
}

func (ListHostSuggestions403Response) VisitListHostSuggestionsResponse added in v0.3.0

func (response ListHostSuggestions403Response) VisitListHostSuggestionsResponse(w http.ResponseWriter) error

type ListHostSuggestions500JSONResponse added in v0.3.0

type ListHostSuggestions500JSONResponse ErrorResponse

func (ListHostSuggestions500JSONResponse) VisitListHostSuggestionsResponse added in v0.3.0

func (response ListHostSuggestions500JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error

type ListHostSuggestionsRequestObject added in v0.3.0

type ListHostSuggestionsRequestObject struct {
}

type ListHostSuggestionsResponseObject added in v0.3.0

type ListHostSuggestionsResponseObject interface {
	VisitListHostSuggestionsResponse(w http.ResponseWriter) error
}

type ListHostSuggestionsTestClientResponse added in v0.4.0

type ListHostSuggestionsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HostSuggestionsPage
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListHostSuggestionsTestClientResponse added in v0.4.0

func ParseListHostSuggestionsTestClientResponse(rsp *http.Response) (*ListHostSuggestionsTestClientResponse, error)

ParseListHostSuggestionsTestClientResponse parses an HTTP response from a ListHostSuggestionsWithResponse call

func (ListHostSuggestionsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListHostSuggestionsTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type ListHosts200JSONResponse added in v0.4.0

type ListHosts200JSONResponse HostListResponse

func (ListHosts200JSONResponse) VisitListHostsResponse added in v0.4.0

func (response ListHosts200JSONResponse) VisitListHostsResponse(w http.ResponseWriter) error

type ListHosts401JSONResponse added in v0.4.0

type ListHosts401JSONResponse ErrorResponse

func (ListHosts401JSONResponse) VisitListHostsResponse added in v0.4.0

func (response ListHosts401JSONResponse) VisitListHostsResponse(w http.ResponseWriter) error

type ListHosts403Response added in v0.4.0

type ListHosts403Response struct {
}

func (ListHosts403Response) VisitListHostsResponse added in v0.4.0

func (response ListHosts403Response) VisitListHostsResponse(w http.ResponseWriter) error

type ListHosts500JSONResponse added in v0.4.0

type ListHosts500JSONResponse ErrorResponse

func (ListHosts500JSONResponse) VisitListHostsResponse added in v0.4.0

func (response ListHosts500JSONResponse) VisitListHostsResponse(w http.ResponseWriter) error

type ListHostsRequestObject added in v0.4.0

type ListHostsRequestObject struct {
}

type ListHostsResponseObject added in v0.4.0

type ListHostsResponseObject interface {
	VisitListHostsResponse(w http.ResponseWriter) error
}

type ListHostsTestClientResponse added in v0.4.0

type ListHostsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HostListResponse
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListHostsTestClientResponse added in v0.4.0

func ParseListHostsTestClientResponse(rsp *http.Response) (*ListHostsTestClientResponse, error)

ParseListHostsTestClientResponse parses an HTTP response from a ListHostsWithResponse call

func (ListHostsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListHostsTestClientResponse) StatusCode added in v0.4.0

func (r ListHostsTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListNetworkPolicies200JSONResponse added in v0.4.0

type ListNetworkPolicies200JSONResponse []NetworkPolicyListItem

func (ListNetworkPolicies200JSONResponse) VisitListNetworkPoliciesResponse added in v0.4.0

func (response ListNetworkPolicies200JSONResponse) VisitListNetworkPoliciesResponse(w http.ResponseWriter) error

type ListNetworkPolicies401JSONResponse added in v0.4.0

type ListNetworkPolicies401JSONResponse ErrorResponse

func (ListNetworkPolicies401JSONResponse) VisitListNetworkPoliciesResponse added in v0.4.0

func (response ListNetworkPolicies401JSONResponse) VisitListNetworkPoliciesResponse(w http.ResponseWriter) error

type ListNetworkPolicies403Response added in v0.4.0

type ListNetworkPolicies403Response struct {
}

func (ListNetworkPolicies403Response) VisitListNetworkPoliciesResponse added in v0.4.0

func (response ListNetworkPolicies403Response) VisitListNetworkPoliciesResponse(w http.ResponseWriter) error

type ListNetworkPolicies500JSONResponse added in v0.4.0

type ListNetworkPolicies500JSONResponse ErrorResponse

func (ListNetworkPolicies500JSONResponse) VisitListNetworkPoliciesResponse added in v0.4.0

func (response ListNetworkPolicies500JSONResponse) VisitListNetworkPoliciesResponse(w http.ResponseWriter) error

type ListNetworkPoliciesRequestObject added in v0.4.0

type ListNetworkPoliciesRequestObject struct {
}

type ListNetworkPoliciesResponseObject added in v0.4.0

type ListNetworkPoliciesResponseObject interface {
	VisitListNetworkPoliciesResponse(w http.ResponseWriter) error
}

type ListNetworkPoliciesTestClientResponse added in v0.4.0

type ListNetworkPoliciesTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]NetworkPolicyListItem
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListNetworkPoliciesTestClientResponse added in v0.4.0

func ParseListNetworkPoliciesTestClientResponse(rsp *http.Response) (*ListNetworkPoliciesTestClientResponse, error)

ParseListNetworkPoliciesTestClientResponse parses an HTTP response from a ListNetworkPoliciesWithResponse call

func (ListNetworkPoliciesTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListNetworkPoliciesTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type ListUsers200JSONResponse

type ListUsers200JSONResponse []User

func (ListUsers200JSONResponse) VisitListUsersResponse

func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsers401JSONResponse

type ListUsers401JSONResponse ErrorResponse

func (ListUsers401JSONResponse) VisitListUsersResponse

func (response ListUsers401JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsers403Response

type ListUsers403Response struct {
}

func (ListUsers403Response) VisitListUsersResponse

func (response ListUsers403Response) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsers500JSONResponse

type ListUsers500JSONResponse ErrorResponse

func (ListUsers500JSONResponse) VisitListUsersResponse

func (response ListUsers500JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsersRequestObject

type ListUsersRequestObject struct {
}

type ListUsersResponseObject

type ListUsersResponseObject interface {
	VisitListUsersResponse(w http.ResponseWriter) error
}

type ListUsersTestClientResponse added in v0.4.0

type ListUsersTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]User
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListUsersTestClientResponse added in v0.4.0

func ParseListUsersTestClientResponse(rsp *http.Response) (*ListUsersTestClientResponse, error)

ParseListUsersTestClientResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListUsersTestClientResponse) StatusCode added in v0.4.0

func (r ListUsersTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersWithAccess200JSONResponse added in v0.4.0

type ListUsersWithAccess200JSONResponse []UserListItem

func (ListUsersWithAccess200JSONResponse) VisitListUsersWithAccessResponse added in v0.4.0

func (response ListUsersWithAccess200JSONResponse) VisitListUsersWithAccessResponse(w http.ResponseWriter) error

type ListUsersWithAccess401JSONResponse added in v0.4.0

type ListUsersWithAccess401JSONResponse ErrorResponse

func (ListUsersWithAccess401JSONResponse) VisitListUsersWithAccessResponse added in v0.4.0

func (response ListUsersWithAccess401JSONResponse) VisitListUsersWithAccessResponse(w http.ResponseWriter) error

type ListUsersWithAccess403Response added in v0.4.0

type ListUsersWithAccess403Response struct {
}

func (ListUsersWithAccess403Response) VisitListUsersWithAccessResponse added in v0.4.0

func (response ListUsersWithAccess403Response) VisitListUsersWithAccessResponse(w http.ResponseWriter) error

type ListUsersWithAccess500JSONResponse added in v0.4.0

type ListUsersWithAccess500JSONResponse ErrorResponse

func (ListUsersWithAccess500JSONResponse) VisitListUsersWithAccessResponse added in v0.4.0

func (response ListUsersWithAccess500JSONResponse) VisitListUsersWithAccessResponse(w http.ResponseWriter) error

type ListUsersWithAccessRequestObject added in v0.4.0

type ListUsersWithAccessRequestObject struct {
}

type ListUsersWithAccessResponseObject added in v0.4.0

type ListUsersWithAccessResponseObject interface {
	VisitListUsersWithAccessResponse(w http.ResponseWriter) error
}

type ListUsersWithAccessTestClientResponse added in v0.4.0

type ListUsersWithAccessTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]UserListItem
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListUsersWithAccessTestClientResponse added in v0.4.0

func ParseListUsersWithAccessTestClientResponse(rsp *http.Response) (*ListUsersWithAccessTestClientResponse, error)

ParseListUsersWithAccessTestClientResponse parses an HTTP response from a ListUsersWithAccessWithResponse call

func (ListUsersWithAccessTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ListUsersWithAccessTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type Login200JSONResponse

type Login200JSONResponse struct {
	Body    User
	Headers Login200ResponseHeaders
}

func (Login200JSONResponse) VisitLoginResponse

func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type Login200ResponseHeaders

type Login200ResponseHeaders struct {
	SetCookie string
}

type Login401JSONResponse

type Login401JSONResponse ErrorResponse

func (Login401JSONResponse) VisitLoginResponse

func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type Login500JSONResponse

type Login500JSONResponse ErrorResponse

func (Login500JSONResponse) VisitLoginResponse

func (response Login500JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type LoginJSONRequestBody

type LoginJSONRequestBody = AuthRequest

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginRequestObject

type LoginRequestObject struct {
	Body *LoginJSONRequestBody
}

type LoginResponseObject

type LoginResponseObject interface {
	VisitLoginResponse(w http.ResponseWriter) error
}

type LoginTestClientResponse added in v0.4.0

type LoginTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseLoginTestClientResponse added in v0.4.0

func ParseLoginTestClientResponse(rsp *http.Response) (*LoginTestClientResponse, error)

ParseLoginTestClientResponse parses an HTTP response from a LoginWithResponse call

func (LoginTestClientResponse) Status added in v0.4.0

func (r LoginTestClientResponse) Status() string

Status returns HTTPResponse.Status

func (LoginTestClientResponse) StatusCode added in v0.4.0

func (r LoginTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Logout204Response

type Logout204Response struct {
	Headers Logout204ResponseHeaders
}

func (Logout204Response) VisitLogoutResponse

func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error

type Logout204ResponseHeaders

type Logout204ResponseHeaders struct {
	SetCookie string
}

type LogoutRequestObject

type LogoutRequestObject struct {
}

type LogoutResponseObject

type LogoutResponseObject interface {
	VisitLogoutResponse(w http.ResponseWriter) error
}

type LogoutTestClientResponse added in v0.4.0

type LogoutTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLogoutTestClientResponse added in v0.4.0

func ParseLogoutTestClientResponse(rsp *http.Response) (*LogoutTestClientResponse, error)

ParseLogoutTestClientResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutTestClientResponse) Status added in v0.4.0

func (r LogoutTestClientResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutTestClientResponse) StatusCode added in v0.4.0

func (r LogoutTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MaxActiveAddressesRule added in v0.2.0

type MaxActiveAddressesRule struct {
	CreatedAt *UTCTime `json:"created_at,omitempty"`
	DeviceId  ID       `json:"device_id"`

	// Enabled Whether the max active addresses rule is active
	Enabled bool `json:"enabled"`
	Id      *ID  `json:"id,omitempty"`

	// MaxAddresses Maximum number of simultaneously enabled IP addresses; absent when disabled and never configured
	MaxAddresses *int     `json:"max_addresses,omitempty"`
	UpdatedAt    *UTCTime `json:"updated_at,omitempty"`
}

MaxActiveAddressesRule defines model for MaxActiveAddressesRule.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type ModifyAccessRequest added in v0.4.0

type ModifyAccessRequest struct {
	// BypassHostCheck When true, grants access to all hosts regardless of group configuration.
	BypassHostCheck bool `json:"bypass_host_check"`
	GroupIds        []ID `json:"group_ids"`
}

ModifyAccessRequest Atomically replaces bypass flag and full group assignment list. Shared by users and policies.

type ModifyNetworkPolicyRequest added in v0.4.0

type ModifyNetworkPolicyRequest struct {
	Cidr        string  `json:"cidr"`
	Description *string `json:"description"`
	Enabled     bool    `json:"enabled"`
	Name        string  `json:"name"`
}

ModifyNetworkPolicyRequest defines model for ModifyNetworkPolicyRequest.

type NetworkPolicyDetail added in v0.4.0

type NetworkPolicyDetail struct {
	BypassHostCheck bool `json:"bypass_host_check"`

	// Cidr Normalized CIDR notation, e.g. "192.168.1.0/24"
	Cidr        string  `json:"cidr"`
	CreatedAt   UTCTime `json:"created_at"`
	Description *string `json:"description"`
	Enabled     bool    `json:"enabled"`

	// Groups All groups with their hosts and assignment status.
	Groups    []SubjectGroupDetail `json:"groups"`
	Id        ID                   `json:"id"`
	Name      string               `json:"name"`
	UpdatedAt UTCTime              `json:"updated_at"`
}

NetworkPolicyDetail Full network policy detail including group assignments.

type NetworkPolicyListItem added in v0.4.0

type NetworkPolicyListItem struct {
	BypassHostCheck bool `json:"bypass_host_check"`

	// Cidr Normalized CIDR notation, e.g. "192.168.1.0/24"
	Cidr      string         `json:"cidr"`
	CreatedAt UTCTime        `json:"created_at"`
	Enabled   bool           `json:"enabled"`
	Groups    []GroupSummary `json:"groups"`

	// HostCount Total hosts accessible across all assigned groups.
	HostCount int    `json:"host_count"`
	Id        ID     `json:"id"`
	Name      string `json:"name"`
}

NetworkPolicyListItem Network policy summary for the access management list page.

type NetworkPolicyRef added in v0.4.0

type NetworkPolicyRef struct {
	Cidr string `json:"cidr"`
	Id   ID     `json:"id"`
	Name string `json:"name"`
}

NetworkPolicyRef Minimal network policy reference embedded in group responses.

type NullableString added in v0.2.0

type NullableString struct {
	Value *string
	Set   bool
}

NullableString distinguishes three JSON states for a string field:

  • absent from JSON body → Set=false, Value=nil (don't change)
  • explicit null in JSON → Set=true, Value=nil (clear)
  • string value in JSON → Set=true, Value=&s (set new value)

Use x-go-type: NullableString in openapi.yaml for request body fields that need this distinction. The standard *string cannot represent "absent" separately from "null" because both produce a nil pointer after decoding.

func (NullableString) MarshalJSON added in v0.4.0

func (n NullableString) MarshalJSON() ([]byte, error)

MarshalJSON emits the string value or null. The zero value (Set=false) also marshals as null: Go's encoding/json cannot omit a non-pointer struct field from a parent object, so callers that need field-level "absent" semantics must send raw JSON instead of using the typed struct.

func (*NullableString) UnmarshalJSON added in v0.2.0

func (n *NullableString) UnmarshalJSON(data []byte) error

type Password

type Password = string

Password defines model for Password.

type PolicyDenyReason added in v0.5.0

type PolicyDenyReason string

PolicyDenyReason Why the policy engine denied an access request. The complete set of values that can appear in an access log entry's deny_reason or be used as the deny_reason filter.

const (
	HostNotAllowed  PolicyDenyReason = "host_not_allowed"
	InvalidToken    PolicyDenyReason = "invalid_token"
	IpNotRegistered PolicyDenyReason = "ip_not_registered"
	NoDeviceMatch   PolicyDenyReason = "no_device_match"
)

Defines values for PolicyDenyReason.

type PolicyIPDevice added in v0.3.0

type PolicyIPDevice struct {
	DeviceId   ID     `json:"device_id"`
	DeviceName string `json:"device_name"`
}

PolicyIPDevice defines model for PolicyIPDevice.

type PolicyNetworkPolicyEntry added in v0.4.0

type PolicyNetworkPolicyEntry struct {
	BypassHostCheck bool   `json:"bypass_host_check"`
	Cidr            string `json:"cidr"`

	// EffectiveHostCount Hosts reachable through this policy. Equals total_host_count when bypass_host_check is true.
	EffectiveHostCount int `json:"effective_host_count"`

	// Enabled False when the policy is present in the snapshot but currently disabled. Disabled policies are cached but bypassed in verify decisions.
	Enabled        bool   `json:"enabled"`
	PolicyId       ID     `json:"policy_id"`
	PolicyName     string `json:"policy_name"`
	TotalHostCount int    `json:"total_host_count"`
}

PolicyNetworkPolicyEntry defines model for PolicyNetworkPolicyEntry.

type PolicySimulateResult added in v0.3.0

type PolicySimulateResult struct {
	Allowed bool `json:"allowed"`

	// DenyReason Reason for denial; null when allowed is true.
	DenyReason *PolicyDenyReason `json:"deny_reason"`
	Host       string            `json:"host"`

	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`

	// MatchSource Which mechanism authorized the request. Null when allowed is false.
	MatchSource *PolicySimulateResultMatchSource `json:"match_source"`

	// NetworkPolicyId ID of the matching policy when match_source is 'network_policy'.
	NetworkPolicyId *ID `json:"network_policy_id"`

	// NetworkPolicyName Name of the matching policy when match_source is 'network_policy'.
	NetworkPolicyName *string `json:"network_policy_name"`
}

PolicySimulateResult defines model for PolicySimulateResult.

type PolicySimulateResultMatchSource added in v0.4.0

type PolicySimulateResultMatchSource string

PolicySimulateResultMatchSource Which mechanism authorized the request. Null when allowed is false.

const (
	PolicySimulateResultMatchSourceDevice        PolicySimulateResultMatchSource = "device"
	PolicySimulateResultMatchSourceNetworkPolicy PolicySimulateResultMatchSource = "network_policy"
)

Defines values for PolicySimulateResultMatchSource.

type PolicyUserAddress added in v0.3.0

type PolicyUserAddress struct {
	AddressId  ID     `json:"address_id"`
	DeviceId   ID     `json:"device_id"`
	DeviceName string `json:"device_name"`

	// UpdatedAt Last heartbeat or manual update time for this address.
	UpdatedAt UTCTime `json:"updated_at"`
}

PolicyUserAddress defines model for PolicyUserAddress.

type PolicyUserEntry added in v0.3.0

type PolicyUserEntry struct {
	// AllowedHostCount Size of user_allowed_hosts (pre-intersection). Zero when bypass_allowlist is true; the UI should render "All".
	AllowedHostCount int `json:"allowed_host_count"`

	// BypassAllowlist True when this user has the host allowlist bypass enabled.
	BypassAllowlist bool `json:"bypass_allowlist"`

	// DeviceCount Distinct devices owned by this user that contribute to the cache. Zero for no-access users.
	DeviceCount int `json:"device_count"`

	// DisplayName User display name.
	DisplayName string `json:"display_name"`

	// IntersectionApplied True when at least one of this user's IPs had its effective host set reduced by deny-wins intersection with another user at that IP.
	IntersectionApplied bool `json:"intersection_applied"`

	// IpCount Distinct IPs this user currently contributes to. Zero for no-access users.
	IpCount int `json:"ip_count"`

	// Ips IPs this user currently contributes to. Empty for no-access users (never null — empty array, for client ergonomics).
	Ips []PolicyUserIP `json:"ips"`

	// IsAdmin True when the user has an admin or superadmin role.
	IsAdmin bool `json:"is_admin"`

	// LastSeenAt Most recent address.updated_at across this user's addresses. Null when the user has no enabled IPs.
	LastSeenAt *UTCTime `json:"last_seen_at"`

	// OnSharedIp True when at least one of this user's IPs is shared with another user.
	OnSharedIp bool `json:"on_shared_ip"`

	// Status Effective access classification, computed server-side from bypass_allowlist, ip_count and allowed_host_count.
	Status PolicyUserStatus `json:"status"`

	// UserAllowedHosts Pre-intersection allowed host list for this user. Empty when bypass_allowlist is true.
	UserAllowedHosts []string `json:"user_allowed_hosts"`
	UserId           ID       `json:"user_id"`
}

PolicyUserEntry defines model for PolicyUserEntry.

type PolicyUserIP added in v0.3.0

type PolicyUserIP struct {
	// Addresses The user's own addresses sitting at this IP. Multiple entries when the same user has several devices behind the same NAT.
	Addresses []PolicyUserAddress `json:"addresses"`

	// BypassAtIp True when the IP entry as a whole bypasses the host allowlist (every contributor at this IP has bypass set). When true, effective_hosts is empty and means "All".
	BypassAtIp bool `json:"bypass_at_ip"`

	// EffectiveHosts Hosts actually allowed for THIS user at THIS IP after deny-wins intersection. Equals user_allowed_hosts when the user is the sole contributor; intersected with other restricted contributors otherwise. Empty when bypass_at_ip is true.
	EffectiveHosts []string `json:"effective_hosts"`

	// Geo GeoIP metadata resolved on read for this IP. Null when the IP is unresolvable or GeoIP enrichment is disabled.
	Geo *GeoInfo `json:"geo"`

	// Ip IPv4 or IPv6 address
	Ip IPAddress `json:"ip"`

	// SharedWithUsers Other users (excluding self) that also contribute to this IP. Empty means this user is the sole owner of the IP.
	SharedWithUsers []PolicyUserIPSharedUser `json:"shared_with_users"`

	// TrimmedHosts Hosts the user had pre-intersection that were removed by intersection at this IP. Empty when no trimming occurred. Always empty when the user has bypass_allowlist true (their grants are not subject to intersection).
	TrimmedHosts []string `json:"trimmed_hosts"`
}

PolicyUserIP defines model for PolicyUserIP.

type PolicyUserIPSharedUser added in v0.3.0

type PolicyUserIPSharedUser struct {
	// Devices Devices this user has at this IP.
	Devices []PolicyIPDevice `json:"devices"`
	UserId  ID               `json:"user_id"`

	// UserName Display name of the co-located user.
	UserName string `json:"user_name"`

	// Username Login username of the co-located user.
	Username string `json:"username"`
}

PolicyUserIPSharedUser defines model for PolicyUserIPSharedUser.

type PolicyUserMapAudit added in v0.3.0

type PolicyUserMapAudit struct {
	// NetworkPolicies All enabled network policies currently in the cache.
	NetworkPolicies []PolicyNetworkPolicyEntry `json:"network_policies"`

	// RefreshDurationMs How long the last refresh took in milliseconds.
	RefreshDurationMs int `json:"refresh_duration_ms"`

	// RefreshedAt When the cache was last fully refreshed.
	RefreshedAt UTCTime `json:"refreshed_at"`

	// SharedIpCount Distinct IPs shared between two or more users.
	SharedIpCount int `json:"shared_ip_count"`

	// TotalDeviceCount Total distinct device contributors across all IPs in the cache.
	TotalDeviceCount int `json:"total_device_count"`

	// TotalHostCount Distinct hosts across the union of all users' pre-intersection allowed host lists. Denominator for the allowed_host_count / total_host_count ratio.
	TotalHostCount int `json:"total_host_count"`

	// TotalIpCount Distinct IPs currently in the policy cache.
	TotalIpCount int `json:"total_ip_count"`

	// TotalNetworkPolicyCount Number of enabled network policies currently in the cache.
	TotalNetworkPolicyCount int               `json:"total_network_policy_count"`
	Users                   []PolicyUserEntry `json:"users"`
}

PolicyUserMapAudit defines model for PolicyUserMapAudit.

type PolicyUserStatus added in v0.4.0

type PolicyUserStatus string

PolicyUserStatus Effective access classification along two orthogonal axes: reachability (does the user have live IPs in the cache?) and authorization (does the user have host grants?).

  • bypass: host allowlist is bypassed; the host check does not apply.
  • live_with_access: has live IPs and host grants.
  • live_no_host_access: has live IPs but no host grants — the device is active yet every request is denied.
  • no_live_ips: no live IPs, but host grants exist.
  • no_access: no live IPs and no host grants.
const (
	Bypass           PolicyUserStatus = "bypass"
	LiveNoHostAccess PolicyUserStatus = "live_no_host_access"
	LiveWithAccess   PolicyUserStatus = "live_with_access"
	NoAccess         PolicyUserStatus = "no_access"
	NoLiveIps        PolicyUserStatus = "no_live_ips"
)

Defines values for PolicyUserStatus.

type PromoteUser200JSONResponse

type PromoteUser200JSONResponse User

func (PromoteUser200JSONResponse) VisitPromoteUserResponse

func (response PromoteUser200JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUser400JSONResponse added in v0.3.0

type PromoteUser400JSONResponse ErrorResponse

func (PromoteUser400JSONResponse) VisitPromoteUserResponse added in v0.3.0

func (response PromoteUser400JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUser401JSONResponse

type PromoteUser401JSONResponse ErrorResponse

func (PromoteUser401JSONResponse) VisitPromoteUserResponse

func (response PromoteUser401JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUser403JSONResponse

type PromoteUser403JSONResponse ErrorResponse

func (PromoteUser403JSONResponse) VisitPromoteUserResponse

func (response PromoteUser403JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUser404JSONResponse

type PromoteUser404JSONResponse ErrorResponse

func (PromoteUser404JSONResponse) VisitPromoteUserResponse

func (response PromoteUser404JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUser500JSONResponse

type PromoteUser500JSONResponse ErrorResponse

func (PromoteUser500JSONResponse) VisitPromoteUserResponse

func (response PromoteUser500JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error

type PromoteUserJSONRequestBody added in v0.3.0

type PromoteUserJSONRequestBody = PromoteUserRequest

PromoteUserJSONRequestBody defines body for PromoteUser for application/json ContentType.

type PromoteUserRequest added in v0.3.0

type PromoteUserRequest struct {
	Password Password `json:"password"`
}

PromoteUserRequest defines model for PromoteUserRequest.

type PromoteUserRequestObject

type PromoteUserRequestObject struct {
	UserId ID `json:"user_id"`
	Body   *PromoteUserJSONRequestBody
}

type PromoteUserResponseObject

type PromoteUserResponseObject interface {
	VisitPromoteUserResponse(w http.ResponseWriter) error
}

type PromoteUserTestClientResponse added in v0.4.0

type PromoteUserTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePromoteUserTestClientResponse added in v0.4.0

func ParsePromoteUserTestClientResponse(rsp *http.Response) (*PromoteUserTestClientResponse, error)

ParsePromoteUserTestClientResponse parses an HTTP response from a PromoteUserWithResponse call

func (PromoteUserTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (PromoteUserTestClientResponse) StatusCode added in v0.4.0

func (r PromoteUserTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutDeviceAddressLeaseRule200JSONResponse

type PutDeviceAddressLeaseRule200JSONResponse DeviceAddressLeaseRule

func (PutDeviceAddressLeaseRule200JSONResponse) VisitPutDeviceAddressLeaseRuleResponse

func (response PutDeviceAddressLeaseRule200JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type PutDeviceAddressLeaseRule400JSONResponse

type PutDeviceAddressLeaseRule400JSONResponse ErrorResponse

func (PutDeviceAddressLeaseRule400JSONResponse) VisitPutDeviceAddressLeaseRuleResponse

func (response PutDeviceAddressLeaseRule400JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type PutDeviceAddressLeaseRule404JSONResponse

type PutDeviceAddressLeaseRule404JSONResponse ErrorResponse

func (PutDeviceAddressLeaseRule404JSONResponse) VisitPutDeviceAddressLeaseRuleResponse

func (response PutDeviceAddressLeaseRule404JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type PutDeviceAddressLeaseRule500JSONResponse

type PutDeviceAddressLeaseRule500JSONResponse ErrorResponse

func (PutDeviceAddressLeaseRule500JSONResponse) VisitPutDeviceAddressLeaseRuleResponse

func (response PutDeviceAddressLeaseRule500JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error

type PutDeviceAddressLeaseRuleJSONRequestBody

type PutDeviceAddressLeaseRuleJSONRequestBody = PutDeviceAddressLeaseRuleRequest

PutDeviceAddressLeaseRuleJSONRequestBody defines body for PutDeviceAddressLeaseRule for application/json ContentType.

type PutDeviceAddressLeaseRuleRequest

type PutDeviceAddressLeaseRuleRequest struct {
	// TtlSeconds Seconds after which an enabled device address lease expires
	TtlSeconds int `json:"ttl_seconds"`
}

PutDeviceAddressLeaseRuleRequest defines model for PutDeviceAddressLeaseRuleRequest.

type PutDeviceAddressLeaseRuleRequestObject

type PutDeviceAddressLeaseRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
	Body     *PutDeviceAddressLeaseRuleJSONRequestBody
}

type PutDeviceAddressLeaseRuleResponseObject

type PutDeviceAddressLeaseRuleResponseObject interface {
	VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}

type PutDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

type PutDeviceAddressLeaseRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeviceAddressLeaseRule
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePutDeviceAddressLeaseRuleTestClientResponse added in v0.4.0

func ParsePutDeviceAddressLeaseRuleTestClientResponse(rsp *http.Response) (*PutDeviceAddressLeaseRuleTestClientResponse, error)

ParsePutDeviceAddressLeaseRuleTestClientResponse parses an HTTP response from a PutDeviceAddressLeaseRuleWithResponse call

func (PutDeviceAddressLeaseRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (PutDeviceAddressLeaseRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type PutMaxActiveAddressesRule200JSONResponse added in v0.2.0

type PutMaxActiveAddressesRule200JSONResponse MaxActiveAddressesRule

func (PutMaxActiveAddressesRule200JSONResponse) VisitPutMaxActiveAddressesRuleResponse added in v0.2.0

func (response PutMaxActiveAddressesRule200JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type PutMaxActiveAddressesRule400JSONResponse added in v0.2.0

type PutMaxActiveAddressesRule400JSONResponse ErrorResponse

func (PutMaxActiveAddressesRule400JSONResponse) VisitPutMaxActiveAddressesRuleResponse added in v0.2.0

func (response PutMaxActiveAddressesRule400JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type PutMaxActiveAddressesRule404JSONResponse added in v0.2.0

type PutMaxActiveAddressesRule404JSONResponse ErrorResponse

func (PutMaxActiveAddressesRule404JSONResponse) VisitPutMaxActiveAddressesRuleResponse added in v0.2.0

func (response PutMaxActiveAddressesRule404JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type PutMaxActiveAddressesRule500JSONResponse added in v0.2.0

type PutMaxActiveAddressesRule500JSONResponse ErrorResponse

func (PutMaxActiveAddressesRule500JSONResponse) VisitPutMaxActiveAddressesRuleResponse added in v0.2.0

func (response PutMaxActiveAddressesRule500JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error

type PutMaxActiveAddressesRuleJSONRequestBody added in v0.2.0

type PutMaxActiveAddressesRuleJSONRequestBody = PutMaxActiveAddressesRuleRequest

PutMaxActiveAddressesRuleJSONRequestBody defines body for PutMaxActiveAddressesRule for application/json ContentType.

type PutMaxActiveAddressesRuleRequest added in v0.2.0

type PutMaxActiveAddressesRuleRequest struct {
	// MaxAddresses Maximum number of simultaneously enabled IP addresses
	MaxAddresses int `json:"max_addresses"`
}

PutMaxActiveAddressesRuleRequest defines model for PutMaxActiveAddressesRuleRequest.

type PutMaxActiveAddressesRuleRequestObject added in v0.2.0

type PutMaxActiveAddressesRuleRequestObject struct {
	DeviceId ID `json:"device_id"`
	Body     *PutMaxActiveAddressesRuleJSONRequestBody
}

type PutMaxActiveAddressesRuleResponseObject added in v0.2.0

type PutMaxActiveAddressesRuleResponseObject interface {
	VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}

type PutMaxActiveAddressesRuleTestClientResponse added in v0.4.0

type PutMaxActiveAddressesRuleTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MaxActiveAddressesRule
	JSON400      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePutMaxActiveAddressesRuleTestClientResponse added in v0.4.0

func ParsePutMaxActiveAddressesRuleTestClientResponse(rsp *http.Response) (*PutMaxActiveAddressesRuleTestClientResponse, error)

ParsePutMaxActiveAddressesRuleTestClientResponse parses an HTTP response from a PutMaxActiveAddressesRuleWithResponse call

func (PutMaxActiveAddressesRuleTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (PutMaxActiveAddressesRuleTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type ReconcileGroupsRequest added in v0.4.0

type ReconcileGroupsRequest struct {
	Groups []GroupWrite `json:"groups"`
}

ReconcileGroupsRequest Exhaustive list of all desired groups. Groups absent from this list are deleted.

type ReconcileHostGroups204Response added in v0.3.0

type ReconcileHostGroups204Response struct {
}

func (ReconcileHostGroups204Response) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups204Response) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups400JSONResponse added in v0.3.0

type ReconcileHostGroups400JSONResponse ErrorResponse

func (ReconcileHostGroups400JSONResponse) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups400JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups401JSONResponse added in v0.3.0

type ReconcileHostGroups401JSONResponse ErrorResponse

func (ReconcileHostGroups401JSONResponse) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups401JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups403Response added in v0.3.0

type ReconcileHostGroups403Response struct {
}

func (ReconcileHostGroups403Response) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups403Response) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups404JSONResponse added in v0.3.0

type ReconcileHostGroups404JSONResponse ErrorResponse

func (ReconcileHostGroups404JSONResponse) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups404JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups409JSONResponse added in v0.3.0

type ReconcileHostGroups409JSONResponse ErrorResponse

func (ReconcileHostGroups409JSONResponse) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups409JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups422JSONResponse added in v0.4.0

type ReconcileHostGroups422JSONResponse ErrorResponse

func (ReconcileHostGroups422JSONResponse) VisitReconcileHostGroupsResponse added in v0.4.0

func (response ReconcileHostGroups422JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroups500JSONResponse added in v0.3.0

type ReconcileHostGroups500JSONResponse ErrorResponse

func (ReconcileHostGroups500JSONResponse) VisitReconcileHostGroupsResponse added in v0.3.0

func (response ReconcileHostGroups500JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error

type ReconcileHostGroupsJSONRequestBody added in v0.3.0

type ReconcileHostGroupsJSONRequestBody = ReconcileGroupsRequest

ReconcileHostGroupsJSONRequestBody defines body for ReconcileHostGroups for application/json ContentType.

type ReconcileHostGroupsRequestObject added in v0.3.0

type ReconcileHostGroupsRequestObject struct {
	Body *ReconcileHostGroupsJSONRequestBody
}

type ReconcileHostGroupsResponseObject added in v0.3.0

type ReconcileHostGroupsResponseObject interface {
	VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
}

type ReconcileHostGroupsTestClientResponse added in v0.4.0

type ReconcileHostGroupsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON422      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseReconcileHostGroupsTestClientResponse added in v0.4.0

func ParseReconcileHostGroupsTestClientResponse(rsp *http.Response) (*ReconcileHostGroupsTestClientResponse, error)

ParseReconcileHostGroupsTestClientResponse parses an HTTP response from a ReconcileHostGroupsWithResponse call

func (ReconcileHostGroupsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ReconcileHostGroupsTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type ReconcileHosts204Response added in v0.4.0

type ReconcileHosts204Response struct {
}

func (ReconcileHosts204Response) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts204Response) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts400JSONResponse added in v0.4.0

type ReconcileHosts400JSONResponse ErrorResponse

func (ReconcileHosts400JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts400JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts401JSONResponse added in v0.4.0

type ReconcileHosts401JSONResponse ErrorResponse

func (ReconcileHosts401JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts401JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts403Response added in v0.4.0

type ReconcileHosts403Response struct {
}

func (ReconcileHosts403Response) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts403Response) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts404JSONResponse added in v0.4.0

type ReconcileHosts404JSONResponse ErrorResponse

func (ReconcileHosts404JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts404JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts409JSONResponse added in v0.4.0

type ReconcileHosts409JSONResponse ErrorResponse

func (ReconcileHosts409JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts409JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts422JSONResponse added in v0.4.0

type ReconcileHosts422JSONResponse ErrorResponse

func (ReconcileHosts422JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts422JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHosts500JSONResponse added in v0.4.0

type ReconcileHosts500JSONResponse ErrorResponse

func (ReconcileHosts500JSONResponse) VisitReconcileHostsResponse added in v0.4.0

func (response ReconcileHosts500JSONResponse) VisitReconcileHostsResponse(w http.ResponseWriter) error

type ReconcileHostsJSONRequestBody added in v0.4.0

type ReconcileHostsJSONRequestBody = ReconcileHostsRequest

ReconcileHostsJSONRequestBody defines body for ReconcileHosts for application/json ContentType.

type ReconcileHostsRequest added in v0.4.0

type ReconcileHostsRequest struct {
	Hosts []HostInput `json:"hosts"`
}

ReconcileHostsRequest Exhaustive list of all hosts. Hosts absent from this list are deleted.

type ReconcileHostsRequestObject added in v0.4.0

type ReconcileHostsRequestObject struct {
	Body *ReconcileHostsJSONRequestBody
}

type ReconcileHostsResponseObject added in v0.4.0

type ReconcileHostsResponseObject interface {
	VisitReconcileHostsResponse(w http.ResponseWriter) error
}

type ReconcileHostsTestClientResponse added in v0.4.0

type ReconcileHostsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON422      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseReconcileHostsTestClientResponse added in v0.4.0

func ParseReconcileHostsTestClientResponse(rsp *http.Response) (*ReconcileHostsTestClientResponse, error)

ParseReconcileHostsTestClientResponse parses an HTTP response from a ReconcileHostsWithResponse call

func (ReconcileHostsTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (ReconcileHostsTestClientResponse) StatusCode added in v0.4.0

func (r ReconcileHostsTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegenerateDeviceAPIKey200JSONResponse

type RegenerateDeviceAPIKey200JSONResponse DeviceAPIKeyResponse

func (RegenerateDeviceAPIKey200JSONResponse) VisitRegenerateDeviceAPIKeyResponse

func (response RegenerateDeviceAPIKey200JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error

type RegenerateDeviceAPIKey404JSONResponse

type RegenerateDeviceAPIKey404JSONResponse ErrorResponse

func (RegenerateDeviceAPIKey404JSONResponse) VisitRegenerateDeviceAPIKeyResponse

func (response RegenerateDeviceAPIKey404JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error

type RegenerateDeviceAPIKey500JSONResponse

type RegenerateDeviceAPIKey500JSONResponse ErrorResponse

func (RegenerateDeviceAPIKey500JSONResponse) VisitRegenerateDeviceAPIKeyResponse

func (response RegenerateDeviceAPIKey500JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error

type RegenerateDeviceAPIKeyRequestObject

type RegenerateDeviceAPIKeyRequestObject struct {
	DeviceId ID `json:"device_id"`
}

type RegenerateDeviceAPIKeyResponseObject

type RegenerateDeviceAPIKeyResponseObject interface {
	VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error
}

type RegenerateDeviceAPIKeyTestClientResponse added in v0.4.0

type RegenerateDeviceAPIKeyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DeviceAPIKeyResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRegenerateDeviceAPIKeyTestClientResponse added in v0.4.0

func ParseRegenerateDeviceAPIKeyTestClientResponse(rsp *http.Response) (*RegenerateDeviceAPIKeyTestClientResponse, error)

ParseRegenerateDeviceAPIKeyTestClientResponse parses an HTTP response from a RegenerateDeviceAPIKeyWithResponse call

func (RegenerateDeviceAPIKeyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (RegenerateDeviceAPIKeyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn added in v0.4.0

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServerInterface

type ServerInterface interface {
	// List access log entries
	// (GET /access-log)
	GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)
	// Request counts grouped by country
	// (GET /access-log/stats/by-country)
	GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)
	// Get address activity history
	// (GET /address-history)
	GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)
	// List all host groups with members and subject assignments
	// (GET /admin/access/host-groups)
	ListHostGroups(w http.ResponseWriter, r *http.Request)
	// Reconcile host groups (full replace)
	// (POST /admin/access/host-groups/reconcile)
	ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
	// List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions
	// (GET /admin/access/host-suggestions)
	ListHostSuggestions(w http.ResponseWriter, r *http.Request)
	// Ignore a host suggestion
	// (POST /admin/access/host-suggestions/ignore)
	IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
	// Remove a host suggestion from the ignore list
	// (DELETE /admin/access/host-suggestions/ignore/{fqdn})
	UnignoreSuggestion(w http.ResponseWriter, r *http.Request, fqdn string)
	// List all hosts with group memberships
	// (GET /admin/access/hosts)
	ListHosts(w http.ResponseWriter, r *http.Request)
	// Reconcile hosts (full replace)
	// (POST /admin/access/hosts/reconcile)
	ReconcileHosts(w http.ResponseWriter, r *http.Request)
	// List all network policies
	// (GET /admin/access/network-policies)
	ListNetworkPolicies(w http.ResponseWriter, r *http.Request)
	// Create a network policy
	// (POST /admin/access/network-policies)
	CreateNetworkPolicy(w http.ResponseWriter, r *http.Request)
	// Delete a network policy
	// (DELETE /admin/access/network-policies/{policy_id})
	DeleteNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)
	// Get network policy detail
	// (GET /admin/access/network-policies/{policy_id})
	GetNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)
	// Update policy metadata
	// (PUT /admin/access/network-policies/{policy_id})
	UpdateNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)
	// Atomically replace a policy's access grants
	// (PUT /admin/access/network-policies/{policy_id}/grants)
	UpdateNetworkPolicyAccess(w http.ResponseWriter, r *http.Request, policyId ID)
	// List users with host access summary
	// (GET /admin/access/users)
	ListUsersWithAccess(w http.ResponseWriter, r *http.Request)
	// Get full host access detail for a user
	// (GET /admin/access/users/{user_id})
	GetUserAccessDetail(w http.ResponseWriter, r *http.Request, userId ID)
	// Atomically replace a user's access grants
	// (PUT /admin/access/users/{user_id}/grants)
	SetUserAccess(w http.ResponseWriter, r *http.Request, userId ID)
	// Get the current policy cache snapshot (user-pivoted)
	// (GET /admin/policy-map)
	GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
	// Simulate an access decision for a given IP and host
	// (GET /admin/policy-simulate)
	SimulatePolicyAccess(w http.ResponseWriter, r *http.Request, params SimulatePolicyAccessParams)
	// List all users
	// (GET /admin/users)
	ListUsers(w http.ResponseWriter, r *http.Request)
	// Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation
	// (POST /admin/users)
	CreateUser(w http.ResponseWriter, r *http.Request)
	// Delete a user
	// (DELETE /admin/users/{user_id})
	DeleteUser(w http.ResponseWriter, r *http.Request, userId ID)
	// Superadmin only. Demote an admin to regular user
	// (POST /admin/users/{user_id}/demote)
	DemoteUser(w http.ResponseWriter, r *http.Request, userId ID)
	// Superadmin only. Promote a user to admin
	// (POST /admin/users/{user_id}/promote)
	PromoteUser(w http.ResponseWriter, r *http.Request, userId ID)
	// Login user
	// (POST /auth/login)
	Login(w http.ResponseWriter, r *http.Request)
	// Logout user
	// (POST /auth/logout)
	Logout(w http.ResponseWriter, r *http.Request)
	// Get current user
	// (GET /auth/me)
	GetCurrentUser(w http.ResponseWriter, r *http.Request)
	// Dashboard per-entity traffic attribution split
	// (GET /dashboard/attribution-split)
	GetDashboardAttributionSplit(w http.ResponseWriter, r *http.Request, params GetDashboardAttributionSplitParams)
	// Dashboard posture summary
	// (GET /dashboard/posture)
	GetDashboardPosture(w http.ResponseWriter, r *http.Request)
	// Dashboard service breakdown
	// (GET /dashboard/services)
	GetDashboardServices(w http.ResponseWriter, r *http.Request, params GetDashboardServicesParams)
	// Dashboard summary statistics
	// (GET /dashboard/stats)
	GetDashboardStats(w http.ResponseWriter, r *http.Request, params GetDashboardStatsParams)
	// Dashboard top denied IPs
	// (GET /dashboard/top-denied-ips)
	GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request, params GetDashboardTopDeniedIpsParams)
	// Dashboard traffic time series
	// (GET /dashboard/traffic)
	GetDashboardTraffic(w http.ResponseWriter, r *http.Request, params GetDashboardTrafficParams)
	// Claim a pairing code
	// (POST /device-pair)
	ClaimPairing(w http.ResponseWriter, r *http.Request)
	// List all devices grouped by owner
	// (GET /devices)
	GetDevices(w http.ResponseWriter, r *http.Request)
	// Create a device
	// (POST /devices)
	CreateDevice(w http.ResponseWriter, r *http.Request)
	// Delete a device
	// (DELETE /devices/{device_id})
	DeleteDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Update device profile
	// (PATCH /devices/{device_id})
	UpdateDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Get addresses for a device
	// (GET /devices/{device_id}/addresses)
	GetDeviceAddresses(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Assign address to device
	// (POST /devices/{device_id}/addresses)
	AddAddress(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Disable address
	// (DELETE /devices/{device_id}/addresses/{address_id})
	DisableAddress(w http.ResponseWriter, r *http.Request, deviceId ID, addressId ID)
	// Delete device API key
	// (DELETE /devices/{device_id}/api-key)
	DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Generate or regenerate device API key
	// (POST /devices/{device_id}/api-key/regenerate)
	RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Disable a device
	// (POST /devices/{device_id}/disable)
	DisableDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Re-enable a disabled device
	// (POST /devices/{device_id}/enable)
	EnableDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Device heartbeat
	// (POST /devices/{device_id}/heartbeat)
	DeviceHeartbeat(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Disable device lease rule for a device
	// (DELETE /devices/{device_id}/rules/address-lease)
	DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Get address lease rule for a device
	// (GET /devices/{device_id}/rules/address-lease)
	GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Create or update IP auto-expiry rule for a device
	// (PUT /devices/{device_id}/rules/address-lease)
	PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Disable max active addresses rule for a device
	// (DELETE /devices/{device_id}/rules/max-active-addresses)
	DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Get max active addresses rule for a device
	// (GET /devices/{device_id}/rules/max-active-addresses)
	GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// Create or update max active addresses rule for a device
	// (PUT /devices/{device_id}/rules/max-active-addresses)
	PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
	// List pairings for a device (Admin only)
	// (GET /devices/{id}/pairings)
	ListDevicePairings(w http.ResponseWriter, r *http.Request, id ID, params ListDevicePairingsParams)
	// Create a pairing for a device (Admin only)
	// (POST /devices/{id}/pairings)
	CreateDevicePairing(w http.ResponseWriter, r *http.Request, id ID)
	// Invalidate an unclaimed pairing (Admin only)
	// (DELETE /devices/{id}/pairings/{pairingId})
	DeleteDevicePairing(w http.ResponseWriter, r *http.Request, id ID, pairingId ID)
	// Get a single device pairing (Admin only)
	// (GET /devices/{id}/pairings/{pairingId})
	GetDevicePairing(w http.ResponseWriter, r *http.Request, id ID, pairingId ID)
	// Performs a heartbeat with the given api key header
	// (POST /heartbeat)
	DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
	// Update current user profile
	// (PATCH /users/me)
	UpdateMe(w http.ResponseWriter, r *http.Request)
	// Change current user password. Only administrators can change their password
	// (POST /users/me/password)
	ChangePassword(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddAddress

func (siw *ServerInterfaceWrapper) AddAddress(w http.ResponseWriter, r *http.Request)

AddAddress operation middleware

func (*ServerInterfaceWrapper) ChangePassword

func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)

ChangePassword operation middleware

func (*ServerInterfaceWrapper) ClaimPairing added in v0.4.0

func (siw *ServerInterfaceWrapper) ClaimPairing(w http.ResponseWriter, r *http.Request)

ClaimPairing operation middleware

func (*ServerInterfaceWrapper) CreateDevice

func (siw *ServerInterfaceWrapper) CreateDevice(w http.ResponseWriter, r *http.Request)

CreateDevice operation middleware

func (*ServerInterfaceWrapper) CreateDevicePairing added in v0.4.0

func (siw *ServerInterfaceWrapper) CreateDevicePairing(w http.ResponseWriter, r *http.Request)

CreateDevicePairing operation middleware

func (*ServerInterfaceWrapper) CreateNetworkPolicy added in v0.4.0

func (siw *ServerInterfaceWrapper) CreateNetworkPolicy(w http.ResponseWriter, r *http.Request)

CreateNetworkPolicy operation middleware

func (*ServerInterfaceWrapper) CreateUser

func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser operation middleware

func (*ServerInterfaceWrapper) DeleteDevice

func (siw *ServerInterfaceWrapper) DeleteDevice(w http.ResponseWriter, r *http.Request)

DeleteDevice operation middleware

func (*ServerInterfaceWrapper) DeleteDeviceAPIKey added in v0.3.0

func (siw *ServerInterfaceWrapper) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request)

DeleteDeviceAPIKey operation middleware

func (*ServerInterfaceWrapper) DeleteDevicePairing added in v0.4.0

func (siw *ServerInterfaceWrapper) DeleteDevicePairing(w http.ResponseWriter, r *http.Request)

DeleteDevicePairing operation middleware

func (*ServerInterfaceWrapper) DeleteNetworkPolicy added in v0.4.0

func (siw *ServerInterfaceWrapper) DeleteNetworkPolicy(w http.ResponseWriter, r *http.Request)

DeleteNetworkPolicy operation middleware

func (*ServerInterfaceWrapper) DeleteUser

func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser operation middleware

func (*ServerInterfaceWrapper) DemoteUser

func (siw *ServerInterfaceWrapper) DemoteUser(w http.ResponseWriter, r *http.Request)

DemoteUser operation middleware

func (*ServerInterfaceWrapper) DeviceHeartbeat

func (siw *ServerInterfaceWrapper) DeviceHeartbeat(w http.ResponseWriter, r *http.Request)

DeviceHeartbeat operation middleware

func (*ServerInterfaceWrapper) DeviceHeartbeatByAPIKey

func (siw *ServerInterfaceWrapper) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)

DeviceHeartbeatByAPIKey operation middleware

func (*ServerInterfaceWrapper) DisableAddress

func (siw *ServerInterfaceWrapper) DisableAddress(w http.ResponseWriter, r *http.Request)

DisableAddress operation middleware

func (*ServerInterfaceWrapper) DisableDevice added in v0.4.0

func (siw *ServerInterfaceWrapper) DisableDevice(w http.ResponseWriter, r *http.Request)

DisableDevice operation middleware

func (*ServerInterfaceWrapper) DisableDeviceAddressLeaseRule

func (siw *ServerInterfaceWrapper) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)

DisableDeviceAddressLeaseRule operation middleware

func (*ServerInterfaceWrapper) DisableMaxActiveAddressesRule added in v0.2.0

func (siw *ServerInterfaceWrapper) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)

DisableMaxActiveAddressesRule operation middleware

func (*ServerInterfaceWrapper) EnableDevice added in v0.4.0

func (siw *ServerInterfaceWrapper) EnableDevice(w http.ResponseWriter, r *http.Request)

EnableDevice operation middleware

func (*ServerInterfaceWrapper) GetAccessLog

func (siw *ServerInterfaceWrapper) GetAccessLog(w http.ResponseWriter, r *http.Request)

GetAccessLog operation middleware

func (*ServerInterfaceWrapper) GetAccessLogByCountry

func (siw *ServerInterfaceWrapper) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request)

GetAccessLogByCountry operation middleware

func (*ServerInterfaceWrapper) GetAddressHistory

func (siw *ServerInterfaceWrapper) GetAddressHistory(w http.ResponseWriter, r *http.Request)

GetAddressHistory operation middleware

func (*ServerInterfaceWrapper) GetCurrentUser

func (siw *ServerInterfaceWrapper) GetCurrentUser(w http.ResponseWriter, r *http.Request)

GetCurrentUser operation middleware

func (*ServerInterfaceWrapper) GetDashboardAttributionSplit added in v0.4.0

func (siw *ServerInterfaceWrapper) GetDashboardAttributionSplit(w http.ResponseWriter, r *http.Request)

GetDashboardAttributionSplit operation middleware

func (*ServerInterfaceWrapper) GetDashboardPosture added in v0.4.0

func (siw *ServerInterfaceWrapper) GetDashboardPosture(w http.ResponseWriter, r *http.Request)

GetDashboardPosture operation middleware

func (*ServerInterfaceWrapper) GetDashboardServices

func (siw *ServerInterfaceWrapper) GetDashboardServices(w http.ResponseWriter, r *http.Request)

GetDashboardServices operation middleware

func (*ServerInterfaceWrapper) GetDashboardStats

func (siw *ServerInterfaceWrapper) GetDashboardStats(w http.ResponseWriter, r *http.Request)

GetDashboardStats operation middleware

func (*ServerInterfaceWrapper) GetDashboardTopDeniedIps

func (siw *ServerInterfaceWrapper) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request)

GetDashboardTopDeniedIps operation middleware

func (*ServerInterfaceWrapper) GetDashboardTraffic

func (siw *ServerInterfaceWrapper) GetDashboardTraffic(w http.ResponseWriter, r *http.Request)

GetDashboardTraffic operation middleware

func (*ServerInterfaceWrapper) GetDeviceAddressLeaseRule

func (siw *ServerInterfaceWrapper) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)

GetDeviceAddressLeaseRule operation middleware

func (*ServerInterfaceWrapper) GetDeviceAddresses

func (siw *ServerInterfaceWrapper) GetDeviceAddresses(w http.ResponseWriter, r *http.Request)

GetDeviceAddresses operation middleware

func (*ServerInterfaceWrapper) GetDevicePairing added in v0.4.0

func (siw *ServerInterfaceWrapper) GetDevicePairing(w http.ResponseWriter, r *http.Request)

GetDevicePairing operation middleware

func (*ServerInterfaceWrapper) GetDevices

func (siw *ServerInterfaceWrapper) GetDevices(w http.ResponseWriter, r *http.Request)

GetDevices operation middleware

func (*ServerInterfaceWrapper) GetMaxActiveAddressesRule added in v0.2.0

func (siw *ServerInterfaceWrapper) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)

GetMaxActiveAddressesRule operation middleware

func (*ServerInterfaceWrapper) GetNetworkPolicy added in v0.4.0

func (siw *ServerInterfaceWrapper) GetNetworkPolicy(w http.ResponseWriter, r *http.Request)

GetNetworkPolicy operation middleware

func (*ServerInterfaceWrapper) GetPolicyUserMap added in v0.3.0

func (siw *ServerInterfaceWrapper) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)

GetPolicyUserMap operation middleware

func (*ServerInterfaceWrapper) GetUserAccessDetail added in v0.4.0

func (siw *ServerInterfaceWrapper) GetUserAccessDetail(w http.ResponseWriter, r *http.Request)

GetUserAccessDetail operation middleware

func (*ServerInterfaceWrapper) IgnoreSuggestion added in v0.3.0

func (siw *ServerInterfaceWrapper) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)

IgnoreSuggestion operation middleware

func (*ServerInterfaceWrapper) ListDevicePairings added in v0.4.0

func (siw *ServerInterfaceWrapper) ListDevicePairings(w http.ResponseWriter, r *http.Request)

ListDevicePairings operation middleware

func (*ServerInterfaceWrapper) ListHostGroups added in v0.3.0

func (siw *ServerInterfaceWrapper) ListHostGroups(w http.ResponseWriter, r *http.Request)

ListHostGroups operation middleware

func (*ServerInterfaceWrapper) ListHostSuggestions added in v0.3.0

func (siw *ServerInterfaceWrapper) ListHostSuggestions(w http.ResponseWriter, r *http.Request)

ListHostSuggestions operation middleware

func (*ServerInterfaceWrapper) ListHosts added in v0.4.0

func (siw *ServerInterfaceWrapper) ListHosts(w http.ResponseWriter, r *http.Request)

ListHosts operation middleware

func (*ServerInterfaceWrapper) ListNetworkPolicies added in v0.4.0

func (siw *ServerInterfaceWrapper) ListNetworkPolicies(w http.ResponseWriter, r *http.Request)

ListNetworkPolicies operation middleware

func (*ServerInterfaceWrapper) ListUsers

func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)

ListUsers operation middleware

func (*ServerInterfaceWrapper) ListUsersWithAccess added in v0.4.0

func (siw *ServerInterfaceWrapper) ListUsersWithAccess(w http.ResponseWriter, r *http.Request)

ListUsersWithAccess operation middleware

func (*ServerInterfaceWrapper) Login

Login operation middleware

func (*ServerInterfaceWrapper) Logout

Logout operation middleware

func (*ServerInterfaceWrapper) PromoteUser

func (siw *ServerInterfaceWrapper) PromoteUser(w http.ResponseWriter, r *http.Request)

PromoteUser operation middleware

func (*ServerInterfaceWrapper) PutDeviceAddressLeaseRule

func (siw *ServerInterfaceWrapper) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)

PutDeviceAddressLeaseRule operation middleware

func (*ServerInterfaceWrapper) PutMaxActiveAddressesRule added in v0.2.0

func (siw *ServerInterfaceWrapper) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)

PutMaxActiveAddressesRule operation middleware

func (*ServerInterfaceWrapper) ReconcileHostGroups added in v0.3.0

func (siw *ServerInterfaceWrapper) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)

ReconcileHostGroups operation middleware

func (*ServerInterfaceWrapper) ReconcileHosts added in v0.4.0

func (siw *ServerInterfaceWrapper) ReconcileHosts(w http.ResponseWriter, r *http.Request)

ReconcileHosts operation middleware

func (*ServerInterfaceWrapper) RegenerateDeviceAPIKey

func (siw *ServerInterfaceWrapper) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request)

RegenerateDeviceAPIKey operation middleware

func (*ServerInterfaceWrapper) SetUserAccess added in v0.4.0

func (siw *ServerInterfaceWrapper) SetUserAccess(w http.ResponseWriter, r *http.Request)

SetUserAccess operation middleware

func (*ServerInterfaceWrapper) SimulatePolicyAccess added in v0.3.0

func (siw *ServerInterfaceWrapper) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request)

SimulatePolicyAccess operation middleware

func (*ServerInterfaceWrapper) UnignoreSuggestion added in v0.3.0

func (siw *ServerInterfaceWrapper) UnignoreSuggestion(w http.ResponseWriter, r *http.Request)

UnignoreSuggestion operation middleware

func (*ServerInterfaceWrapper) UpdateDevice added in v0.2.0

func (siw *ServerInterfaceWrapper) UpdateDevice(w http.ResponseWriter, r *http.Request)

UpdateDevice operation middleware

func (*ServerInterfaceWrapper) UpdateMe

func (siw *ServerInterfaceWrapper) UpdateMe(w http.ResponseWriter, r *http.Request)

UpdateMe operation middleware

func (*ServerInterfaceWrapper) UpdateNetworkPolicy added in v0.4.0

func (siw *ServerInterfaceWrapper) UpdateNetworkPolicy(w http.ResponseWriter, r *http.Request)

UpdateNetworkPolicy operation middleware

func (*ServerInterfaceWrapper) UpdateNetworkPolicyAccess added in v0.4.0

func (siw *ServerInterfaceWrapper) UpdateNetworkPolicyAccess(w http.ResponseWriter, r *http.Request)

UpdateNetworkPolicyAccess operation middleware

type SetUserAccess204Response added in v0.4.0

type SetUserAccess204Response struct {
}

func (SetUserAccess204Response) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess204Response) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccess400JSONResponse added in v0.4.0

type SetUserAccess400JSONResponse ErrorResponse

func (SetUserAccess400JSONResponse) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess400JSONResponse) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccess401JSONResponse added in v0.4.0

type SetUserAccess401JSONResponse ErrorResponse

func (SetUserAccess401JSONResponse) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess401JSONResponse) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccess403Response added in v0.4.0

type SetUserAccess403Response struct {
}

func (SetUserAccess403Response) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess403Response) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccess404JSONResponse added in v0.4.0

type SetUserAccess404JSONResponse ErrorResponse

func (SetUserAccess404JSONResponse) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess404JSONResponse) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccess500JSONResponse added in v0.4.0

type SetUserAccess500JSONResponse ErrorResponse

func (SetUserAccess500JSONResponse) VisitSetUserAccessResponse added in v0.4.0

func (response SetUserAccess500JSONResponse) VisitSetUserAccessResponse(w http.ResponseWriter) error

type SetUserAccessJSONRequestBody added in v0.4.0

type SetUserAccessJSONRequestBody = ModifyAccessRequest

SetUserAccessJSONRequestBody defines body for SetUserAccess for application/json ContentType.

type SetUserAccessRequestObject added in v0.4.0

type SetUserAccessRequestObject struct {
	UserId ID `json:"user_id"`
	Body   *SetUserAccessJSONRequestBody
}

type SetUserAccessResponseObject added in v0.4.0

type SetUserAccessResponseObject interface {
	VisitSetUserAccessResponse(w http.ResponseWriter) error
}

type SetUserAccessTestClientResponse added in v0.4.0

type SetUserAccessTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseSetUserAccessTestClientResponse added in v0.4.0

func ParseSetUserAccessTestClientResponse(rsp *http.Response) (*SetUserAccessTestClientResponse, error)

ParseSetUserAccessTestClientResponse parses an HTTP response from a SetUserAccessWithResponse call

func (SetUserAccessTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (SetUserAccessTestClientResponse) StatusCode added in v0.4.0

func (r SetUserAccessTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SimulatePolicyAccess200JSONResponse added in v0.3.0

type SimulatePolicyAccess200JSONResponse PolicySimulateResult

func (SimulatePolicyAccess200JSONResponse) VisitSimulatePolicyAccessResponse added in v0.3.0

func (response SimulatePolicyAccess200JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error

type SimulatePolicyAccess400JSONResponse added in v0.3.0

type SimulatePolicyAccess400JSONResponse ErrorResponse

func (SimulatePolicyAccess400JSONResponse) VisitSimulatePolicyAccessResponse added in v0.3.0

func (response SimulatePolicyAccess400JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error

type SimulatePolicyAccess401JSONResponse added in v0.3.0

type SimulatePolicyAccess401JSONResponse ErrorResponse

func (SimulatePolicyAccess401JSONResponse) VisitSimulatePolicyAccessResponse added in v0.3.0

func (response SimulatePolicyAccess401JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error

type SimulatePolicyAccess403Response added in v0.3.0

type SimulatePolicyAccess403Response struct {
}

func (SimulatePolicyAccess403Response) VisitSimulatePolicyAccessResponse added in v0.3.0

func (response SimulatePolicyAccess403Response) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error

type SimulatePolicyAccess500JSONResponse added in v0.3.0

type SimulatePolicyAccess500JSONResponse ErrorResponse

func (SimulatePolicyAccess500JSONResponse) VisitSimulatePolicyAccessResponse added in v0.3.0

func (response SimulatePolicyAccess500JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error

type SimulatePolicyAccessParams added in v0.3.0

type SimulatePolicyAccessParams struct {
	// Ip Client IP to simulate.
	Ip string `form:"ip" json:"ip"`

	// Host Target host FQDN to simulate.
	Host string `form:"host" json:"host"`
}

SimulatePolicyAccessParams defines parameters for SimulatePolicyAccess.

type SimulatePolicyAccessRequestObject added in v0.3.0

type SimulatePolicyAccessRequestObject struct {
	Params SimulatePolicyAccessParams
}

type SimulatePolicyAccessResponseObject added in v0.3.0

type SimulatePolicyAccessResponseObject interface {
	VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
}

type SimulatePolicyAccessTestClientResponse added in v0.4.0

type SimulatePolicyAccessTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PolicySimulateResult
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseSimulatePolicyAccessTestClientResponse added in v0.4.0

func ParseSimulatePolicyAccessTestClientResponse(rsp *http.Response) (*SimulatePolicyAccessTestClientResponse, error)

ParseSimulatePolicyAccessTestClientResponse parses an HTTP response from a SimulatePolicyAccessWithResponse call

func (SimulatePolicyAccessTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (SimulatePolicyAccessTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictServerInterface

type StrictServerInterface interface {
	// List access log entries
	// (GET /access-log)
	GetAccessLog(ctx context.Context, request GetAccessLogRequestObject) (GetAccessLogResponseObject, error)
	// Request counts grouped by country
	// (GET /access-log/stats/by-country)
	GetAccessLogByCountry(ctx context.Context, request GetAccessLogByCountryRequestObject) (GetAccessLogByCountryResponseObject, error)
	// Get address activity history
	// (GET /address-history)
	GetAddressHistory(ctx context.Context, request GetAddressHistoryRequestObject) (GetAddressHistoryResponseObject, error)
	// List all host groups with members and subject assignments
	// (GET /admin/access/host-groups)
	ListHostGroups(ctx context.Context, request ListHostGroupsRequestObject) (ListHostGroupsResponseObject, error)
	// Reconcile host groups (full replace)
	// (POST /admin/access/host-groups/reconcile)
	ReconcileHostGroups(ctx context.Context, request ReconcileHostGroupsRequestObject) (ReconcileHostGroupsResponseObject, error)
	// List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions
	// (GET /admin/access/host-suggestions)
	ListHostSuggestions(ctx context.Context, request ListHostSuggestionsRequestObject) (ListHostSuggestionsResponseObject, error)
	// Ignore a host suggestion
	// (POST /admin/access/host-suggestions/ignore)
	IgnoreSuggestion(ctx context.Context, request IgnoreSuggestionRequestObject) (IgnoreSuggestionResponseObject, error)
	// Remove a host suggestion from the ignore list
	// (DELETE /admin/access/host-suggestions/ignore/{fqdn})
	UnignoreSuggestion(ctx context.Context, request UnignoreSuggestionRequestObject) (UnignoreSuggestionResponseObject, error)
	// List all hosts with group memberships
	// (GET /admin/access/hosts)
	ListHosts(ctx context.Context, request ListHostsRequestObject) (ListHostsResponseObject, error)
	// Reconcile hosts (full replace)
	// (POST /admin/access/hosts/reconcile)
	ReconcileHosts(ctx context.Context, request ReconcileHostsRequestObject) (ReconcileHostsResponseObject, error)
	// List all network policies
	// (GET /admin/access/network-policies)
	ListNetworkPolicies(ctx context.Context, request ListNetworkPoliciesRequestObject) (ListNetworkPoliciesResponseObject, error)
	// Create a network policy
	// (POST /admin/access/network-policies)
	CreateNetworkPolicy(ctx context.Context, request CreateNetworkPolicyRequestObject) (CreateNetworkPolicyResponseObject, error)
	// Delete a network policy
	// (DELETE /admin/access/network-policies/{policy_id})
	DeleteNetworkPolicy(ctx context.Context, request DeleteNetworkPolicyRequestObject) (DeleteNetworkPolicyResponseObject, error)
	// Get network policy detail
	// (GET /admin/access/network-policies/{policy_id})
	GetNetworkPolicy(ctx context.Context, request GetNetworkPolicyRequestObject) (GetNetworkPolicyResponseObject, error)
	// Update policy metadata
	// (PUT /admin/access/network-policies/{policy_id})
	UpdateNetworkPolicy(ctx context.Context, request UpdateNetworkPolicyRequestObject) (UpdateNetworkPolicyResponseObject, error)
	// Atomically replace a policy's access grants
	// (PUT /admin/access/network-policies/{policy_id}/grants)
	UpdateNetworkPolicyAccess(ctx context.Context, request UpdateNetworkPolicyAccessRequestObject) (UpdateNetworkPolicyAccessResponseObject, error)
	// List users with host access summary
	// (GET /admin/access/users)
	ListUsersWithAccess(ctx context.Context, request ListUsersWithAccessRequestObject) (ListUsersWithAccessResponseObject, error)
	// Get full host access detail for a user
	// (GET /admin/access/users/{user_id})
	GetUserAccessDetail(ctx context.Context, request GetUserAccessDetailRequestObject) (GetUserAccessDetailResponseObject, error)
	// Atomically replace a user's access grants
	// (PUT /admin/access/users/{user_id}/grants)
	SetUserAccess(ctx context.Context, request SetUserAccessRequestObject) (SetUserAccessResponseObject, error)
	// Get the current policy cache snapshot (user-pivoted)
	// (GET /admin/policy-map)
	GetPolicyUserMap(ctx context.Context, request GetPolicyUserMapRequestObject) (GetPolicyUserMapResponseObject, error)
	// Simulate an access decision for a given IP and host
	// (GET /admin/policy-simulate)
	SimulatePolicyAccess(ctx context.Context, request SimulatePolicyAccessRequestObject) (SimulatePolicyAccessResponseObject, error)
	// List all users
	// (GET /admin/users)
	ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
	// Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation
	// (POST /admin/users)
	CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
	// Delete a user
	// (DELETE /admin/users/{user_id})
	DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
	// Superadmin only. Demote an admin to regular user
	// (POST /admin/users/{user_id}/demote)
	DemoteUser(ctx context.Context, request DemoteUserRequestObject) (DemoteUserResponseObject, error)
	// Superadmin only. Promote a user to admin
	// (POST /admin/users/{user_id}/promote)
	PromoteUser(ctx context.Context, request PromoteUserRequestObject) (PromoteUserResponseObject, error)
	// Login user
	// (POST /auth/login)
	Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
	// Logout user
	// (POST /auth/logout)
	Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
	// Get current user
	// (GET /auth/me)
	GetCurrentUser(ctx context.Context, request GetCurrentUserRequestObject) (GetCurrentUserResponseObject, error)
	// Dashboard per-entity traffic attribution split
	// (GET /dashboard/attribution-split)
	GetDashboardAttributionSplit(ctx context.Context, request GetDashboardAttributionSplitRequestObject) (GetDashboardAttributionSplitResponseObject, error)
	// Dashboard posture summary
	// (GET /dashboard/posture)
	GetDashboardPosture(ctx context.Context, request GetDashboardPostureRequestObject) (GetDashboardPostureResponseObject, error)
	// Dashboard service breakdown
	// (GET /dashboard/services)
	GetDashboardServices(ctx context.Context, request GetDashboardServicesRequestObject) (GetDashboardServicesResponseObject, error)
	// Dashboard summary statistics
	// (GET /dashboard/stats)
	GetDashboardStats(ctx context.Context, request GetDashboardStatsRequestObject) (GetDashboardStatsResponseObject, error)
	// Dashboard top denied IPs
	// (GET /dashboard/top-denied-ips)
	GetDashboardTopDeniedIps(ctx context.Context, request GetDashboardTopDeniedIpsRequestObject) (GetDashboardTopDeniedIpsResponseObject, error)
	// Dashboard traffic time series
	// (GET /dashboard/traffic)
	GetDashboardTraffic(ctx context.Context, request GetDashboardTrafficRequestObject) (GetDashboardTrafficResponseObject, error)
	// Claim a pairing code
	// (POST /device-pair)
	ClaimPairing(ctx context.Context, request ClaimPairingRequestObject) (ClaimPairingResponseObject, error)
	// List all devices grouped by owner
	// (GET /devices)
	GetDevices(ctx context.Context, request GetDevicesRequestObject) (GetDevicesResponseObject, error)
	// Create a device
	// (POST /devices)
	CreateDevice(ctx context.Context, request CreateDeviceRequestObject) (CreateDeviceResponseObject, error)
	// Delete a device
	// (DELETE /devices/{device_id})
	DeleteDevice(ctx context.Context, request DeleteDeviceRequestObject) (DeleteDeviceResponseObject, error)
	// Update device profile
	// (PATCH /devices/{device_id})
	UpdateDevice(ctx context.Context, request UpdateDeviceRequestObject) (UpdateDeviceResponseObject, error)
	// Get addresses for a device
	// (GET /devices/{device_id}/addresses)
	GetDeviceAddresses(ctx context.Context, request GetDeviceAddressesRequestObject) (GetDeviceAddressesResponseObject, error)
	// Assign address to device
	// (POST /devices/{device_id}/addresses)
	AddAddress(ctx context.Context, request AddAddressRequestObject) (AddAddressResponseObject, error)
	// Disable address
	// (DELETE /devices/{device_id}/addresses/{address_id})
	DisableAddress(ctx context.Context, request DisableAddressRequestObject) (DisableAddressResponseObject, error)
	// Delete device API key
	// (DELETE /devices/{device_id}/api-key)
	DeleteDeviceAPIKey(ctx context.Context, request DeleteDeviceAPIKeyRequestObject) (DeleteDeviceAPIKeyResponseObject, error)
	// Generate or regenerate device API key
	// (POST /devices/{device_id}/api-key/regenerate)
	RegenerateDeviceAPIKey(ctx context.Context, request RegenerateDeviceAPIKeyRequestObject) (RegenerateDeviceAPIKeyResponseObject, error)
	// Disable a device
	// (POST /devices/{device_id}/disable)
	DisableDevice(ctx context.Context, request DisableDeviceRequestObject) (DisableDeviceResponseObject, error)
	// Re-enable a disabled device
	// (POST /devices/{device_id}/enable)
	EnableDevice(ctx context.Context, request EnableDeviceRequestObject) (EnableDeviceResponseObject, error)
	// Device heartbeat
	// (POST /devices/{device_id}/heartbeat)
	DeviceHeartbeat(ctx context.Context, request DeviceHeartbeatRequestObject) (DeviceHeartbeatResponseObject, error)
	// Disable device lease rule for a device
	// (DELETE /devices/{device_id}/rules/address-lease)
	DisableDeviceAddressLeaseRule(ctx context.Context, request DisableDeviceAddressLeaseRuleRequestObject) (DisableDeviceAddressLeaseRuleResponseObject, error)
	// Get address lease rule for a device
	// (GET /devices/{device_id}/rules/address-lease)
	GetDeviceAddressLeaseRule(ctx context.Context, request GetDeviceAddressLeaseRuleRequestObject) (GetDeviceAddressLeaseRuleResponseObject, error)
	// Create or update IP auto-expiry rule for a device
	// (PUT /devices/{device_id}/rules/address-lease)
	PutDeviceAddressLeaseRule(ctx context.Context, request PutDeviceAddressLeaseRuleRequestObject) (PutDeviceAddressLeaseRuleResponseObject, error)
	// Disable max active addresses rule for a device
	// (DELETE /devices/{device_id}/rules/max-active-addresses)
	DisableMaxActiveAddressesRule(ctx context.Context, request DisableMaxActiveAddressesRuleRequestObject) (DisableMaxActiveAddressesRuleResponseObject, error)
	// Get max active addresses rule for a device
	// (GET /devices/{device_id}/rules/max-active-addresses)
	GetMaxActiveAddressesRule(ctx context.Context, request GetMaxActiveAddressesRuleRequestObject) (GetMaxActiveAddressesRuleResponseObject, error)
	// Create or update max active addresses rule for a device
	// (PUT /devices/{device_id}/rules/max-active-addresses)
	PutMaxActiveAddressesRule(ctx context.Context, request PutMaxActiveAddressesRuleRequestObject) (PutMaxActiveAddressesRuleResponseObject, error)
	// List pairings for a device (Admin only)
	// (GET /devices/{id}/pairings)
	ListDevicePairings(ctx context.Context, request ListDevicePairingsRequestObject) (ListDevicePairingsResponseObject, error)
	// Create a pairing for a device (Admin only)
	// (POST /devices/{id}/pairings)
	CreateDevicePairing(ctx context.Context, request CreateDevicePairingRequestObject) (CreateDevicePairingResponseObject, error)
	// Invalidate an unclaimed pairing (Admin only)
	// (DELETE /devices/{id}/pairings/{pairingId})
	DeleteDevicePairing(ctx context.Context, request DeleteDevicePairingRequestObject) (DeleteDevicePairingResponseObject, error)
	// Get a single device pairing (Admin only)
	// (GET /devices/{id}/pairings/{pairingId})
	GetDevicePairing(ctx context.Context, request GetDevicePairingRequestObject) (GetDevicePairingResponseObject, error)
	// Performs a heartbeat with the given api key header
	// (POST /heartbeat)
	DeviceHeartbeatByAPIKey(ctx context.Context, request DeviceHeartbeatByAPIKeyRequestObject) (DeviceHeartbeatByAPIKeyResponseObject, error)
	// Update current user profile
	// (PATCH /users/me)
	UpdateMe(ctx context.Context, request UpdateMeRequestObject) (UpdateMeResponseObject, error)
	// Change current user password. Only administrators can change their password
	// (POST /users/me/password)
	ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SubjectGroupDetail added in v0.4.0

type SubjectGroupDetail struct {
	// Color CSS hex color for the group badge.
	Color       string  `json:"color"`
	CreatedAt   UTCTime `json:"created_at"`
	Description *string `json:"description"`

	// Granted Whether this group is assigned to the subject.
	Granted bool          `json:"granted"`
	Hosts   []HostSummary `json:"hosts"`

	// Icon Icon key (e.g. "database", "film").
	Icon string `json:"icon"`
	Id   ID     `json:"id"`
	Name string `json:"name"`

	// UpdatedAt Last time the device profile was modified.
	UpdatedAt UTCTime `json:"updated_at"`
}

SubjectGroupDetail Group representation with assignment status, used in user and policy detail responses.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UTCTime

type UTCTime time.Time

UTCTime wraps time.Time and always marshals to UTC RFC3339. It is used for all date-time fields in API response types so that UTC serialization is enforced at the type level — the compiler requires an explicit UTCTime(t) conversion in every handler, making it impossible to accidentally return a non-UTC timestamp.

func (UTCTime) MarshalJSON

func (t UTCTime) MarshalJSON() ([]byte, error)

func (*UTCTime) UnmarshalJSON

func (t *UTCTime) UnmarshalJSON(data []byte) error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnignoreSuggestion204Response added in v0.3.0

type UnignoreSuggestion204Response struct {
}

func (UnignoreSuggestion204Response) VisitUnignoreSuggestionResponse added in v0.3.0

func (response UnignoreSuggestion204Response) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error

type UnignoreSuggestion401JSONResponse added in v0.3.0

type UnignoreSuggestion401JSONResponse ErrorResponse

func (UnignoreSuggestion401JSONResponse) VisitUnignoreSuggestionResponse added in v0.3.0

func (response UnignoreSuggestion401JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error

type UnignoreSuggestion403Response added in v0.3.0

type UnignoreSuggestion403Response struct {
}

func (UnignoreSuggestion403Response) VisitUnignoreSuggestionResponse added in v0.3.0

func (response UnignoreSuggestion403Response) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error

type UnignoreSuggestion404JSONResponse added in v0.3.0

type UnignoreSuggestion404JSONResponse ErrorResponse

func (UnignoreSuggestion404JSONResponse) VisitUnignoreSuggestionResponse added in v0.3.0

func (response UnignoreSuggestion404JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error

type UnignoreSuggestion500JSONResponse added in v0.3.0

type UnignoreSuggestion500JSONResponse ErrorResponse

func (UnignoreSuggestion500JSONResponse) VisitUnignoreSuggestionResponse added in v0.3.0

func (response UnignoreSuggestion500JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error

type UnignoreSuggestionRequestObject added in v0.3.0

type UnignoreSuggestionRequestObject struct {
	Fqdn string `json:"fqdn"`
}

type UnignoreSuggestionResponseObject added in v0.3.0

type UnignoreSuggestionResponseObject interface {
	VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
}

type UnignoreSuggestionTestClientResponse added in v0.4.0

type UnignoreSuggestionTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUnignoreSuggestionTestClientResponse added in v0.4.0

func ParseUnignoreSuggestionTestClientResponse(rsp *http.Response) (*UnignoreSuggestionTestClientResponse, error)

ParseUnignoreSuggestionTestClientResponse parses an HTTP response from a UnignoreSuggestionWithResponse call

func (UnignoreSuggestionTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UnignoreSuggestionTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) AddAddress

func (_ Unimplemented) AddAddress(w http.ResponseWriter, r *http.Request, deviceId ID)

Assign address to device (POST /devices/{device_id}/addresses)

func (Unimplemented) ChangePassword

func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)

Change current user password. Only administrators can change their password (POST /users/me/password)

func (Unimplemented) ClaimPairing added in v0.4.0

func (_ Unimplemented) ClaimPairing(w http.ResponseWriter, r *http.Request)

Claim a pairing code (POST /device-pair)

func (Unimplemented) CreateDevice

func (_ Unimplemented) CreateDevice(w http.ResponseWriter, r *http.Request)

Create a device (POST /devices)

func (Unimplemented) CreateDevicePairing added in v0.4.0

func (_ Unimplemented) CreateDevicePairing(w http.ResponseWriter, r *http.Request, id ID)

Create a pairing for a device (Admin only) (POST /devices/{id}/pairings)

func (Unimplemented) CreateNetworkPolicy added in v0.4.0

func (_ Unimplemented) CreateNetworkPolicy(w http.ResponseWriter, r *http.Request)

Create a network policy (POST /admin/access/network-policies)

func (Unimplemented) CreateUser

func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)

Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation (POST /admin/users)

func (Unimplemented) DeleteDevice

func (_ Unimplemented) DeleteDevice(w http.ResponseWriter, r *http.Request, deviceId ID)

Delete a device (DELETE /devices/{device_id})

func (Unimplemented) DeleteDeviceAPIKey added in v0.3.0

func (_ Unimplemented) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)

Delete device API key (DELETE /devices/{device_id}/api-key)

func (Unimplemented) DeleteDevicePairing added in v0.4.0

func (_ Unimplemented) DeleteDevicePairing(w http.ResponseWriter, r *http.Request, id ID, pairingId ID)

Invalidate an unclaimed pairing (Admin only) (DELETE /devices/{id}/pairings/{pairingId})

func (Unimplemented) DeleteNetworkPolicy added in v0.4.0

func (_ Unimplemented) DeleteNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)

Delete a network policy (DELETE /admin/access/network-policies/{policy_id})

func (Unimplemented) DeleteUser

func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId ID)

Delete a user (DELETE /admin/users/{user_id})

func (Unimplemented) DemoteUser

func (_ Unimplemented) DemoteUser(w http.ResponseWriter, r *http.Request, userId ID)

Superadmin only. Demote an admin to regular user (POST /admin/users/{user_id}/demote)

func (Unimplemented) DeviceHeartbeat

func (_ Unimplemented) DeviceHeartbeat(w http.ResponseWriter, r *http.Request, deviceId ID)

Device heartbeat (POST /devices/{device_id}/heartbeat)

func (Unimplemented) DeviceHeartbeatByAPIKey

func (_ Unimplemented) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)

Performs a heartbeat with the given api key header (POST /heartbeat)

func (Unimplemented) DisableAddress

func (_ Unimplemented) DisableAddress(w http.ResponseWriter, r *http.Request, deviceId ID, addressId ID)

Disable address (DELETE /devices/{device_id}/addresses/{address_id})

func (Unimplemented) DisableDevice added in v0.4.0

func (_ Unimplemented) DisableDevice(w http.ResponseWriter, r *http.Request, deviceId ID)

Disable a device (POST /devices/{device_id}/disable)

func (Unimplemented) DisableDeviceAddressLeaseRule

func (_ Unimplemented) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Disable device lease rule for a device (DELETE /devices/{device_id}/rules/address-lease)

func (Unimplemented) DisableMaxActiveAddressesRule added in v0.2.0

func (_ Unimplemented) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Disable max active addresses rule for a device (DELETE /devices/{device_id}/rules/max-active-addresses)

func (Unimplemented) EnableDevice added in v0.4.0

func (_ Unimplemented) EnableDevice(w http.ResponseWriter, r *http.Request, deviceId ID)

Re-enable a disabled device (POST /devices/{device_id}/enable)

func (Unimplemented) GetAccessLog

func (_ Unimplemented) GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)

List access log entries (GET /access-log)

func (Unimplemented) GetAccessLogByCountry

func (_ Unimplemented) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)

Request counts grouped by country (GET /access-log/stats/by-country)

func (Unimplemented) GetAddressHistory

func (_ Unimplemented) GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)

Get address activity history (GET /address-history)

func (Unimplemented) GetCurrentUser

func (_ Unimplemented) GetCurrentUser(w http.ResponseWriter, r *http.Request)

Get current user (GET /auth/me)

func (Unimplemented) GetDashboardAttributionSplit added in v0.4.0

func (_ Unimplemented) GetDashboardAttributionSplit(w http.ResponseWriter, r *http.Request, params GetDashboardAttributionSplitParams)

Dashboard per-entity traffic attribution split (GET /dashboard/attribution-split)

func (Unimplemented) GetDashboardPosture added in v0.4.0

func (_ Unimplemented) GetDashboardPosture(w http.ResponseWriter, r *http.Request)

Dashboard posture summary (GET /dashboard/posture)

func (Unimplemented) GetDashboardServices

func (_ Unimplemented) GetDashboardServices(w http.ResponseWriter, r *http.Request, params GetDashboardServicesParams)

Dashboard service breakdown (GET /dashboard/services)

func (Unimplemented) GetDashboardStats

func (_ Unimplemented) GetDashboardStats(w http.ResponseWriter, r *http.Request, params GetDashboardStatsParams)

Dashboard summary statistics (GET /dashboard/stats)

func (Unimplemented) GetDashboardTopDeniedIps

func (_ Unimplemented) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request, params GetDashboardTopDeniedIpsParams)

Dashboard top denied IPs (GET /dashboard/top-denied-ips)

func (Unimplemented) GetDashboardTraffic

func (_ Unimplemented) GetDashboardTraffic(w http.ResponseWriter, r *http.Request, params GetDashboardTrafficParams)

Dashboard traffic time series (GET /dashboard/traffic)

func (Unimplemented) GetDeviceAddressLeaseRule

func (_ Unimplemented) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Get address lease rule for a device (GET /devices/{device_id}/rules/address-lease)

func (Unimplemented) GetDeviceAddresses

func (_ Unimplemented) GetDeviceAddresses(w http.ResponseWriter, r *http.Request, deviceId ID)

Get addresses for a device (GET /devices/{device_id}/addresses)

func (Unimplemented) GetDevicePairing added in v0.4.0

func (_ Unimplemented) GetDevicePairing(w http.ResponseWriter, r *http.Request, id ID, pairingId ID)

Get a single device pairing (Admin only) (GET /devices/{id}/pairings/{pairingId})

func (Unimplemented) GetDevices

func (_ Unimplemented) GetDevices(w http.ResponseWriter, r *http.Request)

List all devices grouped by owner (GET /devices)

func (Unimplemented) GetMaxActiveAddressesRule added in v0.2.0

func (_ Unimplemented) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Get max active addresses rule for a device (GET /devices/{device_id}/rules/max-active-addresses)

func (Unimplemented) GetNetworkPolicy added in v0.4.0

func (_ Unimplemented) GetNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)

Get network policy detail (GET /admin/access/network-policies/{policy_id})

func (Unimplemented) GetPolicyUserMap added in v0.3.0

func (_ Unimplemented) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)

Get the current policy cache snapshot (user-pivoted) (GET /admin/policy-map)

func (Unimplemented) GetUserAccessDetail added in v0.4.0

func (_ Unimplemented) GetUserAccessDetail(w http.ResponseWriter, r *http.Request, userId ID)

Get full host access detail for a user (GET /admin/access/users/{user_id})

func (Unimplemented) IgnoreSuggestion added in v0.3.0

func (_ Unimplemented) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)

Ignore a host suggestion (POST /admin/access/host-suggestions/ignore)

func (Unimplemented) ListDevicePairings added in v0.4.0

func (_ Unimplemented) ListDevicePairings(w http.ResponseWriter, r *http.Request, id ID, params ListDevicePairingsParams)

List pairings for a device (Admin only) (GET /devices/{id}/pairings)

func (Unimplemented) ListHostGroups added in v0.3.0

func (_ Unimplemented) ListHostGroups(w http.ResponseWriter, r *http.Request)

List all host groups with members and subject assignments (GET /admin/access/host-groups)

func (Unimplemented) ListHostSuggestions added in v0.3.0

func (_ Unimplemented) ListHostSuggestions(w http.ResponseWriter, r *http.Request)

List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions (GET /admin/access/host-suggestions)

func (Unimplemented) ListHosts added in v0.4.0

func (_ Unimplemented) ListHosts(w http.ResponseWriter, r *http.Request)

List all hosts with group memberships (GET /admin/access/hosts)

func (Unimplemented) ListNetworkPolicies added in v0.4.0

func (_ Unimplemented) ListNetworkPolicies(w http.ResponseWriter, r *http.Request)

List all network policies (GET /admin/access/network-policies)

func (Unimplemented) ListUsers

func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request)

List all users (GET /admin/users)

func (Unimplemented) ListUsersWithAccess added in v0.4.0

func (_ Unimplemented) ListUsersWithAccess(w http.ResponseWriter, r *http.Request)

List users with host access summary (GET /admin/access/users)

func (Unimplemented) Login

func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)

Login user (POST /auth/login)

func (Unimplemented) Logout

func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)

Logout user (POST /auth/logout)

func (Unimplemented) PromoteUser

func (_ Unimplemented) PromoteUser(w http.ResponseWriter, r *http.Request, userId ID)

Superadmin only. Promote a user to admin (POST /admin/users/{user_id}/promote)

func (Unimplemented) PutDeviceAddressLeaseRule

func (_ Unimplemented) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Create or update IP auto-expiry rule for a device (PUT /devices/{device_id}/rules/address-lease)

func (Unimplemented) PutMaxActiveAddressesRule added in v0.2.0

func (_ Unimplemented) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)

Create or update max active addresses rule for a device (PUT /devices/{device_id}/rules/max-active-addresses)

func (Unimplemented) ReconcileHostGroups added in v0.3.0

func (_ Unimplemented) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)

Reconcile host groups (full replace) (POST /admin/access/host-groups/reconcile)

func (Unimplemented) ReconcileHosts added in v0.4.0

func (_ Unimplemented) ReconcileHosts(w http.ResponseWriter, r *http.Request)

Reconcile hosts (full replace) (POST /admin/access/hosts/reconcile)

func (Unimplemented) RegenerateDeviceAPIKey

func (_ Unimplemented) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)

Generate or regenerate device API key (POST /devices/{device_id}/api-key/regenerate)

func (Unimplemented) SetUserAccess added in v0.4.0

func (_ Unimplemented) SetUserAccess(w http.ResponseWriter, r *http.Request, userId ID)

Atomically replace a user's access grants (PUT /admin/access/users/{user_id}/grants)

func (Unimplemented) SimulatePolicyAccess added in v0.3.0

func (_ Unimplemented) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request, params SimulatePolicyAccessParams)

Simulate an access decision for a given IP and host (GET /admin/policy-simulate)

func (Unimplemented) UnignoreSuggestion added in v0.3.0

func (_ Unimplemented) UnignoreSuggestion(w http.ResponseWriter, r *http.Request, fqdn string)

Remove a host suggestion from the ignore list (DELETE /admin/access/host-suggestions/ignore/{fqdn})

func (Unimplemented) UpdateDevice added in v0.2.0

func (_ Unimplemented) UpdateDevice(w http.ResponseWriter, r *http.Request, deviceId ID)

Update device profile (PATCH /devices/{device_id})

func (Unimplemented) UpdateMe

func (_ Unimplemented) UpdateMe(w http.ResponseWriter, r *http.Request)

Update current user profile (PATCH /users/me)

func (Unimplemented) UpdateNetworkPolicy added in v0.4.0

func (_ Unimplemented) UpdateNetworkPolicy(w http.ResponseWriter, r *http.Request, policyId ID)

Update policy metadata (PUT /admin/access/network-policies/{policy_id})

func (Unimplemented) UpdateNetworkPolicyAccess added in v0.4.0

func (_ Unimplemented) UpdateNetworkPolicyAccess(w http.ResponseWriter, r *http.Request, policyId ID)

Atomically replace a policy's access grants (PUT /admin/access/network-policies/{policy_id}/grants)

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UpdateDevice200JSONResponse added in v0.2.0

type UpdateDevice200JSONResponse Device

func (UpdateDevice200JSONResponse) VisitUpdateDeviceResponse added in v0.2.0

func (response UpdateDevice200JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDevice400JSONResponse added in v0.2.0

type UpdateDevice400JSONResponse ErrorResponse

func (UpdateDevice400JSONResponse) VisitUpdateDeviceResponse added in v0.2.0

func (response UpdateDevice400JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDevice403JSONResponse added in v0.3.0

type UpdateDevice403JSONResponse ErrorResponse

func (UpdateDevice403JSONResponse) VisitUpdateDeviceResponse added in v0.3.0

func (response UpdateDevice403JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDevice404JSONResponse added in v0.2.0

type UpdateDevice404JSONResponse ErrorResponse

func (UpdateDevice404JSONResponse) VisitUpdateDeviceResponse added in v0.2.0

func (response UpdateDevice404JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDevice409JSONResponse added in v0.2.0

type UpdateDevice409JSONResponse ErrorResponse

func (UpdateDevice409JSONResponse) VisitUpdateDeviceResponse added in v0.2.0

func (response UpdateDevice409JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDevice500JSONResponse added in v0.2.0

type UpdateDevice500JSONResponse ErrorResponse

func (UpdateDevice500JSONResponse) VisitUpdateDeviceResponse added in v0.2.0

func (response UpdateDevice500JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error

type UpdateDeviceJSONRequestBody added in v0.2.0

type UpdateDeviceJSONRequestBody = UpdateDeviceRequest

UpdateDeviceJSONRequestBody defines body for UpdateDevice for application/json ContentType.

type UpdateDeviceRequest added in v0.2.0

type UpdateDeviceRequest struct {
	// Description Free-form note. Pass null to clear.
	Description NullableString `json:"description"`

	// Icon Tabler icon name override. Pass null to clear.
	Icon NullableString `json:"icon"`

	// Name New name for the device
	Name *string `json:"name,omitempty"`

	// OwnerId Admin only. Reassign device ownership to another user.
	OwnerId *int `json:"owner_id"`
}

UpdateDeviceRequest defines model for UpdateDeviceRequest.

type UpdateDeviceRequestObject added in v0.2.0

type UpdateDeviceRequestObject struct {
	DeviceId ID `json:"device_id"`
	Body     *UpdateDeviceJSONRequestBody
}

type UpdateDeviceResponseObject added in v0.2.0

type UpdateDeviceResponseObject interface {
	VisitUpdateDeviceResponse(w http.ResponseWriter) error
}

type UpdateDeviceTestClientResponse added in v0.4.0

type UpdateDeviceTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Device
	JSON400      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateDeviceTestClientResponse added in v0.4.0

func ParseUpdateDeviceTestClientResponse(rsp *http.Response) (*UpdateDeviceTestClientResponse, error)

ParseUpdateDeviceTestClientResponse parses an HTTP response from a UpdateDeviceWithResponse call

func (UpdateDeviceTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UpdateDeviceTestClientResponse) StatusCode added in v0.4.0

func (r UpdateDeviceTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMe200JSONResponse

type UpdateMe200JSONResponse User

func (UpdateMe200JSONResponse) VisitUpdateMeResponse

func (response UpdateMe200JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMe400JSONResponse

type UpdateMe400JSONResponse ErrorResponse

func (UpdateMe400JSONResponse) VisitUpdateMeResponse

func (response UpdateMe400JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMe401JSONResponse

type UpdateMe401JSONResponse ErrorResponse

func (UpdateMe401JSONResponse) VisitUpdateMeResponse

func (response UpdateMe401JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMe409JSONResponse

type UpdateMe409JSONResponse ErrorResponse

func (UpdateMe409JSONResponse) VisitUpdateMeResponse

func (response UpdateMe409JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMe500JSONResponse

type UpdateMe500JSONResponse ErrorResponse

func (UpdateMe500JSONResponse) VisitUpdateMeResponse

func (response UpdateMe500JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMeJSONRequestBody

type UpdateMeJSONRequestBody = UpdateProfileRequest

UpdateMeJSONRequestBody defines body for UpdateMe for application/json ContentType.

type UpdateMeRequestObject

type UpdateMeRequestObject struct {
	Body *UpdateMeJSONRequestBody
}

type UpdateMeResponseObject

type UpdateMeResponseObject interface {
	VisitUpdateMeResponse(w http.ResponseWriter) error
}

type UpdateMeTestClientResponse added in v0.4.0

type UpdateMeTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateMeTestClientResponse added in v0.4.0

func ParseUpdateMeTestClientResponse(rsp *http.Response) (*UpdateMeTestClientResponse, error)

ParseUpdateMeTestClientResponse parses an HTTP response from a UpdateMeWithResponse call

func (UpdateMeTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UpdateMeTestClientResponse) StatusCode added in v0.4.0

func (r UpdateMeTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateNetworkPolicy204Response added in v0.4.0

type UpdateNetworkPolicy204Response struct {
}

func (UpdateNetworkPolicy204Response) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy204Response) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy400JSONResponse added in v0.4.0

type UpdateNetworkPolicy400JSONResponse ErrorResponse

func (UpdateNetworkPolicy400JSONResponse) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy400JSONResponse) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy401JSONResponse added in v0.4.0

type UpdateNetworkPolicy401JSONResponse ErrorResponse

func (UpdateNetworkPolicy401JSONResponse) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy401JSONResponse) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy403Response added in v0.4.0

type UpdateNetworkPolicy403Response struct {
}

func (UpdateNetworkPolicy403Response) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy403Response) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy404JSONResponse added in v0.4.0

type UpdateNetworkPolicy404JSONResponse ErrorResponse

func (UpdateNetworkPolicy404JSONResponse) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy404JSONResponse) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy409JSONResponse added in v0.4.0

type UpdateNetworkPolicy409JSONResponse ErrorResponse

func (UpdateNetworkPolicy409JSONResponse) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy409JSONResponse) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicy500JSONResponse added in v0.4.0

type UpdateNetworkPolicy500JSONResponse ErrorResponse

func (UpdateNetworkPolicy500JSONResponse) VisitUpdateNetworkPolicyResponse added in v0.4.0

func (response UpdateNetworkPolicy500JSONResponse) VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess204Response added in v0.4.0

type UpdateNetworkPolicyAccess204Response struct {
}

func (UpdateNetworkPolicyAccess204Response) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess204Response) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess400JSONResponse added in v0.4.0

type UpdateNetworkPolicyAccess400JSONResponse ErrorResponse

func (UpdateNetworkPolicyAccess400JSONResponse) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess400JSONResponse) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess401JSONResponse added in v0.4.0

type UpdateNetworkPolicyAccess401JSONResponse ErrorResponse

func (UpdateNetworkPolicyAccess401JSONResponse) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess401JSONResponse) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess403Response added in v0.4.0

type UpdateNetworkPolicyAccess403Response struct {
}

func (UpdateNetworkPolicyAccess403Response) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess403Response) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess404JSONResponse added in v0.4.0

type UpdateNetworkPolicyAccess404JSONResponse ErrorResponse

func (UpdateNetworkPolicyAccess404JSONResponse) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess404JSONResponse) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccess500JSONResponse added in v0.4.0

type UpdateNetworkPolicyAccess500JSONResponse ErrorResponse

func (UpdateNetworkPolicyAccess500JSONResponse) VisitUpdateNetworkPolicyAccessResponse added in v0.4.0

func (response UpdateNetworkPolicyAccess500JSONResponse) VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error

type UpdateNetworkPolicyAccessJSONRequestBody added in v0.4.0

type UpdateNetworkPolicyAccessJSONRequestBody = ModifyAccessRequest

UpdateNetworkPolicyAccessJSONRequestBody defines body for UpdateNetworkPolicyAccess for application/json ContentType.

type UpdateNetworkPolicyAccessRequestObject added in v0.4.0

type UpdateNetworkPolicyAccessRequestObject struct {
	PolicyId ID `json:"policy_id"`
	Body     *UpdateNetworkPolicyAccessJSONRequestBody
}

type UpdateNetworkPolicyAccessResponseObject added in v0.4.0

type UpdateNetworkPolicyAccessResponseObject interface {
	VisitUpdateNetworkPolicyAccessResponse(w http.ResponseWriter) error
}

type UpdateNetworkPolicyAccessTestClientResponse added in v0.4.0

type UpdateNetworkPolicyAccessTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateNetworkPolicyAccessTestClientResponse added in v0.4.0

func ParseUpdateNetworkPolicyAccessTestClientResponse(rsp *http.Response) (*UpdateNetworkPolicyAccessTestClientResponse, error)

ParseUpdateNetworkPolicyAccessTestClientResponse parses an HTTP response from a UpdateNetworkPolicyAccessWithResponse call

func (UpdateNetworkPolicyAccessTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UpdateNetworkPolicyAccessTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type UpdateNetworkPolicyJSONRequestBody added in v0.4.0

type UpdateNetworkPolicyJSONRequestBody = ModifyNetworkPolicyRequest

UpdateNetworkPolicyJSONRequestBody defines body for UpdateNetworkPolicy for application/json ContentType.

type UpdateNetworkPolicyRequestObject added in v0.4.0

type UpdateNetworkPolicyRequestObject struct {
	PolicyId ID `json:"policy_id"`
	Body     *UpdateNetworkPolicyJSONRequestBody
}

type UpdateNetworkPolicyResponseObject added in v0.4.0

type UpdateNetworkPolicyResponseObject interface {
	VisitUpdateNetworkPolicyResponse(w http.ResponseWriter) error
}

type UpdateNetworkPolicyTestClientResponse added in v0.4.0

type UpdateNetworkPolicyTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateNetworkPolicyTestClientResponse added in v0.4.0

func ParseUpdateNetworkPolicyTestClientResponse(rsp *http.Response) (*UpdateNetworkPolicyTestClientResponse, error)

ParseUpdateNetworkPolicyTestClientResponse parses an HTTP response from a UpdateNetworkPolicyWithResponse call

func (UpdateNetworkPolicyTestClientResponse) Status added in v0.4.0

Status returns HTTPResponse.Status

func (UpdateNetworkPolicyTestClientResponse) StatusCode added in v0.4.0

StatusCode returns HTTPResponse.StatusCode

type UpdateProfileRequest

type UpdateProfileRequest struct {
	// DisplayName User's public name. Unicode allowed.
	DisplayName *DisplayName `json:"display_name,omitempty"`

	// Email New email. Pass null to clear.
	Email NullableString `json:"email"`

	// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
	Username *Username `json:"username,omitempty"`
	// contains filtered or unexported fields
}

UpdateProfileRequest defines model for UpdateProfileRequest.

func (UpdateProfileRequest) AsUpdateProfileRequest0

func (t UpdateProfileRequest) AsUpdateProfileRequest0() (UpdateProfileRequest0, error)

AsUpdateProfileRequest0 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest0

func (UpdateProfileRequest) AsUpdateProfileRequest1

func (t UpdateProfileRequest) AsUpdateProfileRequest1() (UpdateProfileRequest1, error)

AsUpdateProfileRequest1 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest1

func (UpdateProfileRequest) AsUpdateProfileRequest2

func (t UpdateProfileRequest) AsUpdateProfileRequest2() (UpdateProfileRequest2, error)

AsUpdateProfileRequest2 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest2

func (*UpdateProfileRequest) FromUpdateProfileRequest0

func (t *UpdateProfileRequest) FromUpdateProfileRequest0(v UpdateProfileRequest0) error

FromUpdateProfileRequest0 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest0

func (*UpdateProfileRequest) FromUpdateProfileRequest1

func (t *UpdateProfileRequest) FromUpdateProfileRequest1(v UpdateProfileRequest1) error

FromUpdateProfileRequest1 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest1

func (*UpdateProfileRequest) FromUpdateProfileRequest2

func (t *UpdateProfileRequest) FromUpdateProfileRequest2(v UpdateProfileRequest2) error

FromUpdateProfileRequest2 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest2

func (UpdateProfileRequest) MarshalJSON

func (t UpdateProfileRequest) MarshalJSON() ([]byte, error)

func (*UpdateProfileRequest) MergeUpdateProfileRequest0

func (t *UpdateProfileRequest) MergeUpdateProfileRequest0(v UpdateProfileRequest0) error

MergeUpdateProfileRequest0 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest0

func (*UpdateProfileRequest) MergeUpdateProfileRequest1

func (t *UpdateProfileRequest) MergeUpdateProfileRequest1(v UpdateProfileRequest1) error

MergeUpdateProfileRequest1 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest1

func (*UpdateProfileRequest) MergeUpdateProfileRequest2

func (t *UpdateProfileRequest) MergeUpdateProfileRequest2(v UpdateProfileRequest2) error

MergeUpdateProfileRequest2 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest2

func (*UpdateProfileRequest) UnmarshalJSON

func (t *UpdateProfileRequest) UnmarshalJSON(b []byte) error

type UpdateProfileRequest0

type UpdateProfileRequest0 = interface{}

UpdateProfileRequest0 defines model for .

type UpdateProfileRequest1

type UpdateProfileRequest1 = interface{}

UpdateProfileRequest1 defines model for .

type UpdateProfileRequest2

type UpdateProfileRequest2 = interface{}

UpdateProfileRequest2 defines model for .

type User

type User struct {
	// BypassHostCheck When true the user bypasses the host check and can reach every host.
	BypassHostCheck bool    `json:"bypass_host_check"`
	CreatedAt       UTCTime `json:"created_at"`

	// DisplayName User's public name. Unicode allowed.
	DisplayName DisplayName          `json:"display_name"`
	Email       *openapi_types.Email `json:"email"`
	Id          ID                   `json:"id"`

	// MustChangePassword When true, the user must change their password before using the app.
	MustChangePassword *bool `json:"must_change_password,omitempty"`

	// Role The user's role. User role cannot login. Only superadmin can manage users.
	Role UserRole `json:"role"`

	// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
	Username Username `json:"username"`
}

User defines model for User.

type UserAccessDetail added in v0.4.0

type UserAccessDetail struct {
	BypassHostCheck bool                 `json:"bypass_host_check"`
	Devices         []DeviceListItem     `json:"devices"`
	DisplayName     string               `json:"display_name"`
	Email           *openapi_types.Email `json:"email"`

	// Groups All groups with their hosts and assignment status.
	Groups []SubjectGroupDetail `json:"groups"`
	Id     ID                   `json:"id"`

	// Role The user's role. User role cannot login. Only superadmin can manage users.
	Role     UserRole `json:"role"`
	Username string   `json:"username"`
}

UserAccessDetail Full user access detail including devices and group assignments.

type UserListItem added in v0.4.0

type UserListItem struct {
	BypassHostCheck bool           `json:"bypass_host_check"`
	DeviceCount     int            `json:"device_count"`
	DisplayName     string         `json:"display_name"`
	Groups          []GroupSummary `json:"groups"`

	// HostCount Total hosts accessible across all assigned groups.
	HostCount        int `json:"host_count"`
	Id               ID  `json:"id"`
	LiveAddressCount int `json:"live_address_count"`

	// Role The user's role. User role cannot login. Only superadmin can manage users.
	Role     UserRole `json:"role"`
	Username string   `json:"username"`
}

UserListItem User summary for the access management list page.

type UserRole

type UserRole string

UserRole The user's role. User role cannot login. Only superadmin can manage users.

const (
	UserRoleAdmin      UserRole = "admin"
	UserRoleSuperadmin UserRole = "superadmin"
	UserRoleUser       UserRole = "user"
)

Defines values for UserRole.

type UserSummary added in v0.4.0

type UserSummary struct {
	DisplayName string `json:"display_name"`
	Id          ID     `json:"id"`
	Username    string `json:"username"`
}

UserSummary Minimal user reference embedded in group responses.

type Username

type Username = string

Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.

Jump to

Keyboard shortcuts

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