Sha256: 148aa941bde4e7711f567090d9b3d54fc89450cecbe4b2d2904e3aa27b69db7b

Contents?: true

Size: 469 Bytes

Versions: 31

Compression:

Stored size: 469 Bytes

Contents

require 'fog/openstack/models/model'

module Fog
  module Openstack
    class Planning
      class Role < Fog::OpenStack::Model
        identity :uuid

        attribute :description
        attribute :name
        attribute :uuid

        def add_to_plan(plan_uuid)
          service.add_role_to_plan(plan_uuid, uuid)
        end

        def remove_from_plan(plan_uuid)
          service.remove_role_from_plan(plan_uuid, uuid)
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
fog-openstack-0.1.25 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.24 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.23 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.22 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.21 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.20 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.19 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.18 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.17 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.15 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.14 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.13 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.12 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.11 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.1.10 lib/fog/openstack/models/planning/role.rb
fog-openstack-0.1.9 lib/fog/openstack/models/planning/role.rb
fog-openstack-0.1.8 lib/fog/openstack/models/planning/role.rb
fog-openstack-0.1.7 lib/fog/openstack/models/planning/role.rb
fog-openstack-0.1.6 lib/fog/openstack/models/planning/role.rb
fog-openstack-0.1.5 lib/fog/openstack/models/planning/role.rb