Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewApproveDeviceCodeRequest(server string, userCode UserCode) (*http.Request, error)
- func NewCreateDeviceCodeRequest(server string, body CreateDeviceCodeJSONRequestBody) (*http.Request, error)
- func NewCreateDeviceCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateGizmoRequest(server string, body CreateGizmoJSONRequestBody) (*http.Request, error)
- func NewCreateGizmoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNetworkDeviceRequest(server string, body CreateNetworkDeviceJSONRequestBody) (*http.Request, error)
- func NewCreateNetworkDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVlanRequest(server string, body CreateVlanJSONRequestBody) (*http.Request, error)
- func NewCreateVlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteGizmoRequest(server string, networkDeviceId NetworkDeviceId) (*http.Request, error)
- func NewDeleteNetworkDeviceRequest(server string, id DeviceId) (*http.Request, error)
- func NewDeleteVlanRequest(server string, vlanId VlanId) (*http.Request, error)
- func NewDenyDeviceCodeRequest(server string, userCode UserCode) (*http.Request, error)
- func NewExchangeDeviceCodeRequest(server string, body ExchangeDeviceCodeJSONRequestBody) (*http.Request, error)
- func NewExchangeDeviceCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetKioskAssignmentRequest(server string, macAddress MacAddress) (*http.Request, error)
- func NewGetNetworkDeviceRequest(server string, id DeviceId) (*http.Request, error)
- func NewGetProfileRequest(server string) (*http.Request, error)
- func NewGetVlanRequest(server string, vlanId VlanId) (*http.Request, error)
- func NewListAdminAuditLogsRequest(server string, params *ListAdminAuditLogsParams) (*http.Request, error)
- func NewListAdminAuthSessionsRequest(server string, params *ListAdminAuthSessionsParams) (*http.Request, error)
- func NewListGizmosRequest(server string) (*http.Request, error)
- func NewListNetworkDevicesRequest(server string) (*http.Request, error)
- func NewListProfileSessionsRequest(server string, params *ListProfileSessionsParams) (*http.Request, error)
- func NewListVlansRequest(server string) (*http.Request, error)
- func NewLogoutSessionRequest(server string, body LogoutSessionJSONRequestBody) (*http.Request, error)
- func NewLogoutSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchNetworkDeviceRequest(server string, id DeviceId, body PatchNetworkDeviceJSONRequestBody) (*http.Request, error)
- func NewPatchNetworkDeviceRequestWithBody(server string, id DeviceId, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchVlanRequest(server string, vlanId VlanId, body PatchVlanJSONRequestBody) (*http.Request, error)
- func NewPatchVlanRequestWithBody(server string, vlanId VlanId, contentType string, body io.Reader) (*http.Request, error)
- func NewRefreshAccessTokenRequest(server string, body RefreshAccessTokenJSONRequestBody) (*http.Request, error)
- func NewRefreshAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRevokeAdminAuthSessionRequest(server string, id SessionId) (*http.Request, error)
- func NewRevokeAllAdminAuthSessionsRequest(server string) (*http.Request, error)
- func NewRevokeOtherProfileSessionsRequest(server string) (*http.Request, error)
- func NewRevokeProfileSessionRequest(server string, id SessionId) (*http.Request, error)
- func NewUpdateGizmoRequest(server string, networkDeviceId NetworkDeviceId, ...) (*http.Request, error)
- func NewUpdateGizmoRequestWithBody(server string, networkDeviceId NetworkDeviceId, contentType string, ...) (*http.Request, error)
- type ApproveDeviceCodeResponse
- func (r ApproveDeviceCodeResponse) ContentType() string
- func (r ApproveDeviceCodeResponse) GetBody() []byte
- func (r ApproveDeviceCodeResponse) GetJSON400() *BadRequest
- func (r ApproveDeviceCodeResponse) GetJSON401() *Unauthorized
- func (r ApproveDeviceCodeResponse) GetJSON404() *NotFound
- func (r ApproveDeviceCodeResponse) GetJSON409() *Conflict
- func (r ApproveDeviceCodeResponse) GetJSON429() *TooManyRequests
- func (r ApproveDeviceCodeResponse) Status() string
- func (r ApproveDeviceCodeResponse) StatusCode() int
- type AuditLogEntry
- type AuditLogList
- type AuditLogPagination
- type AuthSession
- type AuthSessionPage
- type AuthSessionPagination
- type BadRequest
- type Client
- func (c *Client) ApproveDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateDeviceCode(ctx context.Context, body CreateDeviceCodeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateGizmo(ctx context.Context, body CreateGizmoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateGizmoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNetworkDevice(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNetworkDeviceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVlan(ctx context.Context, body CreateVlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVlanWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, ...) (*http.Response, error)
- func (c *Client) DeleteNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DenyDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ExchangeDeviceCode(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExchangeDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetKioskAssignment(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAdminAuditLogs(ctx context.Context, params *ListAdminAuditLogsParams, ...) (*http.Response, error)
- func (c *Client) ListAdminAuthSessions(ctx context.Context, params *ListAdminAuthSessionsParams, ...) (*http.Response, error)
- func (c *Client) ListGizmos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNetworkDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListProfileSessions(ctx context.Context, params *ListProfileSessionsParams, ...) (*http.Response, error)
- func (c *Client) ListVlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LogoutSession(ctx context.Context, body LogoutSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LogoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchNetworkDevice(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchNetworkDeviceWithBody(ctx context.Context, id DeviceId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchVlan(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PatchVlanWithBody(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RefreshAccessToken(ctx context.Context, body RefreshAccessTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RefreshAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RevokeAdminAuthSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeAllAdminAuthSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeOtherProfileSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeProfileSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, ...) (*http.Response, error)
- func (c *Client) UpdateGizmoWithBody(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, ...) (*http.Response, error)
- type ClientAuthError
- type ClientAuthErrorError
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ApproveDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*ApproveDeviceCodeResponse, error)
- func (c *ClientWithResponses) CreateDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDeviceCodeResponse, error)
- func (c *ClientWithResponses) CreateDeviceCodeWithResponse(ctx context.Context, body CreateDeviceCodeJSONRequestBody, ...) (*CreateDeviceCodeResponse, error)
- func (c *ClientWithResponses) CreateGizmoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateGizmoResponse, error)
- func (c *ClientWithResponses) CreateGizmoWithResponse(ctx context.Context, body CreateGizmoJSONRequestBody, ...) (*CreateGizmoResponse, error)
- func (c *ClientWithResponses) CreateNetworkDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNetworkDeviceResponse, error)
- func (c *ClientWithResponses) CreateNetworkDeviceWithResponse(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, ...) (*CreateNetworkDeviceResponse, error)
- func (c *ClientWithResponses) CreateVlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateVlanResponse, error)
- func (c *ClientWithResponses) CreateVlanWithResponse(ctx context.Context, body CreateVlanJSONRequestBody, ...) (*CreateVlanResponse, error)
- func (c *ClientWithResponses) DeleteGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, ...) (*DeleteGizmoResponse, error)
- func (c *ClientWithResponses) DeleteNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*DeleteNetworkDeviceResponse, error)
- func (c *ClientWithResponses) DeleteVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*DeleteVlanResponse, error)
- func (c *ClientWithResponses) DenyDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*DenyDeviceCodeResponse, error)
- func (c *ClientWithResponses) ExchangeDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ExchangeDeviceCodeResponse, error)
- func (c *ClientWithResponses) ExchangeDeviceCodeWithResponse(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, ...) (*ExchangeDeviceCodeResponse, error)
- func (c *ClientWithResponses) GetKioskAssignmentWithResponse(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*GetKioskAssignmentResponse, error)
- func (c *ClientWithResponses) GetNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*GetNetworkDeviceResponse, error)
- func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error)
- func (c *ClientWithResponses) GetVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*GetVlanResponse, error)
- func (c *ClientWithResponses) ListAdminAuditLogsWithResponse(ctx context.Context, params *ListAdminAuditLogsParams, ...) (*ListAdminAuditLogsResponse, error)
- func (c *ClientWithResponses) ListAdminAuthSessionsWithResponse(ctx context.Context, params *ListAdminAuthSessionsParams, ...) (*ListAdminAuthSessionsResponse, error)
- func (c *ClientWithResponses) ListGizmosWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGizmosResponse, error)
- func (c *ClientWithResponses) ListNetworkDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNetworkDevicesResponse, error)
- func (c *ClientWithResponses) ListProfileSessionsWithResponse(ctx context.Context, params *ListProfileSessionsParams, ...) (*ListProfileSessionsResponse, error)
- func (c *ClientWithResponses) ListVlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVlansResponse, error)
- func (c *ClientWithResponses) LogoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LogoutSessionResponse, error)
- func (c *ClientWithResponses) LogoutSessionWithResponse(ctx context.Context, body LogoutSessionJSONRequestBody, ...) (*LogoutSessionResponse, error)
- func (c *ClientWithResponses) PatchNetworkDeviceWithBodyWithResponse(ctx context.Context, id DeviceId, contentType string, body io.Reader, ...) (*PatchNetworkDeviceResponse, error)
- func (c *ClientWithResponses) PatchNetworkDeviceWithResponse(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, ...) (*PatchNetworkDeviceResponse, error)
- func (c *ClientWithResponses) PatchVlanWithBodyWithResponse(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, ...) (*PatchVlanResponse, error)
- func (c *ClientWithResponses) PatchVlanWithResponse(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, ...) (*PatchVlanResponse, error)
- func (c *ClientWithResponses) RefreshAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshAccessTokenResponse, error)
- func (c *ClientWithResponses) RefreshAccessTokenWithResponse(ctx context.Context, body RefreshAccessTokenJSONRequestBody, ...) (*RefreshAccessTokenResponse, error)
- func (c *ClientWithResponses) RevokeAdminAuthSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeAdminAuthSessionResponse, error)
- func (c *ClientWithResponses) RevokeAllAdminAuthSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeAllAdminAuthSessionsResponse, error)
- func (c *ClientWithResponses) RevokeOtherProfileSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeOtherProfileSessionsResponse, error)
- func (c *ClientWithResponses) RevokeProfileSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeProfileSessionResponse, error)
- func (c *ClientWithResponses) UpdateGizmoWithBodyWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, ...) (*UpdateGizmoResponse, error)
- func (c *ClientWithResponses) UpdateGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, ...) (*UpdateGizmoResponse, error)
- type ClientWithResponsesInterface
- type Conflict
- type CreateDeviceCodeJSONRequestBody
- type CreateDeviceCodeResponse
- func (r CreateDeviceCodeResponse) ContentType() string
- func (r CreateDeviceCodeResponse) GetBody() []byte
- func (r CreateDeviceCodeResponse) GetJSON201() *DeviceCode
- func (r CreateDeviceCodeResponse) GetJSON429() *TooManyRequests
- func (r CreateDeviceCodeResponse) Status() string
- func (r CreateDeviceCodeResponse) StatusCode() int
- type CreateGizmoJSONRequestBody
- type CreateGizmoResponse
- func (r CreateGizmoResponse) ContentType() string
- func (r CreateGizmoResponse) GetBody() []byte
- func (r CreateGizmoResponse) GetJSON201() *Gizmo
- func (r CreateGizmoResponse) GetJSON400() *BadRequest
- func (r CreateGizmoResponse) GetJSON401() *Unauthorized
- func (r CreateGizmoResponse) GetJSON403() *Forbidden
- func (r CreateGizmoResponse) GetJSON409() *Conflict
- func (r CreateGizmoResponse) Status() string
- func (r CreateGizmoResponse) StatusCode() int
- type CreateNetworkDeviceJSONRequestBody
- type CreateNetworkDeviceResponse
- func (r CreateNetworkDeviceResponse) ContentType() string
- func (r CreateNetworkDeviceResponse) GetBody() []byte
- func (r CreateNetworkDeviceResponse) GetJSON201() *NetworkDevice
- func (r CreateNetworkDeviceResponse) GetJSON400() *BadRequest
- func (r CreateNetworkDeviceResponse) GetJSON401() *Unauthorized
- func (r CreateNetworkDeviceResponse) GetJSON403() *Forbidden
- func (r CreateNetworkDeviceResponse) GetJSON409() *Conflict
- func (r CreateNetworkDeviceResponse) Status() string
- func (r CreateNetworkDeviceResponse) StatusCode() int
- type CreateVlanJSONRequestBody
- type CreateVlanResponse
- func (r CreateVlanResponse) ContentType() string
- func (r CreateVlanResponse) GetBody() []byte
- func (r CreateVlanResponse) GetJSON201() *Vlan
- func (r CreateVlanResponse) GetJSON400() *BadRequest
- func (r CreateVlanResponse) GetJSON401() *Unauthorized
- func (r CreateVlanResponse) GetJSON403() *Forbidden
- func (r CreateVlanResponse) GetJSON409() *Conflict
- func (r CreateVlanResponse) Status() string
- func (r CreateVlanResponse) StatusCode() int
- type DeleteGizmoResponse
- func (r DeleteGizmoResponse) ContentType() string
- func (r DeleteGizmoResponse) GetBody() []byte
- func (r DeleteGizmoResponse) GetJSON400() *BadRequest
- func (r DeleteGizmoResponse) GetJSON401() *Unauthorized
- func (r DeleteGizmoResponse) GetJSON403() *Forbidden
- func (r DeleteGizmoResponse) Status() string
- func (r DeleteGizmoResponse) StatusCode() int
- type DeleteNetworkDeviceResponse
- func (r DeleteNetworkDeviceResponse) ContentType() string
- func (r DeleteNetworkDeviceResponse) GetBody() []byte
- func (r DeleteNetworkDeviceResponse) GetJSON400() *BadRequest
- func (r DeleteNetworkDeviceResponse) GetJSON401() *Unauthorized
- func (r DeleteNetworkDeviceResponse) GetJSON403() *Forbidden
- func (r DeleteNetworkDeviceResponse) Status() string
- func (r DeleteNetworkDeviceResponse) StatusCode() int
- type DeleteVlanResponse
- func (r DeleteVlanResponse) ContentType() string
- func (r DeleteVlanResponse) GetBody() []byte
- func (r DeleteVlanResponse) GetJSON400() *BadRequest
- func (r DeleteVlanResponse) GetJSON401() *Unauthorized
- func (r DeleteVlanResponse) GetJSON403() *Forbidden
- func (r DeleteVlanResponse) GetJSON409() *Conflict
- func (r DeleteVlanResponse) Status() string
- func (r DeleteVlanResponse) StatusCode() int
- type DenyDeviceCodeResponse
- func (r DenyDeviceCodeResponse) ContentType() string
- func (r DenyDeviceCodeResponse) GetBody() []byte
- func (r DenyDeviceCodeResponse) GetJSON400() *BadRequest
- func (r DenyDeviceCodeResponse) GetJSON401() *Unauthorized
- func (r DenyDeviceCodeResponse) GetJSON404() *NotFound
- func (r DenyDeviceCodeResponse) GetJSON409() *Conflict
- func (r DenyDeviceCodeResponse) GetJSON429() *TooManyRequests
- func (r DenyDeviceCodeResponse) Status() string
- func (r DenyDeviceCodeResponse) StatusCode() int
- type DeviceCode
- type DeviceCodeCreateRequest
- type DeviceCodeTokenRequest
- type DeviceId
- type ErrorResponse
- type ExchangeDeviceCodeJSONRequestBody
- type ExchangeDeviceCodeResponse
- func (r ExchangeDeviceCodeResponse) ContentType() string
- func (r ExchangeDeviceCodeResponse) GetBody() []byte
- func (r ExchangeDeviceCodeResponse) GetJSON200() *TokenResponse
- func (r ExchangeDeviceCodeResponse) GetJSON400() *ClientAuthError
- func (r ExchangeDeviceCodeResponse) GetJSON428() *ClientAuthError
- func (r ExchangeDeviceCodeResponse) GetJSON429() *TooManyRequests
- func (r ExchangeDeviceCodeResponse) Status() string
- func (r ExchangeDeviceCodeResponse) StatusCode() int
- type Forbidden
- type GetKioskAssignmentResponse
- func (r GetKioskAssignmentResponse) ContentType() string
- func (r GetKioskAssignmentResponse) GetBody() []byte
- func (r GetKioskAssignmentResponse) GetJSON200() *KioskAssignment
- func (r GetKioskAssignmentResponse) GetJSON400() *BadRequest
- func (r GetKioskAssignmentResponse) GetJSON404() *NotFound
- func (r GetKioskAssignmentResponse) Status() string
- func (r GetKioskAssignmentResponse) StatusCode() int
- type GetNetworkDeviceResponse
- func (r GetNetworkDeviceResponse) ContentType() string
- func (r GetNetworkDeviceResponse) GetBody() []byte
- func (r GetNetworkDeviceResponse) GetJSON200() *NetworkDevice
- func (r GetNetworkDeviceResponse) GetJSON400() *BadRequest
- func (r GetNetworkDeviceResponse) GetJSON401() *Unauthorized
- func (r GetNetworkDeviceResponse) GetJSON403() *Forbidden
- func (r GetNetworkDeviceResponse) GetJSON404() *NotFound
- func (r GetNetworkDeviceResponse) Status() string
- func (r GetNetworkDeviceResponse) StatusCode() int
- type GetProfileResponse
- type GetVlanResponse
- func (r GetVlanResponse) ContentType() string
- func (r GetVlanResponse) GetBody() []byte
- func (r GetVlanResponse) GetJSON200() *Vlan
- func (r GetVlanResponse) GetJSON400() *BadRequest
- func (r GetVlanResponse) GetJSON401() *Unauthorized
- func (r GetVlanResponse) GetJSON403() *Forbidden
- func (r GetVlanResponse) GetJSON404() *NotFound
- func (r GetVlanResponse) Status() string
- func (r GetVlanResponse) StatusCode() int
- type Gizmo
- type GizmoList
- type GizmoUpdate
- type GizmoWrite
- type HttpRequestDoer
- type KioskAssignment
- type ListAdminAuditLogsParams
- type ListAdminAuditLogsParamsSortBy
- type ListAdminAuditLogsParamsSortDir
- type ListAdminAuditLogsResponse
- func (r ListAdminAuditLogsResponse) ContentType() string
- func (r ListAdminAuditLogsResponse) GetBody() []byte
- func (r ListAdminAuditLogsResponse) GetJSON200() *AuditLogList
- func (r ListAdminAuditLogsResponse) GetJSON400() *BadRequest
- func (r ListAdminAuditLogsResponse) GetJSON401() *Unauthorized
- func (r ListAdminAuditLogsResponse) GetJSON403() *Forbidden
- func (r ListAdminAuditLogsResponse) Status() string
- func (r ListAdminAuditLogsResponse) StatusCode() int
- type ListAdminAuthSessionsParams
- type ListAdminAuthSessionsResponse
- func (r ListAdminAuthSessionsResponse) ContentType() string
- func (r ListAdminAuthSessionsResponse) GetBody() []byte
- func (r ListAdminAuthSessionsResponse) GetJSON200() *AuthSessionPage
- func (r ListAdminAuthSessionsResponse) GetJSON401() *Unauthorized
- func (r ListAdminAuthSessionsResponse) GetJSON403() *Forbidden
- func (r ListAdminAuthSessionsResponse) Status() string
- func (r ListAdminAuthSessionsResponse) StatusCode() int
- type ListGizmosResponse
- func (r ListGizmosResponse) ContentType() string
- func (r ListGizmosResponse) GetBody() []byte
- func (r ListGizmosResponse) GetJSON200() *GizmoList
- func (r ListGizmosResponse) GetJSON401() *Unauthorized
- func (r ListGizmosResponse) GetJSON403() *Forbidden
- func (r ListGizmosResponse) Status() string
- func (r ListGizmosResponse) StatusCode() int
- type ListNetworkDevicesResponse
- func (r ListNetworkDevicesResponse) ContentType() string
- func (r ListNetworkDevicesResponse) GetBody() []byte
- func (r ListNetworkDevicesResponse) GetJSON200() *NetworkDeviceList
- func (r ListNetworkDevicesResponse) GetJSON401() *Unauthorized
- func (r ListNetworkDevicesResponse) GetJSON403() *Forbidden
- func (r ListNetworkDevicesResponse) Status() string
- func (r ListNetworkDevicesResponse) StatusCode() int
- type ListProfileSessionsParams
- type ListProfileSessionsResponse
- func (r ListProfileSessionsResponse) ContentType() string
- func (r ListProfileSessionsResponse) GetBody() []byte
- func (r ListProfileSessionsResponse) GetJSON200() *AuthSessionPage
- func (r ListProfileSessionsResponse) GetJSON401() *Unauthorized
- func (r ListProfileSessionsResponse) Status() string
- func (r ListProfileSessionsResponse) StatusCode() int
- type ListVlansResponse
- func (r ListVlansResponse) ContentType() string
- func (r ListVlansResponse) GetBody() []byte
- func (r ListVlansResponse) GetJSON200() *VlanList
- func (r ListVlansResponse) GetJSON401() *Unauthorized
- func (r ListVlansResponse) GetJSON403() *Forbidden
- func (r ListVlansResponse) Status() string
- func (r ListVlansResponse) StatusCode() int
- type LogoutRequest
- type LogoutSessionJSONRequestBody
- type LogoutSessionResponse
- type MacAddress
- type NetworkDevice
- type NetworkDeviceId
- type NetworkDeviceList
- type NetworkDevicePatch
- type NetworkDeviceWrite
- type NotFound
- type PatchNetworkDeviceJSONRequestBody
- type PatchNetworkDeviceResponse
- func (r PatchNetworkDeviceResponse) ContentType() string
- func (r PatchNetworkDeviceResponse) GetBody() []byte
- func (r PatchNetworkDeviceResponse) GetJSON200() *NetworkDevice
- func (r PatchNetworkDeviceResponse) GetJSON400() *BadRequest
- func (r PatchNetworkDeviceResponse) GetJSON401() *Unauthorized
- func (r PatchNetworkDeviceResponse) GetJSON403() *Forbidden
- func (r PatchNetworkDeviceResponse) GetJSON404() *NotFound
- func (r PatchNetworkDeviceResponse) GetJSON409() *Conflict
- func (r PatchNetworkDeviceResponse) Status() string
- func (r PatchNetworkDeviceResponse) StatusCode() int
- type PatchVlanJSONRequestBody
- type PatchVlanResponse
- func (r PatchVlanResponse) ContentType() string
- func (r PatchVlanResponse) GetBody() []byte
- func (r PatchVlanResponse) GetJSON200() *Vlan
- func (r PatchVlanResponse) GetJSON400() *BadRequest
- func (r PatchVlanResponse) GetJSON401() *Unauthorized
- func (r PatchVlanResponse) GetJSON403() *Forbidden
- func (r PatchVlanResponse) GetJSON404() *NotFound
- func (r PatchVlanResponse) GetJSON409() *Conflict
- func (r PatchVlanResponse) Status() string
- func (r PatchVlanResponse) StatusCode() int
- type Profile
- type RefreshAccessTokenJSONRequestBody
- type RefreshAccessTokenResponse
- func (r RefreshAccessTokenResponse) ContentType() string
- func (r RefreshAccessTokenResponse) GetBody() []byte
- func (r RefreshAccessTokenResponse) GetJSON200() *TokenResponse
- func (r RefreshAccessTokenResponse) GetJSON400() *BadRequest
- func (r RefreshAccessTokenResponse) GetJSON401() *Unauthorized
- func (r RefreshAccessTokenResponse) GetJSON429() *TooManyRequests
- func (r RefreshAccessTokenResponse) Status() string
- func (r RefreshAccessTokenResponse) StatusCode() int
- type RefreshTokenRequest
- type RequestEditorFn
- type RevokeAdminAuthSessionResponse
- func (r RevokeAdminAuthSessionResponse) ContentType() string
- func (r RevokeAdminAuthSessionResponse) GetBody() []byte
- func (r RevokeAdminAuthSessionResponse) GetJSON400() *BadRequest
- func (r RevokeAdminAuthSessionResponse) GetJSON401() *Unauthorized
- func (r RevokeAdminAuthSessionResponse) GetJSON403() *Forbidden
- func (r RevokeAdminAuthSessionResponse) Status() string
- func (r RevokeAdminAuthSessionResponse) StatusCode() int
- type RevokeAllAdminAuthSessionsResponse
- func (r RevokeAllAdminAuthSessionsResponse) ContentType() string
- func (r RevokeAllAdminAuthSessionsResponse) GetBody() []byte
- func (r RevokeAllAdminAuthSessionsResponse) GetJSON401() *Unauthorized
- func (r RevokeAllAdminAuthSessionsResponse) GetJSON403() *Forbidden
- func (r RevokeAllAdminAuthSessionsResponse) Status() string
- func (r RevokeAllAdminAuthSessionsResponse) StatusCode() int
- type RevokeOtherProfileSessionsResponse
- func (r RevokeOtherProfileSessionsResponse) ContentType() string
- func (r RevokeOtherProfileSessionsResponse) GetBody() []byte
- func (r RevokeOtherProfileSessionsResponse) GetJSON401() *Unauthorized
- func (r RevokeOtherProfileSessionsResponse) Status() string
- func (r RevokeOtherProfileSessionsResponse) StatusCode() int
- type RevokeProfileSessionResponse
- func (r RevokeProfileSessionResponse) ContentType() string
- func (r RevokeProfileSessionResponse) GetBody() []byte
- func (r RevokeProfileSessionResponse) GetJSON400() *BadRequest
- func (r RevokeProfileSessionResponse) GetJSON401() *Unauthorized
- func (r RevokeProfileSessionResponse) GetJSON429() *TooManyRequests
- func (r RevokeProfileSessionResponse) Status() string
- func (r RevokeProfileSessionResponse) StatusCode() int
- type SessionId
- type TokenResponse
- type TooManyRequests
- type Unauthorized
- type UpdateGizmoJSONRequestBody
- type UpdateGizmoResponse
- func (r UpdateGizmoResponse) ContentType() string
- func (r UpdateGizmoResponse) GetBody() []byte
- func (r UpdateGizmoResponse) GetJSON200() *Gizmo
- func (r UpdateGizmoResponse) GetJSON400() *BadRequest
- func (r UpdateGizmoResponse) GetJSON401() *Unauthorized
- func (r UpdateGizmoResponse) GetJSON403() *Forbidden
- func (r UpdateGizmoResponse) GetJSON404() *NotFound
- func (r UpdateGizmoResponse) Status() string
- func (r UpdateGizmoResponse) StatusCode() int
- type UserCode
- type Vlan
- type VlanColor
- type VlanId
- type VlanList
- type VlanPatch
- type VlanRef
- type VlanWrite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApproveDeviceCodeRequest ¶
NewApproveDeviceCodeRequest constructs an http.Request for the ApproveDeviceCode method
func NewCreateDeviceCodeRequest ¶
func NewCreateDeviceCodeRequest(server string, body CreateDeviceCodeJSONRequestBody) (*http.Request, error)
NewCreateDeviceCodeRequest calls the generic CreateDeviceCode builder with application/json body
func NewCreateDeviceCodeRequestWithBody ¶
func NewCreateDeviceCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDeviceCodeRequestWithBody constructs an http.Request for the CreateDeviceCode method, with any body, and a specified content type
func NewCreateGizmoRequest ¶ added in v0.5.0
func NewCreateGizmoRequest(server string, body CreateGizmoJSONRequestBody) (*http.Request, error)
NewCreateGizmoRequest calls the generic CreateGizmo builder with application/json body
func NewCreateGizmoRequestWithBody ¶ added in v0.5.0
func NewCreateGizmoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateGizmoRequestWithBody constructs an http.Request for the CreateGizmo method, with any body, and a specified content type
func NewCreateNetworkDeviceRequest ¶
func NewCreateNetworkDeviceRequest(server string, body CreateNetworkDeviceJSONRequestBody) (*http.Request, error)
NewCreateNetworkDeviceRequest calls the generic CreateNetworkDevice builder with application/json body
func NewCreateNetworkDeviceRequestWithBody ¶
func NewCreateNetworkDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNetworkDeviceRequestWithBody constructs an http.Request for the CreateNetworkDevice method, with any body, and a specified content type
func NewCreateVlanRequest ¶
func NewCreateVlanRequest(server string, body CreateVlanJSONRequestBody) (*http.Request, error)
NewCreateVlanRequest calls the generic CreateVlan builder with application/json body
func NewCreateVlanRequestWithBody ¶
func NewCreateVlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateVlanRequestWithBody constructs an http.Request for the CreateVlan method, with any body, and a specified content type
func NewDeleteGizmoRequest ¶ added in v0.5.0
func NewDeleteGizmoRequest(server string, networkDeviceId NetworkDeviceId) (*http.Request, error)
NewDeleteGizmoRequest constructs an http.Request for the DeleteGizmo method
func NewDeleteNetworkDeviceRequest ¶
NewDeleteNetworkDeviceRequest constructs an http.Request for the DeleteNetworkDevice method
func NewDeleteVlanRequest ¶
NewDeleteVlanRequest constructs an http.Request for the DeleteVlan method
func NewDenyDeviceCodeRequest ¶
NewDenyDeviceCodeRequest constructs an http.Request for the DenyDeviceCode method
func NewExchangeDeviceCodeRequest ¶
func NewExchangeDeviceCodeRequest(server string, body ExchangeDeviceCodeJSONRequestBody) (*http.Request, error)
NewExchangeDeviceCodeRequest calls the generic ExchangeDeviceCode builder with application/json body
func NewExchangeDeviceCodeRequestWithBody ¶
func NewExchangeDeviceCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExchangeDeviceCodeRequestWithBody constructs an http.Request for the ExchangeDeviceCode method, with any body, and a specified content type
func NewGetKioskAssignmentRequest ¶ added in v0.5.0
func NewGetKioskAssignmentRequest(server string, macAddress MacAddress) (*http.Request, error)
NewGetKioskAssignmentRequest constructs an http.Request for the GetKioskAssignment method
func NewGetNetworkDeviceRequest ¶
NewGetNetworkDeviceRequest constructs an http.Request for the GetNetworkDevice method
func NewGetProfileRequest ¶
NewGetProfileRequest constructs an http.Request for the GetProfile method
func NewGetVlanRequest ¶
NewGetVlanRequest constructs an http.Request for the GetVlan method
func NewListAdminAuditLogsRequest ¶
func NewListAdminAuditLogsRequest(server string, params *ListAdminAuditLogsParams) (*http.Request, error)
NewListAdminAuditLogsRequest constructs an http.Request for the ListAdminAuditLogs method
func NewListAdminAuthSessionsRequest ¶
func NewListAdminAuthSessionsRequest(server string, params *ListAdminAuthSessionsParams) (*http.Request, error)
NewListAdminAuthSessionsRequest constructs an http.Request for the ListAdminAuthSessions method
func NewListGizmosRequest ¶ added in v0.5.0
NewListGizmosRequest constructs an http.Request for the ListGizmos method
func NewListNetworkDevicesRequest ¶
NewListNetworkDevicesRequest constructs an http.Request for the ListNetworkDevices method
func NewListProfileSessionsRequest ¶
func NewListProfileSessionsRequest(server string, params *ListProfileSessionsParams) (*http.Request, error)
NewListProfileSessionsRequest constructs an http.Request for the ListProfileSessions method
func NewListVlansRequest ¶
NewListVlansRequest constructs an http.Request for the ListVlans method
func NewLogoutSessionRequest ¶
func NewLogoutSessionRequest(server string, body LogoutSessionJSONRequestBody) (*http.Request, error)
NewLogoutSessionRequest calls the generic LogoutSession builder with application/json body
func NewLogoutSessionRequestWithBody ¶
func NewLogoutSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLogoutSessionRequestWithBody constructs an http.Request for the LogoutSession method, with any body, and a specified content type
func NewPatchNetworkDeviceRequest ¶
func NewPatchNetworkDeviceRequest(server string, id DeviceId, body PatchNetworkDeviceJSONRequestBody) (*http.Request, error)
NewPatchNetworkDeviceRequest calls the generic PatchNetworkDevice builder with application/json body
func NewPatchNetworkDeviceRequestWithBody ¶
func NewPatchNetworkDeviceRequestWithBody(server string, id DeviceId, contentType string, body io.Reader) (*http.Request, error)
NewPatchNetworkDeviceRequestWithBody constructs an http.Request for the PatchNetworkDevice method, with any body, and a specified content type
func NewPatchVlanRequest ¶
func NewPatchVlanRequest(server string, vlanId VlanId, body PatchVlanJSONRequestBody) (*http.Request, error)
NewPatchVlanRequest calls the generic PatchVlan builder with application/json body
func NewPatchVlanRequestWithBody ¶
func NewPatchVlanRequestWithBody(server string, vlanId VlanId, contentType string, body io.Reader) (*http.Request, error)
NewPatchVlanRequestWithBody constructs an http.Request for the PatchVlan method, with any body, and a specified content type
func NewRefreshAccessTokenRequest ¶
func NewRefreshAccessTokenRequest(server string, body RefreshAccessTokenJSONRequestBody) (*http.Request, error)
NewRefreshAccessTokenRequest calls the generic RefreshAccessToken builder with application/json body
func NewRefreshAccessTokenRequestWithBody ¶
func NewRefreshAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRefreshAccessTokenRequestWithBody constructs an http.Request for the RefreshAccessToken method, with any body, and a specified content type
func NewRevokeAdminAuthSessionRequest ¶
NewRevokeAdminAuthSessionRequest constructs an http.Request for the RevokeAdminAuthSession method
func NewRevokeAllAdminAuthSessionsRequest ¶
NewRevokeAllAdminAuthSessionsRequest constructs an http.Request for the RevokeAllAdminAuthSessions method
func NewRevokeOtherProfileSessionsRequest ¶
NewRevokeOtherProfileSessionsRequest constructs an http.Request for the RevokeOtherProfileSessions method
func NewRevokeProfileSessionRequest ¶
NewRevokeProfileSessionRequest constructs an http.Request for the RevokeProfileSession method
func NewUpdateGizmoRequest ¶ added in v0.5.0
func NewUpdateGizmoRequest(server string, networkDeviceId NetworkDeviceId, body UpdateGizmoJSONRequestBody) (*http.Request, error)
NewUpdateGizmoRequest calls the generic UpdateGizmo builder with application/json body
func NewUpdateGizmoRequestWithBody ¶ added in v0.5.0
func NewUpdateGizmoRequestWithBody(server string, networkDeviceId NetworkDeviceId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGizmoRequestWithBody constructs an http.Request for the UpdateGizmo method, with any body, and a specified content type
Types ¶
type ApproveDeviceCodeResponse ¶
type ApproveDeviceCodeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseApproveDeviceCodeResponse ¶
func ParseApproveDeviceCodeResponse(rsp *http.Response) (*ApproveDeviceCodeResponse, error)
ParseApproveDeviceCodeResponse parses an HTTP response from a ApproveDeviceCodeWithResponse call
func (ApproveDeviceCodeResponse) ContentType ¶
func (r ApproveDeviceCodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ApproveDeviceCodeResponse) GetBody ¶
func (r ApproveDeviceCodeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ApproveDeviceCodeResponse) GetJSON400 ¶
func (r ApproveDeviceCodeResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ApproveDeviceCodeResponse) GetJSON401 ¶
func (r ApproveDeviceCodeResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ApproveDeviceCodeResponse) GetJSON404 ¶
func (r ApproveDeviceCodeResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ApproveDeviceCodeResponse) GetJSON409 ¶
func (r ApproveDeviceCodeResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ApproveDeviceCodeResponse) GetJSON429 ¶
func (r ApproveDeviceCodeResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ApproveDeviceCodeResponse) Status ¶
func (r ApproveDeviceCodeResponse) Status() string
Status returns HTTPResponse.Status
func (ApproveDeviceCodeResponse) StatusCode ¶
func (r ApproveDeviceCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuditLogEntry ¶
type AuditLogEntry struct {
Action string `json:"action"`
ActorUsername string `json:"actor_username"`
CreatedAt time.Time `json:"created_at"`
Id openapi_types.UUID `json:"id"`
Metadata map[string]interface{} `json:"metadata"`
ResourceId string `json:"resource_id"`
ResourceType string `json:"resource_type"`
}
AuditLogEntry defines model for AuditLogEntry.
type AuditLogList ¶
type AuditLogList struct {
Items []AuditLogEntry `json:"items"`
Pagination AuditLogPagination `json:"pagination"`
}
AuditLogList defines model for AuditLogList.
type AuditLogPagination ¶
type AuditLogPagination struct {
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
Total int64 `json:"total"`
}
AuditLogPagination defines model for AuditLogPagination.
type AuthSession ¶
type AuthSession struct {
ClientName string `json:"client_name"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
IdleExpiresAt time.Time `json:"idle_expires_at"`
IsCurrent bool `json:"is_current"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
Username string `json:"username"`
}
AuthSession defines model for AuthSession.
type AuthSessionPage ¶
type AuthSessionPage struct {
Items []AuthSession `json:"items"`
Pagination AuthSessionPagination `json:"pagination"`
}
AuthSessionPage defines model for AuthSessionPage.
type AuthSessionPagination ¶
type AuthSessionPagination struct {
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
Total int64 `json:"total"`
}
AuthSessionPagination defines model for AuthSessionPagination.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ApproveDeviceCode ¶
func (c *Client) ApproveDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveDeviceCode Approve a pending device code request for the current authenticated user.
Corresponds with POST /api/v1/auth/device_codes/{user_code}/approve (the `ApproveDeviceCode` operationId).
func (*Client) CreateDeviceCode ¶
func (c *Client) CreateDeviceCode(ctx context.Context, body CreateDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDeviceCode Create a new device code request for a public client.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
func (*Client) CreateDeviceCodeWithBody ¶
func (c *Client) CreateDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDeviceCodeWithBody Create a new device code request for a public client.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
func (*Client) CreateGizmo ¶ added in v0.5.0
func (c *Client) CreateGizmo(ctx context.Context, body CreateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGizmo Register a network device as a Gizmo.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
func (*Client) CreateGizmoWithBody ¶ added in v0.5.0
func (c *Client) CreateGizmoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGizmoWithBody Register a network device as a Gizmo.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
func (*Client) CreateNetworkDevice ¶
func (c *Client) CreateNetworkDevice(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNetworkDevice Create a network device.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
func (*Client) CreateNetworkDeviceWithBody ¶
func (c *Client) CreateNetworkDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNetworkDeviceWithBody Create a network device.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
func (*Client) CreateVlan ¶
func (c *Client) CreateVlan(ctx context.Context, body CreateVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVlan Create a VLAN definition.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
func (*Client) CreateVlanWithBody ¶
func (c *Client) CreateVlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVlanWithBody Create a VLAN definition.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
func (*Client) DeleteGizmo ¶ added in v0.5.0
func (c *Client) DeleteGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteGizmo Remove a Gizmo without deleting its network device.
Corresponds with DELETE /api/v1/gizmos/{network_device_id} (the `DeleteGizmo` operationId).
func (*Client) DeleteNetworkDevice ¶
func (c *Client) DeleteNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteNetworkDevice Delete a network device.
Corresponds with DELETE /api/v1/networks/devices/{id} (the `DeleteNetworkDevice` operationId).
func (*Client) DeleteVlan ¶
func (c *Client) DeleteVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteVlan Delete a VLAN definition by VLAN number.
Corresponds with DELETE /api/v1/networks/vlans/{vlan_id} (the `DeleteVlan` operationId).
func (*Client) DenyDeviceCode ¶
func (c *Client) DenyDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
DenyDeviceCode Deny a pending device code request for the current authenticated user.
Corresponds with POST /api/v1/auth/device_codes/{user_code}/deny (the `DenyDeviceCode` operationId).
func (*Client) ExchangeDeviceCode ¶
func (c *Client) ExchangeDeviceCode(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ExchangeDeviceCode Exchange an approved device code for access and refresh tokens.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
func (*Client) ExchangeDeviceCodeWithBody ¶
func (c *Client) ExchangeDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExchangeDeviceCodeWithBody Exchange an approved device code for access and refresh tokens.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
func (*Client) GetKioskAssignment ¶ added in v0.5.0
func (c *Client) GetKioskAssignment(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*http.Response, error)
GetKioskAssignment Get the kiosk URL assigned to an enabled network device.
Corresponds with GET /api/v1/kiosks/{mac_address} (the `GetKioskAssignment` operationId).
func (*Client) GetNetworkDevice ¶
func (c *Client) GetNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetNetworkDevice Get one network device.
Corresponds with GET /api/v1/networks/devices/{id} (the `GetNetworkDevice` operationId).
func (*Client) GetProfile ¶
func (c *Client) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProfile Get the current authenticated user's profile.
Returns the current user's identity and group membership after the API resolves the caller from either trusted forward-auth headers or a bearer JWT.
Corresponds with GET /api/v1/profile (the `GetProfile` operationId).
func (*Client) GetVlan ¶
func (c *Client) GetVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetVlan Get one VLAN definition by VLAN number.
Corresponds with GET /api/v1/networks/vlans/{vlan_id} (the `GetVlan` operationId).
func (*Client) ListAdminAuditLogs ¶
func (c *Client) ListAdminAuditLogs(ctx context.Context, params *ListAdminAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAdminAuditLogs List audit logs across the platform.
Corresponds with GET /api/v1/admin/audit_logs (the `ListAdminAuditLogs` operationId).
func (*Client) ListAdminAuthSessions ¶
func (c *Client) ListAdminAuthSessions(ctx context.Context, params *ListAdminAuthSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAdminAuthSessions List active auth sessions across users.
Corresponds with GET /api/v1/admin/auth/sessions (the `ListAdminAuthSessions` operationId).
func (*Client) ListGizmos ¶ added in v0.5.0
func (c *Client) ListGizmos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGizmos List Gizmos.
Corresponds with GET /api/v1/gizmos (the `ListGizmos` operationId).
func (*Client) ListNetworkDevices ¶
func (c *Client) ListNetworkDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListNetworkDevices List network devices.
Corresponds with GET /api/v1/networks/devices (the `ListNetworkDevices` operationId).
func (*Client) ListProfileSessions ¶
func (c *Client) ListProfileSessions(ctx context.Context, params *ListProfileSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListProfileSessions List active auth sessions for the current user.
Corresponds with GET /api/v1/profile/sessions (the `ListProfileSessions` operationId).
func (*Client) ListVlans ¶
func (c *Client) ListVlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListVlans List VLAN definitions.
Corresponds with GET /api/v1/networks/vlans (the `ListVlans` operationId).
func (*Client) LogoutSession ¶
func (c *Client) LogoutSession(ctx context.Context, body LogoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
LogoutSession Revoke the presented refresh session.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
func (*Client) LogoutSessionWithBody ¶
func (c *Client) LogoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LogoutSessionWithBody Revoke the presented refresh session.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
func (*Client) PatchNetworkDevice ¶
func (c *Client) PatchNetworkDevice(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchNetworkDevice Update a network device.
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
func (*Client) PatchNetworkDeviceWithBody ¶
func (c *Client) PatchNetworkDeviceWithBody(ctx context.Context, id DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchNetworkDeviceWithBody Update a network device.
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
func (*Client) PatchVlan ¶
func (c *Client) PatchVlan(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchVlan Update a VLAN definition by VLAN number.
Takes a body of the `application/json` content type.
Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
func (*Client) PatchVlanWithBody ¶
func (c *Client) PatchVlanWithBody(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchVlanWithBody Update a VLAN definition by VLAN number.
Takes any type of body and a specified content type.
Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
func (*Client) RefreshAccessToken ¶
func (c *Client) RefreshAccessToken(ctx context.Context, body RefreshAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshAccessToken Rotate the refresh token and mint a new access token.
Takes a body of the `application/json` content type.
Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
func (*Client) RefreshAccessTokenWithBody ¶
func (c *Client) RefreshAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshAccessTokenWithBody Rotate the refresh token and mint a new access token.
Takes any type of body and a specified content type.
Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
func (*Client) RevokeAdminAuthSession ¶
func (c *Client) RevokeAdminAuthSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeAdminAuthSession Revoke a session as an administrator.
Corresponds with POST /api/v1/admin/auth/sessions/{id}/revoke (the `RevokeAdminAuthSession` operationId).
func (*Client) RevokeAllAdminAuthSessions ¶
func (c *Client) RevokeAllAdminAuthSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeAllAdminAuthSessions Revoke all active auth sessions as an administrator.
Revokes all active API/client sessions across all users, including the administrator's own API/client sessions. Browser forward-auth sessions are not affected.
Corresponds with POST /api/v1/admin/auth/sessions/revoke_all (the `RevokeAllAdminAuthSessions` operationId).
func (*Client) RevokeOtherProfileSessions ¶
func (c *Client) RevokeOtherProfileSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeOtherProfileSessions Revoke all other active sessions for the current user.
For bearer-authenticated callers, the current bearer session is kept and other active API sessions are revoked. For forward-auth browser callers, all active API sessions for the user are revoked.
Corresponds with POST /api/v1/profile/sessions/revoke_others (the `RevokeOtherProfileSessions` operationId).
func (*Client) RevokeProfileSession ¶
func (c *Client) RevokeProfileSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeProfileSession Revoke one active session belonging to the current user.
Corresponds with POST /api/v1/profile/sessions/{id}/revoke (the `RevokeProfileSession` operationId).
func (*Client) UpdateGizmo ¶ added in v0.5.0
func (c *Client) UpdateGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, body UpdateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGizmo Replace a Gizmo's kiosk destination.
Takes a body of the `application/json` content type.
Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
func (*Client) UpdateGizmoWithBody ¶ added in v0.5.0
func (c *Client) UpdateGizmoWithBody(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGizmoWithBody Replace a Gizmo's kiosk destination.
Takes any type of body and a specified content type.
Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
type ClientAuthError ¶
type ClientAuthError struct {
Error ClientAuthErrorError `json:"error"`
ErrorDescription string `json:"error_description"`
}
ClientAuthError defines model for ClientAuthError.
type ClientAuthErrorError ¶
type ClientAuthErrorError string
ClientAuthErrorError defines model for ClientAuthError.Error.
const ( AccessDenied ClientAuthErrorError = "access_denied" AuthorizationPending ClientAuthErrorError = "authorization_pending" ExpiredToken ClientAuthErrorError = "expired_token" InvalidRequest ClientAuthErrorError = "invalid_request" SlowDown ClientAuthErrorError = "slow_down" )
Defines values for ClientAuthErrorError.
func (ClientAuthErrorError) Valid ¶
func (e ClientAuthErrorError) Valid() bool
Valid indicates whether the value is a known member of the ClientAuthErrorError enum.
type ClientInterface ¶
type ClientInterface interface {
// ListAdminAuditLogs List audit logs across the platform.
//
// Corresponds with GET /api/v1/admin/audit_logs (the `ListAdminAuditLogs` operationId).
ListAdminAuditLogs(ctx context.Context, params *ListAdminAuditLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAdminAuthSessions List active auth sessions across users.
//
// Corresponds with GET /api/v1/admin/auth/sessions (the `ListAdminAuthSessions` operationId).
ListAdminAuthSessions(ctx context.Context, params *ListAdminAuthSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeAllAdminAuthSessions Revoke all active auth sessions as an administrator.
//
// Revokes all active API/client sessions across all users, including the administrator's own API/client sessions. Browser forward-auth sessions are not affected.
//
// Corresponds with POST /api/v1/admin/auth/sessions/revoke_all (the `RevokeAllAdminAuthSessions` operationId).
RevokeAllAdminAuthSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeAdminAuthSession Revoke a session as an administrator.
//
// Corresponds with POST /api/v1/admin/auth/sessions/{id}/revoke (the `RevokeAdminAuthSession` operationId).
RevokeAdminAuthSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDeviceCodeWithBody Create a new device code request for a public client.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
CreateDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDeviceCode Create a new device code request for a public client.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
CreateDeviceCode(ctx context.Context, body CreateDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveDeviceCode Approve a pending device code request for the current authenticated user.
//
// Corresponds with POST /api/v1/auth/device_codes/{user_code}/approve (the `ApproveDeviceCode` operationId).
ApproveDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
// DenyDeviceCode Deny a pending device code request for the current authenticated user.
//
// Corresponds with POST /api/v1/auth/device_codes/{user_code}/deny (the `DenyDeviceCode` operationId).
DenyDeviceCode(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*http.Response, error)
// LogoutSessionWithBody Revoke the presented refresh session.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
LogoutSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// LogoutSession Revoke the presented refresh session.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
LogoutSession(ctx context.Context, body LogoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExchangeDeviceCodeWithBody Exchange an approved device code for access and refresh tokens.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
ExchangeDeviceCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExchangeDeviceCode Exchange an approved device code for access and refresh tokens.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
ExchangeDeviceCode(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshAccessTokenWithBody Rotate the refresh token and mint a new access token.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
RefreshAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshAccessToken Rotate the refresh token and mint a new access token.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
RefreshAccessToken(ctx context.Context, body RefreshAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGizmos List Gizmos.
//
// Corresponds with GET /api/v1/gizmos (the `ListGizmos` operationId).
ListGizmos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGizmoWithBody Register a network device as a Gizmo.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
CreateGizmoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGizmo Register a network device as a Gizmo.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
CreateGizmo(ctx context.Context, body CreateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteGizmo Remove a Gizmo without deleting its network device.
//
// Corresponds with DELETE /api/v1/gizmos/{network_device_id} (the `DeleteGizmo` operationId).
DeleteGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGizmoWithBody Replace a Gizmo's kiosk destination.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
UpdateGizmoWithBody(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGizmo Replace a Gizmo's kiosk destination.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
UpdateGizmo(ctx context.Context, networkDeviceId NetworkDeviceId, body UpdateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetKioskAssignment Get the kiosk URL assigned to an enabled network device.
//
// Corresponds with GET /api/v1/kiosks/{mac_address} (the `GetKioskAssignment` operationId).
GetKioskAssignment(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNetworkDevices List network devices.
//
// Corresponds with GET /api/v1/networks/devices (the `ListNetworkDevices` operationId).
ListNetworkDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNetworkDeviceWithBody Create a network device.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
CreateNetworkDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNetworkDevice Create a network device.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
CreateNetworkDevice(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNetworkDevice Delete a network device.
//
// Corresponds with DELETE /api/v1/networks/devices/{id} (the `DeleteNetworkDevice` operationId).
DeleteNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNetworkDevice Get one network device.
//
// Corresponds with GET /api/v1/networks/devices/{id} (the `GetNetworkDevice` operationId).
GetNetworkDevice(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchNetworkDeviceWithBody Update a network device.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
PatchNetworkDeviceWithBody(ctx context.Context, id DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchNetworkDevice Update a network device.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
PatchNetworkDevice(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVlans List VLAN definitions.
//
// Corresponds with GET /api/v1/networks/vlans (the `ListVlans` operationId).
ListVlans(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVlanWithBody Create a VLAN definition.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
CreateVlanWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVlan Create a VLAN definition.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
CreateVlan(ctx context.Context, body CreateVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVlan Delete a VLAN definition by VLAN number.
//
// Corresponds with DELETE /api/v1/networks/vlans/{vlan_id} (the `DeleteVlan` operationId).
DeleteVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVlan Get one VLAN definition by VLAN number.
//
// Corresponds with GET /api/v1/networks/vlans/{vlan_id} (the `GetVlan` operationId).
GetVlan(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchVlanWithBody Update a VLAN definition by VLAN number.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
PatchVlanWithBody(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchVlan Update a VLAN definition by VLAN number.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
PatchVlan(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProfile Get the current authenticated user's profile.
//
// Returns the current user's identity and group membership after the API resolves the caller from either trusted forward-auth headers or a bearer JWT.
//
// Corresponds with GET /api/v1/profile (the `GetProfile` operationId).
GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListProfileSessions List active auth sessions for the current user.
//
// Corresponds with GET /api/v1/profile/sessions (the `ListProfileSessions` operationId).
ListProfileSessions(ctx context.Context, params *ListProfileSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeOtherProfileSessions Revoke all other active sessions for the current user.
//
// For bearer-authenticated callers, the current bearer session is kept and other active API sessions are revoked. For forward-auth browser callers, all active API sessions for the user are revoked.
//
// Corresponds with POST /api/v1/profile/sessions/revoke_others (the `RevokeOtherProfileSessions` operationId).
RevokeOtherProfileSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeProfileSession Revoke one active session belonging to the current user.
//
// Corresponds with POST /api/v1/profile/sessions/{id}/revoke (the `RevokeProfileSession` operationId).
RevokeProfileSession(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ApproveDeviceCodeWithResponse ¶
func (c *ClientWithResponses) ApproveDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*ApproveDeviceCodeResponse, error)
ApproveDeviceCodeWithResponse Approve a pending device code request for the current authenticated user.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/device_codes/{user_code}/approve (the `ApproveDeviceCode` operationId).
func (*ClientWithResponses) CreateDeviceCodeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeviceCodeResponse, error)
CreateDeviceCodeWithBodyWithResponse Create a new device code request for a public client.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
func (*ClientWithResponses) CreateDeviceCodeWithResponse ¶
func (c *ClientWithResponses) CreateDeviceCodeWithResponse(ctx context.Context, body CreateDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeviceCodeResponse, error)
CreateDeviceCodeWithResponse Create a new device code request for a public client.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
func (*ClientWithResponses) CreateGizmoWithBodyWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) CreateGizmoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGizmoResponse, error)
CreateGizmoWithBodyWithResponse Register a network device as a Gizmo.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
func (*ClientWithResponses) CreateGizmoWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) CreateGizmoWithResponse(ctx context.Context, body CreateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGizmoResponse, error)
CreateGizmoWithResponse Register a network device as a Gizmo.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
func (*ClientWithResponses) CreateNetworkDeviceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNetworkDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetworkDeviceResponse, error)
CreateNetworkDeviceWithBodyWithResponse Create a network device.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
func (*ClientWithResponses) CreateNetworkDeviceWithResponse ¶
func (c *ClientWithResponses) CreateNetworkDeviceWithResponse(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetworkDeviceResponse, error)
CreateNetworkDeviceWithResponse Create a network device.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
func (*ClientWithResponses) CreateVlanWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVlanResponse, error)
CreateVlanWithBodyWithResponse Create a VLAN definition.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
func (*ClientWithResponses) CreateVlanWithResponse ¶
func (c *ClientWithResponses) CreateVlanWithResponse(ctx context.Context, body CreateVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVlanResponse, error)
CreateVlanWithResponse Create a VLAN definition.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
func (*ClientWithResponses) DeleteGizmoWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) DeleteGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, reqEditors ...RequestEditorFn) (*DeleteGizmoResponse, error)
DeleteGizmoWithResponse Remove a Gizmo without deleting its network device.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/gizmos/{network_device_id} (the `DeleteGizmo` operationId).
func (*ClientWithResponses) DeleteNetworkDeviceWithResponse ¶
func (c *ClientWithResponses) DeleteNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*DeleteNetworkDeviceResponse, error)
DeleteNetworkDeviceWithResponse Delete a network device.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/networks/devices/{id} (the `DeleteNetworkDevice` operationId).
func (*ClientWithResponses) DeleteVlanWithResponse ¶
func (c *ClientWithResponses) DeleteVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*DeleteVlanResponse, error)
DeleteVlanWithResponse Delete a VLAN definition by VLAN number.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api/v1/networks/vlans/{vlan_id} (the `DeleteVlan` operationId).
func (*ClientWithResponses) DenyDeviceCodeWithResponse ¶
func (c *ClientWithResponses) DenyDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*DenyDeviceCodeResponse, error)
DenyDeviceCodeWithResponse Deny a pending device code request for the current authenticated user.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/device_codes/{user_code}/deny (the `DenyDeviceCode` operationId).
func (*ClientWithResponses) ExchangeDeviceCodeWithBodyWithResponse ¶
func (c *ClientWithResponses) ExchangeDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeDeviceCodeResponse, error)
ExchangeDeviceCodeWithBodyWithResponse Exchange an approved device code for access and refresh tokens.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
func (*ClientWithResponses) ExchangeDeviceCodeWithResponse ¶
func (c *ClientWithResponses) ExchangeDeviceCodeWithResponse(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*ExchangeDeviceCodeResponse, error)
ExchangeDeviceCodeWithResponse Exchange an approved device code for access and refresh tokens.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
func (*ClientWithResponses) GetKioskAssignmentWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) GetKioskAssignmentWithResponse(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*GetKioskAssignmentResponse, error)
GetKioskAssignmentWithResponse Get the kiosk URL assigned to an enabled network device.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/kiosks/{mac_address} (the `GetKioskAssignment` operationId).
func (*ClientWithResponses) GetNetworkDeviceWithResponse ¶
func (c *ClientWithResponses) GetNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*GetNetworkDeviceResponse, error)
GetNetworkDeviceWithResponse Get one network device.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/networks/devices/{id} (the `GetNetworkDevice` operationId).
func (*ClientWithResponses) GetProfileWithResponse ¶
func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error)
GetProfileWithResponse Get the current authenticated user's profile.
Returns the current user's identity and group membership after the API resolves the caller from either trusted forward-auth headers or a bearer JWT.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/profile (the `GetProfile` operationId).
func (*ClientWithResponses) GetVlanWithResponse ¶
func (c *ClientWithResponses) GetVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*GetVlanResponse, error)
GetVlanWithResponse Get one VLAN definition by VLAN number.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/networks/vlans/{vlan_id} (the `GetVlan` operationId).
func (*ClientWithResponses) ListAdminAuditLogsWithResponse ¶
func (c *ClientWithResponses) ListAdminAuditLogsWithResponse(ctx context.Context, params *ListAdminAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAdminAuditLogsResponse, error)
ListAdminAuditLogsWithResponse List audit logs across the platform.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/admin/audit_logs (the `ListAdminAuditLogs` operationId).
func (*ClientWithResponses) ListAdminAuthSessionsWithResponse ¶
func (c *ClientWithResponses) ListAdminAuthSessionsWithResponse(ctx context.Context, params *ListAdminAuthSessionsParams, reqEditors ...RequestEditorFn) (*ListAdminAuthSessionsResponse, error)
ListAdminAuthSessionsWithResponse List active auth sessions across users.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/admin/auth/sessions (the `ListAdminAuthSessions` operationId).
func (*ClientWithResponses) ListGizmosWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) ListGizmosWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGizmosResponse, error)
ListGizmosWithResponse List Gizmos.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/gizmos (the `ListGizmos` operationId).
func (*ClientWithResponses) ListNetworkDevicesWithResponse ¶
func (c *ClientWithResponses) ListNetworkDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNetworkDevicesResponse, error)
ListNetworkDevicesWithResponse List network devices.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/networks/devices (the `ListNetworkDevices` operationId).
func (*ClientWithResponses) ListProfileSessionsWithResponse ¶
func (c *ClientWithResponses) ListProfileSessionsWithResponse(ctx context.Context, params *ListProfileSessionsParams, reqEditors ...RequestEditorFn) (*ListProfileSessionsResponse, error)
ListProfileSessionsWithResponse List active auth sessions for the current user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/profile/sessions (the `ListProfileSessions` operationId).
func (*ClientWithResponses) ListVlansWithResponse ¶
func (c *ClientWithResponses) ListVlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVlansResponse, error)
ListVlansWithResponse List VLAN definitions.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/v1/networks/vlans (the `ListVlans` operationId).
func (*ClientWithResponses) LogoutSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) LogoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutSessionResponse, error)
LogoutSessionWithBodyWithResponse Revoke the presented refresh session.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
func (*ClientWithResponses) LogoutSessionWithResponse ¶
func (c *ClientWithResponses) LogoutSessionWithResponse(ctx context.Context, body LogoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutSessionResponse, error)
LogoutSessionWithResponse Revoke the presented refresh session.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
func (*ClientWithResponses) PatchNetworkDeviceWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchNetworkDeviceWithBodyWithResponse(ctx context.Context, id DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchNetworkDeviceResponse, error)
PatchNetworkDeviceWithBodyWithResponse Update a network device.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
func (*ClientWithResponses) PatchNetworkDeviceWithResponse ¶
func (c *ClientWithResponses) PatchNetworkDeviceWithResponse(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchNetworkDeviceResponse, error)
PatchNetworkDeviceWithResponse Update a network device.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
func (*ClientWithResponses) PatchVlanWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchVlanWithBodyWithResponse(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVlanResponse, error)
PatchVlanWithBodyWithResponse Update a VLAN definition by VLAN number.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
func (*ClientWithResponses) PatchVlanWithResponse ¶
func (c *ClientWithResponses) PatchVlanWithResponse(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVlanResponse, error)
PatchVlanWithResponse Update a VLAN definition by VLAN number.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
func (*ClientWithResponses) RefreshAccessTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) RefreshAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshAccessTokenResponse, error)
RefreshAccessTokenWithBodyWithResponse Rotate the refresh token and mint a new access token.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
func (*ClientWithResponses) RefreshAccessTokenWithResponse ¶
func (c *ClientWithResponses) RefreshAccessTokenWithResponse(ctx context.Context, body RefreshAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshAccessTokenResponse, error)
RefreshAccessTokenWithResponse Rotate the refresh token and mint a new access token.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
func (*ClientWithResponses) RevokeAdminAuthSessionWithResponse ¶
func (c *ClientWithResponses) RevokeAdminAuthSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeAdminAuthSessionResponse, error)
RevokeAdminAuthSessionWithResponse Revoke a session as an administrator.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/admin/auth/sessions/{id}/revoke (the `RevokeAdminAuthSession` operationId).
func (*ClientWithResponses) RevokeAllAdminAuthSessionsWithResponse ¶
func (c *ClientWithResponses) RevokeAllAdminAuthSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeAllAdminAuthSessionsResponse, error)
RevokeAllAdminAuthSessionsWithResponse Revoke all active auth sessions as an administrator.
Revokes all active API/client sessions across all users, including the administrator's own API/client sessions. Browser forward-auth sessions are not affected.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/admin/auth/sessions/revoke_all (the `RevokeAllAdminAuthSessions` operationId).
func (*ClientWithResponses) RevokeOtherProfileSessionsWithResponse ¶
func (c *ClientWithResponses) RevokeOtherProfileSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeOtherProfileSessionsResponse, error)
RevokeOtherProfileSessionsWithResponse Revoke all other active sessions for the current user.
For bearer-authenticated callers, the current bearer session is kept and other active API sessions are revoked. For forward-auth browser callers, all active API sessions for the user are revoked.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/profile/sessions/revoke_others (the `RevokeOtherProfileSessions` operationId).
func (*ClientWithResponses) RevokeProfileSessionWithResponse ¶
func (c *ClientWithResponses) RevokeProfileSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeProfileSessionResponse, error)
RevokeProfileSessionWithResponse Revoke one active session belonging to the current user.
Returns a wrapper object for the known response body format(s).
Corresponds with POST /api/v1/profile/sessions/{id}/revoke (the `RevokeProfileSession` operationId).
func (*ClientWithResponses) UpdateGizmoWithBodyWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) UpdateGizmoWithBodyWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGizmoResponse, error)
UpdateGizmoWithBodyWithResponse Replace a Gizmo's kiosk destination.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
func (*ClientWithResponses) UpdateGizmoWithResponse ¶ added in v0.5.0
func (c *ClientWithResponses) UpdateGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, body UpdateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGizmoResponse, error)
UpdateGizmoWithResponse Replace a Gizmo's kiosk destination.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAdminAuditLogsWithResponse List audit logs across the platform.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/admin/audit_logs (the `ListAdminAuditLogs` operationId).
ListAdminAuditLogsWithResponse(ctx context.Context, params *ListAdminAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAdminAuditLogsResponse, error)
// ListAdminAuthSessionsWithResponse List active auth sessions across users.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/admin/auth/sessions (the `ListAdminAuthSessions` operationId).
ListAdminAuthSessionsWithResponse(ctx context.Context, params *ListAdminAuthSessionsParams, reqEditors ...RequestEditorFn) (*ListAdminAuthSessionsResponse, error)
// RevokeAllAdminAuthSessionsWithResponse Revoke all active auth sessions as an administrator.
//
// Revokes all active API/client sessions across all users, including the administrator's own API/client sessions. Browser forward-auth sessions are not affected.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/admin/auth/sessions/revoke_all (the `RevokeAllAdminAuthSessions` operationId).
RevokeAllAdminAuthSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeAllAdminAuthSessionsResponse, error)
// RevokeAdminAuthSessionWithResponse Revoke a session as an administrator.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/admin/auth/sessions/{id}/revoke (the `RevokeAdminAuthSession` operationId).
RevokeAdminAuthSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeAdminAuthSessionResponse, error)
// CreateDeviceCodeWithBodyWithResponse Create a new device code request for a public client.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
CreateDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeviceCodeResponse, error)
// CreateDeviceCodeWithResponse Create a new device code request for a public client.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/device_codes (the `CreateDeviceCode` operationId).
CreateDeviceCodeWithResponse(ctx context.Context, body CreateDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeviceCodeResponse, error)
// ApproveDeviceCodeWithResponse Approve a pending device code request for the current authenticated user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/device_codes/{user_code}/approve (the `ApproveDeviceCode` operationId).
ApproveDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*ApproveDeviceCodeResponse, error)
// DenyDeviceCodeWithResponse Deny a pending device code request for the current authenticated user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/device_codes/{user_code}/deny (the `DenyDeviceCode` operationId).
DenyDeviceCodeWithResponse(ctx context.Context, userCode UserCode, reqEditors ...RequestEditorFn) (*DenyDeviceCodeResponse, error)
// LogoutSessionWithBodyWithResponse Revoke the presented refresh session.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
LogoutSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LogoutSessionResponse, error)
// LogoutSessionWithResponse Revoke the presented refresh session.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/logout (the `LogoutSession` operationId).
LogoutSessionWithResponse(ctx context.Context, body LogoutSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutSessionResponse, error)
// ExchangeDeviceCodeWithBodyWithResponse Exchange an approved device code for access and refresh tokens.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
ExchangeDeviceCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeDeviceCodeResponse, error)
// ExchangeDeviceCodeWithResponse Exchange an approved device code for access and refresh tokens.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/tokens (the `ExchangeDeviceCode` operationId).
ExchangeDeviceCodeWithResponse(ctx context.Context, body ExchangeDeviceCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*ExchangeDeviceCodeResponse, error)
// RefreshAccessTokenWithBodyWithResponse Rotate the refresh token and mint a new access token.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
RefreshAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshAccessTokenResponse, error)
// RefreshAccessTokenWithResponse Rotate the refresh token and mint a new access token.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/auth/tokens/refresh (the `RefreshAccessToken` operationId).
RefreshAccessTokenWithResponse(ctx context.Context, body RefreshAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshAccessTokenResponse, error)
// ListGizmosWithResponse List Gizmos.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/gizmos (the `ListGizmos` operationId).
ListGizmosWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGizmosResponse, error)
// CreateGizmoWithBodyWithResponse Register a network device as a Gizmo.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
CreateGizmoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGizmoResponse, error)
// CreateGizmoWithResponse Register a network device as a Gizmo.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/gizmos (the `CreateGizmo` operationId).
CreateGizmoWithResponse(ctx context.Context, body CreateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGizmoResponse, error)
// DeleteGizmoWithResponse Remove a Gizmo without deleting its network device.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/gizmos/{network_device_id} (the `DeleteGizmo` operationId).
DeleteGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, reqEditors ...RequestEditorFn) (*DeleteGizmoResponse, error)
// UpdateGizmoWithBodyWithResponse Replace a Gizmo's kiosk destination.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
UpdateGizmoWithBodyWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGizmoResponse, error)
// UpdateGizmoWithResponse Replace a Gizmo's kiosk destination.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /api/v1/gizmos/{network_device_id} (the `UpdateGizmo` operationId).
UpdateGizmoWithResponse(ctx context.Context, networkDeviceId NetworkDeviceId, body UpdateGizmoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGizmoResponse, error)
// GetKioskAssignmentWithResponse Get the kiosk URL assigned to an enabled network device.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/kiosks/{mac_address} (the `GetKioskAssignment` operationId).
GetKioskAssignmentWithResponse(ctx context.Context, macAddress MacAddress, reqEditors ...RequestEditorFn) (*GetKioskAssignmentResponse, error)
// ListNetworkDevicesWithResponse List network devices.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/networks/devices (the `ListNetworkDevices` operationId).
ListNetworkDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNetworkDevicesResponse, error)
// CreateNetworkDeviceWithBodyWithResponse Create a network device.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
CreateNetworkDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetworkDeviceResponse, error)
// CreateNetworkDeviceWithResponse Create a network device.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/networks/devices (the `CreateNetworkDevice` operationId).
CreateNetworkDeviceWithResponse(ctx context.Context, body CreateNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetworkDeviceResponse, error)
// DeleteNetworkDeviceWithResponse Delete a network device.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/networks/devices/{id} (the `DeleteNetworkDevice` operationId).
DeleteNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*DeleteNetworkDeviceResponse, error)
// GetNetworkDeviceWithResponse Get one network device.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/networks/devices/{id} (the `GetNetworkDevice` operationId).
GetNetworkDeviceWithResponse(ctx context.Context, id DeviceId, reqEditors ...RequestEditorFn) (*GetNetworkDeviceResponse, error)
// PatchNetworkDeviceWithBodyWithResponse Update a network device.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
PatchNetworkDeviceWithBodyWithResponse(ctx context.Context, id DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchNetworkDeviceResponse, error)
// PatchNetworkDeviceWithResponse Update a network device.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/networks/devices/{id} (the `PatchNetworkDevice` operationId).
PatchNetworkDeviceWithResponse(ctx context.Context, id DeviceId, body PatchNetworkDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchNetworkDeviceResponse, error)
// ListVlansWithResponse List VLAN definitions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/networks/vlans (the `ListVlans` operationId).
ListVlansWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVlansResponse, error)
// CreateVlanWithBodyWithResponse Create a VLAN definition.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
CreateVlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVlanResponse, error)
// CreateVlanWithResponse Create a VLAN definition.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/networks/vlans (the `CreateVlan` operationId).
CreateVlanWithResponse(ctx context.Context, body CreateVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVlanResponse, error)
// DeleteVlanWithResponse Delete a VLAN definition by VLAN number.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api/v1/networks/vlans/{vlan_id} (the `DeleteVlan` operationId).
DeleteVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*DeleteVlanResponse, error)
// GetVlanWithResponse Get one VLAN definition by VLAN number.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/networks/vlans/{vlan_id} (the `GetVlan` operationId).
GetVlanWithResponse(ctx context.Context, vlanId VlanId, reqEditors ...RequestEditorFn) (*GetVlanResponse, error)
// PatchVlanWithBodyWithResponse Update a VLAN definition by VLAN number.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
PatchVlanWithBodyWithResponse(ctx context.Context, vlanId VlanId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchVlanResponse, error)
// PatchVlanWithResponse Update a VLAN definition by VLAN number.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /api/v1/networks/vlans/{vlan_id} (the `PatchVlan` operationId).
PatchVlanWithResponse(ctx context.Context, vlanId VlanId, body PatchVlanJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchVlanResponse, error)
// GetProfileWithResponse Get the current authenticated user's profile.
//
// Returns the current user's identity and group membership after the API resolves the caller from either trusted forward-auth headers or a bearer JWT.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/profile (the `GetProfile` operationId).
GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResponse, error)
// ListProfileSessionsWithResponse List active auth sessions for the current user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/v1/profile/sessions (the `ListProfileSessions` operationId).
ListProfileSessionsWithResponse(ctx context.Context, params *ListProfileSessionsParams, reqEditors ...RequestEditorFn) (*ListProfileSessionsResponse, error)
// RevokeOtherProfileSessionsWithResponse Revoke all other active sessions for the current user.
//
// For bearer-authenticated callers, the current bearer session is kept and other active API sessions are revoked. For forward-auth browser callers, all active API sessions for the user are revoked.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/profile/sessions/revoke_others (the `RevokeOtherProfileSessions` operationId).
RevokeOtherProfileSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RevokeOtherProfileSessionsResponse, error)
// RevokeProfileSessionWithResponse Revoke one active session belonging to the current user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api/v1/profile/sessions/{id}/revoke (the `RevokeProfileSession` operationId).
RevokeProfileSessionWithResponse(ctx context.Context, id SessionId, reqEditors ...RequestEditorFn) (*RevokeProfileSessionResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateDeviceCodeJSONRequestBody ¶
type CreateDeviceCodeJSONRequestBody = DeviceCodeCreateRequest
CreateDeviceCodeJSONRequestBody defines body for CreateDeviceCode for application/json ContentType.
type CreateDeviceCodeResponse ¶
type CreateDeviceCodeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *DeviceCode
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseCreateDeviceCodeResponse ¶
func ParseCreateDeviceCodeResponse(rsp *http.Response) (*CreateDeviceCodeResponse, error)
ParseCreateDeviceCodeResponse parses an HTTP response from a CreateDeviceCodeWithResponse call
func (CreateDeviceCodeResponse) ContentType ¶
func (r CreateDeviceCodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateDeviceCodeResponse) GetBody ¶
func (r CreateDeviceCodeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateDeviceCodeResponse) GetJSON201 ¶
func (r CreateDeviceCodeResponse) GetJSON201() *DeviceCode
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateDeviceCodeResponse) GetJSON429 ¶
func (r CreateDeviceCodeResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (CreateDeviceCodeResponse) Status ¶
func (r CreateDeviceCodeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDeviceCodeResponse) StatusCode ¶
func (r CreateDeviceCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGizmoJSONRequestBody ¶ added in v0.5.0
type CreateGizmoJSONRequestBody = GizmoWrite
CreateGizmoJSONRequestBody defines body for CreateGizmo for application/json ContentType.
type CreateGizmoResponse ¶ added in v0.5.0
type CreateGizmoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Gizmo
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParseCreateGizmoResponse ¶ added in v0.5.0
func ParseCreateGizmoResponse(rsp *http.Response) (*CreateGizmoResponse, error)
ParseCreateGizmoResponse parses an HTTP response from a CreateGizmoWithResponse call
func (CreateGizmoResponse) ContentType ¶ added in v0.5.0
func (r CreateGizmoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateGizmoResponse) GetBody ¶ added in v0.5.0
func (r CreateGizmoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateGizmoResponse) GetJSON201 ¶ added in v0.5.0
func (r CreateGizmoResponse) GetJSON201() *Gizmo
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateGizmoResponse) GetJSON400 ¶ added in v0.5.0
func (r CreateGizmoResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateGizmoResponse) GetJSON401 ¶ added in v0.5.0
func (r CreateGizmoResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateGizmoResponse) GetJSON403 ¶ added in v0.5.0
func (r CreateGizmoResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateGizmoResponse) GetJSON409 ¶ added in v0.5.0
func (r CreateGizmoResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateGizmoResponse) Status ¶ added in v0.5.0
func (r CreateGizmoResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGizmoResponse) StatusCode ¶ added in v0.5.0
func (r CreateGizmoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNetworkDeviceJSONRequestBody ¶
type CreateNetworkDeviceJSONRequestBody = NetworkDeviceWrite
CreateNetworkDeviceJSONRequestBody defines body for CreateNetworkDevice for application/json ContentType.
type CreateNetworkDeviceResponse ¶
type CreateNetworkDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *NetworkDevice
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParseCreateNetworkDeviceResponse ¶
func ParseCreateNetworkDeviceResponse(rsp *http.Response) (*CreateNetworkDeviceResponse, error)
ParseCreateNetworkDeviceResponse parses an HTTP response from a CreateNetworkDeviceWithResponse call
func (CreateNetworkDeviceResponse) ContentType ¶
func (r CreateNetworkDeviceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateNetworkDeviceResponse) GetBody ¶
func (r CreateNetworkDeviceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateNetworkDeviceResponse) GetJSON201 ¶
func (r CreateNetworkDeviceResponse) GetJSON201() *NetworkDevice
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateNetworkDeviceResponse) GetJSON400 ¶
func (r CreateNetworkDeviceResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateNetworkDeviceResponse) GetJSON401 ¶
func (r CreateNetworkDeviceResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateNetworkDeviceResponse) GetJSON403 ¶
func (r CreateNetworkDeviceResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateNetworkDeviceResponse) GetJSON409 ¶
func (r CreateNetworkDeviceResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateNetworkDeviceResponse) Status ¶
func (r CreateNetworkDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNetworkDeviceResponse) StatusCode ¶
func (r CreateNetworkDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVlanJSONRequestBody ¶
type CreateVlanJSONRequestBody = VlanWrite
CreateVlanJSONRequestBody defines body for CreateVlan for application/json ContentType.
type CreateVlanResponse ¶
type CreateVlanResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Vlan
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParseCreateVlanResponse ¶
func ParseCreateVlanResponse(rsp *http.Response) (*CreateVlanResponse, error)
ParseCreateVlanResponse parses an HTTP response from a CreateVlanWithResponse call
func (CreateVlanResponse) ContentType ¶
func (r CreateVlanResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateVlanResponse) GetBody ¶
func (r CreateVlanResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateVlanResponse) GetJSON201 ¶
func (r CreateVlanResponse) GetJSON201() *Vlan
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateVlanResponse) GetJSON400 ¶
func (r CreateVlanResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateVlanResponse) GetJSON401 ¶
func (r CreateVlanResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateVlanResponse) GetJSON403 ¶
func (r CreateVlanResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateVlanResponse) GetJSON409 ¶
func (r CreateVlanResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateVlanResponse) Status ¶
func (r CreateVlanResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVlanResponse) StatusCode ¶
func (r CreateVlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteGizmoResponse ¶ added in v0.5.0
type DeleteGizmoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseDeleteGizmoResponse ¶ added in v0.5.0
func ParseDeleteGizmoResponse(rsp *http.Response) (*DeleteGizmoResponse, error)
ParseDeleteGizmoResponse parses an HTTP response from a DeleteGizmoWithResponse call
func (DeleteGizmoResponse) ContentType ¶ added in v0.5.0
func (r DeleteGizmoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteGizmoResponse) GetBody ¶ added in v0.5.0
func (r DeleteGizmoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteGizmoResponse) GetJSON400 ¶ added in v0.5.0
func (r DeleteGizmoResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteGizmoResponse) GetJSON401 ¶ added in v0.5.0
func (r DeleteGizmoResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteGizmoResponse) GetJSON403 ¶ added in v0.5.0
func (r DeleteGizmoResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteGizmoResponse) Status ¶ added in v0.5.0
func (r DeleteGizmoResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteGizmoResponse) StatusCode ¶ added in v0.5.0
func (r DeleteGizmoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNetworkDeviceResponse ¶
type DeleteNetworkDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseDeleteNetworkDeviceResponse ¶
func ParseDeleteNetworkDeviceResponse(rsp *http.Response) (*DeleteNetworkDeviceResponse, error)
ParseDeleteNetworkDeviceResponse parses an HTTP response from a DeleteNetworkDeviceWithResponse call
func (DeleteNetworkDeviceResponse) ContentType ¶
func (r DeleteNetworkDeviceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteNetworkDeviceResponse) GetBody ¶
func (r DeleteNetworkDeviceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteNetworkDeviceResponse) GetJSON400 ¶
func (r DeleteNetworkDeviceResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteNetworkDeviceResponse) GetJSON401 ¶
func (r DeleteNetworkDeviceResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteNetworkDeviceResponse) GetJSON403 ¶
func (r DeleteNetworkDeviceResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteNetworkDeviceResponse) Status ¶
func (r DeleteNetworkDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNetworkDeviceResponse) StatusCode ¶
func (r DeleteNetworkDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVlanResponse ¶
type DeleteVlanResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParseDeleteVlanResponse ¶
func ParseDeleteVlanResponse(rsp *http.Response) (*DeleteVlanResponse, error)
ParseDeleteVlanResponse parses an HTTP response from a DeleteVlanWithResponse call
func (DeleteVlanResponse) ContentType ¶
func (r DeleteVlanResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteVlanResponse) GetBody ¶
func (r DeleteVlanResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteVlanResponse) GetJSON400 ¶
func (r DeleteVlanResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DeleteVlanResponse) GetJSON401 ¶
func (r DeleteVlanResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteVlanResponse) GetJSON403 ¶
func (r DeleteVlanResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteVlanResponse) GetJSON409 ¶
func (r DeleteVlanResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (DeleteVlanResponse) Status ¶
func (r DeleteVlanResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVlanResponse) StatusCode ¶
func (r DeleteVlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DenyDeviceCodeResponse ¶
type DenyDeviceCodeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseDenyDeviceCodeResponse ¶
func ParseDenyDeviceCodeResponse(rsp *http.Response) (*DenyDeviceCodeResponse, error)
ParseDenyDeviceCodeResponse parses an HTTP response from a DenyDeviceCodeWithResponse call
func (DenyDeviceCodeResponse) ContentType ¶
func (r DenyDeviceCodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DenyDeviceCodeResponse) GetBody ¶
func (r DenyDeviceCodeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DenyDeviceCodeResponse) GetJSON400 ¶
func (r DenyDeviceCodeResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DenyDeviceCodeResponse) GetJSON401 ¶
func (r DenyDeviceCodeResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DenyDeviceCodeResponse) GetJSON404 ¶
func (r DenyDeviceCodeResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DenyDeviceCodeResponse) GetJSON409 ¶
func (r DenyDeviceCodeResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (DenyDeviceCodeResponse) GetJSON429 ¶
func (r DenyDeviceCodeResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (DenyDeviceCodeResponse) Status ¶
func (r DenyDeviceCodeResponse) Status() string
Status returns HTTPResponse.Status
func (DenyDeviceCodeResponse) StatusCode ¶
func (r DenyDeviceCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeviceCode ¶
type DeviceCode struct {
DeviceCode string `json:"device_code"`
ExpiresIn int32 `json:"expires_in"`
Interval int32 `json:"interval"`
UserCode string `json:"user_code"`
VerificationUri string `json:"verification_uri"`
VerificationUriComplete string `json:"verification_uri_complete"`
}
DeviceCode defines model for DeviceCode.
type DeviceCodeCreateRequest ¶
type DeviceCodeCreateRequest struct {
ClientName *string `json:"client_name,omitempty"`
}
DeviceCodeCreateRequest defines model for DeviceCodeCreateRequest.
type DeviceCodeTokenRequest ¶
type DeviceCodeTokenRequest struct {
DeviceCode string `json:"device_code"`
}
DeviceCodeTokenRequest defines model for DeviceCodeTokenRequest.
type ErrorResponse ¶
ErrorResponse defines model for ErrorResponse.
type ExchangeDeviceCodeJSONRequestBody ¶
type ExchangeDeviceCodeJSONRequestBody = DeviceCodeTokenRequest
ExchangeDeviceCodeJSONRequestBody defines body for ExchangeDeviceCode for application/json ContentType.
type ExchangeDeviceCodeResponse ¶
type ExchangeDeviceCodeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ClientAuthError
// JSON428 the response for an HTTP 428 `application/json` response
JSON428 *ClientAuthError
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseExchangeDeviceCodeResponse ¶
func ParseExchangeDeviceCodeResponse(rsp *http.Response) (*ExchangeDeviceCodeResponse, error)
ParseExchangeDeviceCodeResponse parses an HTTP response from a ExchangeDeviceCodeWithResponse call
func (ExchangeDeviceCodeResponse) ContentType ¶
func (r ExchangeDeviceCodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExchangeDeviceCodeResponse) GetBody ¶
func (r ExchangeDeviceCodeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ExchangeDeviceCodeResponse) GetJSON200 ¶
func (r ExchangeDeviceCodeResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ExchangeDeviceCodeResponse) GetJSON400 ¶
func (r ExchangeDeviceCodeResponse) GetJSON400() *ClientAuthError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ExchangeDeviceCodeResponse) GetJSON428 ¶
func (r ExchangeDeviceCodeResponse) GetJSON428() *ClientAuthError
GetJSON428 returns the response for an HTTP 428 `application/json` response
func (ExchangeDeviceCodeResponse) GetJSON429 ¶
func (r ExchangeDeviceCodeResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ExchangeDeviceCodeResponse) Status ¶
func (r ExchangeDeviceCodeResponse) Status() string
Status returns HTTPResponse.Status
func (ExchangeDeviceCodeResponse) StatusCode ¶
func (r ExchangeDeviceCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetKioskAssignmentResponse ¶ added in v0.5.0
type GetKioskAssignmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *KioskAssignment
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetKioskAssignmentResponse ¶ added in v0.5.0
func ParseGetKioskAssignmentResponse(rsp *http.Response) (*GetKioskAssignmentResponse, error)
ParseGetKioskAssignmentResponse parses an HTTP response from a GetKioskAssignmentWithResponse call
func (GetKioskAssignmentResponse) ContentType ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetKioskAssignmentResponse) GetBody ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetKioskAssignmentResponse) GetJSON200 ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) GetJSON200() *KioskAssignment
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetKioskAssignmentResponse) GetJSON400 ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetKioskAssignmentResponse) GetJSON404 ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetKioskAssignmentResponse) Status ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetKioskAssignmentResponse) StatusCode ¶ added in v0.5.0
func (r GetKioskAssignmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworkDeviceResponse ¶
type GetNetworkDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NetworkDevice
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetNetworkDeviceResponse ¶
func ParseGetNetworkDeviceResponse(rsp *http.Response) (*GetNetworkDeviceResponse, error)
ParseGetNetworkDeviceResponse parses an HTTP response from a GetNetworkDeviceWithResponse call
func (GetNetworkDeviceResponse) ContentType ¶
func (r GetNetworkDeviceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetNetworkDeviceResponse) GetBody ¶
func (r GetNetworkDeviceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetNetworkDeviceResponse) GetJSON200 ¶
func (r GetNetworkDeviceResponse) GetJSON200() *NetworkDevice
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetNetworkDeviceResponse) GetJSON400 ¶
func (r GetNetworkDeviceResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetNetworkDeviceResponse) GetJSON401 ¶
func (r GetNetworkDeviceResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetNetworkDeviceResponse) GetJSON403 ¶
func (r GetNetworkDeviceResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetNetworkDeviceResponse) GetJSON404 ¶
func (r GetNetworkDeviceResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetNetworkDeviceResponse) Status ¶
func (r GetNetworkDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworkDeviceResponse) StatusCode ¶
func (r GetNetworkDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProfileResponse ¶
type GetProfileResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Profile
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseGetProfileResponse ¶
func ParseGetProfileResponse(rsp *http.Response) (*GetProfileResponse, error)
ParseGetProfileResponse parses an HTTP response from a GetProfileWithResponse call
func (GetProfileResponse) ContentType ¶
func (r GetProfileResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProfileResponse) GetBody ¶
func (r GetProfileResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProfileResponse) GetJSON200 ¶
func (r GetProfileResponse) GetJSON200() *Profile
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProfileResponse) GetJSON401 ¶
func (r GetProfileResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProfileResponse) Status ¶
func (r GetProfileResponse) Status() string
Status returns HTTPResponse.Status
func (GetProfileResponse) StatusCode ¶
func (r GetProfileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVlanResponse ¶
type GetVlanResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Vlan
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseGetVlanResponse ¶
func ParseGetVlanResponse(rsp *http.Response) (*GetVlanResponse, error)
ParseGetVlanResponse parses an HTTP response from a GetVlanWithResponse call
func (GetVlanResponse) ContentType ¶
func (r GetVlanResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetVlanResponse) GetBody ¶
func (r GetVlanResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetVlanResponse) GetJSON200 ¶
func (r GetVlanResponse) GetJSON200() *Vlan
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetVlanResponse) GetJSON400 ¶
func (r GetVlanResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetVlanResponse) GetJSON401 ¶
func (r GetVlanResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetVlanResponse) GetJSON403 ¶
func (r GetVlanResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetVlanResponse) GetJSON404 ¶
func (r GetVlanResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetVlanResponse) Status ¶
func (r GetVlanResponse) Status() string
Status returns HTTPResponse.Status
func (GetVlanResponse) StatusCode ¶
func (r GetVlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Gizmo ¶ added in v0.5.0
type Gizmo struct {
CreatedAt time.Time `json:"created_at"`
KioskUrl *string `json:"kiosk_url"`
NetworkDevice NetworkDevice `json:"network_device"`
UpdatedAt time.Time `json:"updated_at"`
}
Gizmo defines model for Gizmo.
type GizmoList ¶ added in v0.5.0
type GizmoList struct {
Items []Gizmo `json:"items"`
}
GizmoList defines model for GizmoList.
type GizmoUpdate ¶ added in v0.5.0
type GizmoUpdate struct {
KioskUrl *string `json:"kiosk_url"`
}
GizmoUpdate defines model for GizmoUpdate.
type GizmoWrite ¶ added in v0.5.0
type GizmoWrite struct {
KioskUrl *string `json:"kiosk_url,omitempty"`
NetworkDeviceId openapi_types.UUID `json:"network_device_id"`
}
GizmoWrite defines model for GizmoWrite.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type KioskAssignment ¶ added in v0.5.0
type KioskAssignment struct {
Url string `json:"url"`
}
KioskAssignment defines model for KioskAssignment.
type ListAdminAuditLogsParams ¶
type ListAdminAuditLogsParams struct {
Action *string `form:"action,omitempty" json:"action,omitempty"`
ResourceType *string `form:"resource_type,omitempty" json:"resource_type,omitempty"`
ResourceId *string `form:"resource_id,omitempty" json:"resource_id,omitempty"`
ActorUsername *string `form:"actor_username,omitempty" json:"actor_username,omitempty"`
SortBy *ListAdminAuditLogsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`
SortDir *ListAdminAuditLogsParamsSortDir `form:"sort_dir,omitempty" json:"sort_dir,omitempty"`
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
}
ListAdminAuditLogsParams defines parameters for ListAdminAuditLogs.
type ListAdminAuditLogsParamsSortBy ¶ added in v0.5.5
type ListAdminAuditLogsParamsSortBy string
ListAdminAuditLogsParamsSortBy defines parameters for ListAdminAuditLogs.
const ( Action ListAdminAuditLogsParamsSortBy = "action" ActorUsername ListAdminAuditLogsParamsSortBy = "actor_username" CreatedAt ListAdminAuditLogsParamsSortBy = "created_at" Resource ListAdminAuditLogsParamsSortBy = "resource" )
Defines values for ListAdminAuditLogsParamsSortBy.
func (ListAdminAuditLogsParamsSortBy) Valid ¶ added in v0.5.5
func (e ListAdminAuditLogsParamsSortBy) Valid() bool
Valid indicates whether the value is a known member of the ListAdminAuditLogsParamsSortBy enum.
type ListAdminAuditLogsParamsSortDir ¶ added in v0.5.5
type ListAdminAuditLogsParamsSortDir string
ListAdminAuditLogsParamsSortDir defines parameters for ListAdminAuditLogs.
const ( Asc ListAdminAuditLogsParamsSortDir = "asc" Desc ListAdminAuditLogsParamsSortDir = "desc" )
Defines values for ListAdminAuditLogsParamsSortDir.
func (ListAdminAuditLogsParamsSortDir) Valid ¶ added in v0.5.5
func (e ListAdminAuditLogsParamsSortDir) Valid() bool
Valid indicates whether the value is a known member of the ListAdminAuditLogsParamsSortDir enum.
type ListAdminAuditLogsResponse ¶
type ListAdminAuditLogsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuditLogList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseListAdminAuditLogsResponse ¶
func ParseListAdminAuditLogsResponse(rsp *http.Response) (*ListAdminAuditLogsResponse, error)
ParseListAdminAuditLogsResponse parses an HTTP response from a ListAdminAuditLogsWithResponse call
func (ListAdminAuditLogsResponse) ContentType ¶
func (r ListAdminAuditLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAdminAuditLogsResponse) GetBody ¶
func (r ListAdminAuditLogsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAdminAuditLogsResponse) GetJSON200 ¶
func (r ListAdminAuditLogsResponse) GetJSON200() *AuditLogList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAdminAuditLogsResponse) GetJSON400 ¶
func (r ListAdminAuditLogsResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListAdminAuditLogsResponse) GetJSON401 ¶
func (r ListAdminAuditLogsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAdminAuditLogsResponse) GetJSON403 ¶
func (r ListAdminAuditLogsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListAdminAuditLogsResponse) Status ¶
func (r ListAdminAuditLogsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAdminAuditLogsResponse) StatusCode ¶
func (r ListAdminAuditLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAdminAuthSessionsParams ¶
type ListAdminAuthSessionsParams struct {
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
}
ListAdminAuthSessionsParams defines parameters for ListAdminAuthSessions.
type ListAdminAuthSessionsResponse ¶
type ListAdminAuthSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthSessionPage
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseListAdminAuthSessionsResponse ¶
func ParseListAdminAuthSessionsResponse(rsp *http.Response) (*ListAdminAuthSessionsResponse, error)
ParseListAdminAuthSessionsResponse parses an HTTP response from a ListAdminAuthSessionsWithResponse call
func (ListAdminAuthSessionsResponse) ContentType ¶
func (r ListAdminAuthSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAdminAuthSessionsResponse) GetBody ¶
func (r ListAdminAuthSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAdminAuthSessionsResponse) GetJSON200 ¶
func (r ListAdminAuthSessionsResponse) GetJSON200() *AuthSessionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAdminAuthSessionsResponse) GetJSON401 ¶
func (r ListAdminAuthSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListAdminAuthSessionsResponse) GetJSON403 ¶
func (r ListAdminAuthSessionsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListAdminAuthSessionsResponse) Status ¶
func (r ListAdminAuthSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAdminAuthSessionsResponse) StatusCode ¶
func (r ListAdminAuthSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGizmosResponse ¶ added in v0.5.0
type ListGizmosResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GizmoList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseListGizmosResponse ¶ added in v0.5.0
func ParseListGizmosResponse(rsp *http.Response) (*ListGizmosResponse, error)
ParseListGizmosResponse parses an HTTP response from a ListGizmosWithResponse call
func (ListGizmosResponse) ContentType ¶ added in v0.5.0
func (r ListGizmosResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGizmosResponse) GetBody ¶ added in v0.5.0
func (r ListGizmosResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGizmosResponse) GetJSON200 ¶ added in v0.5.0
func (r ListGizmosResponse) GetJSON200() *GizmoList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGizmosResponse) GetJSON401 ¶ added in v0.5.0
func (r ListGizmosResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListGizmosResponse) GetJSON403 ¶ added in v0.5.0
func (r ListGizmosResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListGizmosResponse) Status ¶ added in v0.5.0
func (r ListGizmosResponse) Status() string
Status returns HTTPResponse.Status
func (ListGizmosResponse) StatusCode ¶ added in v0.5.0
func (r ListGizmosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNetworkDevicesResponse ¶
type ListNetworkDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NetworkDeviceList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseListNetworkDevicesResponse ¶
func ParseListNetworkDevicesResponse(rsp *http.Response) (*ListNetworkDevicesResponse, error)
ParseListNetworkDevicesResponse parses an HTTP response from a ListNetworkDevicesWithResponse call
func (ListNetworkDevicesResponse) ContentType ¶
func (r ListNetworkDevicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListNetworkDevicesResponse) GetBody ¶
func (r ListNetworkDevicesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListNetworkDevicesResponse) GetJSON200 ¶
func (r ListNetworkDevicesResponse) GetJSON200() *NetworkDeviceList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListNetworkDevicesResponse) GetJSON401 ¶
func (r ListNetworkDevicesResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListNetworkDevicesResponse) GetJSON403 ¶
func (r ListNetworkDevicesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListNetworkDevicesResponse) Status ¶
func (r ListNetworkDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNetworkDevicesResponse) StatusCode ¶
func (r ListNetworkDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProfileSessionsParams ¶
type ListProfileSessionsParams struct {
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`
}
ListProfileSessionsParams defines parameters for ListProfileSessions.
type ListProfileSessionsResponse ¶
type ListProfileSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AuthSessionPage
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseListProfileSessionsResponse ¶
func ParseListProfileSessionsResponse(rsp *http.Response) (*ListProfileSessionsResponse, error)
ParseListProfileSessionsResponse parses an HTTP response from a ListProfileSessionsWithResponse call
func (ListProfileSessionsResponse) ContentType ¶
func (r ListProfileSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListProfileSessionsResponse) GetBody ¶
func (r ListProfileSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListProfileSessionsResponse) GetJSON200 ¶
func (r ListProfileSessionsResponse) GetJSON200() *AuthSessionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListProfileSessionsResponse) GetJSON401 ¶
func (r ListProfileSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListProfileSessionsResponse) Status ¶
func (r ListProfileSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListProfileSessionsResponse) StatusCode ¶
func (r ListProfileSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVlansResponse ¶
type ListVlansResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *VlanList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseListVlansResponse ¶
func ParseListVlansResponse(rsp *http.Response) (*ListVlansResponse, error)
ParseListVlansResponse parses an HTTP response from a ListVlansWithResponse call
func (ListVlansResponse) ContentType ¶
func (r ListVlansResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListVlansResponse) GetBody ¶
func (r ListVlansResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListVlansResponse) GetJSON200 ¶
func (r ListVlansResponse) GetJSON200() *VlanList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListVlansResponse) GetJSON401 ¶
func (r ListVlansResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListVlansResponse) GetJSON403 ¶
func (r ListVlansResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListVlansResponse) Status ¶
func (r ListVlansResponse) Status() string
Status returns HTTPResponse.Status
func (ListVlansResponse) StatusCode ¶
func (r ListVlansResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LogoutRequest ¶
type LogoutRequest struct {
RefreshToken string `json:"refresh_token"`
}
LogoutRequest defines model for LogoutRequest.
type LogoutSessionJSONRequestBody ¶
type LogoutSessionJSONRequestBody = LogoutRequest
LogoutSessionJSONRequestBody defines body for LogoutSession for application/json ContentType.
type LogoutSessionResponse ¶
type LogoutSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
}
func ParseLogoutSessionResponse ¶
func ParseLogoutSessionResponse(rsp *http.Response) (*LogoutSessionResponse, error)
ParseLogoutSessionResponse parses an HTTP response from a LogoutSessionWithResponse call
func (LogoutSessionResponse) ContentType ¶
func (r LogoutSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LogoutSessionResponse) GetBody ¶
func (r LogoutSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (LogoutSessionResponse) GetJSON400 ¶
func (r LogoutSessionResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (LogoutSessionResponse) Status ¶
func (r LogoutSessionResponse) Status() string
Status returns HTTPResponse.Status
func (LogoutSessionResponse) StatusCode ¶
func (r LogoutSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NetworkDevice ¶
type NetworkDevice struct {
CreatedAt time.Time `json:"created_at"`
CreatedByUserId *openapi_types.UUID `json:"created_by_user_id,omitempty"`
Disabled bool `json:"disabled"`
DisplayName string `json:"display_name"`
Id openapi_types.UUID `json:"id"`
// MacAddress Example: aa:bb:cc:dd:ee:ff
MacAddress string `json:"mac_address"`
UpdatedAt time.Time `json:"updated_at"`
UpdatedByUserId *openapi_types.UUID `json:"updated_by_user_id,omitempty"`
Vlan VlanRef `json:"vlan"`
}
NetworkDevice defines model for NetworkDevice.
type NetworkDeviceId ¶ added in v0.5.0
type NetworkDeviceId = openapi_types.UUID
NetworkDeviceId defines model for NetworkDeviceId.
type NetworkDeviceList ¶
type NetworkDeviceList struct {
Items []NetworkDevice `json:"items"`
}
NetworkDeviceList defines model for NetworkDeviceList.
type NetworkDevicePatch ¶
type NetworkDevicePatch struct {
Disabled *bool `json:"disabled,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
// MacAddress Example: aa:bb:cc:dd:ee:ff
MacAddress *string `json:"mac_address,omitempty"`
VlanId *int32 `json:"vlan_id,omitempty"`
}
NetworkDevicePatch defines model for NetworkDevicePatch.
type NetworkDeviceWrite ¶
type NetworkDeviceWrite struct {
Disabled *bool `json:"disabled,omitempty"`
DisplayName string `json:"display_name"`
// MacAddress Example: aa:bb:cc:dd:ee:ff
MacAddress string `json:"mac_address"`
VlanId int32 `json:"vlan_id"`
}
NetworkDeviceWrite defines model for NetworkDeviceWrite.
type PatchNetworkDeviceJSONRequestBody ¶
type PatchNetworkDeviceJSONRequestBody = NetworkDevicePatch
PatchNetworkDeviceJSONRequestBody defines body for PatchNetworkDevice for application/json ContentType.
type PatchNetworkDeviceResponse ¶
type PatchNetworkDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *NetworkDevice
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParsePatchNetworkDeviceResponse ¶
func ParsePatchNetworkDeviceResponse(rsp *http.Response) (*PatchNetworkDeviceResponse, error)
ParsePatchNetworkDeviceResponse parses an HTTP response from a PatchNetworkDeviceWithResponse call
func (PatchNetworkDeviceResponse) ContentType ¶
func (r PatchNetworkDeviceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchNetworkDeviceResponse) GetBody ¶
func (r PatchNetworkDeviceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchNetworkDeviceResponse) GetJSON200 ¶
func (r PatchNetworkDeviceResponse) GetJSON200() *NetworkDevice
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchNetworkDeviceResponse) GetJSON400 ¶
func (r PatchNetworkDeviceResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchNetworkDeviceResponse) GetJSON401 ¶
func (r PatchNetworkDeviceResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchNetworkDeviceResponse) GetJSON403 ¶
func (r PatchNetworkDeviceResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PatchNetworkDeviceResponse) GetJSON404 ¶
func (r PatchNetworkDeviceResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchNetworkDeviceResponse) GetJSON409 ¶
func (r PatchNetworkDeviceResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchNetworkDeviceResponse) Status ¶
func (r PatchNetworkDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (PatchNetworkDeviceResponse) StatusCode ¶
func (r PatchNetworkDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchVlanJSONRequestBody ¶
type PatchVlanJSONRequestBody = VlanPatch
PatchVlanJSONRequestBody defines body for PatchVlan for application/json ContentType.
type PatchVlanResponse ¶
type PatchVlanResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Vlan
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *Conflict
}
func ParsePatchVlanResponse ¶
func ParsePatchVlanResponse(rsp *http.Response) (*PatchVlanResponse, error)
ParsePatchVlanResponse parses an HTTP response from a PatchVlanWithResponse call
func (PatchVlanResponse) ContentType ¶
func (r PatchVlanResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchVlanResponse) GetBody ¶
func (r PatchVlanResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchVlanResponse) GetJSON200 ¶
func (r PatchVlanResponse) GetJSON200() *Vlan
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchVlanResponse) GetJSON400 ¶
func (r PatchVlanResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PatchVlanResponse) GetJSON401 ¶
func (r PatchVlanResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PatchVlanResponse) GetJSON403 ¶
func (r PatchVlanResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (PatchVlanResponse) GetJSON404 ¶
func (r PatchVlanResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PatchVlanResponse) GetJSON409 ¶
func (r PatchVlanResponse) GetJSON409() *Conflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (PatchVlanResponse) Status ¶
func (r PatchVlanResponse) Status() string
Status returns HTTPResponse.Status
func (PatchVlanResponse) StatusCode ¶
func (r PatchVlanResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Profile ¶
type Profile struct {
Email openapi_types.Email `json:"email"`
Groups []string `json:"groups"`
IsAdmin bool `json:"is_admin"`
Name string `json:"name"`
Username string `json:"username"`
}
Profile defines model for Profile.
type RefreshAccessTokenJSONRequestBody ¶
type RefreshAccessTokenJSONRequestBody = RefreshTokenRequest
RefreshAccessTokenJSONRequestBody defines body for RefreshAccessToken for application/json ContentType.
type RefreshAccessTokenResponse ¶
type RefreshAccessTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseRefreshAccessTokenResponse ¶
func ParseRefreshAccessTokenResponse(rsp *http.Response) (*RefreshAccessTokenResponse, error)
ParseRefreshAccessTokenResponse parses an HTTP response from a RefreshAccessTokenWithResponse call
func (RefreshAccessTokenResponse) ContentType ¶
func (r RefreshAccessTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RefreshAccessTokenResponse) GetBody ¶
func (r RefreshAccessTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RefreshAccessTokenResponse) GetJSON200 ¶
func (r RefreshAccessTokenResponse) GetJSON200() *TokenResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RefreshAccessTokenResponse) GetJSON400 ¶
func (r RefreshAccessTokenResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RefreshAccessTokenResponse) GetJSON401 ¶
func (r RefreshAccessTokenResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RefreshAccessTokenResponse) GetJSON429 ¶
func (r RefreshAccessTokenResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RefreshAccessTokenResponse) Status ¶
func (r RefreshAccessTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RefreshAccessTokenResponse) StatusCode ¶
func (r RefreshAccessTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `json:"refresh_token"`
}
RefreshTokenRequest defines model for RefreshTokenRequest.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RevokeAdminAuthSessionResponse ¶
type RevokeAdminAuthSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseRevokeAdminAuthSessionResponse ¶
func ParseRevokeAdminAuthSessionResponse(rsp *http.Response) (*RevokeAdminAuthSessionResponse, error)
ParseRevokeAdminAuthSessionResponse parses an HTTP response from a RevokeAdminAuthSessionWithResponse call
func (RevokeAdminAuthSessionResponse) ContentType ¶
func (r RevokeAdminAuthSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeAdminAuthSessionResponse) GetBody ¶
func (r RevokeAdminAuthSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeAdminAuthSessionResponse) GetJSON400 ¶
func (r RevokeAdminAuthSessionResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RevokeAdminAuthSessionResponse) GetJSON401 ¶
func (r RevokeAdminAuthSessionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RevokeAdminAuthSessionResponse) GetJSON403 ¶
func (r RevokeAdminAuthSessionResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (RevokeAdminAuthSessionResponse) Status ¶
func (r RevokeAdminAuthSessionResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeAdminAuthSessionResponse) StatusCode ¶
func (r RevokeAdminAuthSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeAllAdminAuthSessionsResponse ¶
type RevokeAllAdminAuthSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
}
func ParseRevokeAllAdminAuthSessionsResponse ¶
func ParseRevokeAllAdminAuthSessionsResponse(rsp *http.Response) (*RevokeAllAdminAuthSessionsResponse, error)
ParseRevokeAllAdminAuthSessionsResponse parses an HTTP response from a RevokeAllAdminAuthSessionsWithResponse call
func (RevokeAllAdminAuthSessionsResponse) ContentType ¶
func (r RevokeAllAdminAuthSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeAllAdminAuthSessionsResponse) GetBody ¶
func (r RevokeAllAdminAuthSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeAllAdminAuthSessionsResponse) GetJSON401 ¶
func (r RevokeAllAdminAuthSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RevokeAllAdminAuthSessionsResponse) GetJSON403 ¶
func (r RevokeAllAdminAuthSessionsResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (RevokeAllAdminAuthSessionsResponse) Status ¶
func (r RevokeAllAdminAuthSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeAllAdminAuthSessionsResponse) StatusCode ¶
func (r RevokeAllAdminAuthSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeOtherProfileSessionsResponse ¶
type RevokeOtherProfileSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
}
func ParseRevokeOtherProfileSessionsResponse ¶
func ParseRevokeOtherProfileSessionsResponse(rsp *http.Response) (*RevokeOtherProfileSessionsResponse, error)
ParseRevokeOtherProfileSessionsResponse parses an HTTP response from a RevokeOtherProfileSessionsWithResponse call
func (RevokeOtherProfileSessionsResponse) ContentType ¶
func (r RevokeOtherProfileSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeOtherProfileSessionsResponse) GetBody ¶
func (r RevokeOtherProfileSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeOtherProfileSessionsResponse) GetJSON401 ¶
func (r RevokeOtherProfileSessionsResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RevokeOtherProfileSessionsResponse) Status ¶
func (r RevokeOtherProfileSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeOtherProfileSessionsResponse) StatusCode ¶
func (r RevokeOtherProfileSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeProfileSessionResponse ¶
type RevokeProfileSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *TooManyRequests
}
func ParseRevokeProfileSessionResponse ¶
func ParseRevokeProfileSessionResponse(rsp *http.Response) (*RevokeProfileSessionResponse, error)
ParseRevokeProfileSessionResponse parses an HTTP response from a RevokeProfileSessionWithResponse call
func (RevokeProfileSessionResponse) ContentType ¶
func (r RevokeProfileSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeProfileSessionResponse) GetBody ¶
func (r RevokeProfileSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeProfileSessionResponse) GetJSON400 ¶
func (r RevokeProfileSessionResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RevokeProfileSessionResponse) GetJSON401 ¶
func (r RevokeProfileSessionResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RevokeProfileSessionResponse) GetJSON429 ¶
func (r RevokeProfileSessionResponse) GetJSON429() *TooManyRequests
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (RevokeProfileSessionResponse) Status ¶
func (r RevokeProfileSessionResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeProfileSessionResponse) StatusCode ¶
func (r RevokeProfileSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresInSeconds int32 `json:"expires_in_seconds"`
RefreshToken string `json:"refresh_token"`
// TokenType Example: Bearer
TokenType string `json:"token_type"`
}
TokenResponse defines model for TokenResponse.
type TooManyRequests ¶
type TooManyRequests = ErrorResponse
TooManyRequests defines model for TooManyRequests.
type UpdateGizmoJSONRequestBody ¶ added in v0.5.0
type UpdateGizmoJSONRequestBody = GizmoUpdate
UpdateGizmoJSONRequestBody defines body for UpdateGizmo for application/json ContentType.
type UpdateGizmoResponse ¶ added in v0.5.0
type UpdateGizmoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Gizmo
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *BadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *NotFound
}
func ParseUpdateGizmoResponse ¶ added in v0.5.0
func ParseUpdateGizmoResponse(rsp *http.Response) (*UpdateGizmoResponse, error)
ParseUpdateGizmoResponse parses an HTTP response from a UpdateGizmoWithResponse call
func (UpdateGizmoResponse) ContentType ¶ added in v0.5.0
func (r UpdateGizmoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateGizmoResponse) GetBody ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateGizmoResponse) GetJSON200 ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetJSON200() *Gizmo
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateGizmoResponse) GetJSON400 ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateGizmoResponse) GetJSON401 ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateGizmoResponse) GetJSON403 ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UpdateGizmoResponse) GetJSON404 ¶ added in v0.5.0
func (r UpdateGizmoResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateGizmoResponse) Status ¶ added in v0.5.0
func (r UpdateGizmoResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGizmoResponse) StatusCode ¶ added in v0.5.0
func (r UpdateGizmoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Vlan ¶
type Vlan struct {
Color VlanColor `json:"color"`
CreatedAt time.Time `json:"created_at"`
Description string `json:"description"`
Name string `json:"name"`
UpdatedAt time.Time `json:"updated_at"`
VlanId int32 `json:"vlan_id"`
}
Vlan defines model for Vlan.
type VlanColor ¶ added in v0.5.3
type VlanColor string
VlanColor defines model for VlanColor.
type VlanList ¶
type VlanList struct {
Items []Vlan `json:"items"`
}
VlanList defines model for VlanList.
type VlanPatch ¶
type VlanPatch struct {
Color *VlanColor `json:"color,omitempty"`
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
VlanId *int32 `json:"vlan_id,omitempty"`
}
VlanPatch defines model for VlanPatch.