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, IMessageReference documentation and code samples for the Network Security v1 API class AuthzPolicy.Types.AuthzRule.Types.StringMatch.
Determines how a string value should be matched.
Implements
IMessageAuthzPolicyTypesAuthzRuleTypesStringMatch, IEquatableAuthzPolicyTypesAuthzRuleTypesStringMatch, IDeepCloneableAuthzPolicyTypesAuthzRuleTypesStringMatch, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkSecurity.V1Assembly
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:
abcmatches the valuexyz.abc.def
| Property Value | |
|---|---|
| Type | Description |
string |
|
Exact
public string Exact { get; set; }The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
| 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:
abcmatches the valueabc.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:
abcmatches the valuexyz.abc
| Property Value | |
|---|---|
| Type | Description |
string |
|