CustomErrorArgs

data class CustomErrorArgs(val rules: Output<List<CustomErrorRuleArgs>>? = null, val types: Output<List<String>>? = null) : ConvertibleToJava<CustomErrorArgs>

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

Constructors

Link copied to clipboard
fun CustomErrorArgs(rules: Output<List<CustomErrorRuleArgs>>? = null, types: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CustomErrorArgs

Properties

Link copied to clipboard
val rules: Output<List<CustomErrorRuleArgs>>? = null

The list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow "last one wins" order.

Link copied to clipboard
val types: Output<List<String>>? = null

The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.