@@ -153,6 +153,76 @@ def __init__(self, *, refresh_token: str, **kwargs: Any) -> None:
153153 self .refresh_token = refresh_token
154154
155155
156+ class BodyPilotsAddPilotStamps (_serialization .Model ):
157+ """Body_pilots_add_pilot_stamps.
158+
159+ All required parameters must be populated in order to send to server.
160+
161+ :ivar pilot_stamps: List of the pilot stamps we want to add to the db. Required.
162+ :vartype pilot_stamps: list[str]
163+ :ivar vo: Virtual Organisation associated with the inserted pilots. Required.
164+ :vartype vo: str
165+ :ivar grid_type: Grid type of the pilots.
166+ :vartype grid_type: str
167+ :ivar pilot_references: Association of a pilot reference with a pilot stamp.
168+ :vartype pilot_references: dict[str, any]
169+ :ivar generate_secrets: Boolean to allow secret creation or not.
170+ :vartype generate_secrets: bool
171+ :ivar pilot_secret_use_count_max: Number of times we can use a secret.
172+ :vartype pilot_secret_use_count_max: int
173+ """
174+
175+ _validation = {
176+ "pilot_stamps" : {"required" : True },
177+ "vo" : {"required" : True },
178+ }
179+
180+ _attribute_map = {
181+ "pilot_stamps" : {"key" : "pilot_stamps" , "type" : "[str]" },
182+ "vo" : {"key" : "vo" , "type" : "str" },
183+ "grid_type" : {"key" : "grid_type" , "type" : "str" },
184+ "pilot_references" : {"key" : "pilot_references" , "type" : "{object}" },
185+ "generate_secrets" : {"key" : "generate_secrets" , "type" : "bool" },
186+ "pilot_secret_use_count_max" : {
187+ "key" : "pilot_secret_use_count_max" ,
188+ "type" : "int" ,
189+ },
190+ }
191+
192+ def __init__ (
193+ self ,
194+ * ,
195+ pilot_stamps : List [str ],
196+ vo : str ,
197+ grid_type : str = "Dirac" ,
198+ pilot_references : Optional [Dict [str , Any ]] = None ,
199+ generate_secrets : bool = True ,
200+ pilot_secret_use_count_max : int = 1 ,
201+ ** kwargs : Any ,
202+ ) -> None :
203+ """
204+ :keyword pilot_stamps: List of the pilot stamps we want to add to the db. Required.
205+ :paramtype pilot_stamps: list[str]
206+ :keyword vo: Virtual Organisation associated with the inserted pilots. Required.
207+ :paramtype vo: str
208+ :keyword grid_type: Grid type of the pilots.
209+ :paramtype grid_type: str
210+ :keyword pilot_references: Association of a pilot reference with a pilot stamp.
211+ :paramtype pilot_references: dict[str, any]
212+ :keyword generate_secrets: Boolean to allow secret creation or not.
213+ :paramtype generate_secrets: bool
214+ :keyword pilot_secret_use_count_max: Number of times we can use a secret.
215+ :paramtype pilot_secret_use_count_max: int
216+ """
217+ super ().__init__ (** kwargs )
218+ self .pilot_stamps = pilot_stamps
219+ self .vo = vo
220+ self .grid_type = grid_type
221+ self .pilot_references = pilot_references
222+ self .generate_secrets = generate_secrets
223+ self .pilot_secret_use_count_max = pilot_secret_use_count_max
224+
225+
156226class BodyPilotsAssociatePilotsWithSecrets (_serialization .Model ):
157227 """Body_pilots_associate_pilots_with_secrets.
158228
@@ -283,76 +353,6 @@ def __init__(
283353 self .pilot_secret_use_count_max = pilot_secret_use_count_max
284354
285355
286- class BodyPilotsRegisterNewPilotsToDb (_serialization .Model ):
287- """Body_pilots_register_new_pilots_to_db.
288-
289- All required parameters must be populated in order to send to server.
290-
291- :ivar pilot_stamps: List of the pilot stamps we want to add to the db. Required.
292- :vartype pilot_stamps: list[str]
293- :ivar vo: Virtual Organisation associated with the inserted pilots. Required.
294- :vartype vo: str
295- :ivar grid_type: Grid type of the pilots.
296- :vartype grid_type: str
297- :ivar pilot_references: Association of a pilot reference with a pilot stamp.
298- :vartype pilot_references: dict[str, any]
299- :ivar generate_secrets: Boolean to allow secret creation or not.
300- :vartype generate_secrets: bool
301- :ivar pilot_secret_use_count_max: Number of times we can use a secret.
302- :vartype pilot_secret_use_count_max: int
303- """
304-
305- _validation = {
306- "pilot_stamps" : {"required" : True },
307- "vo" : {"required" : True },
308- }
309-
310- _attribute_map = {
311- "pilot_stamps" : {"key" : "pilot_stamps" , "type" : "[str]" },
312- "vo" : {"key" : "vo" , "type" : "str" },
313- "grid_type" : {"key" : "grid_type" , "type" : "str" },
314- "pilot_references" : {"key" : "pilot_references" , "type" : "{object}" },
315- "generate_secrets" : {"key" : "generate_secrets" , "type" : "bool" },
316- "pilot_secret_use_count_max" : {
317- "key" : "pilot_secret_use_count_max" ,
318- "type" : "int" ,
319- },
320- }
321-
322- def __init__ (
323- self ,
324- * ,
325- pilot_stamps : List [str ],
326- vo : str ,
327- grid_type : str = "Dirac" ,
328- pilot_references : Optional [Dict [str , Any ]] = None ,
329- generate_secrets : bool = True ,
330- pilot_secret_use_count_max : int = 1 ,
331- ** kwargs : Any ,
332- ) -> None :
333- """
334- :keyword pilot_stamps: List of the pilot stamps we want to add to the db. Required.
335- :paramtype pilot_stamps: list[str]
336- :keyword vo: Virtual Organisation associated with the inserted pilots. Required.
337- :paramtype vo: str
338- :keyword grid_type: Grid type of the pilots.
339- :paramtype grid_type: str
340- :keyword pilot_references: Association of a pilot reference with a pilot stamp.
341- :paramtype pilot_references: dict[str, any]
342- :keyword generate_secrets: Boolean to allow secret creation or not.
343- :paramtype generate_secrets: bool
344- :keyword pilot_secret_use_count_max: Number of times we can use a secret.
345- :paramtype pilot_secret_use_count_max: int
346- """
347- super ().__init__ (** kwargs )
348- self .pilot_stamps = pilot_stamps
349- self .vo = vo
350- self .grid_type = grid_type
351- self .pilot_references = pilot_references
352- self .generate_secrets = generate_secrets
353- self .pilot_secret_use_count_max = pilot_secret_use_count_max
354-
355-
356356class GroupInfo (_serialization .Model ):
357357 """GroupInfo.
358358
@@ -635,56 +635,6 @@ def __init__(
635635 self .arguments = arguments
636636
637637
638- class JobSearchParams (_serialization .Model ):
639- """JobSearchParams.
640-
641- :ivar parameters: Parameters.
642- :vartype parameters: list[str]
643- :ivar search: Search.
644- :vartype search: list[~_generated.models.JobSearchParamsSearchItem]
645- :ivar sort: Sort.
646- :vartype sort: list[~_generated.models.SortSpec]
647- :ivar distinct: Distinct.
648- :vartype distinct: bool
649- """
650-
651- _attribute_map = {
652- "parameters" : {"key" : "parameters" , "type" : "[str]" },
653- "search" : {"key" : "search" , "type" : "[JobSearchParamsSearchItem]" },
654- "sort" : {"key" : "sort" , "type" : "[SortSpec]" },
655- "distinct" : {"key" : "distinct" , "type" : "bool" },
656- }
657-
658- def __init__ (
659- self ,
660- * ,
661- parameters : Optional [List [str ]] = None ,
662- search : List ["_models.JobSearchParamsSearchItem" ] = [],
663- sort : List ["_models.SortSpec" ] = [],
664- distinct : bool = False ,
665- ** kwargs : Any ,
666- ) -> None :
667- """
668- :keyword parameters: Parameters.
669- :paramtype parameters: list[str]
670- :keyword search: Search.
671- :paramtype search: list[~_generated.models.JobSearchParamsSearchItem]
672- :keyword sort: Sort.
673- :paramtype sort: list[~_generated.models.SortSpec]
674- :keyword distinct: Distinct.
675- :paramtype distinct: bool
676- """
677- super ().__init__ (** kwargs )
678- self .parameters = parameters
679- self .search = search
680- self .sort = sort
681- self .distinct = distinct
682-
683-
684- class JobSearchParamsSearchItem (_serialization .Model ):
685- """JobSearchParamsSearchItem."""
686-
687-
688638class JobStatusUpdate (_serialization .Model ):
689639 """JobStatusUpdate.
690640
@@ -1018,7 +968,7 @@ class PilotFieldsMapping(_serialization.Model):
1018968 :ivar accounting_sent: Accountingsent.
1019969 :vartype accounting_sent: bool
1020970 :ivar current_job_id: Currentjobid.
1021- :vartype current_job_id: bool
971+ :vartype current_job_id: int
1022972 """
1023973
1024974 _validation = {
@@ -1035,7 +985,7 @@ class PilotFieldsMapping(_serialization.Model):
1035985 "grid_site" : {"key" : "GridSite" , "type" : "str" },
1036986 "grid_type" : {"key" : "GridType" , "type" : "str" },
1037987 "accounting_sent" : {"key" : "AccountingSent" , "type" : "bool" },
1038- "current_job_id" : {"key" : "CurrentJobID" , "type" : "bool " },
988+ "current_job_id" : {"key" : "CurrentJobID" , "type" : "int " },
1039989 }
1040990
1041991 def __init__ (
@@ -1050,7 +1000,7 @@ def __init__(
10501000 grid_site : Optional [str ] = None ,
10511001 grid_type : Optional [str ] = None ,
10521002 accounting_sent : Optional [bool ] = None ,
1053- current_job_id : Optional [bool ] = None ,
1003+ current_job_id : Optional [int ] = None ,
10541004 ** kwargs : Any ,
10551005 ) -> None :
10561006 """
@@ -1074,7 +1024,7 @@ def __init__(
10741024 :keyword accounting_sent: Accountingsent.
10751025 :paramtype accounting_sent: bool
10761026 :keyword current_job_id: Currentjobid.
1077- :paramtype current_job_id: bool
1027+ :paramtype current_job_id: int
10781028 """
10791029 super ().__init__ (** kwargs )
10801030 self .pilot_stamp = pilot_stamp
@@ -1150,8 +1100,8 @@ def __init__(self, *, pilot_stamp: str, **kwargs: Any) -> None:
11501100 self .pilot_stamp = pilot_stamp
11511101
11521102
1153- class ResponsePilotsRegisterNewPilotsToDb (_serialization .Model ):
1154- """Response Pilots Register New Pilots To Db ."""
1103+ class ResponsePilotsAddPilotStamps (_serialization .Model ):
1104+ """Response Pilots Add Pilot Stamps ."""
11551105
11561106
11571107class SandboxDownloadResponse (_serialization .Model ):
@@ -1340,6 +1290,56 @@ class ScalarSearchSpecValue(_serialization.Model):
13401290 """Value."""
13411291
13421292
1293+ class SearchParams (_serialization .Model ):
1294+ """SearchParams.
1295+
1296+ :ivar parameters: Parameters.
1297+ :vartype parameters: list[str]
1298+ :ivar search: Search.
1299+ :vartype search: list[~_generated.models.SearchParamsSearchItem]
1300+ :ivar sort: Sort.
1301+ :vartype sort: list[~_generated.models.SortSpec]
1302+ :ivar distinct: Distinct.
1303+ :vartype distinct: bool
1304+ """
1305+
1306+ _attribute_map = {
1307+ "parameters" : {"key" : "parameters" , "type" : "[str]" },
1308+ "search" : {"key" : "search" , "type" : "[SearchParamsSearchItem]" },
1309+ "sort" : {"key" : "sort" , "type" : "[SortSpec]" },
1310+ "distinct" : {"key" : "distinct" , "type" : "bool" },
1311+ }
1312+
1313+ def __init__ (
1314+ self ,
1315+ * ,
1316+ parameters : Optional [List [str ]] = None ,
1317+ search : List ["_models.SearchParamsSearchItem" ] = [],
1318+ sort : List ["_models.SortSpec" ] = [],
1319+ distinct : bool = False ,
1320+ ** kwargs : Any ,
1321+ ) -> None :
1322+ """
1323+ :keyword parameters: Parameters.
1324+ :paramtype parameters: list[str]
1325+ :keyword search: Search.
1326+ :paramtype search: list[~_generated.models.SearchParamsSearchItem]
1327+ :keyword sort: Sort.
1328+ :paramtype sort: list[~_generated.models.SortSpec]
1329+ :keyword distinct: Distinct.
1330+ :paramtype distinct: bool
1331+ """
1332+ super ().__init__ (** kwargs )
1333+ self .parameters = parameters
1334+ self .search = search
1335+ self .sort = sort
1336+ self .distinct = distinct
1337+
1338+
1339+ class SearchParamsSearchItem (_serialization .Model ):
1340+ """SearchParamsSearchItem."""
1341+
1342+
13431343class SetJobStatusReturn (_serialization .Model ):
13441344 """SetJobStatusReturn.
13451345
0 commit comments