Google Cloud Network Security V1 Client - Class IpBlock (1.3.0)

Reference documentation and code samples for the Google Cloud Network Security V1 Client class IpBlock.

Represents a range of IP Addresses.

Generated from protobuf message google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock

Namespace

Google \ Cloud \ NetworkSecurity \ V1 \ AuthzPolicy \ AuthzRule

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ prefix string

Required. The address prefix.

↳ length int

Required. The length of the address range.

getPrefix

Required. The address prefix.

Returns
Type Description
string

setPrefix

Required. The address prefix.

Parameter
Name Description
var string
Returns
Type Description
$this

getLength

Required. The length of the address range.

Returns
Type Description
int

setLength

Required. The length of the address range.

Parameter
Name Description
var int
Returns
Type Description
$this