Sha256: 0354c0c77831138f770afbcdabc86694dbd660e1f5fd1a714b8fc9c1df3f7687

Contents?: true

Size: 589 Bytes

Versions: 47

Compression:

Stored size: 589 Bytes

Contents

module Brightbox
  class FirewallPolicy < Api
    def self.require_account?; true; end
    def self.create(options)
      new(conn.firewall_policies.create(options))
    end

    def self.get(id)
      conn.firewall_policies.get(id)
    end

    def self.all
      conn.firewall_policies
    end

    def attributes
      t = fog_model.attributes
      t[:name] = name
      t[:description] = description
      t[:server_group] = server_group_id
      t
    end

    def to_row
      attributes
    end

    def self.default_field_order
      [:id, :server_group, :name]
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
brightbox-cli-3.3.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-3.2.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-3.1.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-3.0.1 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-3.0.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.12.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.11.2 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.11.1 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.11.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.10.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.9.3 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.9.2 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.9.1 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.9.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.8.2 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.8.1 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.8.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.7.1 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.7.0 lib/brightbox-cli/firewall_policy.rb
brightbox-cli-2.6.0 lib/brightbox-cli/firewall_policy.rb