Sha256: 3b69eb04c1a677bc644a602939629c7c32d96e6c670897f95a15e4d1fa28a21d

Contents?: true

Size: 816 Bytes

Versions: 7

Compression:

Stored size: 816 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Applies firewall policy to given server group
        #
        # @param [String] identifier Unique reference to identify the resource
        # @param [Hash] options
        # @option options [String] :server_group Server Group to apply to
        #
        # @return [Hash] if successful Hash version of JSON object
        # @return [NilClass] if no options were passed
        #
        # @see https://api.gb1.brightbox.com/1.0/#firewall_policy_apply_to_firewall_policy
        #
        def apply_to_firewall_policy(identifier, options)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("post", "/1.0/firewall_policies/#{identifier}/apply_to", [202], options)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-brightbox-0.9.0/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
fog-brightbox-0.9.0 lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
fog-brightbox-0.8.0 lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
fog-brightbox-0.7.2 lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-brightbox-0.7.1/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
fog-brightbox-0.7.1 lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb
fog-brightbox-0.7.0 lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb