Sha256: 67d9f193ec09fd7b48d78b2e54b4a5312c125dcc45a8c66c58022e33da82df51

Contents?: true

Size: 684 Bytes

Versions: 14

Compression:

Stored size: 684 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_global_address(_address_name, _options = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        INSERTABLE_ADDRESS_FIELDS = %i{description ip_version}.freeze

        def insert_global_address(address_name, options = {})
          opts = options.select { |k, _| INSERTABLE_ADDRESS_FIELDS.include? k }
                        .merge(:name => address_name)
          @compute.insert_global_address(
            @project, ::Google::Apis::ComputeV1::Address.new(**opts)
          )
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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