Sha256: e710efff6ec2fc1e872f5980ec5b66c35a2edda94e6ccf82b6d3b817c255ff19

Contents?: true

Size: 508 Bytes

Versions: 14

Compression:

Stored size: 508 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def reset_server(_identity, _zone)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def reset_server(identity, zone)
          api_method = @compute.instances.reset
          parameters = {
            "project"  => @project,
            "instance" => identity,
            "zone"     => zone.split("/")[-1]
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.5 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.4 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.3 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.2 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.1 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.5.0 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.4.2 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.4.1 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.4.0 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.3.2 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.3.1 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.3.0 lib/fog/compute/google/requests/reset_server.rb
fog-google-0.2.0 lib/fog/compute/google/requests/reset_server.rb