Sha256: 2c9eb70f9f14cd132bbbc03af7f6d370f45f8730a1103c1023f7fcd396864bcd

Contents?: true

Size: 516 Bytes

Versions: 12

Compression:

Stored size: 516 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_network(_network_name, _opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def insert_network(network_name, opts = {})
          opts = opts.merge(:name => network_name)

          @compute.insert_network(
            @project,
            ::Google::Apis::ComputeV1::Network.new(**opts)
          )
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.24.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.23.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.22.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.21.1 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.21.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.20.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.19.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.18.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.17.0 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.16.1 lib/fog/compute/google/requests/insert_network.rb
fog-google-1.16.0 lib/fog/compute/google/requests/insert_network.rb