Google Cloud Container V1 Client - Class UsableSubnetwork (1.17.1)

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
NameDescription
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
TypeDescription
string

setSubnetwork

Subnetwork Name.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Network Name.

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

Returns
TypeDescription
string

setNetwork

Network Name.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpCidrRange

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

Returns
TypeDescription
string

setIpCidrRange

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSecondaryIpRanges

Secondary IP ranges.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSecondaryIpRanges

Secondary IP ranges.

Parameter
NameDescription
var array<Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this