Example #1
0
    def grouping(self):
        """Grouping of the rule

        :type: :class:`unicode`
        """
        grouping = gdef.BSTR()
        self.get_RemotePorts(grouping)
        return grouping.value
Example #2
0
    def local_port(self):
        """Local port of the rule

        :type: :class:`unicode`
        """
        local_port = gdef.BSTR()
        self.get_LocalPorts(local_port)
        return local_port.value
Example #3
0
    def remote_port(self):
        """Remote port of the rule

        :type: :class:`unicode`
        """
        remote_port = gdef.BSTR()
        self.get_RemotePorts(remote_port)
        return remote_port.value
Example #4
0
    def remote_address(self):
        """Remote address of the rule

        :type: :class:`unicode`
        """
        remote_address = gdef.BSTR()
        self.get_RemoteAddresses(remote_address)
        return remote_address.value
Example #5
0
    def interface_types(self):
        """Types of interface of the rule

        :type: :class:`unicode`
        """
        interface_type = gdef.BSTR()
        self.get_InterfaceTypes(interface_type)
        return interface_type.value
Example #6
0
    def service_name(self):
        """Name of the service to which apply the rule

        :type: :class:`unicode`
        """
        servicename = gdef.BSTR()
        self.get_ServiceName(servicename)
        return servicename.value
Example #7
0
    def local_address(self):
        """Local address of the rule

        :type: :class:`unicode`
        """
        local_address = gdef.BSTR()
        self.get_LocalAddresses(local_address)
        return local_address.value
Example #8
0
    def description(self):
        """Description of the rule

        :type: :class:`unicode`
        """
        description = gdef.BSTR()
        self.get_Description(description)
        return description.value
Example #9
0
    def application_name(self):
        """Name of the application to which apply the rule

        :type: :class:`unicode`
        """
        applicationname = gdef.BSTR()
        self.get_ApplicationName(applicationname)
        return applicationname.value
Example #10
0
    def name(self):
        """Name of the rule

        :type: :class:`unicode`
        """
        name = gdef.BSTR()
        self.get_Name(name)
        return name.value
Example #11
0
 def icmp_type_and_code(self):
     icmp_type_and_code = gdef.BSTR()
     self.get_RemotePorts(icmp_type_and_code)
     return icmp_type_and_code.value
Example #12
0
 def get_security_descriptor(self, secinfo):
     res = gdef.BSTR()
     self.GetSecurityDescriptor(secinfo, res)
     return res.value
Example #13
0
 def get_result_string(self, timeout=gdef.WBEM_INFINITE):
     """The result as a :class:`WmiObject` (returned by :func:`WmiNamespace.put_instance`)"""
     result = gdef.BSTR()
     self.GetResultString(timeout, result)
     return result
Example #14
0
 def docu(self, id):
     res = gdef.BSTR()
     self.GetDocumentation(id, res, None, None, None)
     return res
Example #15
0
 def names(self, memid):
     size = gdef.UINT()
     x = (gdef.BSTR * 10)(*tuple(gdef.BSTR() for i in range(10)))
     self.GetNames(memid, x, 10, size)
     return x[:size.value]