Class: Google::Apis::OracledatabaseV1::OdbSubnet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OdbSubnet

Returns a new instance of OdbSubnet.



4601
4602
4603
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4601

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cidr_rangeString

Required. The CIDR range of the subnet. Corresponds to the JSON property cidrRange

Returns:

  • (String)


4572
4573
4574
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4572

def cidr_range
  @cidr_range
end

#create_timeString

Output only. The date and time that the OdbNetwork was created. Corresponds to the JSON property createTime

Returns:

  • (String)


4577
4578
4579
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4577

def create_time
  @create_time
end

#labelsHash<String,String>

Optional. Labels or tags associated with the resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


4582
4583
4584
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4582

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


4589
4590
4591
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4589

def name
  @name
end

#purposeString

Required. Purpose of the subnet. Corresponds to the JSON property purpose

Returns:

  • (String)


4594
4595
4596
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4594

def purpose
  @purpose
end

#stateString

Output only. State of the ODB Subnet. Corresponds to the JSON property state

Returns:

  • (String)


4599
4600
4601
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4599

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4606
4607
4608
4609
4610
4611
4612
4613
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 4606

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