Documentation ¶
Index ¶
- func ApproveApprovalPath(projectID uint, approvalRequestID string) string
- func BuildApprovePayload(approvalApproveBody string, approvalApproveProjectID string, ...) (*approval.ApprovePayload, error)
- func BuildDenyPayload(approvalDenyBody string, approvalDenyProjectID string, ...) (*approval.DenyPayload, error)
- func BuildIndexPayload(approvalIndexProjectID string, approvalIndexView string, ...) (*approval.IndexPayload, error)
- func BuildShowPayload(approvalShowProjectID string, approvalShowApprovalRequestID string, ...) (*approval.ShowPayload, error)
- func DecodeApproveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDenyResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeIndexResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DenyApprovalPath(projectID uint, approvalRequestID string) string
- func EncodeApproveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDenyRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeIndexRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeShowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func IndexApprovalPath(projectID uint) string
- func NewApproveBadGateway(body *ApproveBadGatewayResponseBody) *goa.ServiceError
- func NewApproveBadRequest(body *ApproveBadRequestResponseBody) *goa.ServiceError
- func NewApproveForbidden(body *ApproveForbiddenResponseBody) *goa.ServiceError
- func NewApproveInternalError(body *ApproveInternalErrorResponseBody) *goa.ServiceError
- func NewApproveNotFound(body *ApproveNotFoundResponseBody) *goa.ServiceError
- func NewApproveUnauthorized(body *ApproveUnauthorizedResponseBody) *goa.ServiceError
- func NewDenyBadGateway(body *DenyBadGatewayResponseBody) *goa.ServiceError
- func NewDenyBadRequest(body *DenyBadRequestResponseBody) *goa.ServiceError
- func NewDenyForbidden(body *DenyForbiddenResponseBody) *goa.ServiceError
- func NewDenyInternalError(body *DenyInternalErrorResponseBody) *goa.ServiceError
- func NewDenyNotFound(body *DenyNotFoundResponseBody) *goa.ServiceError
- func NewDenyUnauthorized(body *DenyUnauthorizedResponseBody) *goa.ServiceError
- func NewIndexApprovalRequestListNotModified(etag string) *approvalviews.ApprovalRequestListView
- func NewIndexApprovalRequestListOK(body *IndexOKResponseBody, etag string) *approvalviews.ApprovalRequestListView
- func NewIndexBadGateway(body *IndexBadGatewayResponseBody) *goa.ServiceError
- func NewIndexBadRequest(body *IndexBadRequestResponseBody) *goa.ServiceError
- func NewIndexForbidden(body *IndexForbiddenResponseBody) *goa.ServiceError
- func NewIndexInternalError(body *IndexInternalErrorResponseBody) *goa.ServiceError
- func NewIndexUnauthorized(body *IndexUnauthorizedResponseBody) *goa.ServiceError
- func NewShowApprovalRequestOK(body *ShowResponseBody) *approvalviews.ApprovalRequestView
- func NewShowBadGateway(body *ShowBadGatewayResponseBody) *goa.ServiceError
- func NewShowBadRequest(body *ShowBadRequestResponseBody) *goa.ServiceError
- func NewShowForbidden(body *ShowForbiddenResponseBody) *goa.ServiceError
- func NewShowInternalError(body *ShowInternalErrorResponseBody) *goa.ServiceError
- func NewShowNotFound(body *ShowNotFoundResponseBody) *goa.ServiceError
- func NewShowUnauthorized(body *ShowUnauthorizedResponseBody) *goa.ServiceError
- func ShowApprovalPath(projectID uint, approvalRequestID string) string
- func ValidateApprovalRequestCollectionResponseBody(body ApprovalRequestCollectionResponseBody) (err error)
- func ValidateApprovalRequestResponseBody(body *ApprovalRequestResponseBody) (err error)
- func ValidateApprovalSubject(body *ApprovalSubject) (err error)
- func ValidateApproveBadGatewayResponseBody(body *ApproveBadGatewayResponseBody) (err error)
- func ValidateApproveBadRequestResponseBody(body *ApproveBadRequestResponseBody) (err error)
- func ValidateApproveForbiddenResponseBody(body *ApproveForbiddenResponseBody) (err error)
- func ValidateApproveInternalErrorResponseBody(body *ApproveInternalErrorResponseBody) (err error)
- func ValidateApproveNotFoundResponseBody(body *ApproveNotFoundResponseBody) (err error)
- func ValidateApproveUnauthorizedResponseBody(body *ApproveUnauthorizedResponseBody) (err error)
- func ValidateConfigurationOptionCreateTypeRequestBody(body *ConfigurationOptionCreateTypeRequestBody) (err error)
- func ValidateConfigurationOptionResponseBody(body *ConfigurationOptionResponseBody) (err error)
- func ValidateDenyBadGatewayResponseBody(body *DenyBadGatewayResponseBody) (err error)
- func ValidateDenyBadRequestResponseBody(body *DenyBadRequestResponseBody) (err error)
- func ValidateDenyForbiddenResponseBody(body *DenyForbiddenResponseBody) (err error)
- func ValidateDenyInternalErrorResponseBody(body *DenyInternalErrorResponseBody) (err error)
- func ValidateDenyNotFoundResponseBody(body *DenyNotFoundResponseBody) (err error)
- func ValidateDenyUnauthorizedResponseBody(body *DenyUnauthorizedResponseBody) (err error)
- func ValidateIndexBadGatewayResponseBody(body *IndexBadGatewayResponseBody) (err error)
- func ValidateIndexBadRequestResponseBody(body *IndexBadRequestResponseBody) (err error)
- func ValidateIndexForbiddenResponseBody(body *IndexForbiddenResponseBody) (err error)
- func ValidateIndexInternalErrorResponseBody(body *IndexInternalErrorResponseBody) (err error)
- func ValidateIndexUnauthorizedResponseBody(body *IndexUnauthorizedResponseBody) (err error)
- func ValidateParameterResponseBody(body *ParameterResponseBody) (err error)
- func ValidateRegexpResponseBody(body *RegexpResponseBody) (err error)
- func ValidateShowBadGatewayResponseBody(body *ShowBadGatewayResponseBody) (err error)
- func ValidateShowBadRequestResponseBody(body *ShowBadRequestResponseBody) (err error)
- func ValidateShowForbiddenResponseBody(body *ShowForbiddenResponseBody) (err error)
- func ValidateShowInternalErrorResponseBody(body *ShowInternalErrorResponseBody) (err error)
- func ValidateShowNotFoundResponseBody(body *ShowNotFoundResponseBody) (err error)
- func ValidateShowUnauthorizedResponseBody(body *ShowUnauthorizedResponseBody) (err error)
- func ValidateUserResponseBody(body *UserResponseBody) (err error)
- type ApprovalRequestCollectionResponseBody
- type ApprovalRequestResponseBody
- type ApprovalSubject
- type ApproveBadGatewayResponseBody
- type ApproveBadRequestResponseBody
- type ApproveForbiddenResponseBody
- type ApproveInternalErrorResponseBody
- type ApproveNotFoundResponseBody
- type ApproveRequestBody
- type ApproveUnauthorizedResponseBody
- type Client
- func (c *Client) Approve() goa.Endpoint
- func (c *Client) BuildApproveRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDenyRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildIndexRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildShowRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) Deny() goa.Endpoint
- func (c *Client) Index() goa.Endpoint
- func (c *Client) Show() goa.Endpoint
- type ConfigurationOptionCreateTypeRequestBody
- type ConfigurationOptionResponseBody
- type DenyBadGatewayResponseBody
- type DenyBadRequestResponseBody
- type DenyForbiddenResponseBody
- type DenyInternalErrorResponseBody
- type DenyNotFoundResponseBody
- type DenyRequestBody
- type DenyUnauthorizedResponseBody
- type IndexBadGatewayResponseBody
- type IndexBadRequestResponseBody
- type IndexForbiddenResponseBody
- type IndexInternalErrorResponseBody
- type IndexOKResponseBody
- type IndexUnauthorizedResponseBody
- type ParameterResponseBody
- type RegexpResponseBody
- type ShowBadGatewayResponseBody
- type ShowBadRequestResponseBody
- type ShowForbiddenResponseBody
- type ShowInternalErrorResponseBody
- type ShowNotFoundResponseBody
- type ShowResponseBody
- type ShowUnauthorizedResponseBody
- type UserResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveApprovalPath ¶
ApproveApprovalPath returns the URL path to the Approval service approve HTTP endpoint.
func BuildApprovePayload ¶
func BuildApprovePayload(approvalApproveBody string, approvalApproveProjectID string, approvalApproveApprovalRequestID string, approvalApproveAPIVersion string, approvalApproveToken string) (*approval.ApprovePayload, error)
BuildApprovePayload builds the payload for the Approval approve endpoint from CLI flags.
func BuildDenyPayload ¶
func BuildDenyPayload(approvalDenyBody string, approvalDenyProjectID string, approvalDenyApprovalRequestID string, approvalDenyAPIVersion string, approvalDenyToken string) (*approval.DenyPayload, error)
BuildDenyPayload builds the payload for the Approval deny endpoint from CLI flags.
func BuildIndexPayload ¶
func BuildIndexPayload(approvalIndexProjectID string, approvalIndexView string, approvalIndexID string, approvalIndexSubjectKind string, approvalIndexSubjectHref string, approvalIndexStatus string, approvalIndexAPIVersion string, approvalIndexEtag string, approvalIndexToken string) (*approval.IndexPayload, error)
BuildIndexPayload builds the payload for the Approval index endpoint from CLI flags.
func BuildShowPayload ¶
func BuildShowPayload(approvalShowProjectID string, approvalShowApprovalRequestID string, approvalShowView string, approvalShowAPIVersion string, approvalShowToken string) (*approval.ShowPayload, error)
BuildShowPayload builds the payload for the Approval show endpoint from CLI flags.
func DecodeApproveResponse ¶
func DecodeApproveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeApproveResponse returns a decoder for responses returned by the Approval approve endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeApproveResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "bad_gateway" (type *goa.ServiceError): http.StatusBadGateway
- "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func DecodeDenyResponse ¶
func DecodeDenyResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDenyResponse returns a decoder for responses returned by the Approval deny endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDenyResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "bad_gateway" (type *goa.ServiceError): http.StatusBadGateway
- "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func DecodeIndexResponse ¶
func DecodeIndexResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeIndexResponse returns a decoder for responses returned by the Approval index endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeIndexResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "bad_gateway" (type *goa.ServiceError): http.StatusBadGateway
- "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func DecodeShowResponse ¶
func DecodeShowResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeShowResponse returns a decoder for responses returned by the Approval show endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowResponse may return the following errors:
- "not_found" (type *goa.ServiceError): http.StatusNotFound
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "bad_request" (type *goa.ServiceError): http.StatusBadRequest
- "bad_gateway" (type *goa.ServiceError): http.StatusBadGateway
- "internal_error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func DenyApprovalPath ¶
DenyApprovalPath returns the URL path to the Approval service deny HTTP endpoint.
func EncodeApproveRequest ¶
func EncodeApproveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeApproveRequest returns an encoder for requests sent to the Approval approve server.
func EncodeDenyRequest ¶
func EncodeDenyRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDenyRequest returns an encoder for requests sent to the Approval deny server.
func EncodeIndexRequest ¶
func EncodeIndexRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeIndexRequest returns an encoder for requests sent to the Approval index server.
func EncodeShowRequest ¶
func EncodeShowRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeShowRequest returns an encoder for requests sent to the Approval show server.
func IndexApprovalPath ¶
IndexApprovalPath returns the URL path to the Approval service index HTTP endpoint.
func NewApproveBadGateway ¶
func NewApproveBadGateway(body *ApproveBadGatewayResponseBody) *goa.ServiceError
NewApproveBadGateway builds a Approval service approve endpoint bad_gateway error.
func NewApproveBadRequest ¶
func NewApproveBadRequest(body *ApproveBadRequestResponseBody) *goa.ServiceError
NewApproveBadRequest builds a Approval service approve endpoint bad_request error.
func NewApproveForbidden ¶
func NewApproveForbidden(body *ApproveForbiddenResponseBody) *goa.ServiceError
NewApproveForbidden builds a Approval service approve endpoint forbidden error.
func NewApproveInternalError ¶
func NewApproveInternalError(body *ApproveInternalErrorResponseBody) *goa.ServiceError
NewApproveInternalError builds a Approval service approve endpoint internal_error error.
func NewApproveNotFound ¶
func NewApproveNotFound(body *ApproveNotFoundResponseBody) *goa.ServiceError
NewApproveNotFound builds a Approval service approve endpoint not_found error.
func NewApproveUnauthorized ¶
func NewApproveUnauthorized(body *ApproveUnauthorizedResponseBody) *goa.ServiceError
NewApproveUnauthorized builds a Approval service approve endpoint unauthorized error.
func NewDenyBadGateway ¶
func NewDenyBadGateway(body *DenyBadGatewayResponseBody) *goa.ServiceError
NewDenyBadGateway builds a Approval service deny endpoint bad_gateway error.
func NewDenyBadRequest ¶
func NewDenyBadRequest(body *DenyBadRequestResponseBody) *goa.ServiceError
NewDenyBadRequest builds a Approval service deny endpoint bad_request error.
func NewDenyForbidden ¶
func NewDenyForbidden(body *DenyForbiddenResponseBody) *goa.ServiceError
NewDenyForbidden builds a Approval service deny endpoint forbidden error.
func NewDenyInternalError ¶
func NewDenyInternalError(body *DenyInternalErrorResponseBody) *goa.ServiceError
NewDenyInternalError builds a Approval service deny endpoint internal_error error.
func NewDenyNotFound ¶
func NewDenyNotFound(body *DenyNotFoundResponseBody) *goa.ServiceError
NewDenyNotFound builds a Approval service deny endpoint not_found error.
func NewDenyUnauthorized ¶
func NewDenyUnauthorized(body *DenyUnauthorizedResponseBody) *goa.ServiceError
NewDenyUnauthorized builds a Approval service deny endpoint unauthorized error.
func NewIndexApprovalRequestListNotModified ¶
func NewIndexApprovalRequestListNotModified(etag string) *approvalviews.ApprovalRequestListView
NewIndexApprovalRequestListNotModified builds a "Approval" service "index" endpoint result from a HTTP "NotModified" response.
func NewIndexApprovalRequestListOK ¶
func NewIndexApprovalRequestListOK(body *IndexOKResponseBody, etag string) *approvalviews.ApprovalRequestListView
NewIndexApprovalRequestListOK builds a "Approval" service "index" endpoint result from a HTTP "OK" response.
func NewIndexBadGateway ¶
func NewIndexBadGateway(body *IndexBadGatewayResponseBody) *goa.ServiceError
NewIndexBadGateway builds a Approval service index endpoint bad_gateway error.
func NewIndexBadRequest ¶
func NewIndexBadRequest(body *IndexBadRequestResponseBody) *goa.ServiceError
NewIndexBadRequest builds a Approval service index endpoint bad_request error.
func NewIndexForbidden ¶
func NewIndexForbidden(body *IndexForbiddenResponseBody) *goa.ServiceError
NewIndexForbidden builds a Approval service index endpoint forbidden error.
func NewIndexInternalError ¶
func NewIndexInternalError(body *IndexInternalErrorResponseBody) *goa.ServiceError
NewIndexInternalError builds a Approval service index endpoint internal_error error.
func NewIndexUnauthorized ¶
func NewIndexUnauthorized(body *IndexUnauthorizedResponseBody) *goa.ServiceError
NewIndexUnauthorized builds a Approval service index endpoint unauthorized error.
func NewShowApprovalRequestOK ¶
func NewShowApprovalRequestOK(body *ShowResponseBody) *approvalviews.ApprovalRequestView
NewShowApprovalRequestOK builds a "Approval" service "show" endpoint result from a HTTP "OK" response.
func NewShowBadGateway ¶
func NewShowBadGateway(body *ShowBadGatewayResponseBody) *goa.ServiceError
NewShowBadGateway builds a Approval service show endpoint bad_gateway error.
func NewShowBadRequest ¶
func NewShowBadRequest(body *ShowBadRequestResponseBody) *goa.ServiceError
NewShowBadRequest builds a Approval service show endpoint bad_request error.
func NewShowForbidden ¶
func NewShowForbidden(body *ShowForbiddenResponseBody) *goa.ServiceError
NewShowForbidden builds a Approval service show endpoint forbidden error.
func NewShowInternalError ¶
func NewShowInternalError(body *ShowInternalErrorResponseBody) *goa.ServiceError
NewShowInternalError builds a Approval service show endpoint internal_error error.
func NewShowNotFound ¶
func NewShowNotFound(body *ShowNotFoundResponseBody) *goa.ServiceError
NewShowNotFound builds a Approval service show endpoint not_found error.
func NewShowUnauthorized ¶
func NewShowUnauthorized(body *ShowUnauthorizedResponseBody) *goa.ServiceError
NewShowUnauthorized builds a Approval service show endpoint unauthorized error.
func ShowApprovalPath ¶
ShowApprovalPath returns the URL path to the Approval service show HTTP endpoint.
func ValidateApprovalRequestCollectionResponseBody ¶ added in v1.0.6
func ValidateApprovalRequestCollectionResponseBody(body ApprovalRequestCollectionResponseBody) (err error)
ValidateApprovalRequestCollectionResponseBody runs the validations defined on ApprovalRequestCollectionResponseBody
func ValidateApprovalRequestResponseBody ¶ added in v1.0.6
func ValidateApprovalRequestResponseBody(body *ApprovalRequestResponseBody) (err error)
ValidateApprovalRequestResponseBody runs the validations defined on ApprovalRequestResponseBody
func ValidateApprovalSubject ¶ added in v1.0.6
func ValidateApprovalSubject(body *ApprovalSubject) (err error)
ValidateApprovalSubject runs the validations defined on ApprovalSubject
func ValidateApproveBadGatewayResponseBody ¶ added in v1.0.6
func ValidateApproveBadGatewayResponseBody(body *ApproveBadGatewayResponseBody) (err error)
ValidateApproveBadGatewayResponseBody runs the validations defined on approve_bad_gateway_response_body
func ValidateApproveBadRequestResponseBody ¶ added in v1.0.6
func ValidateApproveBadRequestResponseBody(body *ApproveBadRequestResponseBody) (err error)
ValidateApproveBadRequestResponseBody runs the validations defined on approve_bad_request_response_body
func ValidateApproveForbiddenResponseBody ¶ added in v1.0.6
func ValidateApproveForbiddenResponseBody(body *ApproveForbiddenResponseBody) (err error)
ValidateApproveForbiddenResponseBody runs the validations defined on approve_forbidden_response_body
func ValidateApproveInternalErrorResponseBody ¶ added in v1.0.6
func ValidateApproveInternalErrorResponseBody(body *ApproveInternalErrorResponseBody) (err error)
ValidateApproveInternalErrorResponseBody runs the validations defined on approve_internal_error_response_body
func ValidateApproveNotFoundResponseBody ¶ added in v1.0.6
func ValidateApproveNotFoundResponseBody(body *ApproveNotFoundResponseBody) (err error)
ValidateApproveNotFoundResponseBody runs the validations defined on approve_not_found_response_body
func ValidateApproveUnauthorizedResponseBody ¶ added in v1.0.6
func ValidateApproveUnauthorizedResponseBody(body *ApproveUnauthorizedResponseBody) (err error)
ValidateApproveUnauthorizedResponseBody runs the validations defined on approve_unauthorized_response_body
func ValidateConfigurationOptionCreateTypeRequestBody ¶ added in v1.0.6
func ValidateConfigurationOptionCreateTypeRequestBody(body *ConfigurationOptionCreateTypeRequestBody) (err error)
ValidateConfigurationOptionCreateTypeRequestBody runs the validations defined on ConfigurationOptionCreateTypeRequestBody
func ValidateConfigurationOptionResponseBody ¶ added in v1.0.6
func ValidateConfigurationOptionResponseBody(body *ConfigurationOptionResponseBody) (err error)
ValidateConfigurationOptionResponseBody runs the validations defined on ConfigurationOptionResponseBody
func ValidateDenyBadGatewayResponseBody ¶ added in v1.0.6
func ValidateDenyBadGatewayResponseBody(body *DenyBadGatewayResponseBody) (err error)
ValidateDenyBadGatewayResponseBody runs the validations defined on deny_bad_gateway_response_body
func ValidateDenyBadRequestResponseBody ¶ added in v1.0.6
func ValidateDenyBadRequestResponseBody(body *DenyBadRequestResponseBody) (err error)
ValidateDenyBadRequestResponseBody runs the validations defined on deny_bad_request_response_body
func ValidateDenyForbiddenResponseBody ¶ added in v1.0.6
func ValidateDenyForbiddenResponseBody(body *DenyForbiddenResponseBody) (err error)
ValidateDenyForbiddenResponseBody runs the validations defined on deny_forbidden_response_body
func ValidateDenyInternalErrorResponseBody ¶ added in v1.0.6
func ValidateDenyInternalErrorResponseBody(body *DenyInternalErrorResponseBody) (err error)
ValidateDenyInternalErrorResponseBody runs the validations defined on deny_internal_error_response_body
func ValidateDenyNotFoundResponseBody ¶ added in v1.0.6
func ValidateDenyNotFoundResponseBody(body *DenyNotFoundResponseBody) (err error)
ValidateDenyNotFoundResponseBody runs the validations defined on deny_not_found_response_body
func ValidateDenyUnauthorizedResponseBody ¶ added in v1.0.6
func ValidateDenyUnauthorizedResponseBody(body *DenyUnauthorizedResponseBody) (err error)
ValidateDenyUnauthorizedResponseBody runs the validations defined on deny_unauthorized_response_body
func ValidateIndexBadGatewayResponseBody ¶ added in v1.0.6
func ValidateIndexBadGatewayResponseBody(body *IndexBadGatewayResponseBody) (err error)
ValidateIndexBadGatewayResponseBody runs the validations defined on index_bad_gateway_response_body
func ValidateIndexBadRequestResponseBody ¶ added in v1.0.6
func ValidateIndexBadRequestResponseBody(body *IndexBadRequestResponseBody) (err error)
ValidateIndexBadRequestResponseBody runs the validations defined on index_bad_request_response_body
func ValidateIndexForbiddenResponseBody ¶ added in v1.0.6
func ValidateIndexForbiddenResponseBody(body *IndexForbiddenResponseBody) (err error)
ValidateIndexForbiddenResponseBody runs the validations defined on index_forbidden_response_body
func ValidateIndexInternalErrorResponseBody ¶ added in v1.0.6
func ValidateIndexInternalErrorResponseBody(body *IndexInternalErrorResponseBody) (err error)
ValidateIndexInternalErrorResponseBody runs the validations defined on index_internal_error_response_body
func ValidateIndexUnauthorizedResponseBody ¶ added in v1.0.6
func ValidateIndexUnauthorizedResponseBody(body *IndexUnauthorizedResponseBody) (err error)
ValidateIndexUnauthorizedResponseBody runs the validations defined on index_unauthorized_response_body
func ValidateParameterResponseBody ¶ added in v1.0.6
func ValidateParameterResponseBody(body *ParameterResponseBody) (err error)
ValidateParameterResponseBody runs the validations defined on ParameterResponseBody
func ValidateRegexpResponseBody ¶ added in v1.0.6
func ValidateRegexpResponseBody(body *RegexpResponseBody) (err error)
ValidateRegexpResponseBody runs the validations defined on RegexpResponseBody
func ValidateShowBadGatewayResponseBody ¶ added in v1.0.6
func ValidateShowBadGatewayResponseBody(body *ShowBadGatewayResponseBody) (err error)
ValidateShowBadGatewayResponseBody runs the validations defined on show_bad_gateway_response_body
func ValidateShowBadRequestResponseBody ¶ added in v1.0.6
func ValidateShowBadRequestResponseBody(body *ShowBadRequestResponseBody) (err error)
ValidateShowBadRequestResponseBody runs the validations defined on show_bad_request_response_body
func ValidateShowForbiddenResponseBody ¶ added in v1.0.6
func ValidateShowForbiddenResponseBody(body *ShowForbiddenResponseBody) (err error)
ValidateShowForbiddenResponseBody runs the validations defined on show_forbidden_response_body
func ValidateShowInternalErrorResponseBody ¶ added in v1.0.6
func ValidateShowInternalErrorResponseBody(body *ShowInternalErrorResponseBody) (err error)
ValidateShowInternalErrorResponseBody runs the validations defined on show_internal_error_response_body
func ValidateShowNotFoundResponseBody ¶ added in v1.0.6
func ValidateShowNotFoundResponseBody(body *ShowNotFoundResponseBody) (err error)
ValidateShowNotFoundResponseBody runs the validations defined on show_not_found_response_body
func ValidateShowUnauthorizedResponseBody ¶ added in v1.0.6
func ValidateShowUnauthorizedResponseBody(body *ShowUnauthorizedResponseBody) (err error)
ValidateShowUnauthorizedResponseBody runs the validations defined on show_unauthorized_response_body
func ValidateUserResponseBody ¶ added in v1.0.6
func ValidateUserResponseBody(body *UserResponseBody) (err error)
ValidateUserResponseBody runs the validations defined on UserResponseBody
Types ¶
type ApprovalRequestCollectionResponseBody ¶
type ApprovalRequestCollectionResponseBody []*ApprovalRequestResponseBody
ApprovalRequestCollectionResponseBody is used to define fields on response body types.
type ApprovalRequestResponseBody ¶
type ApprovalRequestResponseBody struct { // id identifies an approval request by ID. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // project_id is the ID of the project where this approval request is created. ProjectID *uint `form:"project_id,omitempty" json:"project_id,omitempty" xml:"project_id,omitempty"` // href is the href of the approval request Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"` // label is a short title for this approval request Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"` // description describes the details for this approval request. Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // subject is the subject of the approval. Subject *ApprovalSubject `form:"subject,omitempty" json:"subject,omitempty" xml:"subject,omitempty"` // created_at is the approval request creation timestamp in RFC3339 format. CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` // updated_at is the last update timestamp in RFC3339 format. UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"` // parameters is a list of parameters required for approval request. Parameters map[string]*ParameterResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"` // status is the status of this approval request. Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // options lists the configuration options used to parameterize the approval // request. Options []*ConfigurationOptionResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"` // approved_by is the RightScale user that approved this approval request. ApprovedBy *UserResponseBody `form:"approved_by,omitempty" json:"approved_by,omitempty" xml:"approved_by,omitempty"` // approved_at is the approval timestamp in RFC3339 format. ApprovedAt *string `form:"approved_at,omitempty" json:"approved_at,omitempty" xml:"approved_at,omitempty"` // denial_comment is a comment that explains the reason for denial, if relevant. DenialComment *string `form:"denial_comment,omitempty" json:"denial_comment,omitempty" xml:"denial_comment,omitempty"` // denied_by is the RightScale user that denied this approval request. DeniedBy *UserResponseBody `form:"denied_by,omitempty" json:"denied_by,omitempty" xml:"denied_by,omitempty"` // denied_at is the denial timestamp in RFC3339 format. DeniedAt *string `form:"denied_at,omitempty" json:"denied_at,omitempty" xml:"denied_at,omitempty"` // kind is "gov#approval_request". Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"` }
ApprovalRequestResponseBody is used to define fields on response body types.
type ApprovalSubject ¶ added in v1.0.6
type ApprovalSubject struct { // kind is the kind of subject Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"` // href is the href of the subject. Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"` }
ApprovalSubject is used to define fields on response body types.
type ApproveBadGatewayResponseBody ¶
type ApproveBadGatewayResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ApproveBadGatewayResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "bad_gateway" error.
type ApproveBadRequestResponseBody ¶
type ApproveBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ApproveBadRequestResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "bad_request" error.
type ApproveForbiddenResponseBody ¶
type ApproveForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ApproveForbiddenResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "forbidden" error.
type ApproveInternalErrorResponseBody ¶
type ApproveInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ApproveInternalErrorResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "internal_error" error.
type ApproveNotFoundResponseBody ¶
type ApproveNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ApproveNotFoundResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "not_found" error.
type ApproveRequestBody ¶
type ApproveRequestBody struct { // options lists the configuration options used to parameterize the approval. Options []*ConfigurationOptionCreateTypeRequestBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"` }
ApproveRequestBody is the type of the "Approval" service "approve" endpoint HTTP request body.
func NewApproveRequestBody ¶
func NewApproveRequestBody(p *approval.ApprovePayload) *ApproveRequestBody
NewApproveRequestBody builds the HTTP request body from the payload of the "approve" endpoint of the "Approval" service.
type ApproveUnauthorizedResponseBody ¶
type ApproveUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
ApproveUnauthorizedResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "unauthorized" error.
type Client ¶
type Client struct { // Show Doer is the HTTP client used to make requests to the show endpoint. ShowDoer goahttp.Doer // Index Doer is the HTTP client used to make requests to the index endpoint. IndexDoer goahttp.Doer // Approve Doer is the HTTP client used to make requests to the approve // endpoint. ApproveDoer goahttp.Doer // Deny Doer is the HTTP client used to make requests to the deny endpoint. DenyDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the Approval service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the Approval service servers.
func (*Client) Approve ¶
Approve returns an endpoint that makes HTTP requests to the Approval service approve server.
func (*Client) BuildApproveRequest ¶
BuildApproveRequest instantiates a HTTP request object with method and path set to call the "Approval" service "approve" endpoint
func (*Client) BuildDenyRequest ¶
BuildDenyRequest instantiates a HTTP request object with method and path set to call the "Approval" service "deny" endpoint
func (*Client) BuildIndexRequest ¶
BuildIndexRequest instantiates a HTTP request object with method and path set to call the "Approval" service "index" endpoint
func (*Client) BuildShowRequest ¶
BuildShowRequest instantiates a HTTP request object with method and path set to call the "Approval" service "show" endpoint
func (*Client) Deny ¶
Deny returns an endpoint that makes HTTP requests to the Approval service deny server.
type ConfigurationOptionCreateTypeRequestBody ¶
type ConfigurationOptionCreateTypeRequestBody struct { // name of option Name string `form:"name" json:"name" xml:"name"` // value of option Value interface{} `form:"value" json:"value" xml:"value"` }
ConfigurationOptionCreateTypeRequestBody is used to define fields on request body types.
type ConfigurationOptionResponseBody ¶
type ConfigurationOptionResponseBody struct { // name of option Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // label of option Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"` // type of option Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"` // value of option Value interface{} `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"` // no_echo determines whether the value of the configuration option should be // hidden in UIs and API responses. NoEcho *bool `form:"no_echo,omitempty" json:"no_echo,omitempty" xml:"no_echo,omitempty"` }
ConfigurationOptionResponseBody is used to define fields on response body types.
type DenyBadGatewayResponseBody ¶
type DenyBadGatewayResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DenyBadGatewayResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "bad_gateway" error.
type DenyBadRequestResponseBody ¶
type DenyBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DenyBadRequestResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "bad_request" error.
type DenyForbiddenResponseBody ¶
type DenyForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DenyForbiddenResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "forbidden" error.
type DenyInternalErrorResponseBody ¶
type DenyInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DenyInternalErrorResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "internal_error" error.
type DenyNotFoundResponseBody ¶
type DenyNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DenyNotFoundResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "not_found" error.
type DenyRequestBody ¶
type DenyRequestBody struct { // A comment that explains the reason for denial Comment *string `form:"comment,omitempty" json:"comment,omitempty" xml:"comment,omitempty"` }
DenyRequestBody is the type of the "Approval" service "deny" endpoint HTTP request body.
func NewDenyRequestBody ¶
func NewDenyRequestBody(p *approval.DenyPayload) *DenyRequestBody
NewDenyRequestBody builds the HTTP request body from the payload of the "deny" endpoint of the "Approval" service.
type DenyUnauthorizedResponseBody ¶
type DenyUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DenyUnauthorizedResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "unauthorized" error.
type IndexBadGatewayResponseBody ¶
type IndexBadGatewayResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
IndexBadGatewayResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "bad_gateway" error.
type IndexBadRequestResponseBody ¶
type IndexBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
IndexBadRequestResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "bad_request" error.
type IndexForbiddenResponseBody ¶
type IndexForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
IndexForbiddenResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "forbidden" error.
type IndexInternalErrorResponseBody ¶
type IndexInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
IndexInternalErrorResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "internal_error" error.
type IndexOKResponseBody ¶
type IndexOKResponseBody struct { // count is the number of approval requests in the list Count *uint `form:"count,omitempty" json:"count,omitempty" xml:"count,omitempty"` // items is the array of approval requests. Items ApprovalRequestCollectionResponseBody `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"` // not_modified is a flag used internally that indicates how to encode the HTTP // response (i.e. 200 or 304). NotModified *string `form:"not_modified,omitempty" json:"not_modified,omitempty" xml:"not_modified,omitempty"` // kind is "gov#approval_request_list". Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"` }
IndexOKResponseBody is the type of the "Approval" service "index" endpoint HTTP response body.
type IndexUnauthorizedResponseBody ¶
type IndexUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
IndexUnauthorizedResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "unauthorized" error.
type ParameterResponseBody ¶
type ParameterResponseBody struct { // Name of the parameter Name *string `json:"name"` // Type of the parameter Type *string `json:"type"` // Label to show in the UI Label *string `json:"label"` // The index of this parameter in the list Index *uint `json:"index"` // The category used to group parameters Category *string `json:"category"` // Description of the parameter Description *string `json:"description"` // The default value for the parameter Default interface{} `json:"default"` // no_echo determines whether the value of the parameter should be hidden in // UIs and API responses. NoEcho *bool `json:"no_echo"` // List of values allowed for this parameter AllowedValues []interface{} `json:"allowed_values"` // The minimum length of a string parameter MinLength *uint `json:"min_length"` // The maximum length of a string parameter MaxLength *uint `json:"max_length"` // The minimum value of a number parmameter MinValue *float64 `json:"min_value"` // The maximum value of a number parameter MaxValue *float64 `json:"max_value"` // The regular expression pattern used to validate a string parameter AllowedPattern *RegexpResponseBody `json:"allowed_pattern"` // The description used for constraints ConstraintDescription *string `json:"constraint_description"` }
ParameterResponseBody is used to define fields on response body types.
type RegexpResponseBody ¶
type RegexpResponseBody struct { // Pattern is the regular expression pattern. Pattern *string `json:"pattern"` // Options are the regular expression options. Options i (case insensitve) and // m (match over newlines) supported. Options *string `json:"options"` }
RegexpResponseBody is used to define fields on response body types.
type ShowBadGatewayResponseBody ¶
type ShowBadGatewayResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ShowBadGatewayResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "bad_gateway" error.
type ShowBadRequestResponseBody ¶
type ShowBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ShowBadRequestResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "bad_request" error.
type ShowForbiddenResponseBody ¶
type ShowForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ShowForbiddenResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "forbidden" error.
type ShowInternalErrorResponseBody ¶
type ShowInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ShowInternalErrorResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "internal_error" error.
type ShowNotFoundResponseBody ¶
type ShowNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ShowNotFoundResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "not_found" error.
type ShowResponseBody ¶
type ShowResponseBody struct { // id identifies an approval request by ID. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // project_id is the ID of the project where this approval request is created. ProjectID *uint `form:"project_id,omitempty" json:"project_id,omitempty" xml:"project_id,omitempty"` // href is the href of the approval request Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"` // label is a short title for this approval request Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"` // description describes the details for this approval request. Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"` // subject is the subject of the approval. Subject *ApprovalSubject `form:"subject,omitempty" json:"subject,omitempty" xml:"subject,omitempty"` // created_at is the approval request creation timestamp in RFC3339 format. CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"` // updated_at is the last update timestamp in RFC3339 format. UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"` // parameters is a list of parameters required for approval request. Parameters map[string]*ParameterResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"` // status is the status of this approval request. Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // options lists the configuration options used to parameterize the approval // request. Options []*ConfigurationOptionResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"` // approved_by is the RightScale user that approved this approval request. ApprovedBy *UserResponseBody `form:"approved_by,omitempty" json:"approved_by,omitempty" xml:"approved_by,omitempty"` // approved_at is the approval timestamp in RFC3339 format. ApprovedAt *string `form:"approved_at,omitempty" json:"approved_at,omitempty" xml:"approved_at,omitempty"` // denial_comment is a comment that explains the reason for denial, if relevant. DenialComment *string `form:"denial_comment,omitempty" json:"denial_comment,omitempty" xml:"denial_comment,omitempty"` // denied_by is the RightScale user that denied this approval request. DeniedBy *UserResponseBody `form:"denied_by,omitempty" json:"denied_by,omitempty" xml:"denied_by,omitempty"` // denied_at is the denial timestamp in RFC3339 format. DeniedAt *string `form:"denied_at,omitempty" json:"denied_at,omitempty" xml:"denied_at,omitempty"` // kind is "gov#approval_request". Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"` }
ShowResponseBody is the type of the "Approval" service "show" endpoint HTTP response body.
type ShowUnauthorizedResponseBody ¶
type ShowUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
ShowUnauthorizedResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "unauthorized" error.
type UserResponseBody ¶
type UserResponseBody struct { // ID of user ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // email of user Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` // name of user, usually of the form 'First Last' Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` }
UserResponseBody is used to define fields on response body types.