@classmethod
def add(cls, client, resource):
    try:
        if (resource and (type(resource) is not list)):
            updateresource = cls.filter_add_parameters(resource)
            return updateresource.update_resource(client)
        else:
            if (resource and (len(resource) > 0)):
                updateresources = [vpnvserver_vpnnexthopserver_binding() for _ in range(len(resource))]
                for i in range(len(resource)):
                    updateresources[i] = cls.filter_add_parameters(resource[i])
            return cls.update_bulk_request(client, updateresources)
    except Exception as e:
        raise e
@classmethod
def add(cls, client, resource):
    try:
        if (resource and (type(resource) is not list)):
            updateresource = cls.filter_add_parameters(resource)
            return updateresource.update_resource(client)
        else:
            if (resource and (len(resource) > 0)):
                updateresources = [vpnvserver_vpnnexthopserver_binding() for _ in range(len(resource))]
                for i in range(len(resource)):
                    updateresources[i] = cls.filter_add_parameters(resource[i])
            return cls.update_bulk_request(client, updateresources)
    except Exception as e:
        raise e