fog/fog-xenserver

View on GitHub
lib/fog/xenserver/compute/models/host_patch.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module XenServer
    class Compute
      module Models
        class HostPatch < Model
          # API Reference here:
          # http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=host_patch

          provider_class :host_patch
          collection_name :host_patchs

          identity :reference

          attribute :applied
          attribute :description,         :aliases => :name_description
          attribute :name,                :aliases => :name_label
          attribute :other_config
          attribute :size
          attribute :timestamp_applied
          attribute :uuid
          attribute :version

          has_one_identity   :host,       :hosts
          has_one_identity   :pool_patch, :pool_patchs
        end
      end
    end
  end
end