Sha256: a2938ce069ac5f2ee960b078420ffd3e3ffa43dc3a09a8a8ac6e96cda0c314c2

Contents?: true

Size: 821 Bytes

Versions: 7

Compression:

Stored size: 821 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real
        # Create a new firewall policy for the account.
        #
        # Optionally applying to a server group at creation time.
        #
        # @param [Hash] options
        # @option options [String] :server_group
        # @option options [String] :name Editable label
        # @option options [String] :description Longer editable description
        #
        # @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_create_firewall_policy
        #
        def create_firewall_policy(options)
          wrapped_request("post", "/1.0/firewall_policies", [201], 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/create_firewall_policy.rb
fog-brightbox-0.9.0 lib/fog/brightbox/requests/compute/create_firewall_policy.rb
fog-brightbox-0.8.0 lib/fog/brightbox/requests/compute/create_firewall_policy.rb
fog-brightbox-0.7.2 lib/fog/brightbox/requests/compute/create_firewall_policy.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-brightbox-0.7.1/lib/fog/brightbox/requests/compute/create_firewall_policy.rb
fog-brightbox-0.7.1 lib/fog/brightbox/requests/compute/create_firewall_policy.rb
fog-brightbox-0.7.0 lib/fog/brightbox/requests/compute/create_firewall_policy.rb