Documentation ¶
Overview ¶
Package helpers provides api errors helpers for the CloudAvenue Terraform Provider.
Package helpers provides auth helpers for the CloudAvenue Terraform Provider.
Package helpers provides configuration helpers for Terraform Provider.
Index ¶
Constants ¶
const (
// ForceNewDescription is the description for ForceNew.
ForceNewDescription = "Changes to this field will force a new resource to be created."
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type APIError struct { cloudavenue.ApiError // contains filtered or unexported fields }
APIError is an error returned by the CloudAvenue API.
func CheckAPIError ¶
CheckAPIError checks the HTTP response for errors and returns an APIError with statusCode and model is the error is a cloudavenue.GenericSwaggerError type or only the error if not.
func (*APIError) GetStatusCode ¶
GetStatusCode returns the HTTP status code.
func (*APIError) GetSummary ¶
GetSummary returns a summary of the error.
func (*APIError) GetTerraformDiagnostic ¶
func (e *APIError) GetTerraformDiagnostic() diag.Diagnostic
GetTerraformDiagnostic returns a Terraform Diagnostic for the error.
func (*APIError) IsNotFound ¶
IsNotFound returns true if the error is a 404 Not Found error.