Google Cloud Edge Network V1 Client - Class Subnet (0.2.0)

Reference documentation and code samples for the Google Cloud Edge Network V1 Client class Subnet.

Message describing Subnet object

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

Namespace

Google \ Cloud \ EdgeNetwork \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The canonical resource name of the subnet.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the subnet was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the subnet was last updated.

↳ labels array|Google\Protobuf\Internal\MapField

Labels associated with this resource.

↳ description string

Optional. A free-text description of the resource. Max length 1024 characters.

↳ network string

Required. The network that this subnetwork belongs to.

↳ ipv4_cidr array

The ranges of ipv4 addresses that are owned by this subnetwork.

↳ ipv6_cidr array

The ranges of ipv6 addresses that are owned by this subnetwork.

↳ vlan_id int

Optional. VLAN id provided by user. If not specified we assign one automatically.

↳ state int

Output only. Current stage of the resource to the device by config push.

getName

Required. The canonical resource name of the subnet.

Returns
TypeDescription
string

setName

Required. The canonical resource name of the subnet.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the subnet was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the subnet was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time when the subnet was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the subnet was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

Labels associated with this resource.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels associated with this resource.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Returns
TypeDescription
string

setDescription

Optional. A free-text description of the resource. Max length 1024 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Required. The network that this subnetwork belongs to.

Returns
TypeDescription
string

setNetwork

Required. The network that this subnetwork belongs to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpv4Cidr

The ranges of ipv4 addresses that are owned by this subnetwork.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpv4Cidr

The ranges of ipv4 addresses that are owned by this subnetwork.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getIpv6Cidr

The ranges of ipv6 addresses that are owned by this subnetwork.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setIpv6Cidr

The ranges of ipv6 addresses that are owned by this subnetwork.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getVlanId

Optional. VLAN id provided by user. If not specified we assign one automatically.

Returns
TypeDescription
int

setVlanId

Optional. VLAN id provided by user. If not specified we assign one automatically.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

Output only. Current stage of the resource to the device by config push.

Returns
TypeDescription
int

setState

Output only. Current stage of the resource to the device by config push.

Parameter
NameDescription
var int
Returns
TypeDescription
$this