Compute V1 Client - Class AliasIpRange (1.9.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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this