lib/fog/compute/xen_server/models/pci.rb in fog-xenserver-0.0.1.beta1 vs lib/fog/compute/xen_server/models/pci.rb in fog-xenserver-0.0.1.beta2
- old
+ new
@@ -1,24 +1,25 @@
module Fog
module Compute
class XenServer
module Models
- class Pci < Fog::Model
+ class Pci < Model
# API Reference here:
# http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=PCI
provider_class :PCI
+ collection_name :pcis
identity :reference
attribute :device_name
attribute :other_config
attribute :pci_id
attribute :uuid
attribute :vendor_name
- has_many :dependencies, :pcis
- has_one :host, :hosts
+ has_many_identities :dependencies, :pcis
+ has_one_identity :host, :hosts
end
end
end
end
end
\ No newline at end of file