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-0.3.8 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.3.7 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.4 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.3.6 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.3 lib/fog/openstack/planning/models/role.rb
fog-openstack-1.0.2 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.3.5 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.3.4 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.1 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.3.3 lib/fog/planning/openstack/models/role.rb
fog-openstack-1.0.0 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.3.2 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.3.1 lib/fog/openstack/planning/models/role.rb
fog-openstack-0.3.0 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.2.4 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.2.3 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.2.2 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.2.1 lib/fog/planning/openstack/models/role.rb
fog-openstack-0.2.0 lib/fog/planning/openstack/models/role.rb
fog-zj-0.1.28 lib/fog/planning/openstack/models/role.rb