xds.type.matcher.v3.StringMatcher
Example
Disclaimer: The example is meant to show what methods are available on the object and does not necessarily constitute working
code.
local types = import 'types.libsonnet';
types.xds.type.matcher.v3.StringMatcher
.withContains('string')
.withExact('string')
.withIgnoreCase(false)
.withPrefix('string')
.withSafeRegex(types.xds.type.matcher.v3.RegexMatcher)
.withSuffix('string')
._validate()
Fields
Name |
Type |
One-of group |
Required |
Constraints |
contains |
string
|
match_pattern |
|
{"String_":{"WellKnown":null,"min_len":1}}
|
exact |
string
|
match_pattern |
|
|
ignore_case |
bool
|
|
|
|
prefix |
string
|
match_pattern |
|
{"String_":{"WellKnown":null,"min_len":1}}
|
safe_regex |
xds.type.matcher.v3.RegexMatcher
|
match_pattern |
|
|
suffix |
string
|
match_pattern |
|
{"String_":{"WellKnown":null,"min_len":1}}
|