Class: Google::Apis::OracledatabaseV1::OdbSubnet
- Inherits:
-
Object
- Object
- Google::Apis::OracledatabaseV1::OdbSubnet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/oracledatabase_v1/classes.rb,
lib/google/apis/oracledatabase_v1/representations.rb,
lib/google/apis/oracledatabase_v1/representations.rb
Overview
Represents OdbSubnet resource.
Instance Attribute Summary collapse
-
#cidr_range ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
-
#purpose ⇒ String
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OdbSubnet
constructor
A new instance of OdbSubnet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OdbSubnet
Returns a new instance of OdbSubnet.
8750 8751 8752 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr_range ⇒ String
Required. The CIDR range of the subnet.
Corresponds to the JSON property cidrRange
8721 8722 8723 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8721 def cidr_range @cidr_range end |
#create_time ⇒ String
Output only. The date and time that the OdbNetwork was created.
Corresponds to the JSON property createTime
8726 8727 8728 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8726 def create_time @create_time end |
#labels ⇒ Hash<String,String>
Optional. Labels or tags associated with the resource.
Corresponds to the JSON property labels
8731 8732 8733 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8731 def labels @labels end |
#name ⇒ String
Identifier. The name of the OdbSubnet resource in the following format:
projects/project/locations/location/odbNetworks/odb_network/odbSubnets/
odb_subnet
Corresponds to the JSON property name
8738 8739 8740 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8738 def name @name end |
#purpose ⇒ String
Required. Purpose of the subnet.
Corresponds to the JSON property purpose
8743 8744 8745 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8743 def purpose @purpose end |
#state ⇒ String
Output only. State of the ODB Subnet.
Corresponds to the JSON property state
8748 8749 8750 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8748 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8755 8756 8757 8758 8759 8760 8761 8762 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8755 def update!(**args) @cidr_range = args[:cidr_range] if args.key?(:cidr_range) @create_time = args[:create_time] if args.key?(:create_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @purpose = args[:purpose] if args.key?(:purpose) @state = args[:state] if args.key?(:state) end |