Sha256: 617df63759e77f12c3f473a238703fb188d47094d188db41df16eb4f733ad160
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
module Fog module Compute class ProfitBricks class Real # Get all locations # # ==== Parameters # * None # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * id<~String> - The resource's unique identifier # * type<~String> - The type of the requested resource # * href<~String> - URL to the object’s representation (absolute path) # * items<~Array> # * id<~String> - The resource's unique identifier consisting of country/city # * type<~String> - The type of the requested resource # * href<~String> - URL to the object’s representation (absolute path) # * properties<~Hash> - A hash containing the location properties # * name<~String> - A descriptive name for the location # * features<~Array> - Features available at this location # # {ProfitBricks API Documentation}[https://devops.profitbricks.com/api/cloud/v2/#list-locations] def get_all_locations request( :expects => [200], :method => 'GET', :path => "/locations?depth=5" ) end end class Mock def get_all_locations(options={}) response = Excon::Response.new response.status = 200 response.body = self.data[:locations] response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-profitbricks-2.0.1 | lib/fog/profitbricks/requests/compute/get_all_locations.rb |