Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch.
Determines how a string value should be matched.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#contains
def contains() -> ::String-
(::String) — The input string must have the substring specified here.
Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
Note: The following fields are mutually exclusive:
contains,exact,prefix,suffix. If a field in that set is populated, all other fields in the set will automatically be cleared.
#contains=
def contains=(value) -> ::String-
value (::String) — The input string must have the substring specified here.
Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
Note: The following fields are mutually exclusive:
contains,exact,prefix,suffix. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The input string must have the substring specified here.
Note: empty contains match is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc.def
Note: The following fields are mutually exclusive:
contains,exact,prefix,suffix. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exact
def exact() -> ::String-
(::String) — The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
Note: The following fields are mutually exclusive:
exact,prefix,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exact=
def exact=(value) -> ::String-
value (::String) — The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
Note: The following fields are mutually exclusive:
exact,prefix,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
Note: The following fields are mutually exclusive:
exact,prefix,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ignore_case
def ignore_case() -> ::Boolean-
(::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be
case insensitive. For example, the matcher
datawill match both input stringDataanddataif set to true.
#ignore_case=
def ignore_case=(value) -> ::Boolean-
value (::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be
case insensitive. For example, the matcher
datawill match both input stringDataanddataif set to true.
-
(::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be
case insensitive. For example, the matcher
datawill match both input stringDataanddataif set to true.
#prefix
def prefix() -> ::String-
(::String) — The input string must have the prefix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
Note: The following fields are mutually exclusive:
prefix,exact,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
#prefix=
def prefix=(value) -> ::String-
value (::String) — The input string must have the prefix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
Note: The following fields are mutually exclusive:
prefix,exact,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The input string must have the prefix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valueabc.xyz
Note: The following fields are mutually exclusive:
prefix,exact,suffix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
#suffix
def suffix() -> ::String-
(::String) — The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
Note: The following fields are mutually exclusive:
suffix,exact,prefix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
#suffix=
def suffix=(value) -> ::String-
value (::String) — The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
Note: The following fields are mutually exclusive:
suffix,exact,prefix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead.
Examples:
abcmatches the valuexyz.abc
Note: The following fields are mutually exclusive:
suffix,exact,prefix,contains. If a field in that set is populated, all other fields in the set will automatically be cleared.