class PlatformAPI::InboundRuleset

An inbound-ruleset is a collection of rules that specify what hosts can or cannot connect to an application.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 1993
def initialize(client)
  @client = client
end

Public Instance Methods

create(space_id_or_space_name, body = {}) click to toggle source

Create a new inbound ruleset

@param space_id_or_space_name: unique identifier of space or unique name of space @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 2023
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) click to toggle source

Current inbound ruleset for a space

@param space_id_or_space_name: unique identifier of space or unique name of space

# File lib/platform-api/client.rb, line 2000
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) click to toggle source

Info on an existing Inbound Ruleset

@param space_id_or_space_name: unique identifier of space or unique name of space @param inbound_ruleset_id: unique identifier of an inbound-ruleset

# File lib/platform-api/client.rb, line 2008
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) click to toggle source

List all inbound rulesets for a space

@param space_id_or_space_name: unique identifier of space or unique name of space

# File lib/platform-api/client.rb, line 2015
def list(space_id_or_space_name)
  @client.inbound_ruleset.list(space_id_or_space_name)
end