Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class PortRange.
A port range which is inclusive of the min and max values.
Values are between 0 and 2^16-1. The max can be equal / must be not smaller than the min value. If min and max are equal this indicates that it is a single port.
Generated from protobuf message google.cloud.securitycenter.v2.IpRule.PortRange
Namespace
Google \ Cloud \ SecurityCenter \ V2 \ IpRuleMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ min |
int|string
Minimum port value. |
↳ max |
int|string
Maximum port value. |
getMin
Minimum port value.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setMin
Minimum port value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMax
Maximum port value.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setMax
Maximum port value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|