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.
-
#current(space_id_or_space_name) ⇒ Object
Current inbound ruleset for a space.
-
#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.
2058 2059 2060 |
# File 'lib/platform-api/client.rb', line 2058 def initialize(client) @client = client end |
Instance Method Details
#create(space_id_or_space_name, body = {}) ⇒ Object
Create a new inbound ruleset
2088 2089 2090 |
# File 'lib/platform-api/client.rb', line 2088 def create(space_id_or_space_name, body = {}) @client.inbound_ruleset.create(space_id_or_space_name, body) end |
#current(space_id_or_space_name) ⇒ Object
Current inbound ruleset for a space
2065 2066 2067 |
# File 'lib/platform-api/client.rb', line 2065 def current(space_id_or_space_name) @client.inbound_ruleset.current(space_id_or_space_name) end |
#info(space_id_or_space_name, inbound_ruleset_id) ⇒ Object
Info on an existing Inbound Ruleset
2073 2074 2075 |
# File 'lib/platform-api/client.rb', line 2073 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
2080 2081 2082 |
# File 'lib/platform-api/client.rb', line 2080 def list(space_id_or_space_name) @client.inbound_ruleset.list(space_id_or_space_name) end |