Sha256: d7e694c37fa2d0a64eeb5b93ae7d295d5f8e57e0da6475775f308ccb4cf4f6fc

Contents?: true

Size: 1.18 KB

Versions: 7

Compression:

Stored size: 1.18 KB

Contents

module Fog
  module Compute
    class XenServer
      module Models
        class Network < Model
          # API Reference here:
          # http://docs.vmd.citrix.com/XenServer/6.2.0/1.0/en_gb/api/?c=network

          provider_class :network
          collection_name :networks

          identity :reference

          attribute :allowed_operations
          attribute :blobs
          attribute :bridge
          attribute :current_operations
          attribute :default_locking_mode
          attribute :description,         :aliases => :name_description,  :default => "",  :as => :name_description
          attribute :mtu,                 :aliases => :MTU,                                :as => :MTU
          attribute :name,                :aliases => :name_label,        :default => "",  :as => :name_label
          attribute :other_config,                                        :default => {}
          attribute :tags
          attribute :uuid

          has_many_identities :pifs,  :pifs,         :aliases => :PIFs,   :as => :PIFs
          has_many_identities :vifs,  :vifs,         :aliases => :VIFs,   :as => :VIFs

          require_before_save :name
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/network.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/network.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/network.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/models/network.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/models/network.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/models/network.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/models/network.rb