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
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
Generated from protobuf field string subnetwork = 1;
Returns | |
---|---|
Type | Description |
string |
setSubnetwork
Subnetwork Name.
Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
Generated from protobuf field string subnetwork = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getNetwork
Network Name.
Example: projects/my-project/global/networks/my-network
Generated from protobuf field string network = 2;
Returns | |
---|---|
Type | Description |
string |
setNetwork
Network Name.
Example: projects/my-project/global/networks/my-network
Generated from protobuf field string network = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getIpCidrRange
The range of internal addresses that are owned by this subnetwork.
Generated from protobuf field string ip_cidr_range = 3;
Returns | |
---|---|
Type | Description |
string |
setIpCidrRange
The range of internal addresses that are owned by this subnetwork.
Generated from protobuf field string ip_cidr_range = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSecondaryIpRanges
Secondary IP ranges.
Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSecondaryIpRanges
Secondary IP ranges.
Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4;
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.
Generated from protobuf field string status_message = 5;
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.
Generated from protobuf field string status_message = 5;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |