Sha256: 9d90afe35cd69cd622e760c244fb9aebdd4491424a28fb1c4ff4ef3f3de405cc
Contents?: true
Size: 805 Bytes
Versions: 2
Compression:
Stored size: 805 Bytes
Contents
require 'fog/core/model' module Fog module Compute class OracleCloud class IpAssociation < Fog::Model identity :name attribute :account attribute :ip attribute :parentpool attribute :reservation attribute :vcable attribute :uri def save if name.nil? then create else # TODO: Support? #update end end def create requires :parentpool, :vcable data = service.create_ip_association({ :parentpool => parentpool, :vcable => vcable }) merge_attributes(data.body) end def destroy requires :name service.delete_ip_association(name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-oraclecloud-0.1.17 | lib/fog/oraclecloud/models/compute/ip_association.rb |
fog-oraclecloud-0.1.16 | lib/fog/oraclecloud/models/compute/ip_association.rb |