Google Cloud Container V1 Client - Class UsableSubnetwork (2.2.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class UsableSubnetwork.

UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.

Generated from protobuf message google.container.v1.UsableSubnetwork

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ subnetwork string

Subnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

↳ network string

Network Name. Example: projects/my-project/global/networks/my-network

↳ ip_cidr_range string

The range of internal addresses that are owned by this subnetwork.

↳ secondary_ip_ranges array<Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>

Secondary IP ranges.

↳ status_message string

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.

getSubnetwork

Subnetwork Name.

Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

Returns
Type Description
string

setSubnetwork

Subnetwork Name.

Example: projects/my-project/regions/us-central1/subnetworks/my-subnet

Parameter
Name Description
var string
Returns
Type Description
$this

getNetwork

Network Name.

Example: projects/my-project/global/networks/my-network

Returns
Type Description
string

setNetwork

Network Name.

Example: projects/my-project/global/networks/my-network

Parameter
Name Description
var string
Returns
Type Description
$this

getIpCidrRange

The range of internal addresses that are owned by this subnetwork.

Returns
Type Description
string

setIpCidrRange

The range of internal addresses that are owned by this subnetwork.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecondaryIpRanges

Secondary IP ranges.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSecondaryIpRanges

Secondary IP ranges.

Parameter
Name Description
var array<Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>
Returns
Type Description
$this

getStatusMessage

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.

Returns
Type Description
string

setStatusMessage

A human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.

Parameter
Name Description
var string
Returns
Type Description
$this