Network Security V1 API - Class Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch (v0.1.0)

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
Returns
  • (::String) — The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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
Parameter
  • value (::String) — The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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.

Returns
  • (::String) — The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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
Returns
  • (::String) — The input string must match exactly the string specified here.

    Examples:

    • abc only matches the value abc.

    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
Parameter
  • value (::String) — The input string must match exactly the string specified here.

    Examples:

    • abc only matches the value abc.

    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.

Returns
  • (::String) — The input string must match exactly the string specified here.

    Examples:

    • abc only matches the value abc.

    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
Returns
  • (::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher data will match both input string Data and data if set to true.

#ignore_case=

def ignore_case=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher data will match both input string Data and data if set to true.
Returns
  • (::Boolean) — If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher data will match both input string Data and data if set to true.

#prefix

def prefix() -> ::String
Returns
  • (::String) — The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value abc.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
Parameter
  • value (::String) — The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value abc.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.

Returns
  • (::String) — The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value abc.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
Returns
  • (::String) — The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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
Parameter
  • value (::String) — The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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.

Returns
  • (::String) — The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead.

    Examples:

    • abc matches the value xyz.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.