Compute V1 Client - Class AliasIpRange (1.18.1)

Reference documentation and code samples for the Compute V1 Client class AliasIpRange.

An alias IP range attached to an instance's network interface.

Generated from protobuf message google.cloud.compute.v1.AliasIpRange

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ip_cidr_range string

The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).

↳ subnetwork_range_name string

The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.

getIpCidrRange

The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).

Returns
Type Description
string

hasIpCidrRange

clearIpCidrRange

setIpCidrRange

The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (such as 10.2.3.4), a netmask (such as /24) or a CIDR-formatted string (such as 10.1.2.0/24).

Parameter
Name Description
var string
Returns
Type Description
$this

getSubnetworkRangeName

The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.

Returns
Type Description
string

hasSubnetworkRangeName

clearSubnetworkRangeName

setSubnetworkRangeName

The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.

Parameter
Name Description
var string
Returns
Type Description
$this