GoogleApi.ServiceConsumerManagement.V1.Model.CustomError (google_api_service_consumer_management v0.31.0) 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.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'.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.