Network Security v1 API - Class AuthzPolicy.Types.AuthzRule.Types.StringMatch (1.0.0-beta01)

public sealed class AuthzPolicy.Types.AuthzRule.Types.StringMatch : IMessage<AuthzPolicy.Types.AuthzRule.Types.StringMatch>, IEquatable<AuthzPolicy.Types.AuthzRule.Types.StringMatch>, IDeepCloneable<AuthzPolicy.Types.AuthzRule.Types.StringMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Security v1 API class AuthzPolicy.Types.AuthzRule.Types.StringMatch.

Determines how a string value should be matched.

Inheritance

object > AuthzPolicy.Types.AuthzRule.Types.StringMatch

Namespace

Google.Cloud.NetworkSecurity.V1

Assembly

Google.Cloud.NetworkSecurity.V1.dll

Constructors

StringMatch()

public StringMatch()

StringMatch(StringMatch)

public StringMatch(AuthzPolicy.Types.AuthzRule.Types.StringMatch other)
Parameter
Name Description
other AuthzPolicyTypesAuthzRuleTypesStringMatch

Properties

Contains

public string Contains { get; set; }

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
Property Value
Type Description
string

Exact

public string Exact { get; set; }

The input string must match exactly the string specified here.

Examples:

  • abc only matches the value abc.
Property Value
Type Description
string

HasContains

public bool HasContains { get; }

Gets whether the "contains" field is set

Property Value
Type Description
bool

HasExact

public bool HasExact { get; }

Gets whether the "exact" field is set

Property Value
Type Description
bool

HasPrefix

public bool HasPrefix { get; }

Gets whether the "prefix" field is set

Property Value
Type Description
bool

HasSuffix

public bool HasSuffix { get; }

Gets whether the "suffix" field is set

Property Value
Type Description
bool

IgnoreCase

public bool IgnoreCase { get; set; }

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.

Property Value
Type Description
bool

MatchPatternCase

public AuthzPolicy.Types.AuthzRule.Types.StringMatch.MatchPatternOneofCase MatchPatternCase { get; }
Property Value
Type Description
AuthzPolicyTypesAuthzRuleTypesStringMatchMatchPatternOneofCase

Prefix

public string Prefix { get; set; }

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
Property Value
Type Description
string

Suffix

public string Suffix { get; set; }

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
Property Value
Type Description
string