Sha256: 6e7ed08307a9c7506c0f01e75948e592d6ac6297cd3c2ddfba5437fc87194e72

Contents?: true

Size: 522 Bytes

Versions: 7

Compression:

Stored size: 522 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def delete_instance_group(group_name, zone)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def delete_instance_group(group_name, zone)
          api_method = @compute.instance_groups.delete
          parameters = {
            'instanceGroup' => group_name,
            'project' => @project,
            'zone' => zone
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/delete_instance_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/delete_instance_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/delete_instance_group.rb
fog-google-0.1.3 lib/fog/google/requests/compute/delete_instance_group.rb
fog-google-0.1.2 lib/fog/google/requests/compute/delete_instance_group.rb
fog-google-0.1.1 lib/fog/google/requests/compute/delete_instance_group.rb
fog-google-0.1.0 lib/fog/google/requests/compute/delete_instance_group.rb