Sha256: c92501c6e0031ecfdc4b22b57d0f1e1c7e8b4f6425bd11c3b461568ea5e68591

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

require 'fog/huaweicloud/models/collection'
require 'fog/identity/huaweicloud/v2/models/role'

module Fog
  module Identity
    class HuaweiCloud
      class V2
        class Roles < Fog::HuaweiCloud::Collection
          model Fog::Identity::HuaweiCloud::V2::Role

          def all(options = {})
            load_response(service.list_roles(options), 'roles')
          end

          def get(id)
            service.get_role(id)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/identity/huaweicloud/v2/models/roles.rb
fog-huaweicloud-0.0.2 lib/fog/identity/huaweicloud/v2/models/roles.rb
fog-huaweicloud-0.1.3 lib/fog/identity/huaweicloud/v2/models/roles.rb
fog-huaweicloud-0.1.2 lib/fog/identity/huaweicloud/v2/models/roles.rb