# Oracle Database@Google Cloud V1 API - Class Google::Cloud::OracleDatabase::V1::OdbSubnet (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Oracle Database@Google Cloud V1 API class Google::Cloud::OracleDatabase::V1::OdbSubnet.

Represents OdbSubnet resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cidr_range

    def cidr_range() -> ::String

**Returns**

- (::String) --- Required. The CIDR range of the subnet.

### #cidr_range=

    def cidr_range=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The CIDR range of the subnet.
**Returns**

- (::String) --- Required. The CIDR range of the subnet.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The date and time that the OdbNetwork was created.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels or tags associated with the resource.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels or tags associated with the resource.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels or tags associated with the resource.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the OdbSubnet resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
**Returns**

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

### #purpose

    def purpose() -> ::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose

**Returns**

- ([::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-OdbSubnet-Purpose)) --- Required. Purpose of the subnet.

### #purpose=

    def purpose=(value) -> ::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose

**Parameter**

- **value** ([::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-OdbSubnet-Purpose)) --- Required. Purpose of the subnet.
**Returns**

- ([::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-OdbSubnet-Purpose)) --- Required. Purpose of the subnet.

### #state

    def state() -> ::Google::Cloud::OracleDatabase::V1::OdbSubnet::State

**Returns**

- ([::Google::Cloud::OracleDatabase::V1::OdbSubnet::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest/Google-Cloud-OracleDatabase-V1-OdbSubnet-State)) --- Output only. State of the ODB Subnet.