Google Cloud Oracle Database V1 Client - Class OdbSubnet (0.8.0)

Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class OdbSubnet.

Represents OdbSubnet resource.

Generated from protobuf message google.cloud.oracledatabase.v1.OdbSubnet

Namespace

Google \ Cloud \ OracleDatabase \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}

↳ cidr_range string

Required. The CIDR range of the subnet.

↳ purpose int

Required. Purpose of the subnet.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels or tags associated with the resource.

↳ create_time Google\Protobuf\Timestamp

Output only. The date and time that the OdbNetwork was created.

↳ state int

Output only. State of the ODB Subnet.

getName

Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}

Returns
Type Description
string

setName

Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}

Parameter
Name Description
var string
Returns
Type Description
$this

getCidrRange

Required. The CIDR range of the subnet.

Returns
Type Description
string

setCidrRange

Required. The CIDR range of the subnet.

Parameter
Name Description
var string
Returns
Type Description
$this

getPurpose

Required. Purpose of the subnet.

Returns
Type Description
int Enum of type Purpose.

setPurpose

Required. Purpose of the subnet.

Parameter
Name Description
var int

Enum of type Purpose.

Returns
Type Description
$this

getLabels

Optional. Labels or tags associated with the resource.

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels or tags associated with the resource.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getCreateTime

Output only. The date and time that the OdbNetwork was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The date and time that the OdbNetwork was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. State of the ODB Subnet.

Returns
Type Description
int Enum of type State.

setState

Output only. State of the ODB Subnet.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this