@@ -177,16 +177,13 @@ class BodyPilotsAddPilotStamps(_serialization.Model):
177
177
:vartype destination_site: str
178
178
:ivar pilot_references: Association of a pilot reference with a pilot stamp.
179
179
: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
182
183
:ivar generate_secrets: If we want to create secrets with the pilots.
183
184
:vartype generate_secrets: bool
184
185
:ivar pilot_secret_use_count_max: How much time can a secret be used.
185
186
: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
190
187
"""
191
188
192
189
_validation = {
@@ -201,11 +198,9 @@ class BodyPilotsAddPilotStamps(_serialization.Model):
201
198
"grid_site" : {"key" : "grid_site" , "type" : "str" },
202
199
"destination_site" : {"key" : "destination_site" , "type" : "str" },
203
200
"pilot_references" : {"key" : "pilot_references" , "type" : "{str}" },
204
- "status_reason " : {"key" : "status_reason " , "type" : "str" },
201
+ "pilot_status " : {"key" : "pilot_status " , "type" : "str" },
205
202
"generate_secrets" : {"key" : "generate_secrets" , "type" : "bool" },
206
203
"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" },
209
204
}
210
205
211
206
def __init__ (
@@ -217,11 +212,9 @@ def __init__(
217
212
grid_site : str = "Unknown" ,
218
213
destination_site : str = "NotAssigned" ,
219
214
pilot_references : Optional [Dict [str , str ]] = None ,
220
- status_reason : str = "Unknown" ,
215
+ pilot_status : Optional [ Union [ str , "_models.PilotStatus" ]] = None ,
221
216
generate_secrets : bool = True ,
222
217
pilot_secret_use_count_max : int = 1 ,
223
- >> >> >> > 2099 d7ba (fix : Generate client )
224
- pilot_status : Optional [Union [str , "_models.PilotStatus" ]] = None ,
225
218
** kwargs : Any
226
219
) -> None :
227
220
"""
@@ -237,16 +230,13 @@ def __init__(
237
230
:paramtype destination_site: str
238
231
:keyword pilot_references: Association of a pilot reference with a pilot stamp.
239
232
: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
242
236
:keyword generate_secrets: If we want to create secrets with the pilots.
243
237
:paramtype generate_secrets: bool
244
238
:keyword pilot_secret_use_count_max: How much time can a secret be used.
245
239
: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
250
240
"""
251
241
super ().__init__ (** kwargs )
252
242
self .pilot_stamps = pilot_stamps
@@ -255,7 +245,7 @@ def __init__(
255
245
self .grid_site = grid_site
256
246
self .destination_site = destination_site
257
247
self .pilot_references = pilot_references
258
- self .status_reason = status_reason
248
+ self .pilot_status = pilot_status
259
249
self .generate_secrets = generate_secrets
260
250
self .pilot_secret_use_count_max = pilot_secret_use_count_max
261
251
@@ -309,74 +299,6 @@ def __init__(
309
299
self .vo = vo
310
300
311
301
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
-
380
302
class BodyPilotsUpdatePilotFields (_serialization .Model ):
381
303
"""Body_pilots_update_pilot_fields.
382
304
0 commit comments