google_api_service_usage v0.6.0 GoogleApi.ServiceUsage.V1.Model.CustomError View Source

Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses.

Example:

custom_error:
  types:
  - google.foo.v1.CustomError
  - google.foo.v1.AnotherError

Attributes

  • rules (type: list(GoogleApi.ServiceUsage.V1.Model.CustomErrorRule.t), default: nil) - The list of custom error rules that apply to individual API messages.

    NOTE: All service configuration rules follow "last one wins" order.

  • types (type: list(String.t), default: nil) - The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.ServiceUsage.V1.Model.CustomError{
  rules: [GoogleApi.ServiceUsage.V1.Model.CustomErrorRule.t()],
  types: [String.t()]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.