Documentation
¶
Overview ¶
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved
Index ¶
- func NewErrorDeleteFailed(apiError https.ApiError) error
- func NewResponseDetailString(apiError https.ApiError) error
- func NewResponseHttp400(apiError https.ApiError) error
- func NewResponseHttp400Webhook(apiError https.ApiError) error
- func NewResponseHttp401(apiError https.ApiError) error
- func NewResponseHttp403(apiError https.ApiError) error
- func NewResponseHttp404(apiError https.ApiError) error
- func NewResponseHttp429(apiError https.ApiError) error
- func NewResponseInventoryError(apiError https.ApiError) error
- func NewResponseLoginFailure(apiError https.ApiError) error
- func NewResponseSelfOauthLinkFailure(apiError https.ApiError) error
- type ErrorDeleteFailed
- type ResponseDetailString
- type ResponseHttp400
- type ResponseHttp400Webhook
- type ResponseHttp401
- type ResponseHttp403
- type ResponseHttp404
- type ResponseHttp429
- type ResponseInventoryError
- type ResponseLoginFailure
- type ResponseSelfOauthLinkFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorDeleteFailed ¶
NewErrorDeleteFailed is a constructor for ErrorDeleteFailed. It creates and returns a pointer to a new ErrorDeleteFailed instance with the given statusCode and body.
func NewResponseDetailString ¶
NewResponseDetailString is a constructor for ResponseDetailString. It creates and returns a pointer to a new ResponseDetailString instance with the given statusCode and body.
func NewResponseHttp400 ¶
NewResponseHttp400 is a constructor for ResponseHttp400. It creates and returns a pointer to a new ResponseHttp400 instance with the given statusCode and body.
func NewResponseHttp400Webhook ¶ added in v0.4.74
NewResponseHttp400Webhook is a constructor for ResponseHttp400Webhook. It creates and returns a pointer to a new ResponseHttp400Webhook instance with the given statusCode and body.
func NewResponseHttp401 ¶ added in v0.4.104
NewResponseHttp401 is a constructor for ResponseHttp401. It creates and returns a pointer to a new ResponseHttp401 instance with the given statusCode and body.
func NewResponseHttp403 ¶ added in v0.4.104
NewResponseHttp403 is a constructor for ResponseHttp403. It creates and returns a pointer to a new ResponseHttp403 instance with the given statusCode and body.
func NewResponseHttp404 ¶
NewResponseHttp404 is a constructor for ResponseHttp404. It creates and returns a pointer to a new ResponseHttp404 instance with the given statusCode and body.
func NewResponseHttp429 ¶ added in v0.4.104
NewResponseHttp429 is a constructor for ResponseHttp429. It creates and returns a pointer to a new ResponseHttp429 instance with the given statusCode and body.
func NewResponseInventoryError ¶ added in v0.3.9
NewResponseInventoryError is a constructor for ResponseInventoryError. It creates and returns a pointer to a new ResponseInventoryError instance with the given statusCode and body.
func NewResponseLoginFailure ¶
NewResponseLoginFailure is a constructor for ResponseLoginFailure. It creates and returns a pointer to a new ResponseLoginFailure instance with the given statusCode and body.
func NewResponseSelfOauthLinkFailure ¶
NewResponseSelfOauthLinkFailure is a constructor for ResponseSelfOauthLinkFailure. It creates and returns a pointer to a new ResponseSelfOauthLinkFailure instance with the given statusCode and body.
Types ¶
type ErrorDeleteFailed ¶
type ErrorDeleteFailed struct {
https.ApiError
Detail string `json:"detail"`
OrgId uuid.UUID `json:"org_id"`
}
ErrorDeleteFailed is a custom error. Error response returned when an organization delete request is blocked
func (ErrorDeleteFailed) Error ¶
func (e ErrorDeleteFailed) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ErrorDeleteFailed.
func (ErrorDeleteFailed) String ¶ added in v0.4.23
func (e ErrorDeleteFailed) String() string
String implements the fmt.Stringer interface for ErrorDeleteFailed, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseDetailString ¶
ResponseDetailString is a custom error. Response containing a human-readable detail message
func (ResponseDetailString) Error ¶
func (r ResponseDetailString) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseDetailString.
func (ResponseDetailString) String ¶ added in v0.4.23
func (r ResponseDetailString) String() string
String implements the fmt.Stringer interface for ResponseDetailString, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp400 ¶
ResponseHttp400 is a custom error. Standard HTTP 400 bad request error response
func (ResponseHttp400) Error ¶
func (r ResponseHttp400) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp400.
func (ResponseHttp400) String ¶ added in v0.4.23
func (r ResponseHttp400) String() string
String implements the fmt.Stringer interface for ResponseHttp400, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp400Webhook ¶ added in v0.4.74
type ResponseHttp400Webhook struct {
https.ApiError
Detail *string `json:"detail,omitempty"`
Reason *string `json:"reason,omitempty"`
}
ResponseHttp400Webhook is a custom error. Webhook-specific HTTP 400 bad request error response
func (ResponseHttp400Webhook) Error ¶ added in v0.4.74
func (r ResponseHttp400Webhook) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp400Webhook.
func (ResponseHttp400Webhook) String ¶ added in v0.4.74
func (r ResponseHttp400Webhook) String() string
String implements the fmt.Stringer interface for ResponseHttp400Webhook, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp401 ¶ added in v0.4.104
ResponseHttp401 is a custom error. Standard HTTP 401 authentication error response
func (ResponseHttp401) Error ¶ added in v0.4.104
func (r ResponseHttp401) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp401.
func (ResponseHttp401) String ¶ added in v0.4.104
func (r ResponseHttp401) String() string
String implements the fmt.Stringer interface for ResponseHttp401, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp403 ¶ added in v0.4.104
ResponseHttp403 is a custom error. Standard HTTP 403 permission error response
func (ResponseHttp403) Error ¶ added in v0.4.104
func (r ResponseHttp403) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp403.
func (ResponseHttp403) String ¶ added in v0.4.104
func (r ResponseHttp403) String() string
String implements the fmt.Stringer interface for ResponseHttp403, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp404 ¶
ResponseHttp404 is a custom error. Standard HTTP 404 not found error response
func (ResponseHttp404) Error ¶
func (r ResponseHttp404) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp404.
func (ResponseHttp404) String ¶ added in v0.4.23
func (r ResponseHttp404) String() string
String implements the fmt.Stringer interface for ResponseHttp404, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp429 ¶ added in v0.4.104
ResponseHttp429 is a custom error. Standard HTTP 429 rate limit error response
func (ResponseHttp429) Error ¶ added in v0.4.104
func (r ResponseHttp429) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp429.
func (ResponseHttp429) String ¶ added in v0.4.104
func (r ResponseHttp429) String() string
String implements the fmt.Stringer interface for ResponseHttp429, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseInventoryError ¶ added in v0.3.9
type ResponseInventoryError struct {
https.ApiError
Added []string `json:"added,omitempty"`
Duplicated []string `json:"duplicated,omitempty"`
MError []string `json:"error,omitempty"`
InventoryAdded []models.ResponseInventoryInventoryAddedItems `json:"inventory_added,omitempty"`
InventoryDuplicated []models.ResponseInventoryInventoryDuplicatedItems `json:"inventory_duplicated,omitempty"`
Reason []string `json:"reason,omitempty"`
}
ResponseInventoryError is a custom error. Result of adding device claim codes to organization inventory
func (ResponseInventoryError) Error ¶ added in v0.3.9
func (r ResponseInventoryError) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseInventoryError.
func (ResponseInventoryError) String ¶ added in v0.4.23
func (r ResponseInventoryError) String() string
String implements the fmt.Stringer interface for ResponseInventoryError, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseLoginFailure ¶
type ResponseLoginFailure struct {
https.ApiError
Detail string `json:"detail"`
ForwardUrl *string `json:"forward_url,omitempty"`
}
ResponseLoginFailure is a custom error. Login failure response returned when authentication cannot continue locally
func (ResponseLoginFailure) Error ¶
func (r ResponseLoginFailure) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseLoginFailure.
func (ResponseLoginFailure) String ¶ added in v0.4.23
func (r ResponseLoginFailure) String() string
String implements the fmt.Stringer interface for ResponseLoginFailure, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseSelfOauthLinkFailure ¶
type ResponseSelfOauthLinkFailure struct {
https.ApiError
MError string `json:"error"`
ErrorDescription string `json:"error_description"`
}
ResponseSelfOauthLinkFailure is a custom error. OAuth2 account-linking failure response
func (ResponseSelfOauthLinkFailure) Error ¶
func (r ResponseSelfOauthLinkFailure) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseSelfOauthLinkFailure.
func (ResponseSelfOauthLinkFailure) String ¶ added in v0.4.23
func (r ResponseSelfOauthLinkFailure) String() string
String implements the fmt.Stringer interface for ResponseSelfOauthLinkFailure, providing a human-readable string representation useful for logging, debugging or displaying information.