@@ -177,16 +177,13 @@ class BodyPilotsAddPilotStamps(_serialization.Model):
177177 :vartype destination_site: str
178178 :ivar pilot_references: Association of a pilot reference with a pilot stamp.
179179 :vartype pilot_references: dict[str, str]
180- :ivar status_reason: Status reason of the pilots.
181- :vartype status_reason: str
180+ :ivar pilot_status: Status of the pilots. Known values are: "Submitted", "Waiting", "Running",
181+ "Done", "Failed", "Deleted", "Aborted", and "Unknown".
182+ :vartype pilot_status: str or ~_generated.models.PilotStatus
182183 :ivar generate_secrets: If we want to create secrets with the pilots.
183184 :vartype generate_secrets: bool
184185 :ivar pilot_secret_use_count_max: How much time can a secret be used.
185186 :vartype pilot_secret_use_count_max: int
186- >>>>>>> 2099d7ba (fix: Generate client)
187- :ivar pilot_status: Status of the pilots. Known values are: "Submitted", "Waiting", "Running",
188- "Done", "Failed", "Deleted", "Aborted", and "Unknown".
189- :vartype pilot_status: str or ~_generated.models.PilotStatus
190187 """
191188
192189 _validation = {
@@ -201,11 +198,9 @@ class BodyPilotsAddPilotStamps(_serialization.Model):
201198 "grid_site" : {"key" : "grid_site" , "type" : "str" },
202199 "destination_site" : {"key" : "destination_site" , "type" : "str" },
203200 "pilot_references" : {"key" : "pilot_references" , "type" : "{str}" },
204- "status_reason " : {"key" : "status_reason " , "type" : "str" },
201+ "pilot_status " : {"key" : "pilot_status " , "type" : "str" },
205202 "generate_secrets" : {"key" : "generate_secrets" , "type" : "bool" },
206203 "pilot_secret_use_count_max" : {"key" : "pilot_secret_use_count_max" , "type" : "int" },
207- >> >> >> > 2099 d7ba (fix : Generate client )
208- "pilot_status" : {"key" : "pilot_status" , "type" : "str" },
209204 }
210205
211206 def __init__ (
@@ -217,11 +212,9 @@ def __init__(
217212 grid_site : str = "Unknown" ,
218213 destination_site : str = "NotAssigned" ,
219214 pilot_references : Optional [Dict [str , str ]] = None ,
220- status_reason : str = "Unknown" ,
215+ pilot_status : Optional [ Union [ str , "_models.PilotStatus" ]] = None ,
221216 generate_secrets : bool = True ,
222217 pilot_secret_use_count_max : int = 1 ,
223- >> >> >> > 2099 d7ba (fix : Generate client )
224- pilot_status : Optional [Union [str , "_models.PilotStatus" ]] = None ,
225218 ** kwargs : Any
226219 ) -> None :
227220 """
@@ -237,16 +230,13 @@ def __init__(
237230 :paramtype destination_site: str
238231 :keyword pilot_references: Association of a pilot reference with a pilot stamp.
239232 :paramtype pilot_references: dict[str, str]
240- :keyword status_reason: Status reason of the pilots.
241- :paramtype status_reason: str
233+ :keyword pilot_status: Status of the pilots. Known values are: "Submitted", "Waiting",
234+ "Running", "Done", "Failed", "Deleted", "Aborted", and "Unknown".
235+ :paramtype pilot_status: str or ~_generated.models.PilotStatus
242236 :keyword generate_secrets: If we want to create secrets with the pilots.
243237 :paramtype generate_secrets: bool
244238 :keyword pilot_secret_use_count_max: How much time can a secret be used.
245239 :paramtype pilot_secret_use_count_max: int
246- >>>>>>> 2099d7ba (fix: Generate client)
247- :keyword pilot_status: Status of the pilots. Known values are: "Submitted", "Waiting",
248- "Running", "Done", "Failed", "Deleted", "Aborted", and "Unknown".
249- :paramtype pilot_status: str or ~_generated.models.PilotStatus
250240 """
251241 super ().__init__ (** kwargs )
252242 self .pilot_stamps = pilot_stamps
@@ -255,7 +245,7 @@ def __init__(
255245 self .grid_site = grid_site
256246 self .destination_site = destination_site
257247 self .pilot_references = pilot_references
258- self .status_reason = status_reason
248+ self .pilot_status = pilot_status
259249 self .generate_secrets = generate_secrets
260250 self .pilot_secret_use_count_max = pilot_secret_use_count_max
261251
@@ -309,74 +299,6 @@ def __init__(
309299 self .vo = vo
310300
311301
312- class BodyPilotsPerformSecretExchange (_serialization .Model ):
313- """Body_pilots_perform_secret_exchange.
314-
315- All required parameters must be populated in order to send to server.
316-
317- :ivar pilot_stamp: Stamp used by a pilot to login. Required.
318- :vartype pilot_stamp: str
319- :ivar pilot_secret: Pilot secret given by Dirac/DiracX. Required.
320- :vartype pilot_secret: str
321- """
322-
323- _validation = {
324- "pilot_stamp" : {"required" : True },
325- "pilot_secret" : {"required" : True },
326- }
327-
328- _attribute_map = {
329- "pilot_stamp" : {"key" : "pilot_stamp" , "type" : "str" },
330- "pilot_secret" : {"key" : "pilot_secret" , "type" : "str" },
331- }
332-
333- def __init__ (self , * , pilot_stamp : str , pilot_secret : str , ** kwargs : Any ) -> None :
334- """
335- :keyword pilot_stamp: Stamp used by a pilot to login. Required.
336- :paramtype pilot_stamp: str
337- :keyword pilot_secret: Pilot secret given by Dirac/DiracX. Required.
338- :paramtype pilot_secret: str
339- """
340- super ().__init__ (** kwargs )
341- self .pilot_stamp = pilot_stamp
342- self .pilot_secret = pilot_secret
343-
344-
345- class BodyPilotsRefreshPilotTokens (_serialization .Model ):
346- """Body_pilots_refresh_pilot_tokens.
347-
348- All required parameters must be populated in order to send to server.
349-
350- :ivar refresh_token: Refresh Token given at login by DiracX. Required.
351- :vartype refresh_token: str
352- :ivar pilot_stamp: Pilot stamp. Required.
353- :vartype pilot_stamp: str
354- """
355-
356- _validation = {
357- "refresh_token" : {"required" : True },
358- "pilot_stamp" : {"required" : True },
359- }
360-
361- _attribute_map = {
362- "refresh_token" : {"key" : "refresh_token" , "type" : "str" },
363- "pilot_stamp" : {"key" : "pilot_stamp" , "type" : "str" },
364- }
365-
366- def __init__ (self , * , refresh_token : str , pilot_stamp : str , ** kwargs : Any ) -> None :
367- """
368- :keyword refresh_token: Refresh Token given at login by DiracX. Required.
369- :paramtype refresh_token: str
370- :keyword pilot_stamp: Pilot stamp. Required.
371- :paramtype pilot_stamp: str
372- """
373- super ().__init__ (** kwargs )
374- self .refresh_token = refresh_token
375- self .pilot_stamp = pilot_stamp
376- >> >> >> > 2099 d7ba (fix : Generate client )
377- self .pilot_status = pilot_status
378-
379-
380302class BodyPilotsUpdatePilotFields (_serialization .Model ):
381303 """Body_pilots_update_pilot_fields.
382304
0 commit comments