Sha256: b2d08f6738ef8fe52d464a02f3def381c0ae1c9654b5aab510a5f234e1d7a40f
Contents?: true
Size: 696 Bytes
Versions: 11
Compression:
Stored size: 696 Bytes
Contents
require 'fog/openstack/models/model' module Fog module Compute class OpenStack class ServerGroup < Fog::OpenStack::Model identity :id attribute :name attribute :policies, :type => :array attribute :members VALID_SERVER_GROUP_POLICIES = ['affinity', 'anti-affinity'].freeze def self.validate_server_group_policy(policy) raise ArgumentError, "#{policy} is an invalid policy... must use one of #{VALID_SERVER_GROUP_POLICIES.join(', ')}" \ unless VALID_SERVER_GROUP_POLICIES.include? policy true end end # class ServerGroup end # class OpenStack end # module Compute end # module Fog
Version data entries
11 entries across 11 versions & 1 rubygems