Sha256: 0438b9f692bcfdb3a1953da492cb37e5c7a2decceac9a750846c6679d1f122d4

Contents?: true

Size: 534 Bytes

Versions: 18

Compression:

Stored size: 534 Bytes

Contents

module Yao::Resources
  class RoleAssignment < Base
    friendly_attributes :scope, :role, :user
    self.service        = "identity"
    self.resource_name  = "role_assignment"
    self.resources_name  = "role_assignments"
    self.admin          = true
    self.api_version    = "v3"
    self.client.url_prefix = Yao.config.auth_url.gsub(/v2.0|v3/, '')

    def project
      @project ||= Yao::Tenant.get(scope["project"]["id"])
    end

    map_attribute_to_resource  role: Role
    map_attribute_to_resource  user: User
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
yao-0.13.4 lib/yao/resources/role_assignment.rb
yao-0.13.3 lib/yao/resources/role_assignment.rb
yao-0.13.2 lib/yao/resources/role_assignment.rb
yao-0.13.1 lib/yao/resources/role_assignment.rb
yao-0.13.0 lib/yao/resources/role_assignment.rb
yao-0.12.0 lib/yao/resources/role_assignment.rb
yao-0.11.3 lib/yao/resources/role_assignment.rb
yao-0.11.2 lib/yao/resources/role_assignment.rb
yao-0.11.1 lib/yao/resources/role_assignment.rb
yao-0.11.0 lib/yao/resources/role_assignment.rb
yao-0.10.1 lib/yao/resources/role_assignment.rb
yao-0.10.0 lib/yao/resources/role_assignment.rb
yao-0.9.1 lib/yao/resources/role_assignment.rb
yao-0.9.0 lib/yao/resources/role_assignment.rb
yao-0.8.0 lib/yao/resources/role_assignment.rb
yao-0.7.0 lib/yao/resources/role_assignment.rb
yao-0.6.3 lib/yao/resources/role_assignment.rb
yao-0.6.2 lib/yao/resources/role_assignment.rb