Sha256: a74ef9f93289085d6e4ee246518f75bcf801d776a83f37f4eb258feb09e8a69a

Contents?: true

Size: 469 Bytes

Versions: 45

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

45 entries across 43 versions & 5 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.1.2 lib/fog/openstack/planning/models/role.rb
fog-openstack-fork-99 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.1.0 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.1.0.pre lib/fog/openstack/planning/models/role.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.0.11 lib/fog/openstack/planning/models/role.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.0.10 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.0.9 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.1.31 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.3.10 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.8 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.1.30 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.7 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.1.29 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.3.9 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.6 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.1.28 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.5 lib/fog/openstack/planning/models/role.rb