Sha256: dbd2969de649c55bfebb48e22109d8f42169d9e7ff4673459caef304fea3aab9

Contents?: true

Size: 684 Bytes

Versions: 20

Compression:

Stored size: 684 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def patch_firewall(_firewall_name, _firewall_opts = {})
          Fog::Mock.not_implemented
        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

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.9.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.8.2 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.8.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.8.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.7.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.7.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.6.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.5.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.4.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.3.3 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.3.2 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.3.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.3.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.2.2 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.2.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.2.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.1.0 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.0.1 lib/fog/compute/google/requests/patch_firewall.rb
fog-google-1.0.0 lib/fog/compute/google/requests/patch_firewall.rb