httpapi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 18 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.7.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.7.1 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes apiKeyAuthContextKey = "apiKeyAuth.Scopes"
	CookieAuthScopes cookieAuthContextKey = "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 GetSpec added in v0.6.0

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

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON added in v0.6.0

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

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

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

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, params *DeviceHeartbeatByAPIKeyParams) (*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 NewGetAccessLogEntryRequest added in v0.7.0

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

NewGetAccessLogEntryRequest generates requests for GetAccessLogEntry

func NewGetAccessLogHistogramRequest added in v0.7.0

func NewGetAccessLogHistogramRequest(server string, params *GetAccessLogHistogramParams) (*http.Request, error)

NewGetAccessLogHistogramRequest generates requests for GetAccessLogHistogram

func NewGetAccessLogRequest added in v0.4.0

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

NewGetAccessLogRequest generates requests for GetAccessLog

func NewGetAddressHistoryHistogramRequest added in v0.6.0

func NewGetAddressHistoryHistogramRequest(server string, params *GetAddressHistoryHistogramParams) (*http.Request, error)

NewGetAddressHistoryHistogramRequest generates requests for GetAddressHistoryHistogram

func NewGetAddressHistoryRequest added in v0.4.0

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

NewGetAddressHistoryRequest generates requests for GetAddressHistory

func NewGetAddressHistoryTuningRequest added in v0.7.0

func NewGetAddressHistoryTuningRequest(server string, params *GetAddressHistoryTuningParams) (*http.Request, error)

NewGetAddressHistoryTuningRequest generates requests for GetAddressHistoryTuning

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

func NewGetDeviceFleetRequest(server string, params *GetDeviceFleetParams) (*http.Request, error)

NewGetDeviceFleetRequest generates requests for GetDeviceFleet

func NewGetHostGroupRequest added in v0.6.0

func NewGetHostGroupRequest(server string, groupId ID) (*http.Request, error)

NewGetHostGroupRequest generates requests for GetHostGroup

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

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

NewGetVersionRequest generates requests for GetVersion

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

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

NewListDeviceRefsRequest generates requests for ListDeviceRefs

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

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

NewListOwnerRefsRequest generates requests for ListOwnerRefs

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"`
	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 AccessLogDetail added in v0.7.0

type AccessLogDetail 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,omitempty"`

	// DurationUs Request processing duration in microseconds
	DurationUs *int64 `json:"duration_us,omitempty"`

	// Headers Request headers as received, each name mapped to all of its values. Empty when none were captured.
	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,omitempty"`

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

	// XffChain Raw X-Forwarded-For header as received, client-most first.
	XffChain *string `json:"xff_chain,omitempty"`
}

AccessLogDetail defines model for AccessLogDetail.

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 (
	AccessLogFilterOperatorContains    AccessLogFilterOperator = "contains"
	AccessLogFilterOperatorIn          AccessLogFilterOperator = "in"
	AccessLogFilterOperatorIsNull      AccessLogFilterOperator = "is_null"
	AccessLogFilterOperatorNotContains AccessLogFilterOperator = "not_contains"
	AccessLogFilterOperatorNotIn       AccessLogFilterOperator = "not_in"
	AccessLogFilterOperatorNotNull     AccessLogFilterOperator = "not_null"
)

Defines values for AccessLogFilterOperator.

func (AccessLogFilterOperator) Valid added in v0.6.0

func (e AccessLogFilterOperator) Valid() bool

Valid indicates whether the value is a known member of the AccessLogFilterOperator enum.

type AccessLogHistogramBucket added in v0.7.0

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

	// Timestamp Start of the bucket, UTC.
	Timestamp UTCTime `json:"timestamp"`
}

AccessLogHistogramBucket Allowed and denied request counts for one time bucket. Field names and types match the dashboard traffic bucket, so the same chart renders either.

type AccessLogHistogramResponse added in v0.7.0

type AccessLogHistogramResponse struct {
	// Buckets Every bucket in the window, oldest first — a bucket no request fell into is present with both counts at zero, so a gap in the data is never a gap in the series. An empty list means the window itself is empty.
	Buckets []AccessLogHistogramBucket `json:"buckets"`
}

AccessLogHistogramResponse defines model for AccessLogHistogramResponse.

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 {
	// ClientIp IPv4 or IPv6 address
	ClientIp IPAddress `json:"client_ip"`

	// 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"`
	CreatedAt   UTCTime           `json:"created_at"`
	DenyReason  *PolicyDenyReason `json:"deny_reason,omitempty"`

	// DurationUs Request processing duration in microseconds
	DurationUs *int64  `json:"duration_us,omitempty"`
	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,omitempty"`

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

AccessLogRow One request as shown in the access-log table. Carries the columns the table scans; fetch GET /access-log/{id} for the full record of a single request.

type AccessLogSortColumn added in v0.6.0

type AccessLogSortColumn string

AccessLogSortColumn Sortable columns for the access log list. Join-derived columns (e.g. country) are not sortable.

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

Defines values for AccessLogSortColumn.

func (AccessLogSortColumn) Valid added in v0.6.0

func (e AccessLogSortColumn) Valid() bool

Valid indicates whether the value is a known member of the AccessLogSortColumn enum.

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) ContentType added in v0.6.0

func (r AddAddressTestClientResponse) ContentType() string

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

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,omitempty"`

	// 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,omitempty"`
	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 Which subsystem wrote an address event. `heartbeat` is the companion app, `web_ui` any action an admin took in the browser (adding an IP, toggling an address, disabling or deleting a device, registering the browser's own IP), and `expiry`/`limit_exceeded` the server's own lease and address-limit jobs. What set the event off is a separate axis — see `trigger_type`.
	Source AddressEventSource `json:"source"`

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

Address defines model for Address.

type AddressEventKind added in v0.6.0

type AddressEventKind string

AddressEventKind How an address event relates to the immediately preceding event for the same address, independent of any time window. `created` and `enabled`/ `disabled` are the events that matter for the "state changes" view; `refresh` is a repeated heartbeat with no state change.

const (
	AddressEventKindCreated  AddressEventKind = "created"
	AddressEventKindDisabled AddressEventKind = "disabled"
	AddressEventKindEnabled  AddressEventKind = "enabled"
	AddressEventKindRefresh  AddressEventKind = "refresh"
)

Defines values for AddressEventKind.

func (AddressEventKind) Valid added in v0.6.0

func (e AddressEventKind) Valid() bool

Valid indicates whether the value is a known member of the AddressEventKind enum.

type AddressEventSource added in v0.3.0

type AddressEventSource string

AddressEventSource Which subsystem wrote an address event. `heartbeat` is the companion app, `web_ui` any action an admin took in the browser (adding an IP, toggling an address, disabling or deleting a device, registering the browser's own IP), and `expiry`/`limit_exceeded` the server's own lease and address-limit jobs. What set the event off is a separate axis — see `trigger_type`.

const (
	Expiry        AddressEventSource = "expiry"
	Heartbeat     AddressEventSource = "heartbeat"
	LimitExceeded AddressEventSource = "limit_exceeded"
	WebUi         AddressEventSource = "web_ui"
)

Defines values for AddressEventSource.

func (AddressEventSource) Valid added in v0.6.0

func (e AddressEventSource) Valid() bool

Valid indicates whether the value is a known member of the AddressEventSource enum.

type AddressEventTrigger added in v0.7.0

type AddressEventTrigger string

AddressEventTrigger What set an address event off, independent of which subsystem wrote it. `user` is a deliberate human action — an app or tray button, or any web UI action. `schedule` is the companion app's periodic beat and `network_change` its reaction to the device changing network. `system` marks the server's own jobs (lease expiry, address-limit eviction) and is never accepted from a client.

const (
	AddressEventTriggerNetworkChange AddressEventTrigger = "network_change"
	AddressEventTriggerSchedule      AddressEventTrigger = "schedule"
	AddressEventTriggerSystem        AddressEventTrigger = "system"
	AddressEventTriggerUser          AddressEventTrigger = "user"
)

Defines values for AddressEventTrigger.

func (AddressEventTrigger) Valid added in v0.7.0

func (e AddressEventTrigger) Valid() bool

Valid indicates whether the value is a known member of the AddressEventTrigger enum.

type AddressHistoryBucket

type AddressHistoryBucket struct {
	// ApproachingDeviceCount Distinct devices whose worst ttl_risk in this bucket is `approaching`.
	ApproachingDeviceCount int `json:"approaching_device_count"`

	// BreachedDeviceCount Distinct devices whose worst ttl_risk in this bucket is `breached`.
	BreachedDeviceCount int `json:"breached_device_count"`

	// CriticalDeviceCount Distinct devices whose worst ttl_risk in this bucket is `critical`.
	CriticalDeviceCount int `json:"critical_device_count"`

	// OkDeviceCount Distinct devices whose worst ttl_risk in this bucket is `ok`. A device with events at more than one risk level in the same bucket is counted once, under its worst level only — the four counts on a bucket never double-count a device.
	OkDeviceCount int     `json:"ok_device_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"`

	// EventKind How this event relates to the previous event for the same address.
	EventKind AddressEventKind `json:"event_kind"`

	// 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,omitempty"`
	Id  ID       `json:"id"`

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

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

	// RenewalGapSeconds Seconds since this device's previous renewal event (any event except a server-generated expiry/limit_exceeded termination), across all of its addresses. Null for a non-renewal row, or the first renewal ever for the device.
	RenewalGapSeconds *int64 `json:"renewal_gap_seconds,omitempty"`

	// Source Which subsystem wrote an address event. `heartbeat` is the companion app, `web_ui` any action an admin took in the browser (adding an IP, toggling an address, disabling or deleting a device, registering the browser's own IP), and `expiry`/`limit_exceeded` the server's own lease and address-limit jobs. What set the event off is a separate axis — see `trigger_type`.
	Source    AddressEventSource `json:"source"`
	Timestamp UTCTime            `json:"timestamp"`

	// TriggerType What set this event off, independent of the subsystem that wrote it.
	TriggerType AddressEventTrigger `json:"trigger_type"`

	// TtlRisk How renewal_gap_seconds compares to the device's configured lease TTL.
	TtlRisk TTLRisk `json:"ttl_risk"`

	// 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,omitempty"`
}

AddressHistoryEvent defines model for AddressHistoryEvent.

type AddressHistoryFilterOperator added in v0.6.0

type AddressHistoryFilterOperator string

AddressHistoryFilterOperator Filter operator for an address-history value column. Supplied as the sibling `{field}_op` query param; defaults to `in` when omitted. Allowed operators vary per column.

const (
	AddressHistoryFilterOperatorContains    AddressHistoryFilterOperator = "contains"
	AddressHistoryFilterOperatorIn          AddressHistoryFilterOperator = "in"
	AddressHistoryFilterOperatorNotContains AddressHistoryFilterOperator = "not_contains"
	AddressHistoryFilterOperatorNotIn       AddressHistoryFilterOperator = "not_in"
)

Defines values for AddressHistoryFilterOperator.

func (AddressHistoryFilterOperator) Valid added in v0.6.0

Valid indicates whether the value is a known member of the AddressHistoryFilterOperator enum.

type AddressHistoryHistogramResponse added in v0.6.0

type AddressHistoryHistogramResponse struct {
	// Buckets Every bucket across the window, oldest first, with no gaps: a bucket in which nothing renewed at all still appears, with all four counts zero. Bucket width follows the window size.
	Buckets []AddressHistoryBucket `json:"buckets"`
}

AddressHistoryHistogramResponse defines model for AddressHistoryHistogramResponse.

type AddressHistoryResponse

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

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

AddressHistoryResponse defines model for AddressHistoryResponse.

type AddressHistoryTuningCandidate added in v0.7.0

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

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

	// LateRenewalCount Of renewal_count, how many arrived after the device's lease TTL had already elapsed.
	LateRenewalCount int `json:"late_renewal_count"`

	// P95GapSeconds The 95th-percentile gap, in seconds, between this device's renewals in the window — 95% of its renewals arrived within this many seconds of the one before. With few renewals this equals the largest gap observed, which is the right number to size a TTL against.
	P95GapSeconds int64 `json:"p95_gap_seconds"`

	// RenewalCount This device's renewals in the window: events with a measurable gap since the device's previous renewal. Excludes events with nothing to measure against, such as the device's first-ever renewal or a lease expiry.
	RenewalCount int `json:"renewal_count"`

	// TtlSeconds The device's configured address-lease TTL, in seconds.
	TtlSeconds int64 `json:"ttl_seconds"`
}

AddressHistoryTuningCandidate defines model for AddressHistoryTuningCandidate.

type AddressHistoryTuningResponse added in v0.7.0

type AddressHistoryTuningResponse struct {
	// Devices Up to five devices most worth re-tuning their lease TTL in the window, worst first: ordered by how far the 95th-percentile renewal gap exceeds the TTL, then by how many renewals arrived late, then by device id. Under device_id it holds at most that one device.
	Devices []AddressHistoryTuningCandidate `json:"devices"`

	// MinRenewals The minimum number of renewals a device needed in the window to qualify, echoed back so a caller does not have to hardcode the same number. Not applied under device_id, which returns that device's readout whatever its renewal count.
	MinRenewals int `json:"min_renewals"`

	// Total How many devices qualify for re-tuning in the window, fleet-wide — not just how many the devices list is carrying, which is only the top five for display. Under device_id it is 0 or 1 instead: 1 when that device has measurable renewals in the window, whether or not it would qualify.
	Total int `json:"total"`
}

AddressHistoryTuningResponse defines model for AddressHistoryTuningResponse.

type AttributionEntityKind added in v0.6.0

type AttributionEntityKind string

AttributionEntityKind Which entity kind to group a traffic attribution split by.

const (
	AttributionEntityKindDevice AttributionEntityKind = "device"
	AttributionEntityKindPolicy AttributionEntityKind = "policy"
	AttributionEntityKindUser   AttributionEntityKind = "user"
)

Defines values for AttributionEntityKind.

func (AttributionEntityKind) Valid added in v0.6.0

func (e AttributionEntityKind) Valid() bool

Valid indicates whether the value is a known member of the AttributionEntityKind enum.

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) ContentType added in v0.6.0

func (r ChangePasswordTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

func (r ClaimPairingTestClientResponse) ContentType() string

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

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, params *DeviceHeartbeatByAPIKeyParams, 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) GetAccessLogEntry added in v0.7.0

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

func (*Client) GetAccessLogHistogram added in v0.7.0

func (c *Client) GetAccessLogHistogram(ctx context.Context, params *GetAccessLogHistogramParams, 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) GetAddressHistoryHistogram added in v0.6.0

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

func (*Client) GetAddressHistoryTuning added in v0.7.0

func (c *Client) GetAddressHistoryTuning(ctx context.Context, params *GetAddressHistoryTuningParams, 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) GetDeviceFleet added in v0.6.0

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

func (*Client) GetHostGroup added in v0.6.0

func (c *Client) GetHostGroup(ctx context.Context, groupId ID, 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) GetVersion added in v0.6.0

func (c *Client) GetVersion(ctx context.Context, 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) ListDeviceRefs added in v0.6.0

func (c *Client) ListDeviceRefs(ctx context.Context, 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) ListOwnerRefs added in v0.6.0

func (c *Client) ListOwnerRefs(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)

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

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

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

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

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

	// GetAddressHistoryTuning request
	GetAddressHistoryTuning(ctx context.Context, params *GetAddressHistoryTuningParams, 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)

	// GetHostGroup request
	GetHostGroup(ctx context.Context, groupId ID, 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)

	// GetDeviceFleet request
	GetDeviceFleet(ctx context.Context, params *GetDeviceFleetParams, 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)

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

	// ListDeviceRefs request
	ListDeviceRefs(ctx context.Context, 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)

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

	// ListOwnerRefs request
	ListOwnerRefs(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)

	// GetVersion request
	GetVersion(ctx context.Context, 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, params *DeviceHeartbeatByAPIKeyParams, 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) GetAccessLogEntryWithResponse added in v0.7.0

func (c *ClientWithResponses) GetAccessLogEntryWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*GetAccessLogEntryTestClientResponse, error)

GetAccessLogEntryWithResponse request returning *GetAccessLogEntryTestClientResponse

func (*ClientWithResponses) GetAccessLogHistogramWithResponse added in v0.7.0

func (c *ClientWithResponses) GetAccessLogHistogramWithResponse(ctx context.Context, params *GetAccessLogHistogramParams, reqEditors ...RequestEditorFn) (*GetAccessLogHistogramTestClientResponse, error)

GetAccessLogHistogramWithResponse request returning *GetAccessLogHistogramTestClientResponse

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) GetAddressHistoryHistogramWithResponse added in v0.6.0

func (c *ClientWithResponses) GetAddressHistoryHistogramWithResponse(ctx context.Context, params *GetAddressHistoryHistogramParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryHistogramTestClientResponse, error)

GetAddressHistoryHistogramWithResponse request returning *GetAddressHistoryHistogramTestClientResponse

func (*ClientWithResponses) GetAddressHistoryTuningWithResponse added in v0.7.0

func (c *ClientWithResponses) GetAddressHistoryTuningWithResponse(ctx context.Context, params *GetAddressHistoryTuningParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryTuningTestClientResponse, error)

GetAddressHistoryTuningWithResponse request returning *GetAddressHistoryTuningTestClientResponse

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) GetDeviceFleetWithResponse added in v0.6.0

func (c *ClientWithResponses) GetDeviceFleetWithResponse(ctx context.Context, params *GetDeviceFleetParams, reqEditors ...RequestEditorFn) (*GetDeviceFleetTestClientResponse, error)

GetDeviceFleetWithResponse request returning *GetDeviceFleetTestClientResponse

func (*ClientWithResponses) GetHostGroupWithResponse added in v0.6.0

func (c *ClientWithResponses) GetHostGroupWithResponse(ctx context.Context, groupId ID, reqEditors ...RequestEditorFn) (*GetHostGroupTestClientResponse, error)

GetHostGroupWithResponse request returning *GetHostGroupTestClientResponse

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) GetVersionWithResponse added in v0.6.0

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionTestClientResponse, error)

GetVersionWithResponse request returning *GetVersionTestClientResponse

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) ListDeviceRefsWithResponse added in v0.6.0

func (c *ClientWithResponses) ListDeviceRefsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDeviceRefsTestClientResponse, error)

ListDeviceRefsWithResponse request returning *ListDeviceRefsTestClientResponse

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) ListOwnerRefsWithResponse added in v0.6.0

func (c *ClientWithResponses) ListOwnerRefsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOwnerRefsTestClientResponse, error)

ListOwnerRefsWithResponse request returning *ListOwnerRefsTestClientResponse

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)

	// GetAccessLogHistogramWithResponse request
	GetAccessLogHistogramWithResponse(ctx context.Context, params *GetAccessLogHistogramParams, reqEditors ...RequestEditorFn) (*GetAccessLogHistogramTestClientResponse, error)

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

	// GetAccessLogEntryWithResponse request
	GetAccessLogEntryWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*GetAccessLogEntryTestClientResponse, error)

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

	// GetAddressHistoryHistogramWithResponse request
	GetAddressHistoryHistogramWithResponse(ctx context.Context, params *GetAddressHistoryHistogramParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryHistogramTestClientResponse, error)

	// GetAddressHistoryTuningWithResponse request
	GetAddressHistoryTuningWithResponse(ctx context.Context, params *GetAddressHistoryTuningParams, reqEditors ...RequestEditorFn) (*GetAddressHistoryTuningTestClientResponse, 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)

	// GetHostGroupWithResponse request
	GetHostGroupWithResponse(ctx context.Context, groupId ID, reqEditors ...RequestEditorFn) (*GetHostGroupTestClientResponse, 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)

	// GetDeviceFleetWithResponse request
	GetDeviceFleetWithResponse(ctx context.Context, params *GetDeviceFleetParams, reqEditors ...RequestEditorFn) (*GetDeviceFleetTestClientResponse, 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)

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

	// ListDeviceRefsWithResponse request
	ListDeviceRefsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDeviceRefsTestClientResponse, 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)

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

	// ListOwnerRefsWithResponse request
	ListOwnerRefsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOwnerRefsTestClientResponse, 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)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionTestClientResponse, 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) ContentType added in v0.6.0

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

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,omitempty"`

	// 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,omitempty"`

	// 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,omitempty"`
}

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,omitempty"`
	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) ContentType added in v0.6.0

func (r CreateDeviceTestClientResponse) ContentType() string

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

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,omitempty"`
	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) ContentType added in v0.6.0

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

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      PairingExpiryHours `json:"expires_in_hours"`
	HeartbeatServerUrl  string             `json:"heartbeat_server_url"`
	IntervalSeconds     int                `json:"interval_seconds"`
}

CreatePairingRequest defines model for CreatePairingRequest.

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,omitempty"`

	// 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) ContentType added in v0.6.0

func (r CreateUserTestClientResponse) ContentType() string

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

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,omitempty"`
	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,omitempty"`

	// 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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r DeleteDeviceTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r DeleteUserTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

func (r DemoteUserTestClientResponse) ContentType() string

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

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,omitempty"`
	CreatedAt    UTCTime `json:"created_at"`

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

	// 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,omitempty"`

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

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

	// 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 {
	// Enabled Whether the lease rule is active
	Enabled bool `json:"enabled"`

	// TtlSeconds Seconds after which an enabled device address lease expires; absent when disabled and never configured
	TtlSeconds *int `json:"ttl_seconds,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 DeviceHeartbeatByAPIKeyParams added in v0.7.0

type DeviceHeartbeatByAPIKeyParams struct {
	// TriggerType What set this heartbeat off, recorded on the resulting address event: `user`, `schedule` or `network_change`. Deliberately untyped, because this annotation must never cost a device its access — an omitted, unrecognised, or server-only (`system`) value is recorded as `schedule` instead of failing the request.
	TriggerType *string `form:"trigger_type,omitempty" json:"trigger_type,omitempty"`
}

DeviceHeartbeatByAPIKeyParams defines parameters for DeviceHeartbeatByAPIKey.

type DeviceHeartbeatByAPIKeyRequestObject

type DeviceHeartbeatByAPIKeyRequestObject struct {
	Params DeviceHeartbeatByAPIKeyParams
}

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r DeviceHeartbeatTestClientResponse) ContentType() string

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

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 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,omitempty"`
	Icon             *string `json:"icon,omitempty"`
	Id               ID      `json:"id"`
	LiveAddressCount int     `json:"live_address_count"`
	Name             string  `json:"name"`
}

DeviceListItem Device summary shown on user access detail.

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"`
	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.

func (DevicePairingStatus) Valid added in v0.6.0

func (e DevicePairingStatus) Valid() bool

Valid indicates whether the value is a known member of the DevicePairingStatus enum.

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"`
}

DevicePairingSummary Latest pairing for one device, nested on the device it belongs to.

type DeviceRef added in v0.6.0

type DeviceRef struct {
	Id      ID     `json:"id"`
	Name    string `json:"name"`
	OwnerId ID     `json:"owner_id"`
}

DeviceRef Minimal device reference for pickers and the device→owner reverse lookup.

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,omitempty"`

	// TtlSeconds TTL in seconds. Present for auto_expiry rules.
	TtlSeconds *int `json:"ttl_seconds,omitempty"`

	// Type Kind of per-device rule summarized in DeviceRuleSummary.
	Type RuleType `json:"type"`
}

DeviceRuleSummary defines model for DeviceRuleSummary.

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.

const (
	DeviceStateDisabled DeviceState = "disabled"
	DeviceStateHealthy  DeviceState = "healthy"
	DeviceStateStale    DeviceState = "stale"
)

Defines values for DeviceState.

func (DeviceState) Valid added in v0.6.0

func (e DeviceState) Valid() bool

Valid indicates whether the value is a known member of the DeviceState enum.

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) ContentType added in v0.6.0

func (r DisableAddressTestClientResponse) ContentType() string

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

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 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
	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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r DisableDeviceTestClientResponse) ContentType() string

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

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 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
	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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r EnableDeviceTestClientResponse) ContentType() string

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

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

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

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

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

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

	// LastSeenAt Most recent address heartbeat for this device.
	LastSeenAt       *UTCTime `json:"last_seen_at,omitempty"`
	LiveAddressCount int      `json:"live_address_count"`
	Name             string   `json:"name"`

	// Pairing Latest pairing for this device, or null when it has never been paired.
	Pairing *DevicePairingSummary `json:"pairing,omitempty"`

	// Rules Configured rules for this device; empty when none are configured.
	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.
	State DeviceState `json:"state"`
}

FleetDevice One device of an owner's fleet, with its rules and latest pairing nested. Presentation-ready — the client joins nothing.

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.

func GeoInfoFromResult added in v0.6.0

func GeoInfoFromResult(r geoip.Result) *GeoInfo

GeoInfoFromResult maps a geo/ASN lookup onto its wire representation, returning nil for an unresolved address so the field is omitted rather than sent as an object full of empty strings. Every zero field stays nil for the same reason.

It lives here rather than in geoip because it produces a generated API type: geoip is infrastructure and must not depend on the HTTP layer.

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) ContentType added in v0.6.0

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

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

type GetAccessLogEntry200JSONResponse AccessLogDetail

func (GetAccessLogEntry200JSONResponse) VisitGetAccessLogEntryResponse added in v0.7.0

func (response GetAccessLogEntry200JSONResponse) VisitGetAccessLogEntryResponse(w http.ResponseWriter) error

type GetAccessLogEntry401JSONResponse added in v0.7.0

type GetAccessLogEntry401JSONResponse ErrorResponse

func (GetAccessLogEntry401JSONResponse) VisitGetAccessLogEntryResponse added in v0.7.0

func (response GetAccessLogEntry401JSONResponse) VisitGetAccessLogEntryResponse(w http.ResponseWriter) error

type GetAccessLogEntry403JSONResponse added in v0.7.0

type GetAccessLogEntry403JSONResponse ErrorResponse

func (GetAccessLogEntry403JSONResponse) VisitGetAccessLogEntryResponse added in v0.7.0

func (response GetAccessLogEntry403JSONResponse) VisitGetAccessLogEntryResponse(w http.ResponseWriter) error

type GetAccessLogEntry404JSONResponse added in v0.7.0

type GetAccessLogEntry404JSONResponse ErrorResponse

func (GetAccessLogEntry404JSONResponse) VisitGetAccessLogEntryResponse added in v0.7.0

func (response GetAccessLogEntry404JSONResponse) VisitGetAccessLogEntryResponse(w http.ResponseWriter) error

type GetAccessLogEntry500JSONResponse added in v0.7.0

type GetAccessLogEntry500JSONResponse ErrorResponse

func (GetAccessLogEntry500JSONResponse) VisitGetAccessLogEntryResponse added in v0.7.0

func (response GetAccessLogEntry500JSONResponse) VisitGetAccessLogEntryResponse(w http.ResponseWriter) error

type GetAccessLogEntryRequestObject added in v0.7.0

type GetAccessLogEntryRequestObject struct {
	Id ID `json:"id"`
}

type GetAccessLogEntryResponseObject added in v0.7.0

type GetAccessLogEntryResponseObject interface {
	VisitGetAccessLogEntryResponse(w http.ResponseWriter) error
}

type GetAccessLogEntryTestClientResponse added in v0.7.0

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

func ParseGetAccessLogEntryTestClientResponse added in v0.7.0

func ParseGetAccessLogEntryTestClientResponse(rsp *http.Response) (*GetAccessLogEntryTestClientResponse, error)

ParseGetAccessLogEntryTestClientResponse parses an HTTP response from a GetAccessLogEntryWithResponse call

func (GetAccessLogEntryTestClientResponse) ContentType added in v0.7.0

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

func (GetAccessLogEntryTestClientResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetAccessLogEntryTestClientResponse) StatusCode added in v0.7.0

StatusCode returns HTTPResponse.StatusCode

type GetAccessLogHistogram200JSONResponse added in v0.7.0

type GetAccessLogHistogram200JSONResponse AccessLogHistogramResponse

func (GetAccessLogHistogram200JSONResponse) VisitGetAccessLogHistogramResponse added in v0.7.0

func (response GetAccessLogHistogram200JSONResponse) VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error

type GetAccessLogHistogram400JSONResponse added in v0.7.0

type GetAccessLogHistogram400JSONResponse ErrorResponse

func (GetAccessLogHistogram400JSONResponse) VisitGetAccessLogHistogramResponse added in v0.7.0

func (response GetAccessLogHistogram400JSONResponse) VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error

type GetAccessLogHistogram401JSONResponse added in v0.7.0

type GetAccessLogHistogram401JSONResponse ErrorResponse

func (GetAccessLogHistogram401JSONResponse) VisitGetAccessLogHistogramResponse added in v0.7.0

func (response GetAccessLogHistogram401JSONResponse) VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error

type GetAccessLogHistogram403JSONResponse added in v0.7.0

type GetAccessLogHistogram403JSONResponse ErrorResponse

func (GetAccessLogHistogram403JSONResponse) VisitGetAccessLogHistogramResponse added in v0.7.0

func (response GetAccessLogHistogram403JSONResponse) VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error

type GetAccessLogHistogram500JSONResponse added in v0.7.0

type GetAccessLogHistogram500JSONResponse ErrorResponse

func (GetAccessLogHistogram500JSONResponse) VisitGetAccessLogHistogramResponse added in v0.7.0

func (response GetAccessLogHistogram500JSONResponse) VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error

type GetAccessLogHistogramParams added in v0.7.0

type GetAccessLogHistogramParams 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"`

	// 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). With this set the chart shows a single band, the other being zero everywhere by construction.
	Outcome *bool `form:"outcome,omitempty" json:"outcome,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"`
}

GetAccessLogHistogramParams defines parameters for GetAccessLogHistogram.

type GetAccessLogHistogramRequestObject added in v0.7.0

type GetAccessLogHistogramRequestObject struct {
	Params GetAccessLogHistogramParams
}

type GetAccessLogHistogramResponseObject added in v0.7.0

type GetAccessLogHistogramResponseObject interface {
	VisitGetAccessLogHistogramResponse(w http.ResponseWriter) error
}

type GetAccessLogHistogramTestClientResponse added in v0.7.0

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

func ParseGetAccessLogHistogramTestClientResponse added in v0.7.0

func ParseGetAccessLogHistogramTestClientResponse(rsp *http.Response) (*GetAccessLogHistogramTestClientResponse, error)

ParseGetAccessLogHistogramTestClientResponse parses an HTTP response from a GetAccessLogHistogramWithResponse call

func (GetAccessLogHistogramTestClientResponse) ContentType added in v0.7.0

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

func (GetAccessLogHistogramTestClientResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetAccessLogHistogramTestClientResponse) StatusCode added in v0.7.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"`

	// 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"`

	// 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 *AccessLogSortColumn `form:"sort,omitempty" json:"sort,omitempty"`

	// Order Sort direction (default desc).
	Order *SortOrder `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 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) ContentType added in v0.6.0

func (r GetAccessLogTestClientResponse) ContentType() string

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

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

type GetAddressHistoryHistogram200JSONResponse AddressHistoryHistogramResponse

func (GetAddressHistoryHistogram200JSONResponse) VisitGetAddressHistoryHistogramResponse added in v0.6.0

func (response GetAddressHistoryHistogram200JSONResponse) VisitGetAddressHistoryHistogramResponse(w http.ResponseWriter) error

type GetAddressHistoryHistogram400JSONResponse added in v0.6.0

type GetAddressHistoryHistogram400JSONResponse ErrorResponse

func (GetAddressHistoryHistogram400JSONResponse) VisitGetAddressHistoryHistogramResponse added in v0.6.0

func (response GetAddressHistoryHistogram400JSONResponse) VisitGetAddressHistoryHistogramResponse(w http.ResponseWriter) error

type GetAddressHistoryHistogram403JSONResponse added in v0.6.0

type GetAddressHistoryHistogram403JSONResponse ErrorResponse

func (GetAddressHistoryHistogram403JSONResponse) VisitGetAddressHistoryHistogramResponse added in v0.6.0

func (response GetAddressHistoryHistogram403JSONResponse) VisitGetAddressHistoryHistogramResponse(w http.ResponseWriter) error

type GetAddressHistoryHistogram500JSONResponse added in v0.6.0

type GetAddressHistoryHistogram500JSONResponse ErrorResponse

func (GetAddressHistoryHistogram500JSONResponse) VisitGetAddressHistoryHistogramResponse added in v0.6.0

func (response GetAddressHistoryHistogram500JSONResponse) VisitGetAddressHistoryHistogramResponse(w http.ResponseWriter) error

type GetAddressHistoryHistogramParams added in v0.6.0

type GetAddressHistoryHistogramParams struct {
	// DeviceId Device ID filter values (in, not_in). Empty means all devices.
	DeviceId   *[]ID                         `form:"device_id,omitempty" json:"device_id,omitempty"`
	DeviceIdOp *AddressHistoryFilterOperator `form:"device_id_op,omitempty" json:"device_id_op,omitempty"`

	// UserId Owning user ID filter values (in, not_in).
	UserId   *[]ID                         `form:"user_id,omitempty" json:"user_id,omitempty"`
	UserIdOp *AddressHistoryFilterOperator `form:"user_id_op,omitempty" json:"user_id_op,omitempty"`

	// Ip IP address filter values (in, not_in, contains, not_contains).
	Ip   *[]string                     `form:"ip,omitempty" json:"ip,omitempty"`
	IpOp *AddressHistoryFilterOperator `form:"ip_op,omitempty" json:"ip_op,omitempty"`

	// Source Event source filter values (in, not_in).
	Source   *[]AddressEventSource         `form:"source,omitempty" json:"source,omitempty"`
	SourceOp *AddressHistoryFilterOperator `form:"source_op,omitempty" json:"source_op,omitempty"`

	// TriggerType Event trigger filter values (in, not_in).
	TriggerType   *[]AddressEventTrigger        `form:"trigger_type,omitempty" json:"trigger_type,omitempty"`
	TriggerTypeOp *AddressHistoryFilterOperator `form:"trigger_type_op,omitempty" json:"trigger_type_op,omitempty"`

	// EventKind Event kind filter values (in, not_in).
	EventKind   *[]AddressEventKind           `form:"event_kind,omitempty" json:"event_kind,omitempty"`
	EventKindOp *AddressHistoryFilterOperator `form:"event_kind_op,omitempty" json:"event_kind_op,omitempty"`

	// TtlRisk TTL risk filter values (in, not_in).
	TtlRisk   *[]TTLRisk                    `form:"ttl_risk,omitempty" json:"ttl_risk,omitempty"`
	TtlRiskOp *AddressHistoryFilterOperator `form:"ttl_risk_op,omitempty" json:"ttl_risk_op,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"`
}

GetAddressHistoryHistogramParams defines parameters for GetAddressHistoryHistogram.

type GetAddressHistoryHistogramRequestObject added in v0.6.0

type GetAddressHistoryHistogramRequestObject struct {
	Params GetAddressHistoryHistogramParams
}

type GetAddressHistoryHistogramResponseObject added in v0.6.0

type GetAddressHistoryHistogramResponseObject interface {
	VisitGetAddressHistoryHistogramResponse(w http.ResponseWriter) error
}

type GetAddressHistoryHistogramTestClientResponse added in v0.6.0

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

func ParseGetAddressHistoryHistogramTestClientResponse added in v0.6.0

func ParseGetAddressHistoryHistogramTestClientResponse(rsp *http.Response) (*GetAddressHistoryHistogramTestClientResponse, error)

ParseGetAddressHistoryHistogramTestClientResponse parses an HTTP response from a GetAddressHistoryHistogramWithResponse call

func (GetAddressHistoryHistogramTestClientResponse) ContentType added in v0.6.0

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

func (GetAddressHistoryHistogramTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (GetAddressHistoryHistogramTestClientResponse) StatusCode added in v0.6.0

StatusCode returns HTTPResponse.StatusCode

type GetAddressHistoryParams

type GetAddressHistoryParams struct {
	// DeviceId Device ID filter values (in, not_in). Empty means all devices.
	DeviceId   *[]ID                         `form:"device_id,omitempty" json:"device_id,omitempty"`
	DeviceIdOp *AddressHistoryFilterOperator `form:"device_id_op,omitempty" json:"device_id_op,omitempty"`

	// UserId Owning user ID filter values (in, not_in).
	UserId   *[]ID                         `form:"user_id,omitempty" json:"user_id,omitempty"`
	UserIdOp *AddressHistoryFilterOperator `form:"user_id_op,omitempty" json:"user_id_op,omitempty"`

	// Ip IP address filter values (in, not_in, contains, not_contains).
	Ip   *[]string                     `form:"ip,omitempty" json:"ip,omitempty"`
	IpOp *AddressHistoryFilterOperator `form:"ip_op,omitempty" json:"ip_op,omitempty"`

	// Source Event source filter values (in, not_in).
	Source   *[]AddressEventSource         `form:"source,omitempty" json:"source,omitempty"`
	SourceOp *AddressHistoryFilterOperator `form:"source_op,omitempty" json:"source_op,omitempty"`

	// TriggerType Event trigger filter values (in, not_in).
	TriggerType   *[]AddressEventTrigger        `form:"trigger_type,omitempty" json:"trigger_type,omitempty"`
	TriggerTypeOp *AddressHistoryFilterOperator `form:"trigger_type_op,omitempty" json:"trigger_type_op,omitempty"`

	// EventKind Event kind filter values (in, not_in).
	EventKind   *[]AddressEventKind           `form:"event_kind,omitempty" json:"event_kind,omitempty"`
	EventKindOp *AddressHistoryFilterOperator `form:"event_kind_op,omitempty" json:"event_kind_op,omitempty"`

	// TtlRisk TTL risk filter values (in, not_in).
	TtlRisk   *[]TTLRisk                    `form:"ttl_risk,omitempty" json:"ttl_risk,omitempty"`
	TtlRiskOp *AddressHistoryFilterOperator `form:"ttl_risk_op,omitempty" json:"ttl_risk_op,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"`

	// 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"`
}

GetAddressHistoryParams defines parameters for GetAddressHistory.

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) ContentType added in v0.6.0

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

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

type GetAddressHistoryTuning200JSONResponse AddressHistoryTuningResponse

func (GetAddressHistoryTuning200JSONResponse) VisitGetAddressHistoryTuningResponse added in v0.7.0

func (response GetAddressHistoryTuning200JSONResponse) VisitGetAddressHistoryTuningResponse(w http.ResponseWriter) error

type GetAddressHistoryTuning400JSONResponse added in v0.7.0

type GetAddressHistoryTuning400JSONResponse ErrorResponse

func (GetAddressHistoryTuning400JSONResponse) VisitGetAddressHistoryTuningResponse added in v0.7.0

func (response GetAddressHistoryTuning400JSONResponse) VisitGetAddressHistoryTuningResponse(w http.ResponseWriter) error

type GetAddressHistoryTuning403JSONResponse added in v0.7.0

type GetAddressHistoryTuning403JSONResponse ErrorResponse

func (GetAddressHistoryTuning403JSONResponse) VisitGetAddressHistoryTuningResponse added in v0.7.0

func (response GetAddressHistoryTuning403JSONResponse) VisitGetAddressHistoryTuningResponse(w http.ResponseWriter) error

type GetAddressHistoryTuning500JSONResponse added in v0.7.0

type GetAddressHistoryTuning500JSONResponse ErrorResponse

func (GetAddressHistoryTuning500JSONResponse) VisitGetAddressHistoryTuningResponse added in v0.7.0

func (response GetAddressHistoryTuning500JSONResponse) VisitGetAddressHistoryTuningResponse(w http.ResponseWriter) error

type GetAddressHistoryTuningParams added in v0.7.0

type GetAddressHistoryTuningParams 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"`

	// DeviceId Scope the response to one device, bypassing the ranking threshold.
	DeviceId *ID `form:"device_id,omitempty" json:"device_id,omitempty"`
}

GetAddressHistoryTuningParams defines parameters for GetAddressHistoryTuning.

type GetAddressHistoryTuningRequestObject added in v0.7.0

type GetAddressHistoryTuningRequestObject struct {
	Params GetAddressHistoryTuningParams
}

type GetAddressHistoryTuningResponseObject added in v0.7.0

type GetAddressHistoryTuningResponseObject interface {
	VisitGetAddressHistoryTuningResponse(w http.ResponseWriter) error
}

type GetAddressHistoryTuningTestClientResponse added in v0.7.0

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

func ParseGetAddressHistoryTuningTestClientResponse added in v0.7.0

func ParseGetAddressHistoryTuningTestClientResponse(rsp *http.Response) (*GetAddressHistoryTuningTestClientResponse, error)

ParseGetAddressHistoryTuningTestClientResponse parses an HTTP response from a GetAddressHistoryTuningWithResponse call

func (GetAddressHistoryTuningTestClientResponse) ContentType added in v0.7.0

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

func (GetAddressHistoryTuningTestClientResponse) Status added in v0.7.0

Status returns HTTPResponse.Status

func (GetAddressHistoryTuningTestClientResponse) StatusCode added in v0.7.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) ContentType added in v0.6.0

func (r GetCurrentUserTestClientResponse) ContentType() string

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

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 AttributionEntityKind `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 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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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

type GetDeviceFleet200JSONResponse []OwnerFleetGroup

func (GetDeviceFleet200JSONResponse) VisitGetDeviceFleetResponse added in v0.6.0

func (response GetDeviceFleet200JSONResponse) VisitGetDeviceFleetResponse(w http.ResponseWriter) error

type GetDeviceFleet500JSONResponse added in v0.6.0

type GetDeviceFleet500JSONResponse ErrorResponse

func (GetDeviceFleet500JSONResponse) VisitGetDeviceFleetResponse added in v0.6.0

func (response GetDeviceFleet500JSONResponse) VisitGetDeviceFleetResponse(w http.ResponseWriter) error

type GetDeviceFleetParams added in v0.6.0

type GetDeviceFleetParams struct {
	// OwnerId Restrict the response to a single owner.
	OwnerId *ID `form:"owner_id,omitempty" json:"owner_id,omitempty"`
}

GetDeviceFleetParams defines parameters for GetDeviceFleet.

type GetDeviceFleetRequestObject added in v0.6.0

type GetDeviceFleetRequestObject struct {
	Params GetDeviceFleetParams
}

type GetDeviceFleetResponseObject added in v0.6.0

type GetDeviceFleetResponseObject interface {
	VisitGetDeviceFleetResponse(w http.ResponseWriter) error
}

type GetDeviceFleetTestClientResponse added in v0.6.0

type GetDeviceFleetTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]OwnerFleetGroup
	JSON500      *ErrorResponse
}

func ParseGetDeviceFleetTestClientResponse added in v0.6.0

func ParseGetDeviceFleetTestClientResponse(rsp *http.Response) (*GetDeviceFleetTestClientResponse, error)

ParseGetDeviceFleetTestClientResponse parses an HTTP response from a GetDeviceFleetWithResponse call

func (GetDeviceFleetTestClientResponse) ContentType added in v0.6.0

func (r GetDeviceFleetTestClientResponse) ContentType() string

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

func (GetDeviceFleetTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (GetDeviceFleetTestClientResponse) StatusCode added in v0.6.0

func (r GetDeviceFleetTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostGroup200JSONResponse added in v0.6.0

type GetHostGroup200JSONResponse GroupDetailWithUsers

func (GetHostGroup200JSONResponse) VisitGetHostGroupResponse added in v0.6.0

func (response GetHostGroup200JSONResponse) VisitGetHostGroupResponse(w http.ResponseWriter) error

type GetHostGroup401JSONResponse added in v0.6.0

type GetHostGroup401JSONResponse ErrorResponse

func (GetHostGroup401JSONResponse) VisitGetHostGroupResponse added in v0.6.0

func (response GetHostGroup401JSONResponse) VisitGetHostGroupResponse(w http.ResponseWriter) error

type GetHostGroup403Response added in v0.6.0

type GetHostGroup403Response struct {
}

func (GetHostGroup403Response) VisitGetHostGroupResponse added in v0.6.0

func (response GetHostGroup403Response) VisitGetHostGroupResponse(w http.ResponseWriter) error

type GetHostGroup404JSONResponse added in v0.6.0

type GetHostGroup404JSONResponse ErrorResponse

func (GetHostGroup404JSONResponse) VisitGetHostGroupResponse added in v0.6.0

func (response GetHostGroup404JSONResponse) VisitGetHostGroupResponse(w http.ResponseWriter) error

type GetHostGroup500JSONResponse added in v0.6.0

type GetHostGroup500JSONResponse ErrorResponse

func (GetHostGroup500JSONResponse) VisitGetHostGroupResponse added in v0.6.0

func (response GetHostGroup500JSONResponse) VisitGetHostGroupResponse(w http.ResponseWriter) error

type GetHostGroupRequestObject added in v0.6.0

type GetHostGroupRequestObject struct {
	GroupId ID `json:"group_id"`
}

type GetHostGroupResponseObject added in v0.6.0

type GetHostGroupResponseObject interface {
	VisitGetHostGroupResponse(w http.ResponseWriter) error
}

type GetHostGroupTestClientResponse added in v0.6.0

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

func ParseGetHostGroupTestClientResponse added in v0.6.0

func ParseGetHostGroupTestClientResponse(rsp *http.Response) (*GetHostGroupTestClientResponse, error)

ParseGetHostGroupTestClientResponse parses an HTTP response from a GetHostGroupWithResponse call

func (GetHostGroupTestClientResponse) ContentType added in v0.6.0

func (r GetHostGroupTestClientResponse) ContentType() string

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

func (GetHostGroupTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (GetHostGroupTestClientResponse) StatusCode added in v0.6.0

func (r GetHostGroupTestClientResponse) 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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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

type GetVersion200JSONResponse VersionInfo

func (GetVersion200JSONResponse) VisitGetVersionResponse added in v0.6.0

func (response GetVersion200JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error

type GetVersion401JSONResponse added in v0.6.0

type GetVersion401JSONResponse ErrorResponse

func (GetVersion401JSONResponse) VisitGetVersionResponse added in v0.6.0

func (response GetVersion401JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error

type GetVersionRequestObject added in v0.6.0

type GetVersionRequestObject struct {
}

type GetVersionResponseObject added in v0.6.0

type GetVersionResponseObject interface {
	VisitGetVersionResponse(w http.ResponseWriter) error
}

type GetVersionTestClientResponse added in v0.6.0

type GetVersionTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionInfo
	JSON401      *ErrorResponse
}

func ParseGetVersionTestClientResponse added in v0.6.0

func ParseGetVersionTestClientResponse(rsp *http.Response) (*GetVersionTestClientResponse, error)

ParseGetVersionTestClientResponse parses an HTTP response from a GetVersionWithResponse call

func (GetVersionTestClientResponse) ContentType added in v0.6.0

func (r GetVersionTestClientResponse) ContentType() string

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

func (GetVersionTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (GetVersionTestClientResponse) StatusCode added in v0.6.0

func (r GetVersionTestClientResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GroupDetailWithUsers added in v0.4.0

type GroupDetailWithUsers struct {
	// Color CSS hex color for the group badge.
	Color       string        `json:"color"`
	Description *string       `json:"description,omitempty"`
	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"`

	// Users Users with access to this group (read-only, managed via subjects).
	Users []UserSummary `json:"users"`
}

GroupDetailWithUsers Full group representation including members, returned by the group detail endpoint.

type GroupListItem added in v0.6.0

type GroupListItem struct {
	Color     string `json:"color"`
	HostCount int    `json:"host_count"`
	Icon      string `json:"icon"`
	Id        ID     `json:"id"`
	Name      string `json:"name"`
}

GroupListItem Group summary row for the host-groups list page.

type GroupListResponse added in v0.4.0

type GroupListResponse struct {
	Groups []GroupListItem `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,omitempty"`
	HostIds     []ID    `json:"host_ids"`
	Icon        string  `json:"icon"`
	Id          *ID     `json:"id,omitempty"`
	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 {
	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,omitempty"`
}

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) ContentType added in v0.6.0

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

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 *PairingListFilter `form:"status,omitempty" json:"status,omitempty"`
}

ListDevicePairingsParams defines parameters for ListDevicePairings.

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) ContentType added in v0.6.0

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

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

type ListDeviceRefs200JSONResponse []DeviceRef

func (ListDeviceRefs200JSONResponse) VisitListDeviceRefsResponse added in v0.6.0

func (response ListDeviceRefs200JSONResponse) VisitListDeviceRefsResponse(w http.ResponseWriter) error

type ListDeviceRefs500JSONResponse added in v0.6.0

type ListDeviceRefs500JSONResponse ErrorResponse

func (ListDeviceRefs500JSONResponse) VisitListDeviceRefsResponse added in v0.6.0

func (response ListDeviceRefs500JSONResponse) VisitListDeviceRefsResponse(w http.ResponseWriter) error

type ListDeviceRefsRequestObject added in v0.6.0

type ListDeviceRefsRequestObject struct {
}

type ListDeviceRefsResponseObject added in v0.6.0

type ListDeviceRefsResponseObject interface {
	VisitListDeviceRefsResponse(w http.ResponseWriter) error
}

type ListDeviceRefsTestClientResponse added in v0.6.0

type ListDeviceRefsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DeviceRef
	JSON500      *ErrorResponse
}

func ParseListDeviceRefsTestClientResponse added in v0.6.0

func ParseListDeviceRefsTestClientResponse(rsp *http.Response) (*ListDeviceRefsTestClientResponse, error)

ParseListDeviceRefsTestClientResponse parses an HTTP response from a ListDeviceRefsWithResponse call

func (ListDeviceRefsTestClientResponse) ContentType added in v0.6.0

func (r ListDeviceRefsTestClientResponse) ContentType() string

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

func (ListDeviceRefsTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (ListDeviceRefsTestClientResponse) StatusCode added in v0.6.0

func (r ListDeviceRefsTestClientResponse) StatusCode() int

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) ContentType added in v0.6.0

func (r ListHostGroupsTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r ListHostsTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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

type ListOwnerRefs200JSONResponse []OwnerRef

func (ListOwnerRefs200JSONResponse) VisitListOwnerRefsResponse added in v0.6.0

func (response ListOwnerRefs200JSONResponse) VisitListOwnerRefsResponse(w http.ResponseWriter) error

type ListOwnerRefs500JSONResponse added in v0.6.0

type ListOwnerRefs500JSONResponse ErrorResponse

func (ListOwnerRefs500JSONResponse) VisitListOwnerRefsResponse added in v0.6.0

func (response ListOwnerRefs500JSONResponse) VisitListOwnerRefsResponse(w http.ResponseWriter) error

type ListOwnerRefsRequestObject added in v0.6.0

type ListOwnerRefsRequestObject struct {
}

type ListOwnerRefsResponseObject added in v0.6.0

type ListOwnerRefsResponseObject interface {
	VisitListOwnerRefsResponse(w http.ResponseWriter) error
}

type ListOwnerRefsTestClientResponse added in v0.6.0

type ListOwnerRefsTestClientResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]OwnerRef
	JSON500      *ErrorResponse
}

func ParseListOwnerRefsTestClientResponse added in v0.6.0

func ParseListOwnerRefsTestClientResponse(rsp *http.Response) (*ListOwnerRefsTestClientResponse, error)

ParseListOwnerRefsTestClientResponse parses an HTTP response from a ListOwnerRefsWithResponse call

func (ListOwnerRefsTestClientResponse) ContentType added in v0.6.0

func (r ListOwnerRefsTestClientResponse) ContentType() string

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

func (ListOwnerRefsTestClientResponse) Status added in v0.6.0

Status returns HTTPResponse.Status

func (ListOwnerRefsTestClientResponse) StatusCode added in v0.6.0

func (r ListOwnerRefsTestClientResponse) StatusCode() int

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) ContentType added in v0.6.0

func (r ListUsersTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r LoginTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

func (r LogoutTestClientResponse) ContentType() string

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

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 {
	// ActiveAddressCount Number of currently enabled addresses for the device, regardless of whether the rule is configured.
	ActiveAddressCount *int `json:"active_address_count,omitempty"`

	// Enabled Whether the max active addresses rule is active
	Enabled bool `json:"enabled"`

	// MaxAddresses Maximum number of simultaneously enabled IP addresses; absent when disabled and never configured
	MaxAddresses *int `json:"max_addresses,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"`
	Description *string `json:"description,omitempty"`
	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 OwnerFleetGroup added in v0.6.0

type OwnerFleetGroup struct {
	Devices []FleetDevice `json:"devices"`

	// Owner A device owner (user) with server-computed device/address aggregates, heading their fleet group.
	Owner OwnerSummary `json:"owner"`
}

OwnerFleetGroup One owner with their whole device fleet. An owner with no devices is a group with an empty devices list; an owner id that resolves to nothing yields no group at all.

type OwnerRef added in v0.6.0

type OwnerRef struct {
	DisplayName string `json:"display_name"`
	Id          ID     `json:"id"`
}

OwnerRef Minimal owner reference for pickers and the owner-jump select.

type OwnerSummary added in v0.6.0

type OwnerSummary struct {
	// BypassHostCheck Whether this owner bypasses the per-host allowlist entirely (display only — renders the "All hosts" badge).
	BypassHostCheck bool   `json:"bypass_host_check"`
	DeviceCount     int    `json:"device_count"`
	DisplayName     string `json:"display_name"`

	// HostGroups Host groups the owner belongs to.
	HostGroups []GroupSummary `json:"host_groups"`
	Id         ID             `json:"id"`

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

	// Role The owner's role (display only — renders the admin badge).
	Role UserRole `json:"role"`
}

OwnerSummary A device owner (user) with server-computed device/address aggregates, heading their fleet group.

type PairingExpiryHours added in v0.6.0

type PairingExpiryHours int

PairingExpiryHours Allowed pairing expiry windows, in hours.

const (
	N1   PairingExpiryHours = 1
	N168 PairingExpiryHours = 168
	N24  PairingExpiryHours = 24
	N48  PairingExpiryHours = 48
)

Defines values for PairingExpiryHours.

func (PairingExpiryHours) Valid added in v0.6.0

func (e PairingExpiryHours) Valid() bool

Valid indicates whether the value is a known member of the PairingExpiryHours enum.

type PairingListFilter added in v0.6.0

type PairingListFilter string

PairingListFilter Which pairings to include in a device's pairing list — pending only, or every status.

const (
	PairingListFilterAll     PairingListFilter = "all"
	PairingListFilterPending PairingListFilter = "pending"
)

Defines values for PairingListFilter.

func (PairingListFilter) Valid added in v0.6.0

func (e PairingListFilter) Valid() bool

Valid indicates whether the value is a known member of the PairingListFilter enum.

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.

func (PolicyDenyReason) Valid added in v0.6.0

func (e PolicyDenyReason) Valid() bool

Valid indicates whether the value is a known member of the PolicyDenyReason enum.

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

type PolicyMatchSource string

PolicyMatchSource Which mechanism authorized a request.

const (
	PolicyMatchSourceDevice        PolicyMatchSource = "device"
	PolicyMatchSourceNetworkPolicy PolicyMatchSource = "network_policy"
)

Defines values for PolicyMatchSource.

func (PolicyMatchSource) Valid added in v0.6.0

func (e PolicyMatchSource) Valid() bool

Valid indicates whether the value is a known member of the PolicyMatchSource enum.

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 the system-wide 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"`
}

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,omitempty"`
	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 *PolicyMatchSource `json:"match_source,omitempty"`

	// NetworkPolicyId ID of the matching policy when match_source is 'network_policy'.
	NetworkPolicyId *ID `json:"network_policy_id,omitempty"`

	// NetworkPolicyName Name of the matching policy when match_source is 'network_policy'.
	NetworkPolicyName *string `json:"network_policy_name,omitempty"`
}

PolicySimulateResult defines model for PolicySimulateResult.

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"`

	// 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,omitempty"`

	// 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,omitempty"`

	// 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.

func (PolicyUserStatus) Valid added in v0.6.0

func (e PolicyUserStatus) Valid() bool

Valid indicates whether the value is a known member of the PolicyUserStatus enum.

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) ContentType added in v0.6.0

func (r PromoteUserTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

func (r ReconcileHostsTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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

type RuleType string

RuleType Kind of per-device rule summarized in DeviceRuleSummary.

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

Defines values for RuleType.

func (RuleType) Valid added in v0.6.0

func (e RuleType) Valid() bool

Valid indicates whether the value is a known member of the RuleType enum.

type ServerInterface

type ServerInterface interface {
	// List access log entries
	// (GET /access-log)
	GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)
	// Get allowed and denied request counts over time
	// (GET /access-log/histogram)
	GetAccessLogHistogram(w http.ResponseWriter, r *http.Request, params GetAccessLogHistogramParams)
	// Request counts grouped by country
	// (GET /access-log/stats/by-country)
	GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)
	// Get one access log entry
	// (GET /access-log/{id})
	GetAccessLogEntry(w http.ResponseWriter, r *http.Request, id ID)
	// Get paginated address activity events
	// (GET /address-history)
	GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)
	// Get device renewal timing against lease TTLs over time
	// (GET /address-history/histogram)
	GetAddressHistoryHistogram(w http.ResponseWriter, r *http.Request, params GetAddressHistoryHistogramParams)
	// Get devices worth re-tuning their lease TTL
	// (GET /address-history/tuning)
	GetAddressHistoryTuning(w http.ResponseWriter, r *http.Request, params GetAddressHistoryTuningParams)
	// 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)
	// Get full detail for a host group
	// (GET /admin/access/host-groups/{group_id})
	GetHostGroup(w http.ResponseWriter, r *http.Request, groupId ID)
	// 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)
	// List owners with their device fleets
	// (GET /device-fleet)
	GetDeviceFleet(w http.ResponseWriter, r *http.Request, params GetDeviceFleetParams)
	// Claim a pairing code
	// (POST /device-pair)
	ClaimPairing(w http.ResponseWriter, r *http.Request)
	// Create a device
	// (POST /devices)
	CreateDevice(w http.ResponseWriter, r *http.Request)
	// List device references
	// (GET /devices/refs)
	ListDeviceRefs(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)
	// Performs a heartbeat with the given api key header
	// (POST /heartbeat)
	DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request, params DeviceHeartbeatByAPIKeyParams)
	// List owner references
	// (GET /owners/refs)
	ListOwnerRefs(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)
	// Get backend build identity
	// (GET /version)
	GetVersion(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) GetAccessLogEntry added in v0.7.0

func (siw *ServerInterfaceWrapper) GetAccessLogEntry(w http.ResponseWriter, r *http.Request)

GetAccessLogEntry operation middleware

func (*ServerInterfaceWrapper) GetAccessLogHistogram added in v0.7.0

func (siw *ServerInterfaceWrapper) GetAccessLogHistogram(w http.ResponseWriter, r *http.Request)

GetAccessLogHistogram operation middleware

func (*ServerInterfaceWrapper) GetAddressHistory

func (siw *ServerInterfaceWrapper) GetAddressHistory(w http.ResponseWriter, r *http.Request)

GetAddressHistory operation middleware

func (*ServerInterfaceWrapper) GetAddressHistoryHistogram added in v0.6.0

func (siw *ServerInterfaceWrapper) GetAddressHistoryHistogram(w http.ResponseWriter, r *http.Request)

GetAddressHistoryHistogram operation middleware

func (*ServerInterfaceWrapper) GetAddressHistoryTuning added in v0.7.0

func (siw *ServerInterfaceWrapper) GetAddressHistoryTuning(w http.ResponseWriter, r *http.Request)

GetAddressHistoryTuning 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) GetDeviceFleet added in v0.6.0

func (siw *ServerInterfaceWrapper) GetDeviceFleet(w http.ResponseWriter, r *http.Request)

GetDeviceFleet operation middleware

func (*ServerInterfaceWrapper) GetHostGroup added in v0.6.0

func (siw *ServerInterfaceWrapper) GetHostGroup(w http.ResponseWriter, r *http.Request)

GetHostGroup 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) GetVersion added in v0.6.0

func (siw *ServerInterfaceWrapper) GetVersion(w http.ResponseWriter, r *http.Request)

GetVersion 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) ListDeviceRefs added in v0.6.0

func (siw *ServerInterfaceWrapper) ListDeviceRefs(w http.ResponseWriter, r *http.Request)

ListDeviceRefs 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) ListOwnerRefs added in v0.6.0

func (siw *ServerInterfaceWrapper) ListOwnerRefs(w http.ResponseWriter, r *http.Request)

ListOwnerRefs 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) ContentType added in v0.6.0

func (r SetUserAccessTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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

type SortOrder string

SortOrder Ascending or descending sort direction.

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

Defines values for SortOrder.

func (SortOrder) Valid added in v0.6.0

func (e SortOrder) Valid() bool

Valid indicates whether the value is a known member of the SortOrder enum.

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 StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// List access log entries
	// (GET /access-log)
	GetAccessLog(ctx context.Context, request GetAccessLogRequestObject) (GetAccessLogResponseObject, error)
	// Get allowed and denied request counts over time
	// (GET /access-log/histogram)
	GetAccessLogHistogram(ctx context.Context, request GetAccessLogHistogramRequestObject) (GetAccessLogHistogramResponseObject, error)
	// Request counts grouped by country
	// (GET /access-log/stats/by-country)
	GetAccessLogByCountry(ctx context.Context, request GetAccessLogByCountryRequestObject) (GetAccessLogByCountryResponseObject, error)
	// Get one access log entry
	// (GET /access-log/{id})
	GetAccessLogEntry(ctx context.Context, request GetAccessLogEntryRequestObject) (GetAccessLogEntryResponseObject, error)
	// Get paginated address activity events
	// (GET /address-history)
	GetAddressHistory(ctx context.Context, request GetAddressHistoryRequestObject) (GetAddressHistoryResponseObject, error)
	// Get device renewal timing against lease TTLs over time
	// (GET /address-history/histogram)
	GetAddressHistoryHistogram(ctx context.Context, request GetAddressHistoryHistogramRequestObject) (GetAddressHistoryHistogramResponseObject, error)
	// Get devices worth re-tuning their lease TTL
	// (GET /address-history/tuning)
	GetAddressHistoryTuning(ctx context.Context, request GetAddressHistoryTuningRequestObject) (GetAddressHistoryTuningResponseObject, 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)
	// Get full detail for a host group
	// (GET /admin/access/host-groups/{group_id})
	GetHostGroup(ctx context.Context, request GetHostGroupRequestObject) (GetHostGroupResponseObject, 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)
	// List owners with their device fleets
	// (GET /device-fleet)
	GetDeviceFleet(ctx context.Context, request GetDeviceFleetRequestObject) (GetDeviceFleetResponseObject, error)
	// Claim a pairing code
	// (POST /device-pair)
	ClaimPairing(ctx context.Context, request ClaimPairingRequestObject) (ClaimPairingResponseObject, error)
	// Create a device
	// (POST /devices)
	CreateDevice(ctx context.Context, request CreateDeviceRequestObject) (CreateDeviceResponseObject, error)
	// List device references
	// (GET /devices/refs)
	ListDeviceRefs(ctx context.Context, request ListDeviceRefsRequestObject) (ListDeviceRefsResponseObject, 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)
	// Performs a heartbeat with the given api key header
	// (POST /heartbeat)
	DeviceHeartbeatByAPIKey(ctx context.Context, request DeviceHeartbeatByAPIKeyRequestObject) (DeviceHeartbeatByAPIKeyResponseObject, error)
	// List owner references
	// (GET /owners/refs)
	ListOwnerRefs(ctx context.Context, request ListOwnerRefsRequestObject) (ListOwnerRefsResponseObject, 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)
	// Get backend build identity
	// (GET /version)
	GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, 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"`

	// 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"`
}

SubjectGroupDetail Group representation with assignment status, used in user and policy detail responses.

type TTLRisk added in v0.6.0

type TTLRisk string

TTLRisk How this event's renewal_gap_seconds compares to the device's configured lease TTL. `unknown` when there is no lease rule or no prior renewal to compare against (including every non-renewal event, e.g. expiry/ limit_exceeded rows).

const (
	Approaching TTLRisk = "approaching"
	Breached    TTLRisk = "breached"
	Critical    TTLRisk = "critical"
	Ok          TTLRisk = "ok"
	Unknown     TTLRisk = "unknown"
)

Defines values for TTLRisk.

func (TTLRisk) Valid added in v0.6.0

func (e TTLRisk) Valid() bool

Valid indicates whether the value is a known member of the TTLRisk enum.

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) ContentType added in v0.6.0

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

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, params DeviceHeartbeatByAPIKeyParams)

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) GetAccessLogEntry added in v0.7.0

func (_ Unimplemented) GetAccessLogEntry(w http.ResponseWriter, r *http.Request, id ID)

Get one access log entry (GET /access-log/{id})

func (Unimplemented) GetAccessLogHistogram added in v0.7.0

func (_ Unimplemented) GetAccessLogHistogram(w http.ResponseWriter, r *http.Request, params GetAccessLogHistogramParams)

Get allowed and denied request counts over time (GET /access-log/histogram)

func (Unimplemented) GetAddressHistory

func (_ Unimplemented) GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)

Get paginated address activity events (GET /address-history)

func (Unimplemented) GetAddressHistoryHistogram added in v0.6.0

func (_ Unimplemented) GetAddressHistoryHistogram(w http.ResponseWriter, r *http.Request, params GetAddressHistoryHistogramParams)

Get device renewal timing against lease TTLs over time (GET /address-history/histogram)

func (Unimplemented) GetAddressHistoryTuning added in v0.7.0

func (_ Unimplemented) GetAddressHistoryTuning(w http.ResponseWriter, r *http.Request, params GetAddressHistoryTuningParams)

Get devices worth re-tuning their lease TTL (GET /address-history/tuning)

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) GetDeviceFleet added in v0.6.0

func (_ Unimplemented) GetDeviceFleet(w http.ResponseWriter, r *http.Request, params GetDeviceFleetParams)

List owners with their device fleets (GET /device-fleet)

func (Unimplemented) GetHostGroup added in v0.6.0

func (_ Unimplemented) GetHostGroup(w http.ResponseWriter, r *http.Request, groupId ID)

Get full detail for a host group (GET /admin/access/host-groups/{group_id})

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) GetVersion added in v0.6.0

func (_ Unimplemented) GetVersion(w http.ResponseWriter, r *http.Request)

Get backend build identity (GET /version)

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) ListDeviceRefs added in v0.6.0

func (_ Unimplemented) ListDeviceRefs(w http.ResponseWriter, r *http.Request)

List device references (GET /devices/refs)

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) ListOwnerRefs added in v0.6.0

func (_ Unimplemented) ListOwnerRefs(w http.ResponseWriter, r *http.Request)

List owner references (GET /owners/refs)

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,omitempty"`

	// Icon Tabler icon name override. Pass null to clear.
	Icon NullableString `json:"icon,omitempty"`

	// 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,omitempty"`
}

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) ContentType added in v0.6.0

func (r UpdateDeviceTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

func (r UpdateMeTestClientResponse) ContentType() string

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

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) ContentType added in v0.6.0

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

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) ContentType added in v0.6.0

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

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,omitempty"`

	// 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,omitempty"`
	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,omitempty"`

	// 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.

func (UserRole) Valid added in v0.6.0

func (e UserRole) Valid() bool

Valid indicates whether the value is a known member of the UserRole enum.

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.

type VersionInfo added in v0.6.0

type VersionInfo struct {
	// BuildTime When the binary was built. Absent on un-stamped builds.
	BuildTime *time.Time `json:"build_time,omitempty"`

	// Commit Full git SHA the binary was built from, or "unknown".
	Commit string `json:"commit"`

	// Version Release tag the binary was built from, or "dev" when un-stamped.
	Version string `json:"version"`
}

VersionInfo Build identity of the running backend binary. Injected at link time, so an un-stamped developer build reports version "dev" rather than a release tag.

Jump to

Keyboard shortcuts

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