class Fastly::ACLEntry

Acces Control List Entry configuration

Attributes

acl_id[RW]

The ACL this entry belongs to.

comment[RW]
id[RW]
ip[RW]

The IP address.

negated[RW]

A boolean that will negate the match if true.

service_id[RW]
subnet[RW]

Optional subnet for the IP address.

Public Class Methods

delete_path(object) click to toggle source
# File lib/fastly/acl_entry.rb, line 45
def self.delete_path(object)
  put_path(object)
end
get_path(service_id, acl_id, id) click to toggle source

:attr: comment

A descriptive note.

# File lib/fastly/acl_entry.rb, line 33
def self.get_path(service_id, acl_id, id)
  "/service/#{service_id}/acl/#{acl_id}/entry/#{CGI.escape(id)}"
end
list_path(opts = {}) click to toggle source
# File lib/fastly/acl_entry.rb, line 49
def self.list_path(opts = {})
  "/service/#{opts[:service_id]}/acl/#{opts[:acl_id]}/entries"
end
pluralize() click to toggle source
# File lib/fastly/acl_entry.rb, line 57
def self.pluralize
  'acl_entries'
end
post_path(opts) click to toggle source
# File lib/fastly/acl_entry.rb, line 37
def self.post_path(opts)
  "/service/#{opts[:service_id]}/acl/#{opts[:acl_id]}/entry"
end
put_path(object) click to toggle source
# File lib/fastly/acl_entry.rb, line 41
def self.put_path(object)
  get_path(object.service_id, object.acl_id, object.id)
end
singularize() click to toggle source
# File lib/fastly/acl_entry.rb, line 53
def self.singularize
  'acl_entry'
end