Sha256: 676a6ec428e5f8d8a289aed3c8ed5ea5cfefff0cea35cb1092f078f6f22677c2

Contents?: true

Size: 738 Bytes

Versions: 14

Compression:

Stored size: 738 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

14 entries across 14 versions & 1 rubygems

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