Reference documentation and code samples for the Google Cloud Network Security V1 Client class UrlFilter.
A URL filter defines an action to take for some URL match.
Generated from protobuf message google.cloud.networksecurity.v1.UrlFilter
Namespace
Google \ Cloud \ NetworkSecurity \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ filtering_action |
int
Required. The action taken when this filter is applied. |
↳ urls |
string[]
Required. The list of strings that a URL must match with for this filter to be applied. |
↳ priority |
int
Required. The priority of this filter within the URL Filtering Profile. Lower integers indicate higher priorities. The priority of a filter must be unique within a URL Filtering Profile. |
getFilteringAction
Required. The action taken when this filter is applied.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type UrlFilteringAction. |
setFilteringAction
Required. The action taken when this filter is applied.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type UrlFilteringAction. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUrls
Required. The list of strings that a URL must match with for this filter to be applied.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setUrls
Required. The list of strings that a URL must match with for this filter to be applied.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriority
Required. The priority of this filter within the URL Filtering Profile.
Lower integers indicate higher priorities. The priority of a filter must be unique within a URL Filtering Profile.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasPriority
clearPriority
setPriority
Required. The priority of this filter within the URL Filtering Profile.
Lower integers indicate higher priorities. The priority of a filter must be unique within a URL Filtering Profile.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|