Class: OracleCloud::IPAssociation
- Inherits:
-
Asset
- Object
- Asset
- OracleCloud::IPAssociation
show all
- Defined in:
- lib/oraclecloud/ip_association.rb
Instance Attribute Summary
Attributes inherited from Asset
#asset_data, #asset_type, #client, #container, #path
Instance Method Summary
collapse
Methods inherited from Asset
#fetch, #full_name, #id, #initialize, #name_with_container, #strip_identity_domain, #validate!
Instance Method Details
#ip_address ⇒ Object
28
29
30
|
# File 'lib/oraclecloud/ip_association.rb', line 28
def ip_address
asset_data['ip']
end
|
#local_init ⇒ Object
20
21
22
|
# File 'lib/oraclecloud/ip_association.rb', line 20
def local_init
@asset_type = 'ip/association'
end
|
#reservation_id ⇒ Object
32
33
34
|
# File 'lib/oraclecloud/ip_association.rb', line 32
def reservation_id
asset_data['reservation'].split('/').last
end
|
#vcable_id ⇒ Object
24
25
26
|
# File 'lib/oraclecloud/ip_association.rb', line 24
def vcable_id
asset_data['vcable']
end
|