client

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCreatePayload

func BuildCreatePayload(appliedPolicyCreateBody string, appliedPolicyCreateProjectID string, appliedPolicyCreateAPIVersion string, appliedPolicyCreateToken string) (*appliedpolicy.CreatePayload, error)

BuildCreatePayload builds the payload for the AppliedPolicy create endpoint from CLI flags.

func BuildDeletePayload

func BuildDeletePayload(appliedPolicyDeleteProjectID string, appliedPolicyDeletePolicyID string, appliedPolicyDeleteAPIVersion string, appliedPolicyDeleteToken string) (*appliedpolicy.DeletePayload, error)

BuildDeletePayload builds the payload for the AppliedPolicy delete endpoint from CLI flags.

func BuildEvaluatePayload

func BuildEvaluatePayload(appliedPolicyEvaluateProjectID string, appliedPolicyEvaluatePolicyID string, appliedPolicyEvaluateAPIVersion string, appliedPolicyEvaluateToken string) (*appliedpolicy.EvaluatePayload, error)

BuildEvaluatePayload builds the payload for the AppliedPolicy evaluate endpoint from CLI flags.

func BuildIndexPayload

func BuildIndexPayload(appliedPolicyIndexProjectID string, appliedPolicyIndexView string, appliedPolicyIndexName string, appliedPolicyIndexAPIVersion string, appliedPolicyIndexEtag string, appliedPolicyIndexToken string) (*appliedpolicy.IndexPayload, error)

BuildIndexPayload builds the payload for the AppliedPolicy index endpoint from CLI flags.

func BuildShowLogPayload

func BuildShowLogPayload(appliedPolicyShowLogProjectID string, appliedPolicyShowLogPolicyID string, appliedPolicyShowLogAPIVersion string, appliedPolicyShowLogEtag string, appliedPolicyShowLogToken string) (*appliedpolicy.ShowLogPayload, error)

BuildShowLogPayload builds the payload for the AppliedPolicy show_log endpoint from CLI flags.

func BuildShowPayload

func BuildShowPayload(appliedPolicyShowProjectID string, appliedPolicyShowPolicyID string, appliedPolicyShowView string, appliedPolicyShowAPIVersion string, appliedPolicyShowToken string) (*appliedpolicy.ShowPayload, error)

BuildShowPayload builds the payload for the AppliedPolicy show endpoint from CLI flags.

func BuildShowStatusPayload

func BuildShowStatusPayload(appliedPolicyShowStatusProjectID string, appliedPolicyShowStatusPolicyID string, appliedPolicyShowStatusAPIVersion string, appliedPolicyShowStatusToken string) (*appliedpolicy.ShowStatusPayload, error)

BuildShowStatusPayload builds the payload for the AppliedPolicy show_status endpoint from CLI flags.

func BuildUpdatePayload added in v1.2.0

func BuildUpdatePayload(appliedPolicyUpdateBody string, appliedPolicyUpdateProjectID string, appliedPolicyUpdatePolicyID string, appliedPolicyUpdateAPIVersion string, appliedPolicyUpdateToken string) (*appliedpolicy.UpdatePayload, error)

BuildUpdatePayload builds the payload for the AppliedPolicy update endpoint from CLI flags.

func CreateAppliedPolicyPath

func CreateAppliedPolicyPath(projectID uint) string

CreateAppliedPolicyPath returns the URL path to the AppliedPolicy service create HTTP endpoint.

func DecodeCreateResponse

func DecodeCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeCreateResponse returns a decoder for responses returned by the AppliedPolicy create endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateResponse may return the following errors:

  • "unprocessable_entity" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "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 DecodeDeleteResponse

func DecodeDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeDeleteResponse returns a decoder for responses returned by the AppliedPolicy delete endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteResponse 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 DecodeEvaluateResponse

func DecodeEvaluateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeEvaluateResponse returns a decoder for responses returned by the AppliedPolicy evaluate endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeEvaluateResponse 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 AppliedPolicy 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 DecodeShowLogResponse

func DecodeShowLogResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeShowLogResponse returns a decoder for responses returned by the AppliedPolicy show_log endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowLogResponse 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 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 AppliedPolicy 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 DecodeShowStatusResponse

func DecodeShowStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeShowStatusResponse returns a decoder for responses returned by the AppliedPolicy show_status endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeShowStatusResponse 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 DecodeUpdateResponse added in v1.2.0

func DecodeUpdateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeUpdateResponse returns a decoder for responses returned by the AppliedPolicy update endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateResponse 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 DeleteAppliedPolicyPath

func DeleteAppliedPolicyPath(projectID uint, policyID string) string

DeleteAppliedPolicyPath returns the URL path to the AppliedPolicy service delete HTTP endpoint.

func EncodeCreateRequest

func EncodeCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeCreateRequest returns an encoder for requests sent to the AppliedPolicy create server.

func EncodeDeleteRequest

func EncodeDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeDeleteRequest returns an encoder for requests sent to the AppliedPolicy delete server.

func EncodeEvaluateRequest

func EncodeEvaluateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeEvaluateRequest returns an encoder for requests sent to the AppliedPolicy evaluate 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 AppliedPolicy index server.

func EncodeShowLogRequest

func EncodeShowLogRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeShowLogRequest returns an encoder for requests sent to the AppliedPolicy show_log 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 AppliedPolicy show server.

func EncodeShowStatusRequest

func EncodeShowStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeShowStatusRequest returns an encoder for requests sent to the AppliedPolicy show_status server.

func EncodeUpdateRequest added in v1.2.0

func EncodeUpdateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeUpdateRequest returns an encoder for requests sent to the AppliedPolicy update server.

func EvaluateAppliedPolicyPath

func EvaluateAppliedPolicyPath(projectID uint, policyID string) string

EvaluateAppliedPolicyPath returns the URL path to the AppliedPolicy service evaluate HTTP endpoint.

func IndexAppliedPolicyPath

func IndexAppliedPolicyPath(projectID uint) string

IndexAppliedPolicyPath returns the URL path to the AppliedPolicy service index HTTP endpoint.

func NewCreateAppliedPolicyOK

func NewCreateAppliedPolicyOK(body *CreateResponseBody) *appliedpolicyviews.AppliedPolicyView

NewCreateAppliedPolicyOK builds a "AppliedPolicy" service "create" endpoint result from a HTTP "OK" response.

func NewCreateBadGateway

func NewCreateBadGateway(body *CreateBadGatewayResponseBody) *goa.ServiceError

NewCreateBadGateway builds a AppliedPolicy service create endpoint bad_gateway error.

func NewCreateBadRequest

func NewCreateBadRequest(body *CreateBadRequestResponseBody) *goa.ServiceError

NewCreateBadRequest builds a AppliedPolicy service create endpoint bad_request error.

func NewCreateForbidden

func NewCreateForbidden(body *CreateForbiddenResponseBody) *goa.ServiceError

NewCreateForbidden builds a AppliedPolicy service create endpoint forbidden error.

func NewCreateInternalError

func NewCreateInternalError(body *CreateInternalErrorResponseBody) *goa.ServiceError

NewCreateInternalError builds a AppliedPolicy service create endpoint internal_error error.

func NewCreateUnauthorized

func NewCreateUnauthorized(body *CreateUnauthorizedResponseBody) *goa.ServiceError

NewCreateUnauthorized builds a AppliedPolicy service create endpoint unauthorized error.

func NewCreateUnprocessableEntity

func NewCreateUnprocessableEntity(body *CreateUnprocessableEntityResponseBody) *goa.ServiceError

NewCreateUnprocessableEntity builds a AppliedPolicy service create endpoint unprocessable_entity error.

func NewDeleteBadGateway

func NewDeleteBadGateway(body *DeleteBadGatewayResponseBody) *goa.ServiceError

NewDeleteBadGateway builds a AppliedPolicy service delete endpoint bad_gateway error.

func NewDeleteBadRequest

func NewDeleteBadRequest(body *DeleteBadRequestResponseBody) *goa.ServiceError

NewDeleteBadRequest builds a AppliedPolicy service delete endpoint bad_request error.

func NewDeleteForbidden

func NewDeleteForbidden(body *DeleteForbiddenResponseBody) *goa.ServiceError

NewDeleteForbidden builds a AppliedPolicy service delete endpoint forbidden error.

func NewDeleteInternalError

func NewDeleteInternalError(body *DeleteInternalErrorResponseBody) *goa.ServiceError

NewDeleteInternalError builds a AppliedPolicy service delete endpoint internal_error error.

func NewDeleteNotFound

func NewDeleteNotFound(body *DeleteNotFoundResponseBody) *goa.ServiceError

NewDeleteNotFound builds a AppliedPolicy service delete endpoint not_found error.

func NewDeleteUnauthorized

func NewDeleteUnauthorized(body *DeleteUnauthorizedResponseBody) *goa.ServiceError

NewDeleteUnauthorized builds a AppliedPolicy service delete endpoint unauthorized error.

func NewEvaluateBadGateway

func NewEvaluateBadGateway(body *EvaluateBadGatewayResponseBody) *goa.ServiceError

NewEvaluateBadGateway builds a AppliedPolicy service evaluate endpoint bad_gateway error.

func NewEvaluateBadRequest

func NewEvaluateBadRequest(body *EvaluateBadRequestResponseBody) *goa.ServiceError

NewEvaluateBadRequest builds a AppliedPolicy service evaluate endpoint bad_request error.

func NewEvaluateForbidden

func NewEvaluateForbidden(body *EvaluateForbiddenResponseBody) *goa.ServiceError

NewEvaluateForbidden builds a AppliedPolicy service evaluate endpoint forbidden error.

func NewEvaluateInternalError

func NewEvaluateInternalError(body *EvaluateInternalErrorResponseBody) *goa.ServiceError

NewEvaluateInternalError builds a AppliedPolicy service evaluate endpoint internal_error error.

func NewEvaluateNotFound

func NewEvaluateNotFound(body *EvaluateNotFoundResponseBody) *goa.ServiceError

NewEvaluateNotFound builds a AppliedPolicy service evaluate endpoint not_found error.

func NewEvaluateUnauthorized

func NewEvaluateUnauthorized(body *EvaluateUnauthorizedResponseBody) *goa.ServiceError

NewEvaluateUnauthorized builds a AppliedPolicy service evaluate endpoint unauthorized error.

func NewIndexAppliedPolicyListNotModified

func NewIndexAppliedPolicyListNotModified(etag string) *appliedpolicyviews.AppliedPolicyListView

NewIndexAppliedPolicyListNotModified builds a "AppliedPolicy" service "index" endpoint result from a HTTP "NotModified" response.

func NewIndexAppliedPolicyListOK

func NewIndexAppliedPolicyListOK(body *IndexOKResponseBody, etag string) *appliedpolicyviews.AppliedPolicyListView

NewIndexAppliedPolicyListOK builds a "AppliedPolicy" service "index" endpoint result from a HTTP "OK" response.

func NewIndexBadGateway

func NewIndexBadGateway(body *IndexBadGatewayResponseBody) *goa.ServiceError

NewIndexBadGateway builds a AppliedPolicy service index endpoint bad_gateway error.

func NewIndexBadRequest

func NewIndexBadRequest(body *IndexBadRequestResponseBody) *goa.ServiceError

NewIndexBadRequest builds a AppliedPolicy service index endpoint bad_request error.

func NewIndexForbidden

func NewIndexForbidden(body *IndexForbiddenResponseBody) *goa.ServiceError

NewIndexForbidden builds a AppliedPolicy service index endpoint forbidden error.

func NewIndexInternalError

func NewIndexInternalError(body *IndexInternalErrorResponseBody) *goa.ServiceError

NewIndexInternalError builds a AppliedPolicy service index endpoint internal_error error.

func NewIndexUnauthorized

func NewIndexUnauthorized(body *IndexUnauthorizedResponseBody) *goa.ServiceError

NewIndexUnauthorized builds a AppliedPolicy service index endpoint unauthorized error.

func NewShowAppliedPolicyOK

func NewShowAppliedPolicyOK(body *ShowResponseBody) *appliedpolicyviews.AppliedPolicyView

NewShowAppliedPolicyOK builds a "AppliedPolicy" service "show" endpoint result from a HTTP "OK" response.

func NewShowBadGateway

func NewShowBadGateway(body *ShowBadGatewayResponseBody) *goa.ServiceError

NewShowBadGateway builds a AppliedPolicy service show endpoint bad_gateway error.

func NewShowBadRequest

func NewShowBadRequest(body *ShowBadRequestResponseBody) *goa.ServiceError

NewShowBadRequest builds a AppliedPolicy service show endpoint bad_request error.

func NewShowForbidden

func NewShowForbidden(body *ShowForbiddenResponseBody) *goa.ServiceError

NewShowForbidden builds a AppliedPolicy service show endpoint forbidden error.

func NewShowInternalError

func NewShowInternalError(body *ShowInternalErrorResponseBody) *goa.ServiceError

NewShowInternalError builds a AppliedPolicy service show endpoint internal_error error.

func NewShowLogAppliedPolicyLogOK

func NewShowLogAppliedPolicyLogOK(body string, etag *string, lastModified *string) *appliedpolicyviews.AppliedPolicyLogView

NewShowLogAppliedPolicyLogOK builds a "AppliedPolicy" service "show_log" endpoint result from a HTTP "OK" response.

func NewShowLogBadGateway

func NewShowLogBadGateway(body *ShowLogBadGatewayResponseBody) *goa.ServiceError

NewShowLogBadGateway builds a AppliedPolicy service show_log endpoint bad_gateway error.

func NewShowLogBadRequest

func NewShowLogBadRequest(body *ShowLogBadRequestResponseBody) *goa.ServiceError

NewShowLogBadRequest builds a AppliedPolicy service show_log endpoint bad_request error.

func NewShowLogForbidden

func NewShowLogForbidden(body *ShowLogForbiddenResponseBody) *goa.ServiceError

NewShowLogForbidden builds a AppliedPolicy service show_log endpoint forbidden error.

func NewShowLogInternalError

func NewShowLogInternalError(body *ShowLogInternalErrorResponseBody) *goa.ServiceError

NewShowLogInternalError builds a AppliedPolicy service show_log endpoint internal_error error.

func NewShowLogNotFound

func NewShowLogNotFound(body *ShowLogNotFoundResponseBody) *goa.ServiceError

NewShowLogNotFound builds a AppliedPolicy service show_log endpoint not_found error.

func NewShowLogUnauthorized

func NewShowLogUnauthorized(body *ShowLogUnauthorizedResponseBody) *goa.ServiceError

NewShowLogUnauthorized builds a AppliedPolicy service show_log endpoint unauthorized error.

func NewShowNotFound

func NewShowNotFound(body *ShowNotFoundResponseBody) *goa.ServiceError

NewShowNotFound builds a AppliedPolicy service show endpoint not_found error.

func NewShowStatusAppliedPolicyStatusOK

func NewShowStatusAppliedPolicyStatusOK(body *ShowStatusResponseBody) *appliedpolicyviews.AppliedPolicyStatusView

NewShowStatusAppliedPolicyStatusOK builds a "AppliedPolicy" service "show_status" endpoint result from a HTTP "OK" response.

func NewShowStatusBadGateway

func NewShowStatusBadGateway(body *ShowStatusBadGatewayResponseBody) *goa.ServiceError

NewShowStatusBadGateway builds a AppliedPolicy service show_status endpoint bad_gateway error.

func NewShowStatusBadRequest

func NewShowStatusBadRequest(body *ShowStatusBadRequestResponseBody) *goa.ServiceError

NewShowStatusBadRequest builds a AppliedPolicy service show_status endpoint bad_request error.

func NewShowStatusForbidden

func NewShowStatusForbidden(body *ShowStatusForbiddenResponseBody) *goa.ServiceError

NewShowStatusForbidden builds a AppliedPolicy service show_status endpoint forbidden error.

func NewShowStatusInternalError

func NewShowStatusInternalError(body *ShowStatusInternalErrorResponseBody) *goa.ServiceError

NewShowStatusInternalError builds a AppliedPolicy service show_status endpoint internal_error error.

func NewShowStatusNotFound

func NewShowStatusNotFound(body *ShowStatusNotFoundResponseBody) *goa.ServiceError

NewShowStatusNotFound builds a AppliedPolicy service show_status endpoint not_found error.

func NewShowStatusUnauthorized

func NewShowStatusUnauthorized(body *ShowStatusUnauthorizedResponseBody) *goa.ServiceError

NewShowStatusUnauthorized builds a AppliedPolicy service show_status endpoint unauthorized error.

func NewShowUnauthorized

func NewShowUnauthorized(body *ShowUnauthorizedResponseBody) *goa.ServiceError

NewShowUnauthorized builds a AppliedPolicy service show endpoint unauthorized error.

func NewUpdateBadGateway added in v1.2.0

func NewUpdateBadGateway(body *UpdateBadGatewayResponseBody) *goa.ServiceError

NewUpdateBadGateway builds a AppliedPolicy service update endpoint bad_gateway error.

func NewUpdateBadRequest added in v1.2.0

func NewUpdateBadRequest(body *UpdateBadRequestResponseBody) *goa.ServiceError

NewUpdateBadRequest builds a AppliedPolicy service update endpoint bad_request error.

func NewUpdateForbidden added in v1.2.0

func NewUpdateForbidden(body *UpdateForbiddenResponseBody) *goa.ServiceError

NewUpdateForbidden builds a AppliedPolicy service update endpoint forbidden error.

func NewUpdateInternalError added in v1.2.0

func NewUpdateInternalError(body *UpdateInternalErrorResponseBody) *goa.ServiceError

NewUpdateInternalError builds a AppliedPolicy service update endpoint internal_error error.

func NewUpdateNotFound added in v1.2.0

func NewUpdateNotFound(body *UpdateNotFoundResponseBody) *goa.ServiceError

NewUpdateNotFound builds a AppliedPolicy service update endpoint not_found error.

func NewUpdateUnauthorized added in v1.2.0

func NewUpdateUnauthorized(body *UpdateUnauthorizedResponseBody) *goa.ServiceError

NewUpdateUnauthorized builds a AppliedPolicy service update endpoint unauthorized error.

func ShowAppliedPolicyPath

func ShowAppliedPolicyPath(projectID uint, policyID string) string

ShowAppliedPolicyPath returns the URL path to the AppliedPolicy service show HTTP endpoint.

func ShowLogAppliedPolicyPath

func ShowLogAppliedPolicyPath(projectID uint, policyID string) string

ShowLogAppliedPolicyPath returns the URL path to the AppliedPolicy service show_log HTTP endpoint.

func ShowStatusAppliedPolicyPath

func ShowStatusAppliedPolicyPath(projectID uint, policyID string) string

ShowStatusAppliedPolicyPath returns the URL path to the AppliedPolicy service show_status HTTP endpoint.

func UpdateAppliedPolicyPath added in v1.2.0

func UpdateAppliedPolicyPath(projectID uint, policyID string) string

UpdateAppliedPolicyPath returns the URL path to the AppliedPolicy service update HTTP endpoint.

func ValidateAppliedPolicyCollectionResponseBody added in v1.0.6

func ValidateAppliedPolicyCollectionResponseBody(body AppliedPolicyCollectionResponseBody) (err error)

ValidateAppliedPolicyCollectionResponseBody runs the validations defined on AppliedPolicyCollectionResponseBody

func ValidateAppliedPolicyResponseBody added in v1.0.6

func ValidateAppliedPolicyResponseBody(body *AppliedPolicyResponseBody) (err error)

ValidateAppliedPolicyResponseBody runs the validations defined on AppliedPolicyResponseBody

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 ValidateCreateBadGatewayResponseBody added in v1.0.6

func ValidateCreateBadGatewayResponseBody(body *CreateBadGatewayResponseBody) (err error)

ValidateCreateBadGatewayResponseBody runs the validations defined on create_bad_gateway_response_body

func ValidateCreateBadRequestResponseBody added in v1.0.6

func ValidateCreateBadRequestResponseBody(body *CreateBadRequestResponseBody) (err error)

ValidateCreateBadRequestResponseBody runs the validations defined on create_bad_request_response_body

func ValidateCreateForbiddenResponseBody added in v1.0.6

func ValidateCreateForbiddenResponseBody(body *CreateForbiddenResponseBody) (err error)

ValidateCreateForbiddenResponseBody runs the validations defined on create_forbidden_response_body

func ValidateCreateInternalErrorResponseBody added in v1.0.6

func ValidateCreateInternalErrorResponseBody(body *CreateInternalErrorResponseBody) (err error)

ValidateCreateInternalErrorResponseBody runs the validations defined on create_internal_error_response_body

func ValidateCreateUnauthorizedResponseBody added in v1.0.6

func ValidateCreateUnauthorizedResponseBody(body *CreateUnauthorizedResponseBody) (err error)

ValidateCreateUnauthorizedResponseBody runs the validations defined on create_unauthorized_response_body

func ValidateCreateUnprocessableEntityResponseBody added in v1.0.6

func ValidateCreateUnprocessableEntityResponseBody(body *CreateUnprocessableEntityResponseBody) (err error)

ValidateCreateUnprocessableEntityResponseBody runs the validations defined on create_unprocessable_entity_response_body

func ValidateCredentialsResponseBody added in v1.0.6

func ValidateCredentialsResponseBody(body *CredentialsResponseBody) (err error)

ValidateCredentialsResponseBody runs the validations defined on CredentialsResponseBody

func ValidateCredentialsTagResponseBody added in v1.0.6

func ValidateCredentialsTagResponseBody(body *CredentialsTagResponseBody) (err error)

ValidateCredentialsTagResponseBody runs the validations defined on CredentialsTagResponseBody

func ValidateDeleteBadGatewayResponseBody added in v1.0.6

func ValidateDeleteBadGatewayResponseBody(body *DeleteBadGatewayResponseBody) (err error)

ValidateDeleteBadGatewayResponseBody runs the validations defined on delete_bad_gateway_response_body

func ValidateDeleteBadRequestResponseBody added in v1.0.6

func ValidateDeleteBadRequestResponseBody(body *DeleteBadRequestResponseBody) (err error)

ValidateDeleteBadRequestResponseBody runs the validations defined on delete_bad_request_response_body

func ValidateDeleteForbiddenResponseBody added in v1.0.6

func ValidateDeleteForbiddenResponseBody(body *DeleteForbiddenResponseBody) (err error)

ValidateDeleteForbiddenResponseBody runs the validations defined on delete_forbidden_response_body

func ValidateDeleteInternalErrorResponseBody added in v1.0.6

func ValidateDeleteInternalErrorResponseBody(body *DeleteInternalErrorResponseBody) (err error)

ValidateDeleteInternalErrorResponseBody runs the validations defined on delete_internal_error_response_body

func ValidateDeleteNotFoundResponseBody added in v1.0.6

func ValidateDeleteNotFoundResponseBody(body *DeleteNotFoundResponseBody) (err error)

ValidateDeleteNotFoundResponseBody runs the validations defined on delete_not_found_response_body

func ValidateDeleteUnauthorizedResponseBody added in v1.0.6

func ValidateDeleteUnauthorizedResponseBody(body *DeleteUnauthorizedResponseBody) (err error)

ValidateDeleteUnauthorizedResponseBody runs the validations defined on delete_unauthorized_response_body

func ValidateEvaluateBadGatewayResponseBody added in v1.0.6

func ValidateEvaluateBadGatewayResponseBody(body *EvaluateBadGatewayResponseBody) (err error)

ValidateEvaluateBadGatewayResponseBody runs the validations defined on evaluate_bad_gateway_response_body

func ValidateEvaluateBadRequestResponseBody added in v1.0.6

func ValidateEvaluateBadRequestResponseBody(body *EvaluateBadRequestResponseBody) (err error)

ValidateEvaluateBadRequestResponseBody runs the validations defined on evaluate_bad_request_response_body

func ValidateEvaluateForbiddenResponseBody added in v1.0.6

func ValidateEvaluateForbiddenResponseBody(body *EvaluateForbiddenResponseBody) (err error)

ValidateEvaluateForbiddenResponseBody runs the validations defined on evaluate_forbidden_response_body

func ValidateEvaluateInternalErrorResponseBody added in v1.0.6

func ValidateEvaluateInternalErrorResponseBody(body *EvaluateInternalErrorResponseBody) (err error)

ValidateEvaluateInternalErrorResponseBody runs the validations defined on evaluate_internal_error_response_body

func ValidateEvaluateNotFoundResponseBody added in v1.0.6

func ValidateEvaluateNotFoundResponseBody(body *EvaluateNotFoundResponseBody) (err error)

ValidateEvaluateNotFoundResponseBody runs the validations defined on evaluate_not_found_response_body

func ValidateEvaluateUnauthorizedResponseBody added in v1.0.6

func ValidateEvaluateUnauthorizedResponseBody(body *EvaluateUnauthorizedResponseBody) (err error)

ValidateEvaluateUnauthorizedResponseBody runs the validations defined on evaluate_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 ValidatePermissionResponseBody added in v1.0.6

func ValidatePermissionResponseBody(body *PermissionResponseBody) (err error)

ValidatePermissionResponseBody runs the validations defined on PermissionResponseBody

func ValidatePolicyTemplateResponseBody added in v1.0.6

func ValidatePolicyTemplateResponseBody(body *PolicyTemplateResponseBody) (err error)

ValidatePolicyTemplateResponseBody runs the validations defined on PolicyTemplateResponseBody

func ValidateProjectResponseBody added in v1.0.6

func ValidateProjectResponseBody(body *ProjectResponseBody) (err error)

ValidateProjectResponseBody runs the validations defined on ProjectResponseBody

func ValidatePublishedTemplateResponseBody added in v1.0.6

func ValidatePublishedTemplateResponseBody(body *PublishedTemplateResponseBody) (err error)

ValidatePublishedTemplateResponseBody runs the validations defined on PublishedTemplateResponseBody

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 ValidateShowLogBadGatewayResponseBody added in v1.0.6

func ValidateShowLogBadGatewayResponseBody(body *ShowLogBadGatewayResponseBody) (err error)

ValidateShowLogBadGatewayResponseBody runs the validations defined on show_log_bad_gateway_response_body

func ValidateShowLogBadRequestResponseBody added in v1.0.6

func ValidateShowLogBadRequestResponseBody(body *ShowLogBadRequestResponseBody) (err error)

ValidateShowLogBadRequestResponseBody runs the validations defined on show_log_bad_request_response_body

func ValidateShowLogForbiddenResponseBody added in v1.0.6

func ValidateShowLogForbiddenResponseBody(body *ShowLogForbiddenResponseBody) (err error)

ValidateShowLogForbiddenResponseBody runs the validations defined on show_log_forbidden_response_body

func ValidateShowLogInternalErrorResponseBody added in v1.0.6

func ValidateShowLogInternalErrorResponseBody(body *ShowLogInternalErrorResponseBody) (err error)

ValidateShowLogInternalErrorResponseBody runs the validations defined on show_log_internal_error_response_body

func ValidateShowLogNotFoundResponseBody added in v1.0.6

func ValidateShowLogNotFoundResponseBody(body *ShowLogNotFoundResponseBody) (err error)

ValidateShowLogNotFoundResponseBody runs the validations defined on show_log_not_found_response_body

func ValidateShowLogUnauthorizedResponseBody added in v1.0.6

func ValidateShowLogUnauthorizedResponseBody(body *ShowLogUnauthorizedResponseBody) (err error)

ValidateShowLogUnauthorizedResponseBody runs the validations defined on show_log_unauthorized_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 ValidateShowStatusBadGatewayResponseBody added in v1.0.6

func ValidateShowStatusBadGatewayResponseBody(body *ShowStatusBadGatewayResponseBody) (err error)

ValidateShowStatusBadGatewayResponseBody runs the validations defined on show_status_bad_gateway_response_body

func ValidateShowStatusBadRequestResponseBody added in v1.0.6

func ValidateShowStatusBadRequestResponseBody(body *ShowStatusBadRequestResponseBody) (err error)

ValidateShowStatusBadRequestResponseBody runs the validations defined on show_status_bad_request_response_body

func ValidateShowStatusForbiddenResponseBody added in v1.0.6

func ValidateShowStatusForbiddenResponseBody(body *ShowStatusForbiddenResponseBody) (err error)

ValidateShowStatusForbiddenResponseBody runs the validations defined on show_status_forbidden_response_body

func ValidateShowStatusInternalErrorResponseBody added in v1.0.6

func ValidateShowStatusInternalErrorResponseBody(body *ShowStatusInternalErrorResponseBody) (err error)

ValidateShowStatusInternalErrorResponseBody runs the validations defined on show_status_internal_error_response_body

func ValidateShowStatusNotFoundResponseBody added in v1.0.6

func ValidateShowStatusNotFoundResponseBody(body *ShowStatusNotFoundResponseBody) (err error)

ValidateShowStatusNotFoundResponseBody runs the validations defined on show_status_not_found_response_body

func ValidateShowStatusUnauthorizedResponseBody added in v1.0.6

func ValidateShowStatusUnauthorizedResponseBody(body *ShowStatusUnauthorizedResponseBody) (err error)

ValidateShowStatusUnauthorizedResponseBody runs the validations defined on show_status_unauthorized_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 ValidateUpdateBadGatewayResponseBody added in v1.2.0

func ValidateUpdateBadGatewayResponseBody(body *UpdateBadGatewayResponseBody) (err error)

ValidateUpdateBadGatewayResponseBody runs the validations defined on update_bad_gateway_response_body

func ValidateUpdateBadRequestResponseBody added in v1.2.0

func ValidateUpdateBadRequestResponseBody(body *UpdateBadRequestResponseBody) (err error)

ValidateUpdateBadRequestResponseBody runs the validations defined on update_bad_request_response_body

func ValidateUpdateForbiddenResponseBody added in v1.2.0

func ValidateUpdateForbiddenResponseBody(body *UpdateForbiddenResponseBody) (err error)

ValidateUpdateForbiddenResponseBody runs the validations defined on update_forbidden_response_body

func ValidateUpdateInternalErrorResponseBody added in v1.2.0

func ValidateUpdateInternalErrorResponseBody(body *UpdateInternalErrorResponseBody) (err error)

ValidateUpdateInternalErrorResponseBody runs the validations defined on update_internal_error_response_body

func ValidateUpdateNotFoundResponseBody added in v1.2.0

func ValidateUpdateNotFoundResponseBody(body *UpdateNotFoundResponseBody) (err error)

ValidateUpdateNotFoundResponseBody runs the validations defined on update_not_found_response_body

func ValidateUpdateUnauthorizedResponseBody added in v1.2.0

func ValidateUpdateUnauthorizedResponseBody(body *UpdateUnauthorizedResponseBody) (err error)

ValidateUpdateUnauthorizedResponseBody runs the validations defined on update_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 AppliedPolicyCollectionResponseBody

type AppliedPolicyCollectionResponseBody []*AppliedPolicyResponseBody

AppliedPolicyCollectionResponseBody is used to define fields on response body types.

type AppliedPolicyResponseBody

type AppliedPolicyResponseBody struct {
	// id identifies an applied policy by ID.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// policy_aggregate_id is set if applied policy is part of an policy aggregate.
	PolicyAggregateID *string `form:"policy_aggregate_id,omitempty" json:"policy_aggregate_id,omitempty" xml:"policy_aggregate_id,omitempty"`
	// incident_aggregate_id is set if applied incident is part of an policy
	// aggregate.
	IncidentAggregateID *string `form:"incident_aggregate_id,omitempty" json:"incident_aggregate_id,omitempty" xml:"incident_aggregate_id,omitempty"`
	// name provides a name for this specific application of the policy.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Project represents a RightScale project and provides some information about
	// the project.
	Project *ProjectResponseBody `form:"project,omitempty" json:"project,omitempty" xml:"project,omitempty"`
	// href is the href of the applied policy.
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	// policy_template links to key attributes of the policy template from which
	// the applied policy originated.
	PolicyTemplate *PolicyTemplateResponseBody `form:"policy_template,omitempty" json:"policy_template,omitempty" xml:"policy_template,omitempty"`
	// published_template links to key attributes of the published template from
	// which the applied policy originated.
	PublishedTemplate *PublishedTemplateResponseBody `form:"published_template,omitempty" json:"published_template,omitempty" xml:"published_template,omitempty"`
	// description provides a human readable description for this specific
	// application of the policy.
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// doc_link is a HTTP URI to a page containing detailed documentation for the
	// policy.
	DocLink *string `form:"doc_link,omitempty" json:"doc_link,omitempty" xml:"doc_link,omitempty"`
	// info is an arbitrary set of key/value pairs that provide additional
	// information such as the policy author, support contact information, etc.
	Info map[string]string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"`
	// created_by is the RightScale user that applied the policy.
	CreatedBy *UserResponseBody `form:"created_by,omitempty" json:"created_by,omitempty" xml:"created_by,omitempty"`
	// created_at is the applied policy creation timestamp in RFC3339 format.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// updated_at is the applied policy update timestamp in RFC3339 format.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// severity defines the severity level of incidents raised from this applied
	// policy.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// category is the type categorization of the applied policy.
	Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"`
	// frequency specifies the frequency with which to run policy evaluations
	Frequency *string `form:"frequency,omitempty" json:"frequency,omitempty" xml:"frequency,omitempty"`
	// dry_run is a flag used for testing a policy so that an incident can be
	// raised without performing an action.
	DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty" xml:"dry_run,omitempty"`
	// skip_approvals means that any approval actions will be skipped and all
	// actions automatically run.
	SkipApprovals *bool `form:"skip_approvals,omitempty" json:"skip_approvals,omitempty" xml:"skip_approvals,omitempty"`
	// options lists the configuration options used to parameterize the policy.
	Options []*ConfigurationOptionResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	// credentials map of credentials to use. The key in the map is the credential
	// name from the PolicyTemplate and the value is the credential identifier from
	// the Credentials management page.
	Credentials map[string]string `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
	// status is used to identify the current status of the applied policy.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// error is the error message returned if the evaluation failed. On success
	// this attribute is empty.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// errored_at is the applied policy error timestamp in RFC3339 format. On
	// success this attribute is empty.
	ErroredAt *string `form:"errored_at,omitempty" json:"errored_at,omitempty" xml:"errored_at,omitempty"`
	// scope is whether the policy is managed at an org-wide or project level.
	Scope *string `form:"scope,omitempty" json:"scope,omitempty" xml:"scope,omitempty"`
	// kind is "gov#applied_policy".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

AppliedPolicyResponseBody is used to define fields on response body types.

type Client

type Client struct {
	// Create Doer is the HTTP client used to make requests to the create endpoint.
	CreateDoer goahttp.Doer

	// Delete Doer is the HTTP client used to make requests to the delete endpoint.
	DeleteDoer goahttp.Doer

	// Show Doer is the HTTP client used to make requests to the show endpoint.
	ShowDoer goahttp.Doer

	// ShowStatus Doer is the HTTP client used to make requests to the show_status
	// endpoint.
	ShowStatusDoer goahttp.Doer

	// ShowLog Doer is the HTTP client used to make requests to the show_log
	// endpoint.
	ShowLogDoer goahttp.Doer

	// Index Doer is the HTTP client used to make requests to the index endpoint.
	IndexDoer goahttp.Doer

	// Evaluate Doer is the HTTP client used to make requests to the evaluate
	// endpoint.
	EvaluateDoer goahttp.Doer

	// Update Doer is the HTTP client used to make requests to the update endpoint.
	UpdateDoer 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 AppliedPolicy 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 AppliedPolicy service servers.

func (*Client) BuildCreateRequest

func (c *Client) BuildCreateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildCreateRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "create" endpoint

func (*Client) BuildDeleteRequest

func (c *Client) BuildDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildDeleteRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "delete" endpoint

func (*Client) BuildEvaluateRequest

func (c *Client) BuildEvaluateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildEvaluateRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "evaluate" endpoint

func (*Client) BuildIndexRequest

func (c *Client) BuildIndexRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildIndexRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "index" endpoint

func (*Client) BuildShowLogRequest

func (c *Client) BuildShowLogRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildShowLogRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "show_log" endpoint

func (*Client) BuildShowRequest

func (c *Client) BuildShowRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildShowRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "show" endpoint

func (*Client) BuildShowStatusRequest

func (c *Client) BuildShowStatusRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildShowStatusRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "show_status" endpoint

func (*Client) BuildUpdateRequest added in v1.2.0

func (c *Client) BuildUpdateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildUpdateRequest instantiates a HTTP request object with method and path set to call the "AppliedPolicy" service "update" endpoint

func (*Client) Create

func (c *Client) Create() goa.Endpoint

Create returns an endpoint that makes HTTP requests to the AppliedPolicy service create server.

func (*Client) Delete

func (c *Client) Delete() goa.Endpoint

Delete returns an endpoint that makes HTTP requests to the AppliedPolicy service delete server.

func (*Client) Evaluate

func (c *Client) Evaluate() goa.Endpoint

Evaluate returns an endpoint that makes HTTP requests to the AppliedPolicy service evaluate server.

func (*Client) Index

func (c *Client) Index() goa.Endpoint

Index returns an endpoint that makes HTTP requests to the AppliedPolicy service index server.

func (*Client) Show

func (c *Client) Show() goa.Endpoint

Show returns an endpoint that makes HTTP requests to the AppliedPolicy service show server.

func (*Client) ShowLog

func (c *Client) ShowLog() goa.Endpoint

ShowLog returns an endpoint that makes HTTP requests to the AppliedPolicy service show_log server.

func (*Client) ShowStatus

func (c *Client) ShowStatus() goa.Endpoint

ShowStatus returns an endpoint that makes HTTP requests to the AppliedPolicy service show_status server.

func (*Client) Update added in v1.2.0

func (c *Client) Update() goa.Endpoint

Update returns an endpoint that makes HTTP requests to the AppliedPolicy service update 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 CreateBadGatewayResponseBody

type CreateBadGatewayResponseBody 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"`
}

CreateBadGatewayResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "bad_gateway" error.

type CreateBadRequestResponseBody

type CreateBadRequestResponseBody 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"`
}

CreateBadRequestResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "bad_request" error.

type CreateForbiddenResponseBody

type CreateForbiddenResponseBody 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"`
}

CreateForbiddenResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "forbidden" error.

type CreateInternalErrorResponseBody

type CreateInternalErrorResponseBody 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"`
}

CreateInternalErrorResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "internal_error" error.

type CreateRequestBody

type CreateRequestBody struct {
	// name provides a name for this specific application of the policy.
	Name string `form:"name" json:"name" xml:"name"`
	// description provides a human readable description for this specific
	// application of the policy.
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// template_href is the href of the policy template or published template that
	// is applied.
	TemplateHref string `form:"template_href" json:"template_href" xml:"template_href"`
	// frequency specifies the frequency with which to run policy evaluations
	Frequency string `form:"frequency,omitempty" json:"frequency,omitempty" xml:"frequency,omitempty"`
	// dry_run is a flag used for testing a policy so that an incident can be
	// raised without performing an action.
	DryRun bool `form:"dry_run,omitempty" json:"dry_run,omitempty" xml:"dry_run,omitempty"`
	// skip_approvals means that any approval actions will be skipped and all
	// actions automatically run.
	SkipApprovals bool `form:"skip_approvals,omitempty" json:"skip_approvals,omitempty" xml:"skip_approvals,omitempty"`
	// severity is the severity level of the incident.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// options lists the configuration options used to parameterize the policy.
	Options []*ConfigurationOptionCreateTypeRequestBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	// credentials map of credentials to use. The key in the map is the credential
	// name from the PolicyTemplate and the value is the credential identifier from
	// the Credentials management page.
	Credentials map[string]string `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
}

CreateRequestBody is the type of the "AppliedPolicy" service "create" endpoint HTTP request body.

func NewCreateRequestBody

func NewCreateRequestBody(p *appliedpolicy.CreatePayload) *CreateRequestBody

NewCreateRequestBody builds the HTTP request body from the payload of the "create" endpoint of the "AppliedPolicy" service.

type CreateResponseBody

type CreateResponseBody struct {
	// id identifies an applied policy by ID.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// policy_aggregate_id is set if applied policy is part of an policy aggregate.
	PolicyAggregateID *string `form:"policy_aggregate_id,omitempty" json:"policy_aggregate_id,omitempty" xml:"policy_aggregate_id,omitempty"`
	// incident_aggregate_id is set if applied incident is part of an policy
	// aggregate.
	IncidentAggregateID *string `form:"incident_aggregate_id,omitempty" json:"incident_aggregate_id,omitempty" xml:"incident_aggregate_id,omitempty"`
	// name provides a name for this specific application of the policy.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Project represents a RightScale project and provides some information about
	// the project.
	Project *ProjectResponseBody `form:"project,omitempty" json:"project,omitempty" xml:"project,omitempty"`
	// href is the href of the applied policy.
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	// policy_template links to key attributes of the policy template from which
	// the applied policy originated.
	PolicyTemplate *PolicyTemplateResponseBody `form:"policy_template,omitempty" json:"policy_template,omitempty" xml:"policy_template,omitempty"`
	// published_template links to key attributes of the published template from
	// which the applied policy originated.
	PublishedTemplate *PublishedTemplateResponseBody `form:"published_template,omitempty" json:"published_template,omitempty" xml:"published_template,omitempty"`
	// description provides a human readable description for this specific
	// application of the policy.
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// doc_link is a HTTP URI to a page containing detailed documentation for the
	// policy.
	DocLink *string `form:"doc_link,omitempty" json:"doc_link,omitempty" xml:"doc_link,omitempty"`
	// info is an arbitrary set of key/value pairs that provide additional
	// information such as the policy author, support contact information, etc.
	Info map[string]string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"`
	// created_by is the RightScale user that applied the policy.
	CreatedBy *UserResponseBody `form:"created_by,omitempty" json:"created_by,omitempty" xml:"created_by,omitempty"`
	// created_at is the applied policy creation timestamp in RFC3339 format.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// updated_at is the applied policy update timestamp in RFC3339 format.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// severity defines the severity level of incidents raised from this applied
	// policy.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// category is the type categorization of the applied policy.
	Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"`
	// frequency specifies the frequency with which to run policy evaluations
	Frequency *string `form:"frequency,omitempty" json:"frequency,omitempty" xml:"frequency,omitempty"`
	// dry_run is a flag used for testing a policy so that an incident can be
	// raised without performing an action.
	DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty" xml:"dry_run,omitempty"`
	// skip_approvals means that any approval actions will be skipped and all
	// actions automatically run.
	SkipApprovals *bool `form:"skip_approvals,omitempty" json:"skip_approvals,omitempty" xml:"skip_approvals,omitempty"`
	// options lists the configuration options used to parameterize the policy.
	Options []*ConfigurationOptionResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	// credentials map of credentials to use. The key in the map is the credential
	// name from the PolicyTemplate and the value is the credential identifier from
	// the Credentials management page.
	Credentials map[string]string `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
	// status is used to identify the current status of the applied policy.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// error is the error message returned if the evaluation failed. On success
	// this attribute is empty.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// errored_at is the applied policy error timestamp in RFC3339 format. On
	// success this attribute is empty.
	ErroredAt *string `form:"errored_at,omitempty" json:"errored_at,omitempty" xml:"errored_at,omitempty"`
	// scope is whether the policy is managed at an org-wide or project level.
	Scope *string `form:"scope,omitempty" json:"scope,omitempty" xml:"scope,omitempty"`
	// kind is "gov#applied_policy".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

CreateResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body.

type CreateUnauthorizedResponseBody

type CreateUnauthorizedResponseBody 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"`
}

CreateUnauthorizedResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "unauthorized" error.

type CreateUnprocessableEntityResponseBody

type CreateUnprocessableEntityResponseBody 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"`
}

CreateUnprocessableEntityResponseBody is the type of the "AppliedPolicy" service "create" endpoint HTTP response body for the "unprocessable_entity" error.

type CredentialsResponseBody added in v1.0.6

type CredentialsResponseBody struct {
	// Name in policy template source code
	Name *string `json:"name"`
	// Schemes of credentials service resource supported.
	Schemes []string `json:"schemes"`
	// Label for the auth reference
	Label *string `json:"label"`
	// Description of what types of permissions need to be provided by auth.
	Description *string `json:"description"`
	// Tags is an optional filter to only show credentials matching a certain tag.
	Tags []*CredentialsTagResponseBody `json:"tags"`
}

CredentialsResponseBody is used to define fields on response body types.

type CredentialsTagResponseBody added in v1.0.6

type CredentialsTagResponseBody struct {
	// Key is the tag key.
	Key *string `json:"key"`
	// Value is the tag value.
	Value *string `json:"value"`
}

CredentialsTagResponseBody is used to define fields on response body types.

type DeleteBadGatewayResponseBody

type DeleteBadGatewayResponseBody 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"`
}

DeleteBadGatewayResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "bad_gateway" error.

type DeleteBadRequestResponseBody

type DeleteBadRequestResponseBody 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"`
}

DeleteBadRequestResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "bad_request" error.

type DeleteForbiddenResponseBody

type DeleteForbiddenResponseBody 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"`
}

DeleteForbiddenResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "forbidden" error.

type DeleteInternalErrorResponseBody

type DeleteInternalErrorResponseBody 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"`
}

DeleteInternalErrorResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "internal_error" error.

type DeleteNotFoundResponseBody

type DeleteNotFoundResponseBody 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"`
}

DeleteNotFoundResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "not_found" error.

type DeleteUnauthorizedResponseBody

type DeleteUnauthorizedResponseBody 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"`
}

DeleteUnauthorizedResponseBody is the type of the "AppliedPolicy" service "delete" endpoint HTTP response body for the "unauthorized" error.

type EvaluateBadGatewayResponseBody

type EvaluateBadGatewayResponseBody 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"`
}

EvaluateBadGatewayResponseBody is the type of the "AppliedPolicy" service "evaluate" endpoint HTTP response body for the "bad_gateway" error.

type EvaluateBadRequestResponseBody

type EvaluateBadRequestResponseBody 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"`
}

EvaluateBadRequestResponseBody is the type of the "AppliedPolicy" service "evaluate" endpoint HTTP response body for the "bad_request" error.

type EvaluateForbiddenResponseBody

type EvaluateForbiddenResponseBody 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"`
}

EvaluateForbiddenResponseBody is the type of the "AppliedPolicy" service "evaluate" endpoint HTTP response body for the "forbidden" error.

type EvaluateInternalErrorResponseBody

type EvaluateInternalErrorResponseBody 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"`
}

EvaluateInternalErrorResponseBody is the type of the "AppliedPolicy" service "evaluate" endpoint HTTP response body for the "internal_error" error.

type EvaluateNotFoundResponseBody

type EvaluateNotFoundResponseBody 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"`
}

EvaluateNotFoundResponseBody is the type of the "AppliedPolicy" service "evaluate" endpoint HTTP response body for the "not_found" error.

type EvaluateUnauthorizedResponseBody

type EvaluateUnauthorizedResponseBody 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"`
}

EvaluateUnauthorizedResponseBody is the type of the "AppliedPolicy" service "evaluate" 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 "AppliedPolicy" 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 "AppliedPolicy" 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 "AppliedPolicy" 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 "AppliedPolicy" service "index" endpoint HTTP response body for the "internal_error" error.

type IndexOKResponseBody

type IndexOKResponseBody struct {
	// count is the number of applied policies in the list.
	Count *uint `form:"count,omitempty" json:"count,omitempty" xml:"count,omitempty"`
	// items is the array of applied policies.
	Items AppliedPolicyCollectionResponseBody `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#applied_policy_list".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

IndexOKResponseBody is the type of the "AppliedPolicy" service "index" endpoint HTTP response body.

type IndexUnauthorizedResponseBody

type IndexUnauthorizedResponseBody 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"`
}

IndexUnauthorizedResponseBody is the type of the "AppliedPolicy" 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 PermissionResponseBody

type PermissionResponseBody struct {
	// Name of a permission
	Name *string `json:"name"`
	// Label is used in the UI
	Label *string `json:"label"`
	// List of resource names the permission is applied to
	Resources []string `json:"resources"`
	// List of action names the permission is applied to
	Actions []string `json:"actions"`
}

PermissionResponseBody is used to define fields on response body types.

type PolicyTemplateResponseBody

type PolicyTemplateResponseBody struct {
	// id identifies a policy template by ID.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// name is the unique name of the policy template in the project.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// project_id is the ID of the project that the policy template applies to.
	ProjectID *uint `form:"project_id,omitempty" json:"project_id,omitempty" xml:"project_id,omitempty"`
	// rs_pt_ver is the policy engine version.
	RsPtVer *uint `form:"rs_pt_ver,omitempty" json:"rs_pt_ver,omitempty" xml:"rs_pt_ver,omitempty"`
	// short_description is the short description of the policy template.
	ShortDescription *string `form:"short_description,omitempty" json:"short_description,omitempty" xml:"short_description,omitempty"`
	// long_description is the long description of the policy template. The content
	// can be markdown.
	LongDescription *string `form:"long_description,omitempty" json:"long_description,omitempty" xml:"long_description,omitempty"`
	// doc_link is an HTTP URI to a page containing detailed documentation for the
	// policy.
	DocLink *string `form:"doc_link,omitempty" json:"doc_link,omitempty" xml:"doc_link,omitempty"`
	// info is an arbitrary set of key/value pairs that provide additional
	// information such as the policy author, support contact information, etc.
	Info map[string]string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"`
	// default_frequency defines the interval the template will be run unless set
	// differently during application.
	DefaultFrequency *string `form:"default_frequency,omitempty" json:"default_frequency,omitempty" xml:"default_frequency,omitempty"`
	// href is the href of the policy template.
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	// filename is the name of the file that was uploaded to create the policy
	// template.
	Filename *string `form:"filename,omitempty" json:"filename,omitempty" xml:"filename,omitempty"`
	// source is the policy template source code.
	Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"`
	// fingerprint is a SHA created during compilation. It is used to determine if
	// the template is outdated.
	Fingerprint *string `form:"fingerprint,omitempty" json:"fingerprint,omitempty" xml:"fingerprint,omitempty"`
	// category is the type categorization of the policy template.
	Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"`
	// created_by is the RightScale user that created the policy template.
	CreatedBy *UserResponseBody `form:"created_by,omitempty" json:"created_by,omitempty" xml:"created_by,omitempty"`
	// created_at is the policy template creation timestamp in RFC3339 format.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// updated_by is the RightScale user that updated the policy template.
	UpdatedBy *UserResponseBody `form:"updated_by,omitempty" json:"updated_by,omitempty" xml:"updated_by,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"`
	// permissions is a list of permissions required to run the policy.
	Permissions map[string]*PermissionResponseBody `form:"permissions,omitempty" json:"permissions,omitempty" xml:"permissions,omitempty"`
	// required_roles is a list of governance roles, derived from permissions,
	// required to run the policy.
	RequiredRoles []string `form:"required_roles,omitempty" json:"required_roles,omitempty" xml:"required_roles,omitempty"`
	// parameters is a list of parameters required to apply the policy.
	Parameters map[string]*ParameterResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
	// severity defines the severity level of incidents raised from this policy
	// template.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// tenancy indicates whether this template can be run across multiple projects
	// or is restricted to a single project.
	Tenancy *string `form:"tenancy,omitempty" json:"tenancy,omitempty" xml:"tenancy,omitempty"`
	// credentials is a list of authorization for external APIs needed to run the
	// policy.
	Credentials map[string]*CredentialsResponseBody `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
	// kind is "gov#policy_template".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

PolicyTemplateResponseBody is used to define fields on response body types.

type ProjectResponseBody

type ProjectResponseBody struct {
	// id is the Project ID
	ID *uint `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// name is the Project Name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// org_id is the RightScale Organization ID
	OrgID *uint `form:"org_id,omitempty" json:"org_id,omitempty" xml:"org_id,omitempty"`
	// org_name is the RightScale Organization Name
	OrgName *string `form:"org_name,omitempty" json:"org_name,omitempty" xml:"org_name,omitempty"`
}

ProjectResponseBody is used to define fields on response body types.

type PublishedTemplateResponseBody

type PublishedTemplateResponseBody struct {
	// id identifies a published template by ID.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// name is the unique name of the published template in the organization.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// org_id is the ID of the organization that the published template belongs to.
	OrgID *uint `form:"org_id,omitempty" json:"org_id,omitempty" xml:"org_id,omitempty"`
	// project_id is the ID of the project that the published template is published
	// from.
	ProjectID *uint `form:"project_id,omitempty" json:"project_id,omitempty" xml:"project_id,omitempty"`
	// policy_template_id is the ID of the policy template from which the published
	// template originated.
	PolicyTemplateID *string `form:"policy_template_id,omitempty" json:"policy_template_id,omitempty" xml:"policy_template_id,omitempty"`
	// policy_template_url is the full URL to the policy template from which the
	// published template originated.
	PolicyTemplateURL *string `form:"policy_template_url,omitempty" json:"policy_template_url,omitempty" xml:"policy_template_url,omitempty"`
	// policy_template_fingerprint is fingerprint of the policy template. It is
	// used to determine if the policy template that this was published from is
	// outdated.
	PolicyTemplateFingerprint *string `` /* 133-byte string literal not displayed */
	// rs_pt_ver is the policy engine version.
	RsPtVer *uint `form:"rs_pt_ver,omitempty" json:"rs_pt_ver,omitempty" xml:"rs_pt_ver,omitempty"`
	// short_description is the short description of the published template.
	ShortDescription *string `form:"short_description,omitempty" json:"short_description,omitempty" xml:"short_description,omitempty"`
	// long_description is the long description of the published template. The
	// content can be markdown.
	LongDescription *string `form:"long_description,omitempty" json:"long_description,omitempty" xml:"long_description,omitempty"`
	// doc_link is a HTTP URI to a page containing detailed documentation for the
	// policy.
	DocLink *string `form:"doc_link,omitempty" json:"doc_link,omitempty" xml:"doc_link,omitempty"`
	// info is an arbitrary set of key/value pairs that provide additional
	// information such as the policy author, support contact information, etc.
	Info map[string]string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"`
	// default_frequency defines the interval the template will be run unless set
	// differently during application.
	DefaultFrequency *string `form:"default_frequency,omitempty" json:"default_frequency,omitempty" xml:"default_frequency,omitempty"`
	// href is the self-referential href of the published template.
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	// filename is the name of the file that was uploaded to create the policy
	// template.
	Filename *string `form:"filename,omitempty" json:"filename,omitempty" xml:"filename,omitempty"`
	// source is published template source code.
	Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"`
	// fingerprint is a SHA created during compilation. It is used to determine if
	// the policy template that this was published from is outdated.
	Fingerprint *string `form:"fingerprint,omitempty" json:"fingerprint,omitempty" xml:"fingerprint,omitempty"`
	// category is the type categorization of the published template.
	Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"`
	// created_by is the RightScale user that created the published template.
	CreatedBy *UserResponseBody `form:"created_by,omitempty" json:"created_by,omitempty" xml:"created_by,omitempty"`
	// created_at is the published template creation timestamp in RFC3339 format.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// updated_by is the RightScale user that updated the published template.
	UpdatedBy *UserResponseBody `form:"updated_by,omitempty" json:"updated_by,omitempty" xml:"updated_by,omitempty"`
	// updated_at is the published template update timestamp in RFC3339 format.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// permissions is a list of permissions required to run the policy.
	Permissions map[string]*PermissionResponseBody `form:"permissions,omitempty" json:"permissions,omitempty" xml:"permissions,omitempty"`
	// required_roles is a list of governance roles, derived from permissions,
	// required to run the policy.
	RequiredRoles []string `form:"required_roles,omitempty" json:"required_roles,omitempty" xml:"required_roles,omitempty"`
	// parameters is a list of parameters required to apply the policy.
	Parameters map[string]*ParameterResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
	// severity defines the severity level of incidents raised from this published
	// template.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// built_in is a flag to indicate whether the published template is a
	// "built-in" RS-supplied template.
	BuiltIn *bool `form:"built_in,omitempty" json:"built_in,omitempty" xml:"built_in,omitempty"`
	// hidden is a flag to indicate whether the published template is hidden.
	Hidden *bool `form:"hidden,omitempty" json:"hidden,omitempty" xml:"hidden,omitempty"`
	// hidden_by is the RightScale user that marked the published template as
	// hidden.
	HiddenBy *UserResponseBody `form:"hidden_by,omitempty" json:"hidden_by,omitempty" xml:"hidden_by,omitempty"`
	// hidden_at is the hidden at timestamp in RFC3339 format.
	HiddenAt *string `form:"hidden_at,omitempty" json:"hidden_at,omitempty" xml:"hidden_at,omitempty"`
	// tenancy indicates whether this template can be run across multiple projects
	// or is restricted to a single project.
	Tenancy *string `form:"tenancy,omitempty" json:"tenancy,omitempty" xml:"tenancy,omitempty"`
	// credentials is a list of authorization for external APIs needed to run the
	// policy.
	Credentials map[string]*CredentialsResponseBody `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
	// kind is "gov#published_template".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

PublishedTemplateResponseBody 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 "AppliedPolicy" 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 "AppliedPolicy" 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 "AppliedPolicy" 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 "AppliedPolicy" service "show" endpoint HTTP response body for the "internal_error" error.

type ShowLogBadGatewayResponseBody

type ShowLogBadGatewayResponseBody 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"`
}

ShowLogBadGatewayResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "bad_gateway" error.

type ShowLogBadRequestResponseBody

type ShowLogBadRequestResponseBody 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"`
}

ShowLogBadRequestResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "bad_request" error.

type ShowLogForbiddenResponseBody

type ShowLogForbiddenResponseBody 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"`
}

ShowLogForbiddenResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "forbidden" error.

type ShowLogInternalErrorResponseBody

type ShowLogInternalErrorResponseBody 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"`
}

ShowLogInternalErrorResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "internal_error" error.

type ShowLogNotFoundResponseBody

type ShowLogNotFoundResponseBody 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"`
}

ShowLogNotFoundResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "not_found" error.

type ShowLogUnauthorizedResponseBody

type ShowLogUnauthorizedResponseBody 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"`
}

ShowLogUnauthorizedResponseBody is the type of the "AppliedPolicy" service "show_log" endpoint HTTP response body for the "unauthorized" 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 "AppliedPolicy" service "show" endpoint HTTP response body for the "not_found" error.

type ShowResponseBody

type ShowResponseBody struct {
	// id identifies an applied policy by ID.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// policy_aggregate_id is set if applied policy is part of an policy aggregate.
	PolicyAggregateID *string `form:"policy_aggregate_id,omitempty" json:"policy_aggregate_id,omitempty" xml:"policy_aggregate_id,omitempty"`
	// incident_aggregate_id is set if applied incident is part of an policy
	// aggregate.
	IncidentAggregateID *string `form:"incident_aggregate_id,omitempty" json:"incident_aggregate_id,omitempty" xml:"incident_aggregate_id,omitempty"`
	// name provides a name for this specific application of the policy.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Project represents a RightScale project and provides some information about
	// the project.
	Project *ProjectResponseBody `form:"project,omitempty" json:"project,omitempty" xml:"project,omitempty"`
	// href is the href of the applied policy.
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	// policy_template links to key attributes of the policy template from which
	// the applied policy originated.
	PolicyTemplate *PolicyTemplateResponseBody `form:"policy_template,omitempty" json:"policy_template,omitempty" xml:"policy_template,omitempty"`
	// published_template links to key attributes of the published template from
	// which the applied policy originated.
	PublishedTemplate *PublishedTemplateResponseBody `form:"published_template,omitempty" json:"published_template,omitempty" xml:"published_template,omitempty"`
	// description provides a human readable description for this specific
	// application of the policy.
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// doc_link is a HTTP URI to a page containing detailed documentation for the
	// policy.
	DocLink *string `form:"doc_link,omitempty" json:"doc_link,omitempty" xml:"doc_link,omitempty"`
	// info is an arbitrary set of key/value pairs that provide additional
	// information such as the policy author, support contact information, etc.
	Info map[string]string `form:"info,omitempty" json:"info,omitempty" xml:"info,omitempty"`
	// created_by is the RightScale user that applied the policy.
	CreatedBy *UserResponseBody `form:"created_by,omitempty" json:"created_by,omitempty" xml:"created_by,omitempty"`
	// created_at is the applied policy creation timestamp in RFC3339 format.
	CreatedAt *string `form:"created_at,omitempty" json:"created_at,omitempty" xml:"created_at,omitempty"`
	// updated_at is the applied policy update timestamp in RFC3339 format.
	UpdatedAt *string `form:"updated_at,omitempty" json:"updated_at,omitempty" xml:"updated_at,omitempty"`
	// severity defines the severity level of incidents raised from this applied
	// policy.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
	// category is the type categorization of the applied policy.
	Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"`
	// frequency specifies the frequency with which to run policy evaluations
	Frequency *string `form:"frequency,omitempty" json:"frequency,omitempty" xml:"frequency,omitempty"`
	// dry_run is a flag used for testing a policy so that an incident can be
	// raised without performing an action.
	DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty" xml:"dry_run,omitempty"`
	// skip_approvals means that any approval actions will be skipped and all
	// actions automatically run.
	SkipApprovals *bool `form:"skip_approvals,omitempty" json:"skip_approvals,omitempty" xml:"skip_approvals,omitempty"`
	// options lists the configuration options used to parameterize the policy.
	Options []*ConfigurationOptionResponseBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	// credentials map of credentials to use. The key in the map is the credential
	// name from the PolicyTemplate and the value is the credential identifier from
	// the Credentials management page.
	Credentials map[string]string `form:"credentials,omitempty" json:"credentials,omitempty" xml:"credentials,omitempty"`
	// status is used to identify the current status of the applied policy.
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// error is the error message returned if the evaluation failed. On success
	// this attribute is empty.
	Error *string `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// errored_at is the applied policy error timestamp in RFC3339 format. On
	// success this attribute is empty.
	ErroredAt *string `form:"errored_at,omitempty" json:"errored_at,omitempty" xml:"errored_at,omitempty"`
	// scope is whether the policy is managed at an org-wide or project level.
	Scope *string `form:"scope,omitempty" json:"scope,omitempty" xml:"scope,omitempty"`
	// kind is "gov#applied_policy".
	Kind *string `form:"kind,omitempty" json:"kind,omitempty" xml:"kind,omitempty"`
}

ShowResponseBody is the type of the "AppliedPolicy" service "show" endpoint HTTP response body.

type ShowStatusBadGatewayResponseBody

type ShowStatusBadGatewayResponseBody 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"`
}

ShowStatusBadGatewayResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "bad_gateway" error.

type ShowStatusBadRequestResponseBody

type ShowStatusBadRequestResponseBody 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"`
}

ShowStatusBadRequestResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "bad_request" error.

type ShowStatusForbiddenResponseBody

type ShowStatusForbiddenResponseBody 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"`
}

ShowStatusForbiddenResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "forbidden" error.

type ShowStatusInternalErrorResponseBody

type ShowStatusInternalErrorResponseBody 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"`
}

ShowStatusInternalErrorResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "internal_error" error.

type ShowStatusNotFoundResponseBody

type ShowStatusNotFoundResponseBody 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"`
}

ShowStatusNotFoundResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "not_found" error.

type ShowStatusResponseBody

type ShowStatusResponseBody struct {
	// last_evaluation_start is the timestamp of the start of the last policy
	// evaluation.
	LastEvaluationStart *string `form:"last_evaluation_start,omitempty" json:"last_evaluation_start,omitempty" xml:"last_evaluation_start,omitempty"`
	// last_evaluation_finish is the timestamp of the finish of the last policy
	// evaluation. It is omitted if the policy is currently evaluating.
	LastEvaluationFinish *string `form:"last_evaluation_finish,omitempty" json:"last_evaluation_finish,omitempty" xml:"last_evaluation_finish,omitempty"`
	// next_evaluation_start is the timestamp of the next expected policy
	// evaluation start. It is omitted if the policy is currently evalutating.
	NextEvaluationStart *string `form:"next_evaluation_start,omitempty" json:"next_evaluation_start,omitempty" xml:"next_evaluation_start,omitempty"`
	// evaluation_error is the error message returned if the evaluation failed. On
	// success this attribute is empty.
	EvaluationError *string `form:"evaluation_error,omitempty" json:"evaluation_error,omitempty" xml:"evaluation_error,omitempty"`
	// evaluation_errored_at is the timestamp of the last evaluation error.
	EvaluationErroredAt *string `form:"evaluation_errored_at,omitempty" json:"evaluation_errored_at,omitempty" xml:"evaluation_errored_at,omitempty"`
}

ShowStatusResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body.

type ShowStatusUnauthorizedResponseBody

type ShowStatusUnauthorizedResponseBody 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"`
}

ShowStatusUnauthorizedResponseBody is the type of the "AppliedPolicy" service "show_status" endpoint HTTP response body for the "unauthorized" error.

type ShowUnauthorizedResponseBody

type ShowUnauthorizedResponseBody 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"`
}

ShowUnauthorizedResponseBody is the type of the "AppliedPolicy" service "show" endpoint HTTP response body for the "unauthorized" error.

type UpdateBadGatewayResponseBody added in v1.2.0

type UpdateBadGatewayResponseBody 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"`
}

UpdateBadGatewayResponseBody is the type of the "AppliedPolicy" service "update" endpoint HTTP response body for the "bad_gateway" error.

type UpdateBadRequestResponseBody added in v1.2.0

type UpdateBadRequestResponseBody 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"`
}

UpdateBadRequestResponseBody is the type of the "AppliedPolicy" service "update" endpoint HTTP response body for the "bad_request" error.

type UpdateForbiddenResponseBody added in v1.2.0

type UpdateForbiddenResponseBody 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"`
}

UpdateForbiddenResponseBody is the type of the "AppliedPolicy" service "update" endpoint HTTP response body for the "forbidden" error.

type UpdateInternalErrorResponseBody added in v1.2.0

type UpdateInternalErrorResponseBody 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"`
}

UpdateInternalErrorResponseBody is the type of the "AppliedPolicy" service "update" endpoint HTTP response body for the "internal_error" error.

type UpdateNotFoundResponseBody added in v1.2.0

type UpdateNotFoundResponseBody 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"`
}

UpdateNotFoundResponseBody is the type of the "AppliedPolicy" service "update" endpoint HTTP response body for the "not_found" error.

type UpdateRequestBody added in v1.2.0

type UpdateRequestBody struct {
	// name provides a name for this specific application of the policy.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// description provides a human readable description for this specific
	// application of the policy.
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// frequency specifies the frequency with which to run policy evaluations
	Frequency *string `form:"frequency,omitempty" json:"frequency,omitempty" xml:"frequency,omitempty"`
	// dry_run is a flag used for testing a policy so that an incident can be
	// raised without performing an action.
	DryRun *bool `form:"dry_run,omitempty" json:"dry_run,omitempty" xml:"dry_run,omitempty"`
	// skip_approvals means that any approval actions will be skipped and all
	// actions automatically run.
	SkipApprovals *bool `form:"skip_approvals,omitempty" json:"skip_approvals,omitempty" xml:"skip_approvals,omitempty"`
	// options lists the configuration options used to parameterize the policy.
	Options []*ConfigurationOptionCreateTypeRequestBody `form:"options,omitempty" json:"options,omitempty" xml:"options,omitempty"`
	// severity defines the severity level of incidents raised from this applied
	// policy.
	Severity *string `form:"severity,omitempty" json:"severity,omitempty" xml:"severity,omitempty"`
}

UpdateRequestBody is the type of the "AppliedPolicy" service "update" endpoint HTTP request body.

func NewUpdateRequestBody added in v1.2.0

func NewUpdateRequestBody(p *appliedpolicy.UpdatePayload) *UpdateRequestBody

NewUpdateRequestBody builds the HTTP request body from the payload of the "update" endpoint of the "AppliedPolicy" service.

type UpdateUnauthorizedResponseBody added in v1.2.0

type UpdateUnauthorizedResponseBody 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"`
}

UpdateUnauthorizedResponseBody is the type of the "AppliedPolicy" service "update" 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL