Class: PlatformAPI::OutboundRuleset
- Inherits:
-
Object
- Object
- PlatformAPI::OutboundRuleset
- Defined in:
- lib/platform-api/client.rb
Overview
An outbound-ruleset is a collection of rules that specify what hosts Dynos are allowed to communicate with.
Instance Method Summary collapse
-
#create(space_id_or_space_name, body = {}) ⇒ Object
Create a new outbound ruleset.
-
#current(space_id_or_space_name) ⇒ Object
Current outbound ruleset for a space.
-
#info(space_id_or_space_name, outbound_ruleset_id) ⇒ Object
Info on an existing Outbound Ruleset.
-
#initialize(client) ⇒ OutboundRuleset
constructor
A new instance of OutboundRuleset.
-
#list(space_id_or_space_name) ⇒ Object
List all Outbound Rulesets for a space.
Constructor Details
#initialize(client) ⇒ OutboundRuleset
Returns a new instance of OutboundRuleset.
2274 2275 2276 |
# File 'lib/platform-api/client.rb', line 2274 def initialize(client) @client = client end |
Instance Method Details
#create(space_id_or_space_name, body = {}) ⇒ Object
Create a new outbound ruleset
2304 2305 2306 |
# File 'lib/platform-api/client.rb', line 2304 def create(space_id_or_space_name, body = {}) @client.outbound_ruleset.create(space_id_or_space_name, body) end |
#current(space_id_or_space_name) ⇒ Object
Current outbound ruleset for a space
2281 2282 2283 |
# File 'lib/platform-api/client.rb', line 2281 def current(space_id_or_space_name) @client.outbound_ruleset.current(space_id_or_space_name) end |
#info(space_id_or_space_name, outbound_ruleset_id) ⇒ Object
Info on an existing Outbound Ruleset
2289 2290 2291 |
# File 'lib/platform-api/client.rb', line 2289 def info(space_id_or_space_name, outbound_ruleset_id) @client.outbound_ruleset.info(space_id_or_space_name, outbound_ruleset_id) end |
#list(space_id_or_space_name) ⇒ Object
List all Outbound Rulesets for a space
2296 2297 2298 |
# File 'lib/platform-api/client.rb', line 2296 def list(space_id_or_space_name) @client.outbound_ruleset.list(space_id_or_space_name) end |