Sha256: 36b3a478a0ebb655403ffe5120f01c73426be7db68a1db0e8926fd2fabf967f9

Contents?: true

Size: 353 Bytes

Versions: 8

Compression:

Stored size: 353 Bytes

Contents

module Yao::Resources
  module ServerUsageAssociationable
    # @param opt [Hash]
    # @return [Hash]
    def server_usage(params = {})
      path = "./os-simple-tenant-usage/#{id}"
      client = Yao.default_client.pool['compute']
      res = client.get(path, params, {"Accept" => "application/json"})
      res.body["tenant_usage"]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yao-0.21.0 lib/yao/resources/server_usage_associationable.rb
yao-0.20.0 lib/yao/resources/server_usage_associationable.rb
yao-0.19.0 lib/yao/resources/server_usage_associationable.rb
yao-0.18.0 lib/yao/resources/server_usage_associationable.rb
yao-0.17.0 lib/yao/resources/server_usage_associationable.rb
yao-0.16.0 lib/yao/resources/server_usage_associationable.rb
yao-0.15.0 lib/yao/resources/server_usage_associationable.rb
yao-0.14.0 lib/yao/resources/server_usage_associationable.rb