View Source GoogleApi.ServiceConsumerManagement.V1.Model.CustomError (google_api_service_consumer_management v0.32.0)

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.ServiceConsumerManagement.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'.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ServiceConsumerManagement.V1.Model.CustomError{
  rules:
    [GoogleApi.ServiceConsumerManagement.V1.Model.CustomErrorRule.t()] | nil,
  types: [String.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.