Sha256: adc0722670500d09b60b2d9c2de838a764ad65674cc68aa45ea591e875e763fa

Contents?: true

Size: 736 Bytes

Versions: 7

Compression:

Stored size: 736 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def patch_firewall(_firewall_name, _firewall_opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        ##
        # Patch a Firewall resource. Supports PATCH semantics.
        #
        # @see https://cloud.google.com/compute/docs/reference/latest/firewalls/patch
        def patch_firewall(firewall_name, opts = {})
          opts = opts.select { |k, _| UPDATABLE_FIREWALL_FIELDS.include? k }
          @compute.patch_firewall(
            @project, firewall_name,
            ::Google::Apis::ComputeV1::Firewall.new(opts)
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.13.0 lib/fog/compute/google/requests/patch_firewall.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.12.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.12.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.11.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.10.0 lib/fog/compute/google/requests/patch_firewall.rb