class Apcera::SemiPipeRuleAction

Attributes

commands[RW]
inline[RW]
uri[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/apcera/models/semi_pipe_rule_action.rb, line 6
def self.attribute_map
  {
    
    # Commands that will trigger the hook or notification.
    :'commands' => :'commands',
    
    # If no URL is given, you can specify an action directly. URL and action cannot be specified at the same time. Action can be 'allow' or 'deny'.
    :'inline' => :'inline',
    
    # URL to receive the hook or notification request. Required for notifications, but optional for hooks.
    :'uri' => :'uri'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/apcera/models/semi_pipe_rule_action.rb, line 31
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'commands']
    if (value = attributes[:'commands']).is_a?(Array)
      self.commands = value
    end
  end
  
  if attributes[:'inline']
    self.inline = attributes[:'inline']
  end
  
  if attributes[:'uri']
    self.uri = attributes[:'uri']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/apcera/models/semi_pipe_rule_action.rb, line 22
def self.swagger_types
  {
    :'commands' => :'Array<String>',
    :'inline' => :'String',
    :'uri' => :'String'
    
  }
end