<gh_stars>0
# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Check that a host or address object is in an address group"


class Input:
    ADDRESS = "address"
    ENABLE_SEARCH = "enable_search"
    GROUP = "group"
    

class Output:
    ADDRESS_OBJECTS = "address_objects"
    FOUND = "found"
    

class CheckIfAddressInAddressGroupInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "address": {
      "type": "string",
      "title": "Address",
      "description": "Address Object name, or IP, CIDR, or domain name when Enable Search is set to true",
      "order": 2
    },
    "enable_search": {
      "type": "boolean",
      "title": "Enable Search",
      "description": "When enabled, search for contents of Address Objects for an IP, CIDR or domain. This is useful when you don’t know the Address Object by its name",
      "default": false,
      "order": 3
    },
    "group": {
      "type": "string",
      "title": "Group Name",
      "description": "Name of address group to check",
      "order": 1
    }
  },
  "required": [
    "address",
    "group"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class CheckIfAddressInAddressGroupOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "address_objects": {
      "type": "array",
      "title": "Address Objects",
      "description": "The names and details of the address objects that match or contain the address",
      "items": {
        "type": "object"
      },
      "order": 2
    },
    "found": {
      "type": "boolean",
      "title": "Found",
      "description": "Return true if address was found in group, return false if not found",
      "order": 1
    }
  },
  "required": [
    "found"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)

# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json


class Component:
    DESCRIPTION = "Check that a host or address object is in an address group"


class Input:
    ADDRESS = "address"
    ENABLE_SEARCH = "enable_search"
    GROUP = "group"
    

class Output:
    ADDRESS_OBJECTS = "address_objects"
    FOUND = "found"
    

class CheckIfAddressInAddressGroupInput(insightconnect_plugin_runtime.Input):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "address": {
      "type": "string",
      "title": "Address",
      "description": "Address Object name, or IP, CIDR, or domain name when Enable Search is set to true",
      "order": 2
    },
    "enable_search": {
      "type": "boolean",
      "title": "Enable Search",
      "description": "When enabled, search for contents of Address Objects for an IP, CIDR or domain. This is useful when you don’t know the Address Object by its name",
      "default": false,
      "order": 3
    },
    "group": {
      "type": "string",
      "title": "Group Name",
      "description": "Name of address group to check",
      "order": 1
    }
  },
  "required": [
    "address",
    "group"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)


class CheckIfAddressInAddressGroupOutput(insightconnect_plugin_runtime.Output):
    schema = json.loads("""
   {
  "type": "object",
  "title": "Variables",
  "properties": {
    "address_objects": {
      "type": "array",
      "title": "Address Objects",
      "description": "The names and details of the address objects that match or contain the address",
      "items": {
        "type": "object"
      },
      "order": 2
    },
    "found": {
      "type": "boolean",
      "title": "Found",
      "description": "Return true if address was found in group, return false if not found",
      "order": 1
    }
  },
  "required": [
    "found"
  ]
}
    """)

    def __init__(self):
        super(self.__class__, self).__init__(self.schema)
# GENERATED BY KOMAND SDK - DO NOT EDIT {   "type": "object",   "title": "Variables",   "properties": {     "address": {       "type": "string",       "title": "Address",       "description": "Address Object name, or IP, CIDR, or domain name when Enable Search is set to true",       "order": 2     },     "enable_search": {       "type": "boolean",       "title": "Enable Search",       "description": "When enabled, search for contents of Address Objects for an IP, CIDR or domain. This is useful when you don’t know the Address Object by its name",       "default": false,       "order": 3     },     "group": {       "type": "string",       "title": "Group Name",       "description": "Name of address group to check",       "order": 1     }   },   "required": [     "address",     "group"   ] } {   "type": "object",   "title": "Variables",   "properties": {     "address_objects": {       "type": "array",       "title": "Address Objects",       "description": "The names and details of the address objects that match or contain the address",       "items": {         "type": "object"       },       "order": 2     },     "found": {       "type": "boolean",       "title": "Found",       "description": "Return true if address was found in group, return false if not found",       "order": 1     }   },   "required": [     "found"   ] }