Class: PlatformAPI::InboundRuleset
- Inherits:
-
Object
- Object
- PlatformAPI::InboundRuleset
- Defined in:
- lib/platform-api/client.rb
Overview
An inbound-ruleset is a collection of rules that specify what hosts can or cannot connect to an application.
Instance Method Summary collapse
-
#create(space_id_or_space_name, body = {}) ⇒ Object
Create a new inbound ruleset.
-
#info(space_id_or_space_name, inbound_ruleset_id) ⇒ Object
Info on an existing Inbound Ruleset.
-
#initialize(client) ⇒ InboundRuleset
constructor
A new instance of InboundRuleset.
-
#list(space_id_or_space_name) ⇒ Object
List all inbound rulesets for a space.
Constructor Details
#initialize(client) ⇒ InboundRuleset
Returns a new instance of InboundRuleset.
1379 1380 1381 |
# File 'lib/platform-api/client.rb', line 1379 def initialize(client) @client = client end |
Instance Method Details
#create(space_id_or_space_name, body = {}) ⇒ Object
Create a new inbound ruleset
1402 1403 1404 |
# File 'lib/platform-api/client.rb', line 1402 def create(space_id_or_space_name, body = {}) @client.inbound_ruleset.create(space_id_or_space_name, body) end |
#info(space_id_or_space_name, inbound_ruleset_id) ⇒ Object
Info on an existing Inbound Ruleset
1387 1388 1389 |
# File 'lib/platform-api/client.rb', line 1387 def info(space_id_or_space_name, inbound_ruleset_id) @client.inbound_ruleset.info(space_id_or_space_name, inbound_ruleset_id) end |
#list(space_id_or_space_name) ⇒ Object
List all inbound rulesets for a space
1394 1395 1396 |
# File 'lib/platform-api/client.rb', line 1394 def list(space_id_or_space_name) @client.inbound_ruleset.list(space_id_or_space_name) end |