Reference documentation and code samples for the Google Cloud Network Security V1 Client class StringMatch.
Determines how a string value should be matched.
Generated from protobuf message google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch
Namespace
Google \ Cloud \ NetworkSecurity \ V1 \ AuthzPolicy \ AuthzRuleMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ exact |
string
The input string must match exactly the string specified here. Examples: * * |
↳ prefix |
string
The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * * |
↳ suffix |
string
The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * * |
↳ contains |
string
The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * * |
↳ ignore_case |
bool
If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher |
getExact
The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasExact
setExact
The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrefix
The input string must have the prefix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valueabc.xyz
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPrefix
setPrefix
The input string must have the prefix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valueabc.xyz
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSuffix
The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSuffix
setSuffix
The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContains
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
| Returns | |
|---|---|
| Type | Description |
string |
|
hasContains
setContains
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
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIgnoreCase
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 | |
|---|---|
| Type | Description |
bool |
|
setIgnoreCase
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.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMatchPattern
| Returns | |
|---|---|
| Type | Description |
string |
|