@@ -724,13 +724,11 @@ def addOrModifyPolicyResult(
724
724
# SpaceTokenOccupancyCache Methods ...........................................
725
725
726
726
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
728
728
):
729
729
"""
730
730
Gets from SpaceTokenOccupancyCache all rows that match the parameters given.
731
731
732
- :param endpoint: endpoint
733
- :type endpoint: string, list
734
732
:param token: name of the token
735
733
:type token: string, list
736
734
:param total: total terabytes
@@ -745,19 +743,15 @@ def selectSpaceTokenOccupancyCache(
745
743
For example: meta={'columns': ['Name']} will return only the 'Name' column.
746
744
:return: S_OK() || S_ERROR()
747
745
"""
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 ]
750
748
751
749
return self ._getRPC ().select ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
752
750
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 ):
756
752
"""
757
753
Deletes from SpaceTokenOccupancyCache all rows that match the parameters given.
758
754
759
- :param endpoint: endpoint
760
- :type endpoint: string, list
761
755
:param token: name of the token
762
756
:type token: string, list
763
757
:param total: total terabytes
@@ -770,13 +764,13 @@ def deleteSpaceTokenOccupancyCache(
770
764
:type lastCheckTime: datetime, list
771
765
:return: S_OK() || S_ERROR()
772
766
"""
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 ]
775
769
776
770
return self ._getRPC ().delete ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
777
771
778
772
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
780
774
):
781
775
"""
782
776
Adds or updates-if-duplicated to SpaceTokenOccupancyCache. Using `site` and `token`
@@ -791,8 +785,8 @@ def addOrModifySpaceTokenOccupancyCache(
791
785
:param datetime lastCheckTime: time-stamp from which the result is effective
792
786
:return: S_OK() || S_ERROR()
793
787
"""
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 ]
796
790
797
791
return self ._getRPC ().addOrModify ("SpaceTokenOccupancyCache" , prepareDict (columnNames , columnValues ))
798
792
0 commit comments