Compute V1 Client - Class SubnetworkSecondaryRange (1.18.1)

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

Represents a secondary IP range of a subnetwork.

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

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 range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

↳ range_name string

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

↳ reserved_internal_range string

The URL of the reserved internal range.

getIpCidrRange

The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

Returns
Type Description
string

hasIpCidrRange

clearIpCidrRange

setIpCidrRange

The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

Parameter
Name Description
var string
Returns
Type Description
$this

getRangeName

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

Returns
Type Description
string

hasRangeName

clearRangeName

setRangeName

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

Parameter
Name Description
var string
Returns
Type Description
$this

getReservedInternalRange

The URL of the reserved internal range.

Returns
Type Description
string

hasReservedInternalRange

clearReservedInternalRange

setReservedInternalRange

The URL of the reserved internal range.

Parameter
Name Description
var string
Returns
Type Description
$this