fog/fog-google

View on GitHub
lib/fog/compute/google/requests/list_machine_types.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module Compute
    class Google
      class Mock
        def list_machine_types(_zone, _opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def list_machine_types(zone, filter: nil, max_results: nil,
                               page_token: nil, order_by: nil)
          zone = zone.split("/")[-1] if zone.start_with? "http"
          @compute.list_machine_types(@project, zone,
                                      filter: filter,
                                      max_results: max_results,
                                      page_token: page_token,
                                      order_by: order_by)
        end
      end
    end
  end
end