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 NewResponseHttp401Error(apiError https.ApiError) error
- func NewResponseHttp403Error(apiError https.ApiError) error
- func NewResponseHttp404(apiError https.ApiError) error
- func NewResponseHttp429Error(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 ResponseHttp401Error
- type ResponseHttp403Error
- type ResponseHttp404
- type ResponseHttp429Error
- 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 NewResponseHttp401Error ¶ added in v0.2.38
NewResponseHttp401Error is a constructor for ResponseHttp401Error. It creates and returns a pointer to a new ResponseHttp401Error instance with the given statusCode and body.
func NewResponseHttp403Error ¶ added in v0.2.38
NewResponseHttp403Error is a constructor for ResponseHttp403Error. It creates and returns a pointer to a new ResponseHttp403Error 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 NewResponseHttp429Error ¶ added in v0.2.38
NewResponseHttp429Error is a constructor for ResponseHttp429Error. It creates and returns a pointer to a new ResponseHttp429Error 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.
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.
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.
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.
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 ResponseHttp401Error ¶ added in v0.2.38
ResponseHttp401Error is a custom error.
func (ResponseHttp401Error) Error ¶ added in v0.2.38
func (r ResponseHttp401Error) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp401Error.
func (ResponseHttp401Error) String ¶ added in v0.4.23
func (r ResponseHttp401Error) String() string
String implements the fmt.Stringer interface for ResponseHttp401Error, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp403Error ¶ added in v0.2.38
ResponseHttp403Error is a custom error.
func (ResponseHttp403Error) Error ¶ added in v0.2.38
func (r ResponseHttp403Error) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp403Error.
func (ResponseHttp403Error) String ¶ added in v0.4.23
func (r ResponseHttp403Error) String() string
String implements the fmt.Stringer interface for ResponseHttp403Error, providing a human-readable string representation useful for logging, debugging or displaying information.
type ResponseHttp404 ¶
ResponseHttp404 is a custom error.
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 ResponseHttp429Error ¶ added in v0.2.38
ResponseHttp429Error is a custom error.
func (ResponseHttp429Error) Error ¶ added in v0.2.38
func (r ResponseHttp429Error) Error() string
Error implements the Error method for the error interface. It returns a formatted error message for ResponseHttp429Error.
func (ResponseHttp429Error) String ¶ added in v0.4.23
func (r ResponseHttp429Error) String() string
String implements the fmt.Stringer interface for ResponseHttp429Error, 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.
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.
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.
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.