@@ -725,13 +725,11 @@ def addOrModifyPolicyResult(
725725 # SpaceTokenOccupancyCache Methods ...........................................
726726
727727 def selectSpaceTokenOccupancyCache (
728- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None , meta = None
728+ self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None , meta = None
729729 ):
730730 """
731731 Gets from SpaceTokenOccupancyCache all rows that match the parameters given.
732732
733- :param endpoint: endpoint
734- :type endpoint: string, list
735733 :param token: name of the token
736734 :type token: string, list
737735 :param total: total terabytes
@@ -746,19 +744,15 @@ def selectSpaceTokenOccupancyCache(
746744 For example: meta={'columns': ['Name']} will return only the 'Name' column.
747745 :return: S_OK() || S_ERROR()
748746 """
749- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" , "Meta" ]
750- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime , meta ]
747+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" , "Meta" ]
748+ columnValues = [token , total , guaranteed , free , lastCheckTime , meta ]
751749
752750 return self ._getRPC ().select ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
753751
754- def deleteSpaceTokenOccupancyCache (
755- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
756- ):
752+ def deleteSpaceTokenOccupancyCache (self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None ):
757753 """
758754 Deletes from SpaceTokenOccupancyCache all rows that match the parameters given.
759755
760- :param endpoint: endpoint
761- :type endpoint: string, list
762756 :param token: name of the token
763757 :type token: string, list
764758 :param total: total terabytes
@@ -771,29 +765,27 @@ def deleteSpaceTokenOccupancyCache(
771765 :type lastCheckTime: datetime, list
772766 :return: S_OK() || S_ERROR()
773767 """
774- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
775- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime ]
768+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
769+ columnValues = [token , total , guaranteed , free , lastCheckTime ]
776770
777771 return self ._getRPC ().delete ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
778772
779773 def addOrModifySpaceTokenOccupancyCache (
780- self , endpoint = None , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
774+ self , token = None , total = None , guaranteed = None , free = None , lastCheckTime = None
781775 ):
782776 """
783777 Adds or updates-if-duplicated to SpaceTokenOccupancyCache. Using `site` and `token`
784778 to query the database, decides whether to insert or update the table.
785779
786- :param endpoint: endpoint
787- :type endpoint: string, list
788780 :param str token: name of the token
789781 :param int total: total terabytes
790782 :param int guaranteed: guaranteed terabytes
791783 :param int free: free terabytes
792784 :param datetime lastCheckTime: time-stamp from which the result is effective
793785 :return: S_OK() || S_ERROR()
794786 """
795- columnNames = ["Endpoint" , " Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
796- columnValues = [endpoint , token , total , guaranteed , free , lastCheckTime ]
787+ columnNames = ["Token" , "Total" , "Guaranteed" , "Free" , "LastCheckTime" ]
788+ columnValues = [token , total , guaranteed , free , lastCheckTime ]
797789
798790 return self ._getRPC ().addOrModify ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
799791
0 commit comments