Sha256: 7e684998dfb940e14cd895f18b08c936cd3797eabbfc523c86e3cca27b89926f

Contents?: true

Size: 394 Bytes

Versions: 12

Compression:

Stored size: 394 Bytes

Contents

module CloudControl::API
    class Infrastructure < Core
        def list_regions(options = {})
            endpoint "/#{org_id}/infrastructure/geographicRegion"
            query_params options
            get
        end

        def list_datacenters(options = {})
          endpoint "/#{org_id}/infrastructure/datacenter"
          query_params options
          get
        end

    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cloudcontrol_sdk-0.4.3 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.4.2 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.4.1 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.4.0 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.12 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.11 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.10 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.9 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.8 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.7 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.6 lib/cloudcontrol/api/infrastructure.rb
cloudcontrol_sdk-0.3.5 lib/cloudcontrol/api/infrastructure.rb