Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class Subnet.
Subnet in a private cloud. Eithermanagementsubnets (such as vMotion) that
are read-only, oruserDefined, which can also be updated.
Generated from protobuf messagegoogle.cloud.vmwareengine.v1.Subnet
Namespace
Google \ Cloud \ VmwareEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of this subnet. Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names. For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
↳ ip_cidr_range
string
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
↳ gateway_ip
string
The IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
↳ type
string
Output only. The type of the subnet. For example "management" or "userDefined".
↳ state
int
Output only. The state of the resource.
↳ vlan_id
int
Output only. VLAN ID of the VLAN on which the subnet is configured
getName
Output only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names.
For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
Returns
Type
Description
string
setName
Output only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names.
For example:projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getIpCidrRange
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
Returns
Type
Description
string
setIpCidrRange
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getGatewayIp
The IP address of the gateway of this subnet.
Must fall within the IP prefix defined above.
Returns
Type
Description
string
setGatewayIp
The IP address of the gateway of this subnet.
Must fall within the IP prefix defined above.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getType
Output only. The type of the subnet. For example "management" or
"userDefined".
Returns
Type
Description
string
setType
Output only. The type of the subnet. For example "management" or
"userDefined".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Output only. The state of the resource.
Returns
Type
Description
int
setState
Output only. The state of the resource.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getVlanId
Output only. VLAN ID of the VLAN on which the subnet is configured
Returns
Type
Description
int
setVlanId
Output only. VLAN ID of the VLAN on which the subnet is configured
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Vmware Engine V1 Client - Class Subnet (1.1.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.4 (latest)](/php/docs/reference/cloud-vmware-engine/latest/V1.Subnet)\n- [1.1.3](/php/docs/reference/cloud-vmware-engine/1.1.3/V1.Subnet)\n- [1.0.0](/php/docs/reference/cloud-vmware-engine/1.0.0/V1.Subnet)\n- [0.5.6](/php/docs/reference/cloud-vmware-engine/0.5.6/V1.Subnet)\n- [0.4.0](/php/docs/reference/cloud-vmware-engine/0.4.0/V1.Subnet)\n- [0.3.3](/php/docs/reference/cloud-vmware-engine/0.3.3/V1.Subnet)\n- [0.2.1](/php/docs/reference/cloud-vmware-engine/0.2.1/V1.Subnet)\n- [0.1.4](/php/docs/reference/cloud-vmware-engine/0.1.4/V1.Subnet) \nReference documentation and code samples for the Google Cloud Vmware Engine V1 Client class Subnet.\n\nSubnet in a private cloud. Either `management` subnets (such as vMotion) that\nare read-only, or `userDefined`, which can also be updated.\n\nGenerated from protobuf message `google.cloud.vmwareengine.v1.Subnet`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VmwareEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The resource name of this subnet.\n\nResource names are schemeless URIs that follow the conventions in\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e.\nFor example:\n`projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`\n\n### setName\n\nOutput only. The resource name of this subnet.\n\nResource names are schemeless URIs that follow the conventions in\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e.\nFor example:\n`projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet`\n\n### getIpCidrRange\n\nThe IP address range of the subnet in CIDR format '10.0.0.0/24'.\n\n### setIpCidrRange\n\nThe IP address range of the subnet in CIDR format '10.0.0.0/24'.\n\n### getGatewayIp\n\nThe IP address of the gateway of this subnet.\n\nMust fall within the IP prefix defined above.\n\n### setGatewayIp\n\nThe IP address of the gateway of this subnet.\n\nMust fall within the IP prefix defined above.\n\n### getType\n\nOutput only. The type of the subnet. For example \"management\" or\n\"userDefined\".\n\n### setType\n\nOutput only. The type of the subnet. For example \"management\" or\n\"userDefined\".\n\n### getState\n\nOutput only. The state of the resource.\n\n### setState\n\nOutput only. The state of the resource.\n\n### getVlanId\n\nOutput only. VLAN ID of the VLAN on which the subnet is configured\n\n### setVlanId\n\nOutput only. VLAN ID of the VLAN on which the subnet is configured"]]