@classmethod
def add(cls, client, resource):
    '\n\n        :param client: \n        :param resource: \n\n        '
    try:
        if (resource and (type(resource) is not list)):
            updateresource = lbvserver_appfwpolicy_binding()
            updateresource.name = resource.name
            updateresource.policyname = resource.policyname
            updateresource.priority = resource.priority
            updateresource.gotopriorityexpression = resource.gotopriorityexpression
            updateresource.bindpoint = resource.bindpoint
            updateresource.invoke = resource.invoke
            updateresource.labeltype = resource.labeltype
            updateresource.labelname = resource.labelname
            return updateresource.update_resource(client)
        else:
            if (resource and (len(resource) > 0)):
                updateresources = [lbvserver_appfwpolicy_binding() for _ in range(len(resource))]
                for i in range(len(resource)):
                    updateresources[i].name = resource[i].name
                    updateresources[i].policyname = resource[i].policyname
                    updateresources[i].priority = resource[i].priority
                    updateresources[i].gotopriorityexpression = resource[i].gotopriorityexpression
                    updateresources[i].bindpoint = resource[i].bindpoint
                    updateresources[i].invoke = resource[i].invoke
                    updateresources[i].labeltype = resource[i].labeltype
                    updateresources[i].labelname = resource[i].labelname
            return cls.update_bulk_request(client, updateresources)
    except Exception as e:
        raise e
:param client: 
:param resource:
@classmethod
def add(cls, client, resource):
    '\n\n        :param client: \n        :param resource: \n\n        '
    try:
        if (resource and (type(resource) is not list)):
            updateresource = lbvserver_appfwpolicy_binding()
            updateresource.name = resource.name
            updateresource.policyname = resource.policyname
            updateresource.priority = resource.priority
            updateresource.gotopriorityexpression = resource.gotopriorityexpression
            updateresource.bindpoint = resource.bindpoint
            updateresource.invoke = resource.invoke
            updateresource.labeltype = resource.labeltype
            updateresource.labelname = resource.labelname
            return updateresource.update_resource(client)
        else:
            if (resource and (len(resource) > 0)):
                updateresources = [lbvserver_appfwpolicy_binding() for _ in range(len(resource))]
                for i in range(len(resource)):
                    updateresources[i].name = resource[i].name
                    updateresources[i].policyname = resource[i].policyname
                    updateresources[i].priority = resource[i].priority
                    updateresources[i].gotopriorityexpression = resource[i].gotopriorityexpression
                    updateresources[i].bindpoint = resource[i].bindpoint
                    updateresources[i].invoke = resource[i].invoke
                    updateresources[i].labeltype = resource[i].labeltype
                    updateresources[i].labelname = resource[i].labelname
            return cls.update_bulk_request(client, updateresources)
    except Exception as e:
        raise e