@@ -724,13 +724,11 @@ def addOrModifyPolicyResult(
724724 # SpaceTokenOccupancyCache Methods ...........................................
725725
726726 def selectSpaceTokenOccupancyCache (
727- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None , meta = None
727+ self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None , meta = None
728728 ):
729729 """
730730 Gets from SpaceTokenOccupancyCache all rows that match the parameters given.
731731
732- :param endpoint: endpoint
733- :type endpoint: string, list
734732 :param token: name of the token
735733 :type token: string, list
736734 :param total: total terabytes
@@ -745,19 +743,15 @@ def selectSpaceTokenOccupancyCache(
745743 For example: meta={'columns': ['Name']} will return only the 'Name' column.
746744 :return: S_OK() || S_ERROR()
747745 """
748- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" , "Meta" ]
749- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime , meta ]
746+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" , "Meta" ]
747+ columnValues = [token , total , guaranteed , free , lastCheckTime , meta ]
750748
751749 return self ._getRPC ().select ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
752750
753- def deleteSpaceTokenOccupancyCache (
754- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
755- ):
751+ def deleteSpaceTokenOccupancyCache (self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None ):
756752 """
757753 Deletes from SpaceTokenOccupancyCache all rows that match the parameters given.
758754
759- :param endpoint: endpoint
760- :type endpoint: string, list
761755 :param token: name of the token
762756 :type token: string, list
763757 :param total: total terabytes
@@ -770,13 +764,13 @@ def deleteSpaceTokenOccupancyCache(
770764 :type lastCheckTime: datetime, list
771765 :return: S_OK() || S_ERROR()
772766 """
773- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
774- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime ]
767+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
768+ columnValues = [token , total , guaranteed , free , lastCheckTime ]
775769
776770 return self ._getRPC ().delete ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
777771
778772 def addOrModifySpaceTokenOccupancyCache (
779- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
773+ self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
780774 ):
781775 """
782776 Adds or updates-if-duplicated to SpaceTokenOccupancyCache. Using `site` and `token`
@@ -791,8 +785,8 @@ def addOrModifySpaceTokenOccupancyCache(
791785 :param datetime lastCheckTime: time-stamp from which the result is effective
792786 :return: S_OK() || S_ERROR()
793787 """
794- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
795- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime ]
788+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
789+ columnValues = [token , total , guaranteed , free , lastCheckTime ]
796790
797791 return self ._getRPC ().addOrModify ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
798792
0 commit comments