@@ -552,7 +552,16 @@ def create_application(
552
552
return response
553
553
554
554
def list_applications (
555
- self , instance_id : str , * , state : List [str ] = None , limit : int = None , start : str = None , ** kwargs
555
+ self ,
556
+ instance_id : str ,
557
+ * ,
558
+ state : List [str ] = None ,
559
+ start_time_interval : str = None ,
560
+ submission_time_interval : str = None ,
561
+ end_time_interval : str = None ,
562
+ limit : int = None ,
563
+ start : str = None ,
564
+ ** kwargs ,
556
565
) -> DetailedResponse :
557
566
"""
558
567
List all Spark applications.
@@ -564,6 +573,27 @@ def list_applications(
564
573
associated with the Spark application(s).
565
574
:param List[str] state: (optional) List of Spark application states that
566
575
will be used to filter the response.
576
+ :param str start_time_interval: (optional) Time interval to use for
577
+ filtering applications by their start time. Interval is specified in the
578
+ format `<lower timestamp limit>,<upper timestamp limit>`. Each timestamp
579
+ value must be ISO 8601 compliant. You may also use keywords `BEGINNING` as
580
+ a placeholder value for lower timestamp limit and `CURRENT` as a
581
+ placeholder value for upper timestamp limit. Note: The lower timestamp
582
+ limit is inclusive, whereas the upper timestamp limit is exclusive.
583
+ :param str submission_time_interval: (optional) Time interval to use for
584
+ filtering applications by their submission time. Interval is specified in
585
+ the format `<lower timestamp limit>,<upper timestamp limit>`. Each
586
+ timestamp value must be ISO 8601 compliant. You may also use keywords
587
+ `BEGINNING` as a placeholder value for lower timestamp limit and `CURRENT`
588
+ as a placeholder value for upper timestamp limit. Note: The lower timestamp
589
+ limit is inclusive, whereas the upper timestamp limit is exclusive.
590
+ :param str end_time_interval: (optional) Time interval to use for filtering
591
+ applications by their end time. Interval is specified in the format `<lower
592
+ timestamp limit>,<upper timestamp limit>`. Each timestamp value must be ISO
593
+ 8601 compliant. You may also use keywords `BEGINNING` as a placeholder
594
+ value for lower timestamp limit and `CURRENT` as a placeholder value for
595
+ upper timestamp limit. Note: The lower timestamp limit is inclusive,
596
+ whereas the upper timestamp limit is exclusive.
567
597
:param int limit: (optional) Number of application entries to be included
568
598
in the response.
569
599
:param str start: (optional) Token used to fetch the next or the previous
@@ -583,6 +613,9 @@ def list_applications(
583
613
584
614
params = {
585
615
'state' : convert_list (state ),
616
+ 'start_time_interval' : start_time_interval ,
617
+ 'submission_time_interval' : submission_time_interval ,
618
+ 'end_time_interval' : end_time_interval ,
586
619
'limit' : limit ,
587
620
'start' : start ,
588
621
}
@@ -3351,6 +3384,9 @@ def __init__(
3351
3384
client : IbmAnalyticsEngineApiV3 ,
3352
3385
instance_id : str ,
3353
3386
state : List [str ] = None ,
3387
+ start_time_interval : str = None ,
3388
+ submission_time_interval : str = None ,
3389
+ end_time_interval : str = None ,
3354
3390
limit : int = None ,
3355
3391
) -> None :
3356
3392
"""
@@ -3359,6 +3395,27 @@ def __init__(
3359
3395
associated with the Spark application(s).
3360
3396
:param List[str] state: (optional) List of Spark application states that
3361
3397
will be used to filter the response.
3398
+ :param str start_time_interval: (optional) Time interval to use for
3399
+ filtering applications by their start time. Interval is specified in the
3400
+ format `<lower timestamp limit>,<upper timestamp limit>`. Each timestamp
3401
+ value must be ISO 8601 compliant. You may also use keywords `BEGINNING` as
3402
+ a placeholder value for lower timestamp limit and `CURRENT` as a
3403
+ placeholder value for upper timestamp limit. Note: The lower timestamp
3404
+ limit is inclusive, whereas the upper timestamp limit is exclusive.
3405
+ :param str submission_time_interval: (optional) Time interval to use for
3406
+ filtering applications by their submission time. Interval is specified in
3407
+ the format `<lower timestamp limit>,<upper timestamp limit>`. Each
3408
+ timestamp value must be ISO 8601 compliant. You may also use keywords
3409
+ `BEGINNING` as a placeholder value for lower timestamp limit and `CURRENT`
3410
+ as a placeholder value for upper timestamp limit. Note: The lower timestamp
3411
+ limit is inclusive, whereas the upper timestamp limit is exclusive.
3412
+ :param str end_time_interval: (optional) Time interval to use for filtering
3413
+ applications by their end time. Interval is specified in the format `<lower
3414
+ timestamp limit>,<upper timestamp limit>`. Each timestamp value must be ISO
3415
+ 8601 compliant. You may also use keywords `BEGINNING` as a placeholder
3416
+ value for lower timestamp limit and `CURRENT` as a placeholder value for
3417
+ upper timestamp limit. Note: The lower timestamp limit is inclusive,
3418
+ whereas the upper timestamp limit is exclusive.
3362
3419
:param int limit: (optional) Number of application entries to be included
3363
3420
in the response.
3364
3421
"""
@@ -3367,6 +3424,9 @@ def __init__(
3367
3424
self ._page_context = {'next' : None }
3368
3425
self ._instance_id = instance_id
3369
3426
self ._state = state
3427
+ self ._start_time_interval = start_time_interval
3428
+ self ._submission_time_interval = submission_time_interval
3429
+ self ._end_time_interval = end_time_interval
3370
3430
self ._limit = limit
3371
3431
3372
3432
def has_next (self ) -> bool :
@@ -3387,6 +3447,9 @@ def get_next(self) -> List[dict]:
3387
3447
result = self ._client .list_applications (
3388
3448
instance_id = self ._instance_id ,
3389
3449
state = self ._state ,
3450
+ start_time_interval = self ._start_time_interval ,
3451
+ submission_time_interval = self ._submission_time_interval ,
3452
+ end_time_interval = self ._end_time_interval ,
3390
3453
limit = self ._limit ,
3391
3454
start = self ._page_context .get ('next' ),
3392
3455
).get_result ()
0 commit comments