Google Cloud Vmware Engine V1 Client - Class Subnet (0.3.3)

Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class Subnet.

Subnet in a private cloud. Either management subnets (such as vMotion) that are read-only, or userDefined, which can also be updated.

Generated from protobuf message google.cloud.vmwareengine.v1.Subnet

Namespace

Google \ Cloud \ VmwareEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 in https://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.

getName

Output only. The resource name of this subnet.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet

Returns
TypeDescription
string

setName

Output only. The resource name of this subnet.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpCidrRange

The IP address range of the subnet in CIDR format '10.0.0.0/24'.

Returns
TypeDescription
string

setIpCidrRange

The IP address range of the subnet in CIDR format '10.0.0.0/24'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGatewayIp

The IP address of the gateway of this subnet.

Must fall within the IP prefix defined above.

Returns
TypeDescription
string

setGatewayIp

The IP address of the gateway of this subnet.

Must fall within the IP prefix defined above.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Output only. The type of the subnet. For example "management" or "userDefined".

Returns
TypeDescription
string

setType

Output only. The type of the subnet. For example "management" or "userDefined".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The state of the resource.

Returns
TypeDescription
int

setState

Output only. The state of the resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this